From 238351ee580694cc0dc8db828ca48287406e6e1b Mon Sep 17 00:00:00 2001 From: Janakarajan Natarajan Date: Fri, 3 Mar 2023 17:07:31 +0000 Subject: [PATCH] Update Intel PMU events --- src/data/intel_perf_events.rs | 26 ++++++++++++++------------ 1 file changed, 14 insertions(+), 12 deletions(-) diff --git a/src/data/intel_perf_events.rs b/src/data/intel_perf_events.rs index 53d2d971..895b711b 100644 --- a/src/data/intel_perf_events.rs +++ b/src/data/intel_perf_events.rs @@ -3,25 +3,25 @@ use crate::data::perf_stat::{NamedCtr, NamedTypeCtr, PerfType}; /// Intel Events static INSTRUCTIONS: NamedTypeCtr = NamedTypeCtr {perf_type: PerfType::RAW, name: "Instructions", config: 0xc0}; static CYCLES: NamedTypeCtr = NamedTypeCtr {perf_type: PerfType::RAW, name: "Cycles", config: 0x3c}; -static STALL_FRONTEND_PKC: NamedTypeCtr = NamedTypeCtr {perf_type: PerfType::RAW, name: "Frontend-Stalls", config: 0x9c01}; +static STALL_FRONTEND_PKC: NamedTypeCtr = NamedTypeCtr {perf_type: PerfType::RAW, name: "Frontend-Stalls", config: 0x400019c}; static BRANCHES: NamedTypeCtr = NamedTypeCtr {perf_type: PerfType::RAW, name: "Branches", config: 0xc5}; -static CODE_SPARSITY: NamedTypeCtr = NamedTypeCtr {perf_type: PerfType::RAW, name: "Code-Sparsity", config: 0x4901}; -static INSTRUCTION_TLB: NamedTypeCtr = NamedTypeCtr {perf_type: PerfType::RAW, name: "Instruction-TLB", config: 0x8520}; -static INSTRUCTION_TLB_TW: NamedTypeCtr = NamedTypeCtr {perf_type: PerfType::RAW, name: "Instruction-TLB-TW", config: 0x8501}; -static L1_INSTRUCTIONS: NamedTypeCtr = NamedTypeCtr {perf_type: PerfType::RAW, name: "L1-Instructions", config: 0x24e4}; -static BACKEND_STALLS: NamedTypeCtr = NamedTypeCtr {perf_type: PerfType::RAW, name: "Backend-Stalls", config: 0xa201}; -static L3: NamedTypeCtr = NamedTypeCtr {perf_type: PerfType::RAW, name: "L3", config: 0x2e41}; -static L2: NamedTypeCtr = NamedTypeCtr {perf_type: PerfType::RAW, name: "L2", config: 0xf11f}; -static DATA_TLB: NamedTypeCtr = NamedTypeCtr {perf_type: PerfType::RAW, name: "Data-TLB", config: 0x0820}; -static DATA_TLB_TW: NamedTypeCtr = NamedTypeCtr {perf_type: PerfType::RAW, name: "Data-TLB-TW", config: 0x0801}; -static L1_DATA: NamedTypeCtr = NamedTypeCtr {perf_type: PerfType::RAW, name: "L1-Data", config: 0x5101}; +static INSTRUCTION_TLB: NamedTypeCtr = NamedTypeCtr {perf_type: PerfType::RAW, name: "Instruction-TLB", config: 0x2085}; +static INSTRUCTION_TLB_TW: NamedTypeCtr = NamedTypeCtr {perf_type: PerfType::RAW, name: "Instruction-TLB-TW", config: 0x0185}; +static L1_INSTRUCTIONS: NamedTypeCtr = NamedTypeCtr {perf_type: PerfType::RAW, name: "L1-Instructions", config: 0xe424}; +static BACKEND_STALLS: NamedTypeCtr = NamedTypeCtr {perf_type: PerfType::RAW, name: "Backend-Stalls", config: 0x10a2}; +static L3: NamedTypeCtr = NamedTypeCtr {perf_type: PerfType::RAW, name: "L3", config: 0x412e}; +static L2: NamedTypeCtr = NamedTypeCtr {perf_type: PerfType::RAW, name: "L2", config: 0x1ff1}; +static DATA_TLB: NamedTypeCtr = NamedTypeCtr {perf_type: PerfType::RAW, name: "Data-TLB", config: 0x2008}; +static DATA_TLB_TW: NamedTypeCtr = NamedTypeCtr {perf_type: PerfType::RAW, name: "Data-TLB-TW", config: 0x0108}; +static L1_DATA: NamedTypeCtr = NamedTypeCtr {perf_type: PerfType::RAW, name: "L1-Data", config: 0x0151}; +static DATA_ST_TLB: NamedTypeCtr = NamedTypeCtr {perf_type: PerfType::RAW, name: "Data-ST-TLB", config: 0x2049}; +static DATA_ST_TLB_TW: NamedTypeCtr = NamedTypeCtr {perf_type: PerfType::RAW, name: "Data-ST-TLB-TW", config: 0x0149}; lazy_static! { pub static ref PERF_LIST: Vec> = [ NamedCtr{name: "ipc", nrs: vec![INSTRUCTIONS], drs: vec![CYCLES], scale: 1}, NamedCtr{name: "stall-frontend-pkc", nrs: vec![STALL_FRONTEND_PKC], drs: vec![CYCLES], scale: 1000}, NamedCtr{name: "branch-mpki", nrs: vec![BRANCHES], drs: vec![INSTRUCTIONS], scale: 1000}, - NamedCtr{name: "code-sparsity", nrs: vec![CODE_SPARSITY], drs: vec![INSTRUCTIONS], scale: 1000}, NamedCtr{name: "inst-tlb-mpki", nrs: vec![INSTRUCTION_TLB], drs: vec![INSTRUCTIONS], scale: 1000}, NamedCtr{name: "inst-tlb-tw-pki", nrs: vec![INSTRUCTION_TLB_TW], drs: vec![INSTRUCTIONS], scale: 1000}, NamedCtr{name: "inst-l1-mpki", nrs: vec![L1_INSTRUCTIONS], drs: vec![INSTRUCTIONS], scale: 1000}, @@ -31,5 +31,7 @@ lazy_static! { NamedCtr{name: "data-tlb-mpki", nrs: vec![DATA_TLB], drs: vec![INSTRUCTIONS], scale: 1000}, NamedCtr{name: "data-tlb-tw-pki", nrs: vec![DATA_TLB_TW], drs: vec![INSTRUCTIONS], scale: 1000}, NamedCtr{name: "data-l1-mpki", nrs: vec![L1_DATA], drs: vec![INSTRUCTIONS], scale: 1000}, + NamedCtr{name: "data-st-tlb-mpki", nrs: vec![DATA_ST_TLB], drs: vec![INSTRUCTIONS], scale: 1000}, + NamedCtr{name: "data-st-tlb-tw-pki", nrs: vec![DATA_ST_TLB_TW], drs: vec![INSTRUCTIONS], scale: 1000}, ].to_vec(); }