diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-05-30 03:57:19 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-05-30 03:57:19 +0000 |
commit | a0b8f38ab54ac451646aa00cd5e91b6c76f22a84 (patch) | |
tree | fc451898ccaf445814e26b46664d78702178101d /vendor/measureme/src | |
parent | Adding debian version 1.71.1+dfsg1-2. (diff) | |
download | rustc-a0b8f38ab54ac451646aa00cd5e91b6c76f22a84.tar.xz rustc-a0b8f38ab54ac451646aa00cd5e91b6c76f22a84.zip |
Merging upstream version 1.72.1+dfsg1.
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'vendor/measureme/src')
-rw-r--r-- | vendor/measureme/src/counters.rs | 13 |
1 files changed, 5 insertions, 8 deletions
diff --git a/vendor/measureme/src/counters.rs b/vendor/measureme/src/counters.rs index a72cbc16e..48d30e9c6 100644 --- a/vendor/measureme/src/counters.rs +++ b/vendor/measureme/src/counters.rs @@ -321,13 +321,10 @@ mod hw { counter_type: super::HwCounterType, ) -> Result<Self, Box<dyn Error + Send + Sync>> { let (type_, hw_id) = match counter_type { - super::HwCounterType::Instructions => ( - perf_type_id_PERF_TYPE_HARDWARE, - perf_hw_id_PERF_COUNT_HW_INSTRUCTIONS, - ), - super::HwCounterType::Irqs => { - (perf_type_id_PERF_TYPE_RAW, model.irqs_counter_config()?) + super::HwCounterType::Instructions => { + (PERF_TYPE_HARDWARE, PERF_COUNT_HW_INSTRUCTIONS) } + super::HwCounterType::Irqs => (PERF_TYPE_RAW, model.irqs_counter_config()?), super::HwCounterType::Raw0420 => { match model { CpuModel::Amd(AmdGen::Zen) => {} @@ -338,7 +335,7 @@ mod hw { ), } - (perf_type_id_PERF_TYPE_RAW, 0x04_20) + (PERF_TYPE_RAW, 0x04_20) } }; Self::with_type_and_hw_id(type_, hw_id) @@ -792,7 +789,7 @@ mod hw { // which only reliably remains `0` when `SpecLockMap` is disabled. if matches!(gen, Zen | UnknownMaybeZenLike) { if let Ok(spec_lock_map_commit) = - Counter::with_type_and_hw_id(perf_type_id_PERF_TYPE_RAW, 0x08_25) + Counter::with_type_and_hw_id(PERF_TYPE_RAW, 0x08_25) { use super::HwCounterRead; |