diff options
-rw-r--r-- | src/perfcnt/mod.rs | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/perfcnt/mod.rs b/src/perfcnt/mod.rs index fba94bd..00fabe3 100644 --- a/src/perfcnt/mod.rs +++ b/src/perfcnt/mod.rs @@ -67,6 +67,7 @@ pub fn uncore_counters() -> Option<&'static phf::Map<&'static str, intel::descri #[test] fn counter_test() { + // Note: This will silently fail in case the counter is not available. core_counters().map(|cc| { cc.get("INST_RETIRED.ANY").map(|p| { assert!(p.event_name == "INST_RETIRED.ANY"); |