Skip to content

Commit 3370aac

Browse files
authored
Merge pull request #27 from intel/0426updates
Updates April 26 2023
2 parents bb54833 + 7457571 commit 3370aac

17 files changed

+452
-624
lines changed

_version.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
1.2.7
1+
1.2.8

events/bdx.txt

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ ref-cycles,
2222
instructions;
2323

2424
cpu/event=0x85,umask=0x0e,period=100003,name='ITLB_MISSES.WALK_COMPLETED'/,
25-
cpu/event=0x85,umask=0x04,period=100003,name='ITLB_MISSES.ITLB_MISSES.WALK_COMPLETED_2M_4M'/,
25+
cpu/event=0x85,umask=0x04,period=100003,name='ITLB_MISSES.WALK_COMPLETED_2M_4M'/,
2626
cpu/event=0x85,umask=0x10,cmask=1,period=100003,name='ITLB_MISSES.WALK_DURATION_c1'/,
2727
cpu/event=0x85,umask=0x60,period=100003,name='ITLB_MISSES.STLB_HIT'/,
2828
cpu-cycles,
@@ -92,6 +92,7 @@ cpu/event=0x79,umask=0x30,name='IDQ.MS_SWITCHES'/,
9292
cpu-cycles,
9393
instructions;
9494

95+
cpu/event=0x14,umask=0x01,period=2000003,name='ARITH.FPU_DIV_ACTIVE'/,
9596
cpu/event=0xc5,umask=0x00,name='BR_MISP_RETIRED.ALL_BRANCHES'/,
9697
cpu/event=0xc3,umask=0x01,name='MACHINE_CLEARS.COUNT'/,
9798
cpu/event=0xe6,umask=0x1f,name='BACLEARS.ANY'/,
@@ -106,6 +107,7 @@ cpu-cycles,
106107
ref-cycles,
107108
instructions;
108109

110+
cpu/event=0x49,umask=0x60,period=100003,name='DTLB_STORE_MISSES.STLB_HIT'/,
109111
cpu/event=0x08,umask=0x0e,period=100003,name='DTLB_LOAD_MISSES.WALK_COMPLETED'/,
110112
cpu/event=0x08,umask=0x10,period=100003,name='DTLB_LOAD_MISSES.WALK_DURATION'/,
111113
cpu/event=0x08,umask=0x04,period=2000003,name='DTLB_LOAD_MISSES.WALK_COMPLETED_2M_4M'/,

events/clx.txt renamed to events/clx_skx.txt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,8 @@ cpu-cycles,
1313
ref-cycles,
1414
instructions;
1515

16+
17+
cpu/event=0x85,umask=0x04,period=100003,name='ITLB_MISSES.WALK_COMPLETED_2M_4M'/,
1618
cpu/event=0xf1,umask=0x1f,period=100003,name='L2_LINES_IN.ALL'/,
1719
cpu/event=0xd1,umask=0x10,period=50021,name='MEM_LOAD_RETIRED.L2_MISS'/,
1820
cpu/event=0x24,umask=0x24,period=200003,name='L2_RQSTS.CODE_RD_MISS'/,
@@ -32,6 +34,7 @@ instructions:k;
3234
cstate_core/c6-residency/;
3335
cstate_pkg/c6-residency/;
3436

37+
cpu/event=0xb0,umask=0x10,period=100003,name='OFFCORE_REQUESTS.L3_MISS_DEMAND_DATA_RD'/,
3538
cpu/event=0xa8,umask=0x01,period=2000003,name='LSD.UOPS'/,
3639
cpu-cycles,
3740
ref-cycles,

events/icx.txt

Lines changed: 12 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -122,6 +122,9 @@ ref-cycles;
122122
cpu/event=0xb7,umask=0x01,offcore_rsp=0x104000477,name='OCR.READS_TO_CORE.LOCAL_DRAM'/,
123123
cpu/event=0xb7,umask=0x01,offcore_rsp=0x84002380,name='OCR.HWPF_L3.L3_MISS_LOCAL'/;
124124

125+
cpu/event=0xb7,umask=0x01,offcore_rsp=0x1030000477,name='OCR.READS_TO_CORE.REMOTE_CACHE.SNOOP_HITM'/,
126+
cpu/event=0xb7,umask=0x01,offcore_rsp=0x830000477,name='OCR.READS_TO_CORE.REMOTE_CACHE.SNOOP_HIT_WITH_FWD'/;
127+
125128
# OCR group 2 (ICX PMU supports a maximum of two OCR counters per group)
126129
cpu/event=0xb7,umask=0x01,offcore_rsp=0x730000477,name='OCR.READS_TO_CORE.REMOTE_DRAM'/,
127130
cpu/event=0xb7,umask=0x01,offcore_rsp=0x90002380,name='OCR.HWPF_L3.REMOTE'/;
@@ -151,15 +154,20 @@ upi/event=0x2,umask=0xf,name='UNC_UPI_TxL_FLITS.ALL_DATA'/,
151154
upi/event=0x2,umask=0x97,name='UNC_UPI_TxL_FLITS.NON_DATA'/,
152155
upi/event=0x1,umask=0x0,name='UNC_UPI_CLOCKTICKS'/;
153156

157+
cha/event=0x35,umask=0xC8177E01,name='UNC_CHA_TOR_INSERTS.IA_MISS_DRD_REMOTE'/,
158+
cha/event=0x36,umask=0xc8177e01,name='UNC_CHA_TOR_OCCUPANCY.IA_MISS_DRD_REMOTE'/;
159+
154160
cha/event=0x35,umask=0xc88ffe01,name='UNC_CHA_TOR_INSERTS.IA_MISS_CRD_PREF'/,
155161
cha/event=0x35,umask=0xc80ffe01,name='UNC_CHA_TOR_INSERTS.IA_MISS_CRD'/;
156162

157-
cha/event=0x35,umask=0xc897fe01,name='UNC_CHA_TOR_INSERTS.IA_MISS_DRD_PREF'/,
163+
cha/event=0x35,umask=0xC816FE01,name='UNC_CHA_TOR_INSERTS.IA_MISS_DRD_LOCAL'/,
164+
cha/event=0x36,umask=0xC816FE01,name='UNC_CHA_TOR_OCCUPANCY.IA_MISS_DRD_LOCAL'/;
165+
166+
cha/event=0x35,umask=0xccd7fe01,name='UNC_CHA_TOR_INSERTS.IA_MISS_LLCPREFDATA'/,
158167
cha/event=0x35,umask=0xc817fe01,name='UNC_CHA_TOR_INSERTS.IA_MISS_DRD'/,
159-
cha/event=0x35,umask=0xccd7fe01,name='UNC_CHA_TOR_INSERTS.IA_MISS_LLCPREFDATA'/;
168+
cha/event=0x35,umask=0xc897fe01,name='UNC_CHA_TOR_INSERTS.IA_MISS_DRD_PREF'/,
169+
cha/event=0x36,umask=0xC817FE01,name='UNC_CHA_TOR_OCCUPANCY.IA_MISS_DRD'/;
160170

161-
cha/event=0x35,umask=0xC816FE01,name='UNC_CHA_TOR_INSERTS.IA_MISS_DRD_LOCAL'/,
162-
cha/event=0x35,umask=0xC8177E01,name='UNC_CHA_TOR_INSERTS.IA_MISS_DRD_REMOTE'/,
163171
cha/event=0x35,umask=0xC896FE01,name='UNC_CHA_TOR_INSERTS.IA_MISS_DRD_PREF_LOCAL'/,
164172
cha/event=0x35,umask=0xC8977E01,name='UNC_CHA_TOR_INSERTS.IA_MISS_DRD_PREF_REMOTE'/;
165173

events/metric_bdx.json

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,15 @@
11
[
22
{
33
"name": "metric_CPU operating frequency (in GHz)",
4-
"expression": "([cpu-cycles] / [ref-cycles]) * ([const_tsc_freq] / 1000000000)"
4+
"expression": "([cpu-cycles] / [ref-cycles]) * ([SYSTEM_TSC_FREQ] / 1000000000)"
55
},
66
{
77
"name": "metric_CPU utilization %",
8-
"expression": "100 * [ref-cycles] / [const_TSC]"
8+
"expression": "100 * [ref-cycles] / [TSC]"
99
},
1010
{
1111
"name": "metric_CPU utilization% in kernel mode",
12-
"expression": "100 * [ref-cycles:k] / [const_TSC]"
12+
"expression": "100 * [ref-cycles:k] / [TSC]"
1313
},
1414
{
1515
"name": "metric_CPI",
@@ -74,15 +74,15 @@
7474
},
7575
{
7676
"name": "metric_Average LLC data read miss latency (in ns)",
77-
"expression": "(1000000000 * [UNC_C_TOR_OCCUPANCY.MISS_OPCODE.0x182] / [UNC_C_TOR_INSERTS.MISS_OPCODE.0x182]) / ([UNC_C_CLOCKTICKS] / ([const_cha_count] * [const_socket_count]) )"
77+
"expression": "(1000000000 * [UNC_C_TOR_OCCUPANCY.MISS_OPCODE.0x182] / [UNC_C_TOR_INSERTS.MISS_OPCODE.0x182]) / ([UNC_C_CLOCKTICKS] / ([CHAS_PER_SOCKET] * [SOCKET_COUNT]) )"
7878
},
7979
{
8080
"name": "metric_Average LLC data read miss latency for LOCAL requests (in ns)",
81-
"expression": "(1000000000 * [UNC_C_TOR_OCCUPANCY.MISS_LOCAL_OPCODE.0x182] / [UNC_C_TOR_INSERTS.MISS_LOCAL_OPCODE.0x182]) / ([UNC_C_CLOCKTICKS] / ([const_cha_count] * [const_socket_count]))"
81+
"expression": "(1000000000 * [UNC_C_TOR_OCCUPANCY.MISS_LOCAL_OPCODE.0x182] / [UNC_C_TOR_INSERTS.MISS_LOCAL_OPCODE.0x182]) / ([UNC_C_CLOCKTICKS] / ([CHAS_PER_SOCKET] * [SOCKET_COUNT]))"
8282
},
8383
{
8484
"name": "metric_Average LLC data read miss latency for REMOTE requests (in ns)",
85-
"expression": "(1000000000 * [UNC_C_TOR_OCCUPANCY.MISS_REMOTE_OPCODE.0x182] / [UNC_C_TOR_INSERTS.MISS_REMOTE_OPCODE.0x182]) / ([UNC_C_CLOCKTICKS] / ([const_cha_count] * [const_socket_count]))"
85+
"expression": "(1000000000 * [UNC_C_TOR_OCCUPANCY.MISS_REMOTE_OPCODE.0x182] / [UNC_C_TOR_INSERTS.MISS_REMOTE_OPCODE.0x182]) / ([UNC_C_CLOCKTICKS] / ([CHAS_PER_SOCKET] * [SOCKET_COUNT]))"
8686
},
8787
{
8888
"name": "metric_ITLB MPI",
@@ -122,7 +122,7 @@
122122
},
123123
{
124124
"name": "metric_uncore frequency GHz",
125-
"expression": "[UNC_C_CLOCKTICKS] / ([const_core_count] * [const_socket_count]) / 1000000000"
125+
"expression": "[UNC_C_CLOCKTICKS] / ([CORES_PER_SOCKET] * [SOCKET_COUNT]) / 1000000000"
126126
},
127127
{
128128
"name": "metric_package power (watts)",
@@ -134,11 +134,11 @@
134134
},
135135
{
136136
"name": "metric_core c6 residency %",
137-
"expression": "100 * [cstate_core/c6-residency/] / [const_TSC]"
137+
"expression": "100 * [cstate_core/c6-residency/] / [TSC]"
138138
},
139139
{
140140
"name": "metric_package c6 residency %",
141-
"expression": "100 * [cstate_pkg/c6-residency/] * [const_core_count] / [const_TSC]"
141+
"expression": "100 * [cstate_pkg/c6-residency/] * [CORES_PER_SOCKET] / [TSC]"
142142
},
143143
{
144144
"name": "metric_memory bandwidth read (MB/sec)",

events/metric_icx.json

Lines changed: 14 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,15 @@
11
[
22
{
33
"name": "metric_CPU operating frequency (in GHz)",
4-
"expression": "([cpu-cycles] / [ref-cycles]) * ([const_tsc_freq] / 1000000000)"
4+
"expression": "([cpu-cycles] / [ref-cycles]) * ([SYSTEM_TSC_FREQ] / 1000000000)"
55
},
66
{
77
"name": "metric_CPU utilization %",
8-
"expression": "100 * [ref-cycles] / [const_TSC]"
8+
"expression": "100 * [ref-cycles] / [TSC]"
99
},
1010
{
1111
"name": "metric_CPU utilization% in kernel mode",
12-
"expression": "100 * [ref-cycles:k] / [const_TSC]"
12+
"expression": "100 * [ref-cycles:k] / [TSC]"
1313
},
1414
{
1515
"name": "metric_CPI",
@@ -74,11 +74,11 @@
7474
},
7575
{
7676
"name": "metric_core c6 residency %",
77-
"expression": "100 * [cstate_core/c6-residency/] / [const_TSC]"
77+
"expression": "100 * [cstate_core/c6-residency/] / [TSC]"
7878
},
7979
{
8080
"name": "metric_package c6 residency %",
81-
"expression": "100 * [cstate_pkg/c6-residency/] * [const_core_count] / [const_TSC]"
81+
"expression": "100 * [cstate_pkg/c6-residency/] * [CORES_PER_SOCKET] / [TSC]"
8282
},
8383
{
8484
"name": "metric_core % cycles in non AVX license",
@@ -112,22 +112,6 @@
112112
"name": "metric_memory bandwidth total (MB/sec)",
113113
"expression": "([UNC_M_CAS_COUNT.RD] + [UNC_M_CAS_COUNT.WR]) * 64 / 1000000"
114114
},
115-
{
116-
"name": "metric_DCPMEM_memory_mode near memory cache read miss rate%",
117-
"expression": "100 * ([UNC_M_TAGCHK.MISS_CLEAN] + [UNC_M_TAGCHK.MISS_DIRTY]) / ([UNC_M_TAGCHK.HIT] + [UNC_M_TAGCHK.MISS_CLEAN] + [UNC_M_TAGCHK.MISS_DIRTY])"
118-
},
119-
{
120-
"name": "metric_3DXP_memory bandwidth read (MB/sec)",
121-
"expression": "[UNC_M_PMM_RPQ_INSERTS] * 64 / 1000000"
122-
},
123-
{
124-
"name": "metric_3DXP_memory bandwidth write (MB/sec)",
125-
"expression": "[UNC_M_PMM_WPQ_INSERTS] * 64 / 1000000"
126-
},
127-
{
128-
"name": "metric_3DXP_memory bandwidth total (MB/sec)",
129-
"expression": "([UNC_M_PMM_RPQ_INSERTS] + [UNC_M_PMM_WPQ_INSERTS]) * 64 / 1000000"
130-
},
131115
{
132116
"name": "metric_LLC code read MPI (demand+prefetch)",
133117
"expression": "([UNC_CHA_TOR_INSERTS.IA_MISS_CRD] + [UNC_CHA_TOR_INSERTS.IA_MISS_CRD_PREF]) / [instructions]"
@@ -146,15 +130,15 @@
146130
},
147131
{
148132
"name": "metric_Average LLC demand data read miss latency (in ns)",
149-
"expression": "(1000000000 * [UNC_CHA_TOR_OCCUPANCY.IA_MISS_DRD] / [UNC_CHA_TOR_INSERTS.IA_MISS_DRD]) / ([UNC_CHA_CLOCKTICKS] / ([const_cha_count] * [const_socket_count]))"
133+
"expression": "(1000000000 * [UNC_CHA_TOR_OCCUPANCY.IA_MISS_DRD] / [UNC_CHA_TOR_INSERTS.IA_MISS_DRD]) / ([UNC_CHA_CLOCKTICKS] / ([CHAS_PER_SOCKET] * [SOCKET_COUNT]))"
150134
},
151135
{
152136
"name": "metric_Average LLC demand data read miss latency for LOCAL requests (in ns)",
153-
"expression": "(1000000000 * [UNC_CHA_TOR_OCCUPANCY.IA_MISS_DRD_LOCAL] / [UNC_CHA_TOR_INSERTS.IA_MISS_DRD_LOCAL]) / ([UNC_CHA_CLOCKTICKS] / ([const_cha_count] * [const_socket_count]))"
137+
"expression": "(1000000000 * [UNC_CHA_TOR_OCCUPANCY.IA_MISS_DRD_LOCAL] / [UNC_CHA_TOR_INSERTS.IA_MISS_DRD_LOCAL]) / ([UNC_CHA_CLOCKTICKS] / ([CHAS_PER_SOCKET] * [SOCKET_COUNT]))"
154138
},
155139
{
156140
"name": "metric_Average LLC demand data read miss latency for REMOTE requests (in ns)",
157-
"expression": "(1000000000 * [UNC_CHA_TOR_OCCUPANCY.IA_MISS_DRD_REMOTE] / [UNC_CHA_TOR_INSERTS.IA_MISS_DRD_REMOTE]) / ([UNC_CHA_CLOCKTICKS] / ([const_cha_count] * [const_socket_count]))"
141+
"expression": "(1000000000 * [UNC_CHA_TOR_OCCUPANCY.IA_MISS_DRD_REMOTE] / [UNC_CHA_TOR_INSERTS.IA_MISS_DRD_REMOTE]) / ([UNC_CHA_CLOCKTICKS] / ([CHAS_PER_SOCKET] * [SOCKET_COUNT]))"
158142
},
159143
{
160144
"name": "metric_ITLB (2nd level) MPI",
@@ -182,7 +166,7 @@
182166
},
183167
{
184168
"name": "metric_uncore frequency GHz",
185-
"expression": "[UNC_CHA_CLOCKTICKS] / ([const_cha_count] * [const_socket_count]) / 1000000000"
169+
"expression": "[UNC_CHA_CLOCKTICKS] / ([CHAS_PER_SOCKET] * [SOCKET_COUNT]) / 1000000000"
186170
},
187171
{
188172
"name": "metric_TMA_Frontend_Bound(%)",
@@ -262,15 +246,15 @@
262246
},
263247
{
264248
"name": "metric_TMA_......Contested_Accesses(%)",
265-
"expression": "100 * ((((48 * (([cpu-cycles] / [ref-cycles]) * [const_tsc_freq] / 1000000000)) -(4 * (([cpu-cycles] / [ref-cycles]) * [const_tsc_freq] / 1000000000))) * ([MEM_LOAD_L3_HIT_RETIRED.XSNP_FWD] * ([OCR.DEMAND_DATA_RD.L3_HIT.SNOOP_HITM] / ([OCR.DEMAND_DATA_RD.L3_HIT.SNOOP_HITM] + [OCR.DEMAND_DATA_RD.L3_HIT.SNOOP_HIT_WITH_FWD]))) + ((47.5 * (([cpu-cycles] / [ref-cycles]) * [const_tsc_freq] / 1000000000)) - (4 * (([cpu-cycles] / [ref-cycles]) * [const_tsc_freq] / 1000000000))) * [MEM_LOAD_L3_HIT_RETIRED.XSNP_MISS]) * (1 + ([MEM_LOAD_RETIRED.FB_HIT] / [MEM_LOAD_RETIRED.L1_MISS]) / 2) / [cpu-cycles])"
249+
"expression": "100 * ((((48 * (([cpu-cycles] / [ref-cycles]) * [SYSTEM_TSC_FREQ] / 1000000000)) -(4 * (([cpu-cycles] / [ref-cycles]) * [SYSTEM_TSC_FREQ] / 1000000000))) * ([MEM_LOAD_L3_HIT_RETIRED.XSNP_FWD] * ([OCR.DEMAND_DATA_RD.L3_HIT.SNOOP_HITM] / ([OCR.DEMAND_DATA_RD.L3_HIT.SNOOP_HITM] + [OCR.DEMAND_DATA_RD.L3_HIT.SNOOP_HIT_WITH_FWD]))) + ((47.5 * (([cpu-cycles] / [ref-cycles]) * [SYSTEM_TSC_FREQ] / 1000000000)) - (4 * (([cpu-cycles] / [ref-cycles]) * [SYSTEM_TSC_FREQ] / 1000000000))) * [MEM_LOAD_L3_HIT_RETIRED.XSNP_MISS]) * (1 + ([MEM_LOAD_RETIRED.FB_HIT] / [MEM_LOAD_RETIRED.L1_MISS]) / 2) / [cpu-cycles])"
266250
},
267251
{
268252
"name": "metric_TMA_......Data_Sharing(%)",
269-
"expression": "100 * (((47.5 * (([cpu-cycles] / [ref-cycles]) * [const_tsc_freq] / 1000000000)) - (4 * (([cpu-cycles] / [ref-cycles]) * [const_tsc_freq] / 1000000000))) * ([MEM_LOAD_L3_HIT_RETIRED.XSNP_NO_FWD] + [MEM_LOAD_L3_HIT_RETIRED.XSNP_FWD] * (1 - ([OCR.DEMAND_DATA_RD.L3_HIT.SNOOP_HITM] / ([OCR.DEMAND_DATA_RD.L3_HIT.SNOOP_HITM] + [OCR.DEMAND_DATA_RD.L3_HIT.SNOOP_HIT_WITH_FWD])))) * (1 + ([MEM_LOAD_RETIRED.FB_HIT] / [MEM_LOAD_RETIRED.L1_MISS]) / 2) / [cpu-cycles])"
253+
"expression": "100 * (((47.5 * (([cpu-cycles] / [ref-cycles]) * [SYSTEM_TSC_FREQ] / 1000000000)) - (4 * (([cpu-cycles] / [ref-cycles]) * [SYSTEM_TSC_FREQ] / 1000000000))) * ([MEM_LOAD_L3_HIT_RETIRED.XSNP_NO_FWD] + [MEM_LOAD_L3_HIT_RETIRED.XSNP_FWD] * (1 - ([OCR.DEMAND_DATA_RD.L3_HIT.SNOOP_HITM] / ([OCR.DEMAND_DATA_RD.L3_HIT.SNOOP_HITM] + [OCR.DEMAND_DATA_RD.L3_HIT.SNOOP_HIT_WITH_FWD])))) * (1 + ([MEM_LOAD_RETIRED.FB_HIT] / [MEM_LOAD_RETIRED.L1_MISS]) / 2) / [cpu-cycles])"
270254
},
271255
{
272256
"name": "metric_TMA_......L3_Hit_Latency(%)",
273-
"expression": "100 * (((23 * (([cpu-cycles] / [ref-cycles]) * [const_tsc_freq] / 1000000000)) - (4 * (([cpu-cycles] / [ref-cycles]) * [const_tsc_freq] / 1000000000))) * [MEM_LOAD_RETIRED.L3_HIT] * (1 + ([MEM_LOAD_RETIRED.FB_HIT] / [MEM_LOAD_RETIRED.L1_MISS]) / 2) / [cpu-cycles])"
257+
"expression": "100 * (((23 * (([cpu-cycles] / [ref-cycles]) * [SYSTEM_TSC_FREQ] / 1000000000)) - (4 * (([cpu-cycles] / [ref-cycles]) * [SYSTEM_TSC_FREQ] / 1000000000))) * [MEM_LOAD_RETIRED.L3_HIT] * (1 + ([MEM_LOAD_RETIRED.FB_HIT] / [MEM_LOAD_RETIRED.L1_MISS]) / 2) / [cpu-cycles])"
274258
},
275259
{
276260
"name": "metric_TMA_......SQ_Full(%)",
@@ -330,14 +314,14 @@
330314
},
331315
{
332316
"name": "metric_TMA_....Microcode_Sequencer(%)",
333-
"expression": "100 * (((([PERF_METRICS.RETIRING] / (([PERF_METRICS.FRONTEND_BOUND] + [PERF_METRICS.BAD_SPECULATION] + [PERF_METRICS.RETIRING] + [topdown-be-found]))) * [TOPDOWN.SLOTS]) / [UOPS_ISSUED.ANY]) * [IDQ.MS_UOPS] / [TOPDOWN.SLOTS])"
317+
"expression": "100 * (((([PERF_METRICS.RETIRING] / (([PERF_METRICS.FRONTEND_BOUND] + [PERF_METRICS.BAD_SPECULATION] + [PERF_METRICS.RETIRING] + [PERF_METRICS.BACKEND_BOUND]))) * [TOPDOWN.SLOTS]) / [UOPS_ISSUED.ANY]) * [IDQ.MS_UOPS] / [TOPDOWN.SLOTS])"
334318
},
335319
{
336320
"name": "metric_TMA_Info_CoreIPC",
337321
"expression": "[instructions] / [CPU_CLK_UNHALTED.DISTRIBUTED]"
338322
},
339323
{
340324
"name": "metric_TMA_Info_System_SMT_2T_Utilization",
341-
"expression": "(1 - [CPU_CLK_UNHALTED.ONE_THREAD_ACTIVE] / [CPU_CLK_UNHALTED.REF_DISTRIBUTED]) if [const_socket_count] > 1 else 0"
325+
"expression": "(1 - [CPU_CLK_UNHALTED.ONE_THREAD_ACTIVE] / [CPU_CLK_UNHALTED.REF_DISTRIBUTED]) if [SOCKET_COUNT] > 1 else 0"
342326
}
343327
]

events/metric_skx_clx.json

Lines changed: 10 additions & 34 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,15 @@
11
[
22
{
33
"name": "metric_CPU operating frequency (in GHz)",
4-
"expression": "([cpu-cycles] / [ref-cycles]) * ([const_tsc_freq] / 1000000000)"
4+
"expression": "([cpu-cycles] / [ref-cycles]) * ([SYSTEM_TSC_FREQ] / 1000000000)"
55
},
66
{
77
"name": "metric_CPU utilization %",
8-
"expression": "100 * [ref-cycles] / [const_TSC]"
8+
"expression": "100 * [ref-cycles] / [TSC]"
99
},
1010
{
1111
"name": "metric_CPU utilization% in kernel mode",
12-
"expression": "100 * [ref-cycles:k] / [const_TSC]"
12+
"expression": "100 * [ref-cycles:k] / [TSC]"
1313
},
1414
{
1515
"name": "metric_CPI",
@@ -74,15 +74,15 @@
7474
},
7575
{
7676
"name": "metric_Average LLC data read miss latency (in ns)",
77-
"expression": "(1000000000 * [UNC_CHA_TOR_OCCUPANCY.IA_MISS.0x40433] / [UNC_CHA_TOR_INSERTS.IA_MISS.0x40433]) / ( [UNC_CHA_CLOCKTICKS] / ([const_cha_count] * [const_socket_count]) )"
77+
"expression": "(1000000000 * [UNC_CHA_TOR_OCCUPANCY.IA_MISS.0x40433] / [UNC_CHA_TOR_INSERTS.IA_MISS.0x40433]) / ( [UNC_CHA_CLOCKTICKS] / ([CHAS_PER_SOCKET] * [SOCKET_COUNT]) )"
7878
},
7979
{
8080
"name": "metric_Average LLC data read miss latency for LOCAL requests (in ns)",
81-
"expression": "(1000000000 * [UNC_CHA_TOR_OCCUPANCY.IA_MISS.0x40432] / [UNC_CHA_TOR_INSERTS.IA_MISS.0x40432]) / ( [UNC_CHA_CLOCKTICKS] / ([const_cha_count] * [const_socket_count]) )"
81+
"expression": "(1000000000 * [UNC_CHA_TOR_OCCUPANCY.IA_MISS.0x40432] / [UNC_CHA_TOR_INSERTS.IA_MISS.0x40432]) / ( [UNC_CHA_CLOCKTICKS] / ([CHAS_PER_SOCKET] * [SOCKET_COUNT]) )"
8282
},
8383
{
8484
"name": "metric_Average LLC data read miss latency for REMOTE requests (in ns)",
85-
"expression": "(1000000000 * [UNC_CHA_TOR_OCCUPANCY.IA_MISS.0x40431] / [UNC_CHA_TOR_INSERTS.IA_MISS.0x40431]) / ( [UNC_CHA_CLOCKTICKS] / ([const_cha_count] * [const_socket_count]) )"
85+
"expression": "(1000000000 * [UNC_CHA_TOR_OCCUPANCY.IA_MISS.0x40431] / [UNC_CHA_TOR_INSERTS.IA_MISS.0x40431]) / ( [UNC_CHA_CLOCKTICKS] / ([CHAS_PER_SOCKET] * [SOCKET_COUNT]) )"
8686
},
8787
{
8888
"name": "metric_ITLB MPI",
@@ -138,11 +138,11 @@
138138
},
139139
{
140140
"name": "metric_UPI Transmit utilization_% (includes control)",
141-
"expression": "100 * (([UNC_UPI_TxL_FLITS.ALL_DATA] + [UNC_UPI_TxL_FLITS.NON_DATA]) / 3) / ((((([const_tsc_freq] / ([const_cha_count] * [const_thread_count])) / (([const_tsc_freq] / ([const_cha_count] * [const_thread_count])) - [cstate_pkg/c6-residency/])) * ([UNC_UPI_CLOCKTICKS] - [UNC_UPI_L1_POWER_CYCLES])) * 5 / 6))"
141+
"expression": "100 * (([UNC_UPI_TxL_FLITS.ALL_DATA] + [UNC_UPI_TxL_FLITS.NON_DATA]) / 3) / ((((([SYSTEM_TSC_FREQ] / ([CHAS_PER_SOCKET] * [const_thread_count])) / (([SYSTEM_TSC_FREQ] / ([CHAS_PER_SOCKET] * [const_thread_count])) - [cstate_pkg/c6-residency/])) * ([UNC_UPI_CLOCKTICKS] - [UNC_UPI_L1_POWER_CYCLES])) * 5 / 6))"
142142
},
143143
{
144144
"name": "metric_uncore frequency GHz",
145-
"expression": "[UNC_CHA_CLOCKTICKS] / ([const_cha_count] * [const_socket_count]) / 1000000000"
145+
"expression": "[UNC_CHA_CLOCKTICKS] / ([CHAS_PER_SOCKET] * [SOCKET_COUNT]) / 1000000000"
146146
},
147147
{
148148
"name": "metric_package power (watts)",
@@ -154,11 +154,11 @@
154154
},
155155
{
156156
"name": "metric_core c6 residency %",
157-
"expression": "100 * [cstate_core/c6-residency/] / [const_TSC]"
157+
"expression": "100 * [cstate_core/c6-residency/] / [TSC]"
158158
},
159159
{
160160
"name": "metric_package c6 residency %",
161-
"expression": "100 * [cstate_pkg/c6-residency/] * [const_core_count] / [const_TSC]"
161+
"expression": "100 * [cstate_pkg/c6-residency/] * [CORES_PER_SOCKET] / [TSC]"
162162
},
163163
{
164164
"name": "metric_core % cycles in non AVX license",
@@ -192,30 +192,6 @@
192192
"name": "metric_memory bandwidth total (MB/sec)",
193193
"expression": "([UNC_M_CAS_COUNT.RD] + [UNC_M_CAS_COUNT.WR]) * 64 / 1000000"
194194
},
195-
{
196-
"name": "metric_DCPMEM_memory_mode near memory cache read miss rate%",
197-
"expression": "100 * ([UNC_M_PMM_RPQ_INSERTS] / ([UNC_M2M_TAG_HIT.NM_RD_HIT_CLEAN] + [UNC_M2M_TAG_HIT.NM_RD_HIT_DIRTY] + [UNC_M_PMM_RPQ_INSERTS]))"
198-
},
199-
{
200-
"name": "metric_3DXP_memory bandwidth read (MB/sec)",
201-
"expression": "[UNC_M_PMM_RPQ_INSERTS] * 64 / 1000000"
202-
},
203-
{
204-
"name": "metric_3DXP_memory bandwidth write (MB/sec)",
205-
"expression": "[UNC_M_PMM_WPQ_INSERTS] * 64 / 1000000"
206-
},
207-
{
208-
"name": "metric_3DXP_memory bandwidth total (MB/sec)",
209-
"expression": "([UNC_M_PMM_RPQ_INSERTS] + [UNC_M_PMM_WPQ_INSERTS]) * 64 / 1000000"
210-
},
211-
{
212-
"name": "metric_3DXP memory RPQ read latency (ns)",
213-
"expression": "(([UNC_M_PMM_RPQ_OCCUPANCY.ALL] / [UNC_M_PMM_RPQ_INSERTS]) / ([UNC_M_CLOCKTICKS] / ([const_socket_count] * 6))) * 1000000000"
214-
},
215-
{
216-
"name": "metric_3DXP memory WPQ write latency (ns)",
217-
"expression": "(([UNC_M_PMM_WPQ_OCCUPANCY.ALL] / [UNC_M_PMM_WPQ_INSERTS]) / ([UNC_M_CLOCKTICKS] / ([const_socket_count] * 6))) * 1000000000"
218-
},
219195
{
220196
"name": "metric_IO_bandwidth_disk_or_network_writes (MB/sec)",
221197
"expression": "([UNC_IIO_DATA_REQ_OF_CPU.MEM_READ.PART0] + [UNC_IIO_DATA_REQ_OF_CPU.MEM_READ.PART1] + [UNC_IIO_DATA_REQ_OF_CPU.MEM_READ.PART2] + [UNC_IIO_DATA_REQ_OF_CPU.MEM_READ.PART3]) * 4 / 1000000"

0 commit comments

Comments
 (0)