diff options
author | 2017-02-17 17:37:21 +0100 | |
---|---|---|
committer | 2017-02-17 17:37:21 +0100 | |
commit | 54e5ce4811c5275eaff01e10d3899ccf2abc45f9 (patch) | |
tree | 848ffbcdb192567d99629e44434d58680eeb50cd /src/shared/perfcnt/intel/mod.rs | |
parent | 4ea243fcde12460d5e0dd8d1407d2ea2671aca7a (diff) | |
download | rust-x86-54e5ce4811c5275eaff01e10d3899ccf2abc45f9.tar.gz rust-x86-54e5ce4811c5275eaff01e10d3899ccf2abc45f9.tar.zst rust-x86-54e5ce4811c5275eaff01e10d3899ccf2abc45f9.zip |
Make lifetime for event description explicit.
Signed-off-by: Gerd Zellweger <mail@gerdzellweger.com>
Diffstat (limited to 'src/shared/perfcnt/intel/mod.rs')
-rw-r--r-- | src/shared/perfcnt/intel/mod.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/shared/perfcnt/intel/mod.rs b/src/shared/perfcnt/intel/mod.rs index 13602f7..f038055 100644 --- a/src/shared/perfcnt/intel/mod.rs +++ b/src/shared/perfcnt/intel/mod.rs @@ -60,12 +60,12 @@ macro_rules! get_counters { } /// Return all core performance counters for the running micro-architecture. -pub fn core_counters() -> Option<&'static phf::Map<&'static str, EventDescription>> { +pub fn core_counters() -> Option<&'static phf::Map<&'static str, EventDescription<'static>>> { get_counters!("{}-{}-{:X}{:X}-core") } /// Return all uncore performance counters for the running micro-architecture. -pub fn uncore_counters() -> Option<&'static phf::Map<&'static str, EventDescription>> { +pub fn uncore_counters() -> Option<&'static phf::Map<&'static str, EventDescription<'static>>> { get_counters!("{}-{}-{:X}{:X}-uncore") } |