diff options
author | 2015-11-27 08:09:39 +0100 | |
---|---|---|
committer | 2015-11-27 08:09:39 +0100 | |
commit | bec7731473a0fae1d837a8a0fdfc902504ea9fcd (patch) | |
tree | 138580bd8d6b34857715cd701488e8aa072d73b9 /src | |
parent | 447c2562dec4bde02593e91a6b16e1daa2163f32 (diff) | |
download | rust-x86-bec7731473a0fae1d837a8a0fdfc902504ea9fcd.tar.gz rust-x86-bec7731473a0fae1d837a8a0fdfc902504ea9fcd.tar.zst rust-x86-bec7731473a0fae1d837a8a0fdfc902504ea9fcd.zip |
Comment.
Diffstat (limited to 'src')
-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"); |