xref: /freebsd/lib/libpmc/pmu-events/arch/x86/alderlake/adl-metrics.json (revision 5ca8e32633c4ffbbcd6762e5888b6a4ba0708c6c)
1[
2    {
3        "BriefDescription": "Total pipeline cost of branch related instructions (used for program control-flow including function calls)",
4        "MetricExpr": "100 * (( BR_INST_RETIRED.COND + 3 * BR_INST_RETIRED.NEAR_CALL + (BR_INST_RETIRED.NEAR_TAKEN - BR_INST_RETIRED.COND_TAKEN - 2 * BR_INST_RETIRED.NEAR_CALL) ) / TOPDOWN.SLOTS)",
5        "MetricGroup": "Ret",
6        "MetricName": "Branching_Overhead",
7        "Unit": "cpu_core"
8    },
9    {
10        "BriefDescription": "Instructions Per Cycle (per Logical Processor)",
11        "MetricExpr": "INST_RETIRED.ANY / CPU_CLK_UNHALTED.THREAD",
12        "MetricGroup": "Ret;Summary",
13        "MetricName": "IPC",
14        "Unit": "cpu_core"
15    },
16    {
17        "BriefDescription": "Cycles Per Instruction (per Logical Processor)",
18        "MetricExpr": "1 / (INST_RETIRED.ANY / CPU_CLK_UNHALTED.THREAD)",
19        "MetricGroup": "Pipeline;Mem",
20        "MetricName": "CPI",
21        "Unit": "cpu_core"
22    },
23    {
24        "BriefDescription": "Per-Logical Processor actual clocks when the Logical Processor is active.",
25        "MetricExpr": "CPU_CLK_UNHALTED.THREAD",
26        "MetricGroup": "Pipeline",
27        "MetricName": "CLKS",
28        "Unit": "cpu_core"
29    },
30    {
31        "BriefDescription": "Total issue-pipeline slots (per-Physical Core till ICL; per-Logical Processor ICL onward)",
32        "MetricExpr": "TOPDOWN.SLOTS",
33        "MetricGroup": "TmaL1",
34        "MetricName": "SLOTS",
35        "Unit": "cpu_core"
36    },
37    {
38        "BriefDescription": "Fraction of Physical Core issue-slots utilized by this Logical Processor",
39        "MetricExpr": "TOPDOWN.SLOTS / ( TOPDOWN.SLOTS / 2 ) if #SMT_on else 1",
40        "MetricGroup": "SMT",
41        "MetricName": "Slots_Utilization",
42        "Unit": "cpu_core"
43    },
44    {
45        "BriefDescription": "The ratio of Executed- by Issued-Uops",
46        "MetricExpr": "UOPS_EXECUTED.THREAD / UOPS_ISSUED.ANY",
47        "MetricGroup": "Cor;Pipeline",
48        "MetricName": "Execute_per_Issue",
49        "PublicDescription": "The ratio of Executed- by Issued-Uops. Ratio > 1 suggests high rate of uop micro-fusions. Ratio < 1 suggest high rate of \"execute\" at rename stage.",
50        "Unit": "cpu_core"
51    },
52    {
53        "BriefDescription": "Instructions Per Cycle across hyper-threads (per physical core)",
54        "MetricExpr": "INST_RETIRED.ANY / CPU_CLK_UNHALTED.DISTRIBUTED",
55        "MetricGroup": "Ret;SMT;TmaL1",
56        "MetricName": "CoreIPC",
57        "Unit": "cpu_core"
58    },
59    {
60        "BriefDescription": "Floating Point Operations Per Cycle",
61        "MetricExpr": "( 1 * ( FP_ARITH_INST_RETIRED.SCALAR_SINGLE + FP_ARITH_INST_RETIRED.SCALAR_DOUBLE ) + 2 * FP_ARITH_INST_RETIRED.128B_PACKED_DOUBLE + 4 * ( FP_ARITH_INST_RETIRED.128B_PACKED_SINGLE + FP_ARITH_INST_RETIRED.256B_PACKED_DOUBLE ) + 8 * FP_ARITH_INST_RETIRED.256B_PACKED_SINGLE ) / CPU_CLK_UNHALTED.DISTRIBUTED",
62        "MetricGroup": "Ret;Flops",
63        "MetricName": "FLOPc",
64        "Unit": "cpu_core"
65    },
66    {
67        "BriefDescription": "Actual per-core usage of the Floating Point execution units (regardless of the vector width)",
68        "MetricExpr": "( (FP_ARITH_INST_RETIRED.SCALAR_SINGLE + FP_ARITH_INST_RETIRED.SCALAR_DOUBLE) + (FP_ARITH_INST_RETIRED.128B_PACKED_DOUBLE + FP_ARITH_INST_RETIRED.128B_PACKED_SINGLE + FP_ARITH_INST_RETIRED.256B_PACKED_DOUBLE + FP_ARITH_INST_RETIRED.256B_PACKED_SINGLE) ) / ( 2 * CPU_CLK_UNHALTED.DISTRIBUTED )",
69        "MetricGroup": "Cor;Flops;HPC",
70        "MetricName": "FP_Arith_Utilization",
71        "PublicDescription": "Actual per-core usage of the Floating Point execution units (regardless of the vector width). Values > 1 are possible due to Fused-Multiply Add (FMA) counting.",
72        "Unit": "cpu_core"
73    },
74    {
75        "BriefDescription": "Instruction-Level-Parallelism (average number of uops executed when there is at least 1 uop executed)",
76        "MetricExpr": "UOPS_EXECUTED.THREAD / (( UOPS_EXECUTED.CORE_CYCLES_GE_1 / 2 ) if #SMT_on else UOPS_EXECUTED.CORE_CYCLES_GE_1)",
77        "MetricGroup": "Backend;Cor;Pipeline;PortsUtil",
78        "MetricName": "ILP",
79        "Unit": "cpu_core"
80    },
81    {
82        "BriefDescription": "Number of Instructions per non-speculative Branch Misprediction (JEClear)",
83        "MetricExpr": "INST_RETIRED.ANY / BR_MISP_RETIRED.ALL_BRANCHES",
84        "MetricGroup": "Bad;BadSpec;BrMispredicts",
85        "MetricName": "IpMispredict",
86        "Unit": "cpu_core"
87    },
88    {
89        "BriefDescription": "Core actual clocks when any Logical Processor is active on the Physical Core",
90        "MetricExpr": "CPU_CLK_UNHALTED.DISTRIBUTED",
91        "MetricGroup": "SMT",
92        "MetricName": "CORE_CLKS",
93        "Unit": "cpu_core"
94    },
95    {
96        "BriefDescription": "Instructions per Load (lower number means higher occurrence rate)",
97        "MetricExpr": "INST_RETIRED.ANY / MEM_INST_RETIRED.ALL_LOADS",
98        "MetricGroup": "InsType",
99        "MetricName": "IpLoad",
100        "Unit": "cpu_core"
101    },
102    {
103        "BriefDescription": "Instructions per Store (lower number means higher occurrence rate)",
104        "MetricExpr": "INST_RETIRED.ANY / MEM_INST_RETIRED.ALL_STORES",
105        "MetricGroup": "InsType",
106        "MetricName": "IpStore",
107        "Unit": "cpu_core"
108    },
109    {
110        "BriefDescription": "Instructions per Branch (lower number means higher occurrence rate)",
111        "MetricExpr": "INST_RETIRED.ANY / BR_INST_RETIRED.ALL_BRANCHES",
112        "MetricGroup": "Branches;Fed;InsType",
113        "MetricName": "IpBranch",
114        "Unit": "cpu_core"
115    },
116    {
117        "BriefDescription": "Instructions per (near) call (lower number means higher occurrence rate)",
118        "MetricExpr": "INST_RETIRED.ANY / BR_INST_RETIRED.NEAR_CALL",
119        "MetricGroup": "Branches;Fed;PGO",
120        "MetricName": "IpCall",
121        "Unit": "cpu_core"
122    },
123    {
124        "BriefDescription": "Instruction per taken branch",
125        "MetricExpr": "INST_RETIRED.ANY / BR_INST_RETIRED.NEAR_TAKEN",
126        "MetricGroup": "Branches;Fed;FetchBW;Frontend;PGO",
127        "MetricName": "IpTB",
128        "Unit": "cpu_core"
129    },
130    {
131        "BriefDescription": "Branch instructions per taken branch. ",
132        "MetricExpr": "BR_INST_RETIRED.ALL_BRANCHES / BR_INST_RETIRED.NEAR_TAKEN",
133        "MetricGroup": "Branches;Fed;PGO",
134        "MetricName": "BpTkBranch",
135        "Unit": "cpu_core"
136    },
137    {
138        "BriefDescription": "Instructions per Floating Point (FP) Operation (lower number means higher occurrence rate)",
139        "MetricExpr": "INST_RETIRED.ANY / ( 1 * ( FP_ARITH_INST_RETIRED.SCALAR_SINGLE + FP_ARITH_INST_RETIRED.SCALAR_DOUBLE ) + 2 * FP_ARITH_INST_RETIRED.128B_PACKED_DOUBLE + 4 * ( FP_ARITH_INST_RETIRED.128B_PACKED_SINGLE + FP_ARITH_INST_RETIRED.256B_PACKED_DOUBLE ) + 8 * FP_ARITH_INST_RETIRED.256B_PACKED_SINGLE )",
140        "MetricGroup": "Flops;InsType",
141        "MetricName": "IpFLOP",
142        "Unit": "cpu_core"
143    },
144    {
145        "BriefDescription": "Instructions per FP Arithmetic instruction (lower number means higher occurrence rate)",
146        "MetricExpr": "INST_RETIRED.ANY / ( (FP_ARITH_INST_RETIRED.SCALAR_SINGLE + FP_ARITH_INST_RETIRED.SCALAR_DOUBLE) + (FP_ARITH_INST_RETIRED.128B_PACKED_DOUBLE + FP_ARITH_INST_RETIRED.128B_PACKED_SINGLE + FP_ARITH_INST_RETIRED.256B_PACKED_DOUBLE + FP_ARITH_INST_RETIRED.256B_PACKED_SINGLE) )",
147        "MetricGroup": "Flops;InsType",
148        "MetricName": "IpArith",
149        "PublicDescription": "Instructions per FP Arithmetic instruction (lower number means higher occurrence rate). May undercount due to FMA double counting. Approximated prior to BDW.",
150        "Unit": "cpu_core"
151    },
152    {
153        "BriefDescription": "Instructions per FP Arithmetic Scalar Single-Precision instruction (lower number means higher occurrence rate)",
154        "MetricExpr": "INST_RETIRED.ANY / FP_ARITH_INST_RETIRED.SCALAR_SINGLE",
155        "MetricGroup": "Flops;FpScalar;InsType",
156        "MetricName": "IpArith_Scalar_SP",
157        "PublicDescription": "Instructions per FP Arithmetic Scalar Single-Precision instruction (lower number means higher occurrence rate). May undercount due to FMA double counting.",
158        "Unit": "cpu_core"
159    },
160    {
161        "BriefDescription": "Instructions per FP Arithmetic Scalar Double-Precision instruction (lower number means higher occurrence rate)",
162        "MetricExpr": "INST_RETIRED.ANY / FP_ARITH_INST_RETIRED.SCALAR_DOUBLE",
163        "MetricGroup": "Flops;FpScalar;InsType",
164        "MetricName": "IpArith_Scalar_DP",
165        "PublicDescription": "Instructions per FP Arithmetic Scalar Double-Precision instruction (lower number means higher occurrence rate). May undercount due to FMA double counting.",
166        "Unit": "cpu_core"
167    },
168    {
169        "BriefDescription": "Instructions per FP Arithmetic AVX/SSE 128-bit instruction (lower number means higher occurrence rate)",
170        "MetricExpr": "INST_RETIRED.ANY / ( FP_ARITH_INST_RETIRED.128B_PACKED_DOUBLE + FP_ARITH_INST_RETIRED.128B_PACKED_SINGLE )",
171        "MetricGroup": "Flops;FpVector;InsType",
172        "MetricName": "IpArith_AVX128",
173        "PublicDescription": "Instructions per FP Arithmetic AVX/SSE 128-bit instruction (lower number means higher occurrence rate). May undercount due to FMA double counting.",
174        "Unit": "cpu_core"
175    },
176    {
177        "BriefDescription": "Instructions per FP Arithmetic AVX* 256-bit instruction (lower number means higher occurrence rate)",
178        "MetricExpr": "INST_RETIRED.ANY / ( FP_ARITH_INST_RETIRED.256B_PACKED_DOUBLE + FP_ARITH_INST_RETIRED.256B_PACKED_SINGLE )",
179        "MetricGroup": "Flops;FpVector;InsType",
180        "MetricName": "IpArith_AVX256",
181        "PublicDescription": "Instructions per FP Arithmetic AVX* 256-bit instruction (lower number means higher occurrence rate). May undercount due to FMA double counting.",
182        "Unit": "cpu_core"
183    },
184    {
185        "BriefDescription": "Total number of retired Instructions, Sample with: INST_RETIRED.PREC_DIST",
186        "MetricExpr": "INST_RETIRED.ANY",
187        "MetricGroup": "Summary;TmaL1",
188        "MetricName": "Instructions",
189        "Unit": "cpu_core"
190    },
191    {
192        "BriefDescription": "Average number of Uops issued by front-end when it issued something",
193        "MetricExpr": "UOPS_ISSUED.ANY / cpu_core@UOPS_ISSUED.ANY\\,cmask\\=1@",
194        "MetricGroup": "Fed;FetchBW",
195        "MetricName": "Fetch_UpC",
196        "Unit": "cpu_core"
197    },
198    {
199        "BriefDescription": "Fraction of Uops delivered by the LSD (Loop Stream Detector; aka Loop Cache)",
200        "MetricExpr": "LSD.UOPS / (IDQ.DSB_UOPS + LSD.UOPS + IDQ.MITE_UOPS + IDQ.MS_UOPS)",
201        "MetricGroup": "Fed;LSD",
202        "MetricName": "LSD_Coverage",
203        "Unit": "cpu_core"
204    },
205    {
206        "BriefDescription": "Fraction of Uops delivered by the DSB (aka Decoded ICache; or Uop Cache)",
207        "MetricExpr": "IDQ.DSB_UOPS / (IDQ.DSB_UOPS + LSD.UOPS + IDQ.MITE_UOPS + IDQ.MS_UOPS)",
208        "MetricGroup": "DSB;Fed;FetchBW",
209        "MetricName": "DSB_Coverage",
210        "Unit": "cpu_core"
211    },
212    {
213        "BriefDescription": "Number of Instructions per non-speculative DSB miss",
214        "MetricExpr": "INST_RETIRED.ANY / FRONTEND_RETIRED.ANY_DSB_MISS",
215        "MetricGroup": "DSBmiss;Fed",
216        "MetricName": "IpDSB_Miss_Ret",
217        "Unit": "cpu_core"
218    },
219    {
220        "BriefDescription": "Fraction of branches that are non-taken conditionals",
221        "MetricExpr": "BR_INST_RETIRED.COND_NTAKEN / BR_INST_RETIRED.ALL_BRANCHES",
222        "MetricGroup": "Bad;Branches;CodeGen;PGO",
223        "MetricName": "Cond_NT",
224        "Unit": "cpu_core"
225    },
226    {
227        "BriefDescription": "Fraction of branches that are taken conditionals",
228        "MetricExpr": "BR_INST_RETIRED.COND_TAKEN / BR_INST_RETIRED.ALL_BRANCHES",
229        "MetricGroup": "Bad;Branches;CodeGen;PGO",
230        "MetricName": "Cond_TK",
231        "Unit": "cpu_core"
232    },
233    {
234        "BriefDescription": "Fraction of branches that are CALL or RET",
235        "MetricExpr": "( BR_INST_RETIRED.NEAR_CALL + BR_INST_RETIRED.NEAR_RETURN ) / BR_INST_RETIRED.ALL_BRANCHES",
236        "MetricGroup": "Bad;Branches",
237        "MetricName": "CallRet",
238        "Unit": "cpu_core"
239    },
240    {
241        "BriefDescription": "Fraction of branches that are unconditional (direct or indirect) jumps",
242        "MetricExpr": "(BR_INST_RETIRED.NEAR_TAKEN - BR_INST_RETIRED.COND_TAKEN - 2 * BR_INST_RETIRED.NEAR_CALL) / BR_INST_RETIRED.ALL_BRANCHES",
243        "MetricGroup": "Bad;Branches",
244        "MetricName": "Jump",
245        "Unit": "cpu_core"
246    },
247    {
248        "BriefDescription": "Fraction of branches of other types (not individually covered by other metrics in Info.Branches group)",
249        "MetricExpr": "1 - ( (BR_INST_RETIRED.COND_NTAKEN / BR_INST_RETIRED.ALL_BRANCHES) + (BR_INST_RETIRED.COND_TAKEN / BR_INST_RETIRED.ALL_BRANCHES) + (( BR_INST_RETIRED.NEAR_CALL + BR_INST_RETIRED.NEAR_RETURN ) / BR_INST_RETIRED.ALL_BRANCHES) + ((BR_INST_RETIRED.NEAR_TAKEN - BR_INST_RETIRED.COND_TAKEN - 2 * BR_INST_RETIRED.NEAR_CALL) / BR_INST_RETIRED.ALL_BRANCHES) )",
250        "MetricGroup": "Bad;Branches",
251        "MetricName": "Other_Branches",
252        "Unit": "cpu_core"
253    },
254    {
255        "BriefDescription": "Actual Average Latency for L1 data-cache miss demand load instructions (in core cycles)",
256        "MetricExpr": "L1D_PEND_MISS.PENDING / ( MEM_LOAD_RETIRED.L1_MISS + MEM_LOAD_RETIRED.FB_HIT )",
257        "MetricGroup": "Mem;MemoryBound;MemoryLat",
258        "MetricName": "Load_Miss_Real_Latency",
259        "PublicDescription": "Actual Average Latency for L1 data-cache miss demand load instructions (in core cycles). Latency may be overestimated for multi-load instructions - e.g. repeat strings.",
260        "Unit": "cpu_core"
261    },
262    {
263        "BriefDescription": "Memory-Level-Parallelism (average number of L1 miss demand load when there is at least one such miss. Per-Logical Processor)",
264        "MetricExpr": "L1D_PEND_MISS.PENDING / L1D_PEND_MISS.PENDING_CYCLES",
265        "MetricGroup": "Mem;MemoryBound;MemoryBW",
266        "MetricName": "MLP",
267        "Unit": "cpu_core"
268    },
269    {
270        "BriefDescription": "Average data fill bandwidth to the L1 data cache [GB / sec]",
271        "MetricExpr": "64 * L1D.REPLACEMENT / 1000000000 / duration_time",
272        "MetricGroup": "Mem;MemoryBW",
273        "MetricName": "L1D_Cache_Fill_BW",
274        "Unit": "cpu_core"
275    },
276    {
277        "BriefDescription": "Average data fill bandwidth to the L2 cache [GB / sec]",
278        "MetricExpr": "64 * L2_LINES_IN.ALL / 1000000000 / duration_time",
279        "MetricGroup": "Mem;MemoryBW",
280        "MetricName": "L2_Cache_Fill_BW",
281        "Unit": "cpu_core"
282    },
283    {
284        "BriefDescription": "Average per-core data fill bandwidth to the L3 cache [GB / sec]",
285        "MetricExpr": "64 * LONGEST_LAT_CACHE.MISS / 1000000000 / duration_time",
286        "MetricGroup": "Mem;MemoryBW",
287        "MetricName": "L3_Cache_Fill_BW",
288        "Unit": "cpu_core"
289    },
290    {
291        "BriefDescription": "Average per-core data access bandwidth to the L3 cache [GB / sec]",
292        "MetricExpr": "64 * OFFCORE_REQUESTS.ALL_REQUESTS / 1000000000 / duration_time",
293        "MetricGroup": "Mem;MemoryBW;Offcore",
294        "MetricName": "L3_Cache_Access_BW",
295        "Unit": "cpu_core"
296    },
297    {
298        "BriefDescription": "L1 cache true misses per kilo instruction for retired demand loads",
299        "MetricExpr": "1000 * MEM_LOAD_RETIRED.L1_MISS / INST_RETIRED.ANY",
300        "MetricGroup": "Mem;CacheMisses",
301        "MetricName": "L1MPKI",
302        "Unit": "cpu_core"
303    },
304    {
305        "BriefDescription": "L1 cache true misses per kilo instruction for all demand loads (including speculative)",
306        "MetricExpr": "1000 * L2_RQSTS.ALL_DEMAND_DATA_RD / INST_RETIRED.ANY",
307        "MetricGroup": "Mem;CacheMisses",
308        "MetricName": "L1MPKI_Load",
309        "Unit": "cpu_core"
310    },
311    {
312        "BriefDescription": "L2 cache true misses per kilo instruction for retired demand loads",
313        "MetricExpr": "1000 * MEM_LOAD_RETIRED.L2_MISS / INST_RETIRED.ANY",
314        "MetricGroup": "Mem;Backend;CacheMisses",
315        "MetricName": "L2MPKI",
316        "Unit": "cpu_core"
317    },
318    {
319        "BriefDescription": "L2 cache misses per kilo instruction for all request types (including speculative)",
320        "MetricExpr": "1000 * L2_RQSTS.MISS / INST_RETIRED.ANY",
321        "MetricGroup": "Mem;CacheMisses;Offcore",
322        "MetricName": "L2MPKI_All",
323        "Unit": "cpu_core"
324    },
325    {
326        "BriefDescription": "L2 cache misses per kilo instruction for all demand loads  (including speculative)",
327        "MetricExpr": "1000 * L2_RQSTS.DEMAND_DATA_RD_MISS / INST_RETIRED.ANY",
328        "MetricGroup": "Mem;CacheMisses",
329        "MetricName": "L2MPKI_Load",
330        "Unit": "cpu_core"
331    },
332    {
333        "BriefDescription": "L2 cache hits per kilo instruction for all request types (including speculative)",
334        "MetricExpr": "1000 * ( L2_RQSTS.REFERENCES - L2_RQSTS.MISS ) / INST_RETIRED.ANY",
335        "MetricGroup": "Mem;CacheMisses",
336        "MetricName": "L2HPKI_All",
337        "Unit": "cpu_core"
338    },
339    {
340        "BriefDescription": "L2 cache hits per kilo instruction for all demand loads  (including speculative)",
341        "MetricExpr": "1000 * L2_RQSTS.DEMAND_DATA_RD_HIT / INST_RETIRED.ANY",
342        "MetricGroup": "Mem;CacheMisses",
343        "MetricName": "L2HPKI_Load",
344        "Unit": "cpu_core"
345    },
346    {
347        "BriefDescription": "L3 cache true misses per kilo instruction for retired demand loads",
348        "MetricExpr": "1000 * MEM_LOAD_RETIRED.L3_MISS / INST_RETIRED.ANY",
349        "MetricGroup": "Mem;CacheMisses",
350        "MetricName": "L3MPKI",
351        "Unit": "cpu_core"
352    },
353    {
354        "BriefDescription": "Fill Buffer (FB) true hits per kilo instructions for retired demand loads",
355        "MetricExpr": "1000 * MEM_LOAD_RETIRED.FB_HIT / INST_RETIRED.ANY",
356        "MetricGroup": "Mem;CacheMisses",
357        "MetricName": "FB_HPKI",
358        "Unit": "cpu_core"
359    },
360    {
361        "BriefDescription": "Utilization of the core's Page Walker(s) serving STLB misses triggered by instruction/Load/Store accesses",
362        "MetricConstraint": "NO_NMI_WATCHDOG",
363        "MetricExpr": "( ITLB_MISSES.WALK_PENDING + DTLB_LOAD_MISSES.WALK_PENDING + DTLB_STORE_MISSES.WALK_PENDING ) / ( 4 * CPU_CLK_UNHALTED.DISTRIBUTED )",
364        "MetricGroup": "Mem;MemoryTLB",
365        "MetricName": "Page_Walks_Utilization",
366        "Unit": "cpu_core"
367    },
368    {
369        "BriefDescription": "Average CPU Utilization",
370        "MetricExpr": "CPU_CLK_UNHALTED.REF_TSC / msr@tsc@",
371        "MetricGroup": "HPC;Summary",
372        "MetricName": "CPU_Utilization",
373        "Unit": "cpu_core"
374    },
375    {
376        "BriefDescription": "Measured Average Frequency for unhalted processors [GHz]",
377        "MetricExpr": "(CPU_CLK_UNHALTED.THREAD / CPU_CLK_UNHALTED.REF_TSC) * msr@tsc@ / 1000000000 / duration_time",
378        "MetricGroup": "Summary;Power",
379        "MetricName": "Average_Frequency",
380        "Unit": "cpu_core"
381    },
382    {
383        "BriefDescription": "Giga Floating Point Operations Per Second",
384        "MetricExpr": "( ( 1 * ( FP_ARITH_INST_RETIRED.SCALAR_SINGLE + FP_ARITH_INST_RETIRED.SCALAR_DOUBLE ) + 2 * FP_ARITH_INST_RETIRED.128B_PACKED_DOUBLE + 4 * ( FP_ARITH_INST_RETIRED.128B_PACKED_SINGLE + FP_ARITH_INST_RETIRED.256B_PACKED_DOUBLE ) + 8 * FP_ARITH_INST_RETIRED.256B_PACKED_SINGLE ) / 1000000000 ) / duration_time",
385        "MetricGroup": "Cor;Flops;HPC",
386        "MetricName": "GFLOPs",
387        "Unit": "cpu_core"
388    },
389    {
390        "BriefDescription": "Average Frequency Utilization relative nominal frequency",
391        "MetricExpr": "CPU_CLK_UNHALTED.THREAD / CPU_CLK_UNHALTED.REF_TSC",
392        "MetricGroup": "Power",
393        "MetricName": "Turbo_Utilization",
394        "Unit": "cpu_core"
395    },
396    {
397        "BriefDescription": "Fraction of cycles where both hardware Logical Processors were active",
398        "MetricExpr": "1 - CPU_CLK_UNHALTED.ONE_THREAD_ACTIVE / CPU_CLK_UNHALTED.REF_DISTRIBUTED if #SMT_on else 0",
399        "MetricGroup": "SMT",
400        "MetricName": "SMT_2T_Utilization",
401        "Unit": "cpu_core"
402    },
403    {
404        "BriefDescription": "Fraction of cycles spent in the Operating System (OS) Kernel mode",
405        "MetricExpr": "CPU_CLK_UNHALTED.THREAD_P:k / CPU_CLK_UNHALTED.THREAD",
406        "MetricGroup": "OS",
407        "MetricName": "Kernel_Utilization",
408        "Unit": "cpu_core"
409    },
410    {
411        "BriefDescription": "Cycles Per Instruction for the Operating System (OS) Kernel mode",
412        "MetricExpr": "CPU_CLK_UNHALTED.THREAD_P:k / INST_RETIRED.ANY_P:k",
413        "MetricGroup": "OS",
414        "MetricName": "Kernel_CPI",
415        "Unit": "cpu_core"
416    },
417    {
418        "BriefDescription": "Average external Memory Bandwidth Use for reads and writes [GB / sec]",
419        "MetricExpr": "64 * ( arb@event\\=0x81\\,umask\\=0x1@ + arb@event\\=0x84\\,umask\\=0x1@ ) / 1000000 / duration_time / 1000",
420        "MetricGroup": "HPC;Mem;MemoryBW;SoC",
421        "MetricName": "DRAM_BW_Use",
422        "Unit": "cpu_core"
423    },
424    {
425        "BriefDescription": "Average number of parallel requests to external memory. Accounts for all requests",
426        "MetricExpr": "UNC_ARB_TRK_OCCUPANCY.ALL / arb@event\\=0x81\\,umask\\=0x1@",
427        "MetricGroup": "Mem;SoC",
428        "MetricName": "MEM_Parallel_Requests",
429        "Unit": "cpu_core"
430    },
431    {
432        "BriefDescription": "Instructions per Far Branch ( Far Branches apply upon transition from application to operating system, handling interrupts, exceptions) [lower number means higher occurrence rate]",
433        "MetricExpr": "INST_RETIRED.ANY / BR_INST_RETIRED.FAR_BRANCH:u",
434        "MetricGroup": "Branches;OS",
435        "MetricName": "IpFarBranch",
436        "Unit": "cpu_core"
437    },
438    {
439        "BriefDescription": "Counts the number of issue slots  that were not consumed by the backend due to frontend stalls.",
440        "MetricExpr": "TOPDOWN_FE_BOUND.ALL / (5 * CPU_CLK_UNHALTED.CORE)",
441        "MetricGroup": "TopdownL1",
442        "MetricName": "Frontend_Bound",
443        "Unit": "cpu_atom"
444    },
445    {
446        "BriefDescription": "Counts the total number of issue slots that were not consumed by the backend because allocation is stalled due to a mispredicted jump or a machine clear",
447        "MetricExpr": "TOPDOWN_BAD_SPECULATION.ALL / (5 * CPU_CLK_UNHALTED.CORE)",
448        "MetricGroup": "TopdownL1",
449        "MetricName": "Bad_Speculation",
450        "PublicDescription": "Counts the total number of issue slots that were not consumed by the backend because allocation is stalled due to a mispredicted jump or a machine clear. Only issue slots wasted due to fast nukes such as memory ordering nukes are counted. Other nukes are not accounted for. Counts all issue slots blocked during this recovery window including relevant microcode flows and while uops are not yet available in the instruction queue (IQ). Also includes the issue slots that were consumed by the backend but were thrown away because they were younger than the mispredict or machine clear.",
451        "Unit": "cpu_atom"
452    },
453    {
454        "BriefDescription": "Counts the total number of issue slots  that were not consumed by the backend due to backend stalls",
455        "MetricConstraint": "NO_NMI_WATCHDOG",
456        "MetricExpr": "TOPDOWN_BE_BOUND.ALL / (5 * CPU_CLK_UNHALTED.CORE)",
457        "MetricGroup": "TopdownL1",
458        "MetricName": "Backend_Bound",
459        "PublicDescription": "Counts the total number of issue slots  that were not consumed by the backend due to backend stalls.  Note that uops must be available for consumption in order for this event to count.  If a uop is not available (IQ is empty), this event will not count.   The rest of these subevents count backend stalls, in cycles, due to an outstanding request which is memory bound vs core bound.   The subevents are not slot based events and therefore can not be precisely added or subtracted from the Backend_Bound_Aux subevents which are slot based.",
460        "Unit": "cpu_atom"
461    },
462    {
463        "BriefDescription": "Counts the total number of issue slots  that were not consumed by the backend due to backend stalls",
464        "MetricExpr": "TOPDOWN_BE_BOUND.ALL / (5 * CPU_CLK_UNHALTED.CORE)",
465        "MetricGroup": "TopdownL1",
466        "MetricName": "Backend_Bound_Aux",
467        "PublicDescription": "Counts the total number of issue slots  that were not consumed by the backend due to backend stalls.  Note that UOPS must be available for consumption in order for this event to count.  If a uop is not available (IQ is empty), this event will not count.  All of these subevents count backend stalls, in slots, due to a resource limitation.   These are not cycle based events and therefore can not be precisely added or subtracted from the Backend_Bound subevents which are cycle based.  These subevents are supplementary to Backend_Bound and can be used to analyze results from a resource perspective at allocation.  ",
468        "Unit": "cpu_atom"
469    },
470    {
471        "BriefDescription": "Counts the numer of issue slots  that result in retirement slots. ",
472        "MetricExpr": "TOPDOWN_RETIRING.ALL / (5 * CPU_CLK_UNHALTED.CORE)",
473        "MetricGroup": "TopdownL1",
474        "MetricName": "Retiring",
475        "Unit": "cpu_atom"
476    },
477    {
478        "BriefDescription": "",
479        "MetricExpr": "CPU_CLK_UNHALTED.CORE",
480        "MetricName": "CLKS",
481        "Unit": "cpu_atom"
482    },
483    {
484        "BriefDescription": "",
485        "MetricExpr": "CPU_CLK_UNHALTED.CORE_P",
486        "MetricName": "CLKS_P",
487        "Unit": "cpu_atom"
488    },
489    {
490        "BriefDescription": "",
491        "MetricExpr": "5 * CPU_CLK_UNHALTED.CORE",
492        "MetricName": "SLOTS",
493        "Unit": "cpu_atom"
494    },
495    {
496        "BriefDescription": "Instructions Per Cycle",
497        "MetricExpr": "INST_RETIRED.ANY / CPU_CLK_UNHALTED.CORE",
498        "MetricName": "IPC",
499        "Unit": "cpu_atom"
500    },
501    {
502        "BriefDescription": "Cycles Per Instruction",
503        "MetricExpr": "CPU_CLK_UNHALTED.CORE / INST_RETIRED.ANY",
504        "MetricName": "CPI",
505        "Unit": "cpu_atom"
506    },
507    {
508        "BriefDescription": "Uops Per Instruction",
509        "MetricExpr": "UOPS_RETIRED.ALL / INST_RETIRED.ANY",
510        "MetricName": "UPI",
511        "Unit": "cpu_atom"
512    },
513    {
514        "BriefDescription": "Percentage of total non-speculative loads with a store forward or unknown store address block",
515        "MetricExpr": "100 * LD_BLOCKS.DATA_UNKNOWN / MEM_UOPS_RETIRED.ALL_LOADS",
516        "MetricName": "Store_Fwd_Blocks",
517        "Unit": "cpu_atom"
518    },
519    {
520        "BriefDescription": "Percentage of total non-speculative loads with a address aliasing block",
521        "MetricExpr": "100 * LD_BLOCKS.4K_ALIAS / MEM_UOPS_RETIRED.ALL_LOADS",
522        "MetricName": "Address_Alias_Blocks",
523        "Unit": "cpu_atom"
524    },
525    {
526        "BriefDescription": "Percentage of total non-speculative loads that are splits",
527        "MetricExpr": "100 * MEM_UOPS_RETIRED.SPLIT_LOADS / MEM_UOPS_RETIRED.ALL_LOADS",
528        "MetricName": "Load_Splits",
529        "Unit": "cpu_atom"
530    },
531    {
532        "BriefDescription": "Instructions per Branch (lower number means higher occurrence rate)",
533        "MetricExpr": "INST_RETIRED.ANY / BR_INST_RETIRED.ALL_BRANCHES",
534        "MetricName": "IpBranch",
535        "Unit": "cpu_atom"
536    },
537    {
538        "BriefDescription": "Instruction per (near) call (lower number means higher occurrence rate)",
539        "MetricExpr": "INST_RETIRED.ANY / BR_INST_RETIRED.CALL",
540        "MetricName": "IpCall",
541        "Unit": "cpu_atom"
542    },
543    {
544        "BriefDescription": "Instructions per Load",
545        "MetricExpr": "INST_RETIRED.ANY / MEM_UOPS_RETIRED.ALL_LOADS",
546        "MetricName": "IpLoad",
547        "Unit": "cpu_atom"
548    },
549    {
550        "BriefDescription": "Instructions per Store",
551        "MetricExpr": "INST_RETIRED.ANY / MEM_UOPS_RETIRED.ALL_STORES",
552        "MetricName": "IpStore",
553        "Unit": "cpu_atom"
554    },
555    {
556        "BriefDescription": "Number of Instructions per non-speculative Branch Misprediction",
557        "MetricExpr": "INST_RETIRED.ANY / BR_MISP_RETIRED.ALL_BRANCHES",
558        "MetricName": "IpMispredict",
559        "Unit": "cpu_atom"
560    },
561    {
562        "BriefDescription": "Instructions per Far Branch",
563        "MetricExpr": "INST_RETIRED.ANY / ( BR_INST_RETIRED.FAR_BRANCH / 2 )",
564        "MetricName": "IpFarBranch",
565        "Unit": "cpu_atom"
566    },
567    {
568        "BriefDescription": "Ratio of all branches which mispredict",
569        "MetricExpr": "BR_MISP_RETIRED.ALL_BRANCHES / BR_INST_RETIRED.ALL_BRANCHES",
570        "MetricName": "Branch_Mispredict_Ratio",
571        "Unit": "cpu_atom"
572    },
573    {
574        "BriefDescription": "Ratio between Mispredicted branches and unknown branches",
575        "MetricExpr": "BR_MISP_RETIRED.ALL_BRANCHES / BACLEARS.ANY",
576        "MetricName": "Branch_Mispredict_to_Unknown_Branch_Ratio",
577        "Unit": "cpu_atom"
578    },
579    {
580        "BriefDescription": "Percentage of all uops which are ucode ops",
581        "MetricExpr": "100 * UOPS_RETIRED.MS / UOPS_RETIRED.ALL",
582        "MetricName": "Microcode_Uop_Ratio",
583        "Unit": "cpu_atom"
584    },
585    {
586        "BriefDescription": "Percentage of all uops which are FPDiv uops",
587        "MetricExpr": "100 * UOPS_RETIRED.FPDIV / UOPS_RETIRED.ALL",
588        "MetricName": "FPDiv_Uop_Ratio",
589        "Unit": "cpu_atom"
590    },
591    {
592        "BriefDescription": "Percentage of all uops which are IDiv uops",
593        "MetricExpr": "100 * UOPS_RETIRED.IDIV / UOPS_RETIRED.ALL",
594        "MetricName": "IDiv_Uop_Ratio",
595        "Unit": "cpu_atom"
596    },
597    {
598        "BriefDescription": "Percentage of all uops which are x87 uops",
599        "MetricExpr": "100 * UOPS_RETIRED.X87 / UOPS_RETIRED.ALL",
600        "MetricName": "X87_Uop_Ratio",
601        "Unit": "cpu_atom"
602    },
603    {
604        "BriefDescription": "Average Frequency Utilization relative nominal frequency",
605        "MetricExpr": "CPU_CLK_UNHALTED.CORE / CPU_CLK_UNHALTED.REF_TSC",
606        "MetricName": "Turbo_Utilization",
607        "Unit": "cpu_atom"
608    },
609    {
610        "BriefDescription": "Fraction of cycles spent in Kernel mode",
611        "MetricExpr": "CPU_CLK_UNHALTED.CORE:k / CPU_CLK_UNHALTED.CORE",
612        "MetricName": "Kernel_Utilization",
613        "Unit": "cpu_atom"
614    },
615    {
616        "BriefDescription": "Average CPU Utilization",
617        "MetricExpr": "CPU_CLK_UNHALTED.REF_TSC / msr@tsc@",
618        "MetricName": "CPU_Utilization",
619        "Unit": "cpu_atom"
620    },
621    {
622        "BriefDescription": "Estimated Pause cost. In percent",
623        "MetricExpr": "100 * SERIALIZATION.NON_C01_MS_SCB / ( 5 * CPU_CLK_UNHALTED.CORE )",
624        "MetricName": "Estimated_Pause_Cost",
625        "Unit": "cpu_atom"
626    },
627    {
628        "BriefDescription": "Cycle cost per L2 hit",
629        "MetricExpr": "MEM_BOUND_STALLS.LOAD_L2_HIT / MEM_LOAD_UOPS_RETIRED.L2_HIT",
630        "MetricName": "Cycles_per_Demand_Load_L2_Hit",
631        "Unit": "cpu_atom"
632    },
633    {
634        "BriefDescription": "Cycle cost per LLC hit",
635        "MetricExpr": "MEM_BOUND_STALLS.LOAD_LLC_HIT / MEM_LOAD_UOPS_RETIRED.L3_HIT",
636        "MetricName": "Cycles_per_Demand_Load_L3_Hit",
637        "Unit": "cpu_atom"
638    },
639    {
640        "BriefDescription": "Cycle cost per DRAM hit",
641        "MetricExpr": "MEM_BOUND_STALLS.LOAD_DRAM_HIT / MEM_LOAD_UOPS_RETIRED.DRAM_HIT",
642        "MetricName": "Cycles_per_Demand_Load_DRAM_Hit",
643        "Unit": "cpu_atom"
644    },
645    {
646        "BriefDescription": "Percent of instruction miss cost that hit in the L2",
647        "MetricExpr": "100 * MEM_BOUND_STALLS.IFETCH_L2_HIT / ( MEM_BOUND_STALLS.IFETCH )",
648        "MetricName": "Inst_Miss_Cost_L2Hit_Percent",
649        "Unit": "cpu_atom"
650    },
651    {
652        "BriefDescription": "Percent of instruction miss cost that hit in the L3",
653        "MetricExpr": "100 * MEM_BOUND_STALLS.IFETCH_LLC_HIT / ( MEM_BOUND_STALLS.IFETCH )",
654        "MetricName": "Inst_Miss_Cost_L3Hit_Percent",
655        "Unit": "cpu_atom"
656    },
657    {
658        "BriefDescription": "Percent of instruction miss cost that hit in DRAM",
659        "MetricExpr": "100 * MEM_BOUND_STALLS.IFETCH_DRAM_HIT / ( MEM_BOUND_STALLS.IFETCH )",
660        "MetricName": "Inst_Miss_Cost_DRAMHit_Percent",
661        "Unit": "cpu_atom"
662    },
663    {
664        "BriefDescription": "load ops retired per 1000 instruction",
665        "MetricExpr": "1000 * MEM_UOPS_RETIRED.ALL_LOADS / INST_RETIRED.ANY",
666        "MetricName": "MemLoadPKI",
667        "Unit": "cpu_atom"
668    },
669    {
670        "BriefDescription": "C1 residency percent per core",
671        "MetricExpr": "(cstate_core@c1\\-residency@ / msr@tsc@) * 100",
672        "MetricGroup": "Power",
673        "MetricName": "C1_Core_Residency"
674    },
675    {
676        "BriefDescription": "C6 residency percent per core",
677        "MetricExpr": "(cstate_core@c6\\-residency@ / msr@tsc@) * 100",
678        "MetricGroup": "Power",
679        "MetricName": "C6_Core_Residency"
680    },
681    {
682        "BriefDescription": "C7 residency percent per core",
683        "MetricExpr": "(cstate_core@c7\\-residency@ / msr@tsc@) * 100",
684        "MetricGroup": "Power",
685        "MetricName": "C7_Core_Residency"
686    },
687    {
688        "BriefDescription": "C2 residency percent per package",
689        "MetricExpr": "(cstate_pkg@c2\\-residency@ / msr@tsc@) * 100",
690        "MetricGroup": "Power",
691        "MetricName": "C2_Pkg_Residency"
692    },
693    {
694        "BriefDescription": "C3 residency percent per package",
695        "MetricExpr": "(cstate_pkg@c3\\-residency@ / msr@tsc@) * 100",
696        "MetricGroup": "Power",
697        "MetricName": "C3_Pkg_Residency"
698    },
699    {
700        "BriefDescription": "C6 residency percent per package",
701        "MetricExpr": "(cstate_pkg@c6\\-residency@ / msr@tsc@) * 100",
702        "MetricGroup": "Power",
703        "MetricName": "C6_Pkg_Residency"
704    },
705    {
706        "BriefDescription": "C7 residency percent per package",
707        "MetricExpr": "(cstate_pkg@c7\\-residency@ / msr@tsc@) * 100",
708        "MetricGroup": "Power",
709        "MetricName": "C7_Pkg_Residency"
710    },
711    {
712        "BriefDescription": "C8 residency percent per package",
713        "MetricExpr": "(cstate_pkg@c8\\-residency@ / msr@tsc@) * 100",
714        "MetricGroup": "Power",
715        "MetricName": "C8_Pkg_Residency"
716    },
717    {
718        "BriefDescription": "C9 residency percent per package",
719        "MetricExpr": "(cstate_pkg@c9\\-residency@ / msr@tsc@) * 100",
720        "MetricGroup": "Power",
721        "MetricName": "C9_Pkg_Residency"
722    },
723    {
724        "BriefDescription": "C10 residency percent per package",
725        "MetricExpr": "(cstate_pkg@c10\\-residency@ / msr@tsc@) * 100",
726        "MetricGroup": "Power",
727        "MetricName": "C10_Pkg_Residency"
728    }
729]
730