diff options
author | 2021-09-28 04:09:49 -0500 | |
---|---|---|
committer | 2021-09-28 10:46:43 -0700 | |
commit | 8669c5e1739b8134392c24908829b0076db081a5 (patch) | |
tree | 4b1c279e6a2d46cfb462818ba47dd1088573b5c2 /src | |
parent | 4a63cd5982cf42e008e634aa0e4a49aaa0fa9567 (diff) | |
download | rust-x86-8669c5e1739b8134392c24908829b0076db081a5.tar.gz rust-x86-8669c5e1739b8134392c24908829b0076db081a5.tar.zst rust-x86-8669c5e1739b8134392c24908829b0076db081a5.zip |
perfcnt: Use `base_xxx_id` apis for looking up `COUNTER_MAP`
The name change introduced as part of `97fd82e` in rust-cpuid crate
breaks the `COUNTER_MAP` lookup
Diffstat (limited to 'src')
-rw-r--r-- | src/perfcnt/intel/mod.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/perfcnt/intel/mod.rs b/src/perfcnt/intel/mod.rs index 5a459cd..f3fdd63 100644 --- a/src/perfcnt/intel/mod.rs +++ b/src/perfcnt/intel/mod.rs @@ -47,7 +47,7 @@ macro_rules! get_events { cpuid.get_feature_info().map_or(None, |fi| { let vendor = vf.as_str(); let (family, extended_model, model) = - (fi.family_id(), fi.extended_model_id(), fi.model_id()); + (fi.base_family_id(), fi.extended_model_id(), fi.base_model_id()); let mut writer: ModelWriter = Default::default(); // Should work as long as it fits in MODEL_LEN bytes: |