BHM: Support aarch64 for Mac sampler (#31298)

Replaced unmaintained `mach` crate with `mach2`, and added support for getting arm registers.
This commit is contained in:
Rajesh Malviya 2024-02-09 19:25:28 +05:30 committed by GitHub
parent f6b81a97f3
commit 9d42602fe7
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 52 additions and 24 deletions

View file

@ -25,7 +25,7 @@ serde_json = { workspace = true }
lazy_static = { workspace = true }
[target.'cfg(target_os = "macos")'.dependencies]
mach = "0.3"
mach2 = "0.4"
[target.'cfg(all(target_os = "linux", not(any(target_arch = "arm", target_arch = "aarch64"))))'.dependencies]
nix = "0.25"