1[
2    {
3        "BriefDescription": "This category represents fraction of slots where the processor's Frontend undersupplies its Backend",
4        "MetricExpr": "IDQ_UOPS_NOT_DELIVERED.CORE / (4 * CPU_CLK_UNHALTED.THREAD)",
5        "MetricGroup": "TopdownL1",
6        "MetricName": "Frontend_Bound",
7        "PublicDescription": "This category represents fraction of slots where the processor's Frontend undersupplies its Backend. Frontend denotes the first part of the processor core responsible to fetch operations that are executed later on by the Backend part. Within the Frontend; a branch predictor predicts the next address to fetch; cache-lines are fetched from the memory subsystem; parsed into instructions; and lastly decoded into micro-operations (uops). Ideally the Frontend can issue Machine_Width uops every cycle to the Backend. Frontend Bound denotes unutilized issue-slots when there is no Backend stall; i.e. bubbles where Frontend delivered no uops while Backend could have accepted them. For example; stalls due to instruction-cache misses would be categorized under Frontend Bound."
8    },
9    {
10        "BriefDescription": "This category represents fraction of slots where the processor's Frontend undersupplies its Backend. SMT version; use when SMT is enabled and measuring per logical CPU.",
11        "MetricExpr": "IDQ_UOPS_NOT_DELIVERED.CORE / (4 * ( ( CPU_CLK_UNHALTED.THREAD / 2 ) * ( 1 + CPU_CLK_UNHALTED.ONE_THREAD_ACTIVE / CPU_CLK_UNHALTED.REF_XCLK ) ))",
12        "MetricGroup": "TopdownL1_SMT",
13        "MetricName": "Frontend_Bound_SMT",
14        "PublicDescription": "This category represents fraction of slots where the processor's Frontend undersupplies its Backend. Frontend denotes the first part of the processor core responsible to fetch operations that are executed later on by the Backend part. Within the Frontend; a branch predictor predicts the next address to fetch; cache-lines are fetched from the memory subsystem; parsed into instructions; and lastly decoded into micro-operations (uops). Ideally the Frontend can issue Machine_Width uops every cycle to the Backend. Frontend Bound denotes unutilized issue-slots when there is no Backend stall; i.e. bubbles where Frontend delivered no uops while Backend could have accepted them. For example; stalls due to instruction-cache misses would be categorized under Frontend Bound. SMT version; use when SMT is enabled and measuring per logical CPU."
15    },
16    {
17        "BriefDescription": "This category represents fraction of slots wasted due to incorrect speculations",
18        "MetricExpr": "( UOPS_ISSUED.ANY - UOPS_RETIRED.RETIRE_SLOTS + 4 * INT_MISC.RECOVERY_CYCLES ) / (4 * CPU_CLK_UNHALTED.THREAD)",
19        "MetricGroup": "TopdownL1",
20        "MetricName": "Bad_Speculation",
21        "PublicDescription": "This category represents fraction of slots wasted due to incorrect speculations. This include slots used to issue uops that do not eventually get retired and slots for which the issue-pipeline was blocked due to recovery from earlier incorrect speculation. For example; wasted work due to miss-predicted branches are categorized under Bad Speculation category. Incorrect data speculation followed by Memory Ordering Nukes is another example."
22    },
23    {
24        "BriefDescription": "This category represents fraction of slots wasted due to incorrect speculations. SMT version; use when SMT is enabled and measuring per logical CPU.",
25        "MetricExpr": "( UOPS_ISSUED.ANY - UOPS_RETIRED.RETIRE_SLOTS + 4 * ( INT_MISC.RECOVERY_CYCLES_ANY / 2 ) ) / (4 * ( ( CPU_CLK_UNHALTED.THREAD / 2 ) * ( 1 + CPU_CLK_UNHALTED.ONE_THREAD_ACTIVE / CPU_CLK_UNHALTED.REF_XCLK ) ))",
26        "MetricGroup": "TopdownL1_SMT",
27        "MetricName": "Bad_Speculation_SMT",
28        "PublicDescription": "This category represents fraction of slots wasted due to incorrect speculations. This include slots used to issue uops that do not eventually get retired and slots for which the issue-pipeline was blocked due to recovery from earlier incorrect speculation. For example; wasted work due to miss-predicted branches are categorized under Bad Speculation category. Incorrect data speculation followed by Memory Ordering Nukes is another example. SMT version; use when SMT is enabled and measuring per logical CPU."
29    },
30    {
31        "BriefDescription": "This category represents fraction of slots where no uops are being delivered due to a lack of required resources for accepting new uops in the Backend",
32        "MetricConstraint": "NO_NMI_WATCHDOG",
33        "MetricExpr": "1 - ( (IDQ_UOPS_NOT_DELIVERED.CORE / (4 * CPU_CLK_UNHALTED.THREAD)) + (( UOPS_ISSUED.ANY - UOPS_RETIRED.RETIRE_SLOTS + 4 * INT_MISC.RECOVERY_CYCLES ) / (4 * CPU_CLK_UNHALTED.THREAD)) + (UOPS_RETIRED.RETIRE_SLOTS / (4 * CPU_CLK_UNHALTED.THREAD)) )",
34        "MetricGroup": "TopdownL1",
35        "MetricName": "Backend_Bound",
36        "PublicDescription": "This category represents fraction of slots where no uops are being delivered due to a lack of required resources for accepting new uops in the Backend. Backend is the portion of the processor core where the out-of-order scheduler dispatches ready uops into their respective execution units; and once completed these uops get retired according to program order. For example; stalls due to data-cache misses or stalls due to the divider unit being overloaded are both categorized under Backend Bound. Backend Bound is further divided into two main categories: Memory Bound and Core Bound."
37    },
38    {
39        "BriefDescription": "This category represents fraction of slots where no uops are being delivered due to a lack of required resources for accepting new uops in the Backend. SMT version; use when SMT is enabled and measuring per logical CPU.",
40        "MetricExpr": "1 - ( (IDQ_UOPS_NOT_DELIVERED.CORE / (4 * ( ( CPU_CLK_UNHALTED.THREAD / 2 ) * ( 1 + CPU_CLK_UNHALTED.ONE_THREAD_ACTIVE / CPU_CLK_UNHALTED.REF_XCLK ) ))) + (( UOPS_ISSUED.ANY - UOPS_RETIRED.RETIRE_SLOTS + 4 * ( INT_MISC.RECOVERY_CYCLES_ANY / 2 ) ) / (4 * ( ( CPU_CLK_UNHALTED.THREAD / 2 ) * ( 1 + CPU_CLK_UNHALTED.ONE_THREAD_ACTIVE / CPU_CLK_UNHALTED.REF_XCLK ) ))) + (UOPS_RETIRED.RETIRE_SLOTS / (4 * ( ( CPU_CLK_UNHALTED.THREAD / 2 ) * ( 1 + CPU_CLK_UNHALTED.ONE_THREAD_ACTIVE / CPU_CLK_UNHALTED.REF_XCLK ) ))) )",
41        "MetricGroup": "TopdownL1_SMT",
42        "MetricName": "Backend_Bound_SMT",
43        "PublicDescription": "This category represents fraction of slots where no uops are being delivered due to a lack of required resources for accepting new uops in the Backend. Backend is the portion of the processor core where the out-of-order scheduler dispatches ready uops into their respective execution units; and once completed these uops get retired according to program order. For example; stalls due to data-cache misses or stalls due to the divider unit being overloaded are both categorized under Backend Bound. Backend Bound is further divided into two main categories: Memory Bound and Core Bound. SMT version; use when SMT is enabled and measuring per logical CPU."
44    },
45    {
46        "BriefDescription": "This category represents fraction of slots utilized by useful work i.e. issued uops that eventually get retired",
47        "MetricExpr": "UOPS_RETIRED.RETIRE_SLOTS / (4 * CPU_CLK_UNHALTED.THREAD)",
48        "MetricGroup": "TopdownL1",
49        "MetricName": "Retiring",
50        "PublicDescription": "This category represents fraction of slots utilized by useful work i.e. issued uops that eventually get retired. Ideally; all pipeline slots would be attributed to the Retiring category.  Retiring of 100% would indicate the maximum Pipeline_Width throughput was achieved.  Maximizing Retiring typically increases the Instructions-per-cycle (see IPC metric). Note that a high Retiring value does not necessary mean there is no room for more performance.  For example; Heavy-operations or Microcode Assists are categorized under Retiring. They often indicate suboptimal performance and can often be optimized or avoided. "
51    },
52    {
53        "BriefDescription": "This category represents fraction of slots utilized by useful work i.e. issued uops that eventually get retired. SMT version; use when SMT is enabled and measuring per logical CPU.",
54        "MetricExpr": "UOPS_RETIRED.RETIRE_SLOTS / (4 * ( ( CPU_CLK_UNHALTED.THREAD / 2 ) * ( 1 + CPU_CLK_UNHALTED.ONE_THREAD_ACTIVE / CPU_CLK_UNHALTED.REF_XCLK ) ))",
55        "MetricGroup": "TopdownL1_SMT",
56        "MetricName": "Retiring_SMT",
57        "PublicDescription": "This category represents fraction of slots utilized by useful work i.e. issued uops that eventually get retired. Ideally; all pipeline slots would be attributed to the Retiring category.  Retiring of 100% would indicate the maximum Pipeline_Width throughput was achieved.  Maximizing Retiring typically increases the Instructions-per-cycle (see IPC metric). Note that a high Retiring value does not necessary mean there is no room for more performance.  For example; Heavy-operations or Microcode Assists are categorized under Retiring. They often indicate suboptimal performance and can often be optimized or avoided. SMT version; use when SMT is enabled and measuring per logical CPU."
58    },
59    {
60        "BriefDescription": "Instructions Per Cycle (per Logical Processor)",
61        "MetricExpr": "INST_RETIRED.ANY / CPU_CLK_UNHALTED.THREAD",
62        "MetricGroup": "Ret;Summary",
63        "MetricName": "IPC"
64    },
65    {
66        "BriefDescription": "Uops Per Instruction",
67        "MetricExpr": "UOPS_RETIRED.RETIRE_SLOTS / INST_RETIRED.ANY",
68        "MetricGroup": "Pipeline;Ret;Retire",
69        "MetricName": "UPI"
70    },
71    {
72        "BriefDescription": "Instruction per taken branch",
73        "MetricExpr": "UOPS_RETIRED.RETIRE_SLOTS / BR_INST_RETIRED.NEAR_TAKEN",
74        "MetricGroup": "Branches;Fed;FetchBW",
75        "MetricName": "UpTB"
76    },
77    {
78        "BriefDescription": "Cycles Per Instruction (per Logical Processor)",
79        "MetricExpr": "1 / (INST_RETIRED.ANY / CPU_CLK_UNHALTED.THREAD)",
80        "MetricGroup": "Pipeline;Mem",
81        "MetricName": "CPI"
82    },
83    {
84        "BriefDescription": "Per-Logical Processor actual clocks when the Logical Processor is active.",
85        "MetricExpr": "CPU_CLK_UNHALTED.THREAD",
86        "MetricGroup": "Pipeline",
87        "MetricName": "CLKS"
88    },
89    {
90        "BriefDescription": "Total issue-pipeline slots (per-Physical Core till ICL; per-Logical Processor ICL onward)",
91        "MetricExpr": "4 * CPU_CLK_UNHALTED.THREAD",
92        "MetricGroup": "TmaL1",
93        "MetricName": "SLOTS"
94    },
95    {
96        "BriefDescription": "Total issue-pipeline slots (per-Physical Core till ICL; per-Logical Processor ICL onward)",
97        "MetricExpr": "4 * ( ( CPU_CLK_UNHALTED.THREAD / 2 ) * ( 1 + CPU_CLK_UNHALTED.ONE_THREAD_ACTIVE / CPU_CLK_UNHALTED.REF_XCLK ) )",
98        "MetricGroup": "TmaL1_SMT",
99        "MetricName": "SLOTS_SMT"
100    },
101    {
102        "BriefDescription": "The ratio of Executed- by Issued-Uops",
103        "MetricExpr": "UOPS_EXECUTED.THREAD / UOPS_ISSUED.ANY",
104        "MetricGroup": "Cor;Pipeline",
105        "MetricName": "Execute_per_Issue",
106        "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."
107    },
108    {
109        "BriefDescription": "Instructions Per Cycle across hyper-threads (per physical core)",
110        "MetricExpr": "INST_RETIRED.ANY / CPU_CLK_UNHALTED.THREAD",
111        "MetricGroup": "Ret;SMT;TmaL1",
112        "MetricName": "CoreIPC"
113    },
114    {
115        "BriefDescription": "Instructions Per Cycle across hyper-threads (per physical core)",
116        "MetricExpr": "INST_RETIRED.ANY / ( ( CPU_CLK_UNHALTED.THREAD / 2 ) * ( 1 + CPU_CLK_UNHALTED.ONE_THREAD_ACTIVE / CPU_CLK_UNHALTED.REF_XCLK ) )",
117        "MetricGroup": "Ret;SMT;TmaL1_SMT",
118        "MetricName": "CoreIPC_SMT"
119    },
120    {
121        "BriefDescription": "Floating Point Operations Per Cycle",
122        "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.THREAD",
123        "MetricGroup": "Ret;Flops",
124        "MetricName": "FLOPc"
125    },
126    {
127        "BriefDescription": "Floating Point Operations Per Cycle",
128        "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.THREAD / 2 ) * ( 1 + CPU_CLK_UNHALTED.ONE_THREAD_ACTIVE / CPU_CLK_UNHALTED.REF_XCLK ) )",
129        "MetricGroup": "Ret;Flops_SMT",
130        "MetricName": "FLOPc_SMT"
131    },
132    {
133        "BriefDescription": "Actual per-core usage of the Floating Point non-X87 execution units (regardless of precision or vector-width)",
134        "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.THREAD )",
135        "MetricGroup": "Cor;Flops;HPC",
136        "MetricName": "FP_Arith_Utilization",
137        "PublicDescription": "Actual per-core usage of the Floating Point non-X87 execution units (regardless of precision or vector-width). Values > 1 are possible due to ([BDW+] Fused-Multiply Add (FMA) counting - common; [ADL+] use all of ADD/MUL/FMA in Scalar or 128/256-bit vectors - less common)."
138    },
139    {
140        "BriefDescription": "Actual per-core usage of the Floating Point non-X87 execution units (regardless of precision or vector-width). SMT version; use when SMT is enabled and measuring per logical CPU.",
141        "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.THREAD / 2 ) * ( 1 + CPU_CLK_UNHALTED.ONE_THREAD_ACTIVE / CPU_CLK_UNHALTED.REF_XCLK ) ) )",
142        "MetricGroup": "Cor;Flops;HPC_SMT",
143        "MetricName": "FP_Arith_Utilization_SMT",
144        "PublicDescription": "Actual per-core usage of the Floating Point non-X87 execution units (regardless of precision or vector-width). Values > 1 are possible due to ([BDW+] Fused-Multiply Add (FMA) counting - common; [ADL+] use all of ADD/MUL/FMA in Scalar or 128/256-bit vectors - less common). SMT version; use when SMT is enabled and measuring per logical CPU."
145    },
146    {
147        "BriefDescription": "Instruction-Level-Parallelism (average number of uops executed when there is execution) per-core",
148        "MetricExpr": "UOPS_EXECUTED.THREAD / (( cpu@UOPS_EXECUTED.CORE\\,cmask\\=1@ / 2 ) if #SMT_on else UOPS_EXECUTED.CYCLES_GE_1_UOP_EXEC)",
149        "MetricGroup": "Backend;Cor;Pipeline;PortsUtil",
150        "MetricName": "ILP"
151    },
152    {
153        "BriefDescription": "Core actual clocks when any Logical Processor is active on the Physical Core",
154        "MetricExpr": "( ( CPU_CLK_UNHALTED.THREAD / 2 ) * ( 1 + CPU_CLK_UNHALTED.ONE_THREAD_ACTIVE / CPU_CLK_UNHALTED.REF_XCLK ) )",
155        "MetricGroup": "SMT",
156        "MetricName": "CORE_CLKS"
157    },
158    {
159        "BriefDescription": "Instructions per Load (lower number means higher occurrence rate)",
160        "MetricExpr": "INST_RETIRED.ANY / MEM_UOPS_RETIRED.ALL_LOADS",
161        "MetricGroup": "InsType",
162        "MetricName": "IpLoad"
163    },
164    {
165        "BriefDescription": "Instructions per Store (lower number means higher occurrence rate)",
166        "MetricExpr": "INST_RETIRED.ANY / MEM_UOPS_RETIRED.ALL_STORES",
167        "MetricGroup": "InsType",
168        "MetricName": "IpStore"
169    },
170    {
171        "BriefDescription": "Instructions per Branch (lower number means higher occurrence rate)",
172        "MetricExpr": "INST_RETIRED.ANY / BR_INST_RETIRED.ALL_BRANCHES",
173        "MetricGroup": "Branches;Fed;InsType",
174        "MetricName": "IpBranch"
175    },
176    {
177        "BriefDescription": "Instructions per (near) call (lower number means higher occurrence rate)",
178        "MetricExpr": "INST_RETIRED.ANY / BR_INST_RETIRED.NEAR_CALL",
179        "MetricGroup": "Branches;Fed;PGO",
180        "MetricName": "IpCall"
181    },
182    {
183        "BriefDescription": "Instruction per taken branch",
184        "MetricExpr": "INST_RETIRED.ANY / BR_INST_RETIRED.NEAR_TAKEN",
185        "MetricGroup": "Branches;Fed;FetchBW;Frontend;PGO",
186        "MetricName": "IpTB"
187    },
188    {
189        "BriefDescription": "Branch instructions per taken branch. ",
190        "MetricExpr": "BR_INST_RETIRED.ALL_BRANCHES / BR_INST_RETIRED.NEAR_TAKEN",
191        "MetricGroup": "Branches;Fed;PGO",
192        "MetricName": "BpTkBranch"
193    },
194    {
195        "BriefDescription": "Instructions per Floating Point (FP) Operation (lower number means higher occurrence rate)",
196        "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 )",
197        "MetricGroup": "Flops;InsType",
198        "MetricName": "IpFLOP"
199    },
200    {
201        "BriefDescription": "Instructions per FP Arithmetic instruction (lower number means higher occurrence rate)",
202        "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) )",
203        "MetricGroup": "Flops;InsType",
204        "MetricName": "IpArith",
205        "PublicDescription": "Instructions per FP Arithmetic instruction (lower number means higher occurrence rate). May undercount due to FMA double counting. Approximated prior to BDW."
206    },
207    {
208        "BriefDescription": "Instructions per FP Arithmetic Scalar Single-Precision instruction (lower number means higher occurrence rate)",
209        "MetricExpr": "INST_RETIRED.ANY / FP_ARITH_INST_RETIRED.SCALAR_SINGLE",
210        "MetricGroup": "Flops;FpScalar;InsType",
211        "MetricName": "IpArith_Scalar_SP",
212        "PublicDescription": "Instructions per FP Arithmetic Scalar Single-Precision instruction (lower number means higher occurrence rate). May undercount due to FMA double counting."
213    },
214    {
215        "BriefDescription": "Instructions per FP Arithmetic Scalar Double-Precision instruction (lower number means higher occurrence rate)",
216        "MetricExpr": "INST_RETIRED.ANY / FP_ARITH_INST_RETIRED.SCALAR_DOUBLE",
217        "MetricGroup": "Flops;FpScalar;InsType",
218        "MetricName": "IpArith_Scalar_DP",
219        "PublicDescription": "Instructions per FP Arithmetic Scalar Double-Precision instruction (lower number means higher occurrence rate). May undercount due to FMA double counting."
220    },
221    {
222        "BriefDescription": "Instructions per FP Arithmetic AVX/SSE 128-bit instruction (lower number means higher occurrence rate)",
223        "MetricExpr": "INST_RETIRED.ANY / ( FP_ARITH_INST_RETIRED.128B_PACKED_DOUBLE + FP_ARITH_INST_RETIRED.128B_PACKED_SINGLE )",
224        "MetricGroup": "Flops;FpVector;InsType",
225        "MetricName": "IpArith_AVX128",
226        "PublicDescription": "Instructions per FP Arithmetic AVX/SSE 128-bit instruction (lower number means higher occurrence rate). May undercount due to FMA double counting."
227    },
228    {
229        "BriefDescription": "Instructions per FP Arithmetic AVX* 256-bit instruction (lower number means higher occurrence rate)",
230        "MetricExpr": "INST_RETIRED.ANY / ( FP_ARITH_INST_RETIRED.256B_PACKED_DOUBLE + FP_ARITH_INST_RETIRED.256B_PACKED_SINGLE )",
231        "MetricGroup": "Flops;FpVector;InsType",
232        "MetricName": "IpArith_AVX256",
233        "PublicDescription": "Instructions per FP Arithmetic AVX* 256-bit instruction (lower number means higher occurrence rate). May undercount due to FMA double counting."
234    },
235    {
236        "BriefDescription": "Total number of retired Instructions, Sample with: INST_RETIRED.PREC_DIST",
237        "MetricExpr": "INST_RETIRED.ANY",
238        "MetricGroup": "Summary;TmaL1",
239        "MetricName": "Instructions"
240    },
241    {
242        "BriefDescription": "Average number of Uops retired in cycles where at least one uop has retired.",
243        "MetricExpr": "UOPS_RETIRED.RETIRE_SLOTS / cpu@UOPS_RETIRED.RETIRE_SLOTS\\,cmask\\=1@",
244        "MetricGroup": "Pipeline;Ret",
245        "MetricName": "Retire"
246    },
247    {
248        "BriefDescription": "",
249        "MetricExpr": "UOPS_EXECUTED.THREAD / cpu@UOPS_EXECUTED.THREAD\\,cmask\\=1@",
250        "MetricGroup": "Cor;Pipeline;PortsUtil;SMT",
251        "MetricName": "Execute"
252    },
253    {
254        "BriefDescription": "Fraction of Uops delivered by the DSB (aka Decoded ICache; or Uop Cache)",
255        "MetricExpr": "IDQ.DSB_UOPS / (( IDQ.DSB_UOPS + LSD.UOPS + IDQ.MITE_UOPS + IDQ.MS_UOPS ) )",
256        "MetricGroup": "DSB;Fed;FetchBW",
257        "MetricName": "DSB_Coverage"
258    },
259    {
260        "BriefDescription": "Number of Instructions per non-speculative Branch Misprediction (JEClear) (lower number means higher occurrence rate)",
261        "MetricExpr": "INST_RETIRED.ANY / BR_MISP_RETIRED.ALL_BRANCHES",
262        "MetricGroup": "Bad;BadSpec;BrMispredicts",
263        "MetricName": "IpMispredict"
264    },
265    {
266        "BriefDescription": "Branch Misprediction Cost: Fraction of TMA slots wasted per non-speculative branch misprediction (retired JEClear)",
267        "MetricExpr": " ( ((BR_MISP_RETIRED.ALL_BRANCHES / ( BR_MISP_RETIRED.ALL_BRANCHES + MACHINE_CLEARS.COUNT )) * (( UOPS_ISSUED.ANY - UOPS_RETIRED.RETIRE_SLOTS + 4 * INT_MISC.RECOVERY_CYCLES ) / (4 * CPU_CLK_UNHALTED.THREAD))) + (4 * IDQ_UOPS_NOT_DELIVERED.CYCLES_0_UOPS_DELIV.CORE / (4 * CPU_CLK_UNHALTED.THREAD)) * (BR_MISP_RETIRED.ALL_BRANCHES * (12 * ( BR_MISP_RETIRED.ALL_BRANCHES + MACHINE_CLEARS.COUNT + BACLEARS.ANY ) / CPU_CLK_UNHALTED.THREAD) / ( BR_MISP_RETIRED.ALL_BRANCHES + MACHINE_CLEARS.COUNT + BACLEARS.ANY )) / #(4 * IDQ_UOPS_NOT_DELIVERED.CYCLES_0_UOPS_DELIV.CORE / (4 * CPU_CLK_UNHALTED.THREAD)) ) * (4 * CPU_CLK_UNHALTED.THREAD) / BR_MISP_RETIRED.ALL_BRANCHES",
268        "MetricGroup": "Bad;BrMispredicts",
269        "MetricName": "Branch_Misprediction_Cost"
270    },
271    {
272        "BriefDescription": "Branch Misprediction Cost: Fraction of TMA slots wasted per non-speculative branch misprediction (retired JEClear)",
273        "MetricExpr": " ( ((BR_MISP_RETIRED.ALL_BRANCHES / ( BR_MISP_RETIRED.ALL_BRANCHES + MACHINE_CLEARS.COUNT )) * (( UOPS_ISSUED.ANY - UOPS_RETIRED.RETIRE_SLOTS + 4 * ( INT_MISC.RECOVERY_CYCLES_ANY / 2 ) ) / (4 * ( ( CPU_CLK_UNHALTED.THREAD / 2 ) * ( 1 + CPU_CLK_UNHALTED.ONE_THREAD_ACTIVE / CPU_CLK_UNHALTED.REF_XCLK ) )))) + (4 * IDQ_UOPS_NOT_DELIVERED.CYCLES_0_UOPS_DELIV.CORE / (4 * ( ( CPU_CLK_UNHALTED.THREAD / 2 ) * ( 1 + CPU_CLK_UNHALTED.ONE_THREAD_ACTIVE / CPU_CLK_UNHALTED.REF_XCLK ) ))) * (BR_MISP_RETIRED.ALL_BRANCHES * (12 * ( BR_MISP_RETIRED.ALL_BRANCHES + MACHINE_CLEARS.COUNT + BACLEARS.ANY ) / CPU_CLK_UNHALTED.THREAD) / ( BR_MISP_RETIRED.ALL_BRANCHES + MACHINE_CLEARS.COUNT + BACLEARS.ANY )) / #(4 * IDQ_UOPS_NOT_DELIVERED.CYCLES_0_UOPS_DELIV.CORE / (4 * ( ( CPU_CLK_UNHALTED.THREAD / 2 ) * ( 1 + CPU_CLK_UNHALTED.ONE_THREAD_ACTIVE / CPU_CLK_UNHALTED.REF_XCLK ) ))) ) * (4 * ( ( CPU_CLK_UNHALTED.THREAD / 2 ) * ( 1 + CPU_CLK_UNHALTED.ONE_THREAD_ACTIVE / CPU_CLK_UNHALTED.REF_XCLK ) )) / BR_MISP_RETIRED.ALL_BRANCHES",
274        "MetricGroup": "Bad;BrMispredicts_SMT",
275        "MetricName": "Branch_Misprediction_Cost_SMT"
276    },
277    {
278        "BriefDescription": "Actual Average Latency for L1 data-cache miss demand load operations (in core cycles)",
279        "MetricExpr": "L1D_PEND_MISS.PENDING / ( MEM_LOAD_UOPS_RETIRED.L1_MISS + mem_load_uops_retired.hit_lfb )",
280        "MetricGroup": "Mem;MemoryBound;MemoryLat",
281        "MetricName": "Load_Miss_Real_Latency"
282    },
283    {
284        "BriefDescription": "Memory-Level-Parallelism (average number of L1 miss demand load when there is at least one such miss. Per-Logical Processor)",
285        "MetricExpr": "L1D_PEND_MISS.PENDING / L1D_PEND_MISS.PENDING_CYCLES",
286        "MetricGroup": "Mem;MemoryBound;MemoryBW",
287        "MetricName": "MLP"
288    },
289    {
290        "BriefDescription": "L1 cache true misses per kilo instruction for retired demand loads",
291        "MetricExpr": "1000 * MEM_LOAD_UOPS_RETIRED.L1_MISS / INST_RETIRED.ANY",
292        "MetricGroup": "Mem;CacheMisses",
293        "MetricName": "L1MPKI"
294    },
295    {
296        "BriefDescription": "L2 cache true misses per kilo instruction for retired demand loads",
297        "MetricExpr": "1000 * MEM_LOAD_UOPS_RETIRED.L2_MISS / INST_RETIRED.ANY",
298        "MetricGroup": "Mem;Backend;CacheMisses",
299        "MetricName": "L2MPKI"
300    },
301    {
302        "BriefDescription": "L2 cache ([RKL+] true) misses per kilo instruction for all request types (including speculative)",
303        "MetricExpr": "1000 * L2_RQSTS.MISS / INST_RETIRED.ANY",
304        "MetricGroup": "Mem;CacheMisses;Offcore",
305        "MetricName": "L2MPKI_All"
306    },
307    {
308        "BriefDescription": "L2 cache ([RKL+] true) misses per kilo instruction for all demand loads  (including speculative)",
309        "MetricExpr": "1000 * L2_RQSTS.DEMAND_DATA_RD_MISS / INST_RETIRED.ANY",
310        "MetricGroup": "Mem;CacheMisses",
311        "MetricName": "L2MPKI_Load"
312    },
313    {
314        "BriefDescription": "L2 cache hits per kilo instruction for all request types (including speculative)",
315        "MetricExpr": "1000 * ( L2_RQSTS.REFERENCES - L2_RQSTS.MISS ) / INST_RETIRED.ANY",
316        "MetricGroup": "Mem;CacheMisses",
317        "MetricName": "L2HPKI_All"
318    },
319    {
320        "BriefDescription": "L2 cache hits per kilo instruction for all demand loads  (including speculative)",
321        "MetricExpr": "1000 * L2_RQSTS.DEMAND_DATA_RD_HIT / INST_RETIRED.ANY",
322        "MetricGroup": "Mem;CacheMisses",
323        "MetricName": "L2HPKI_Load"
324    },
325    {
326        "BriefDescription": "L3 cache true misses per kilo instruction for retired demand loads",
327        "MetricExpr": "1000 * MEM_LOAD_UOPS_RETIRED.L3_MISS / INST_RETIRED.ANY",
328        "MetricGroup": "Mem;CacheMisses",
329        "MetricName": "L3MPKI"
330    },
331    {
332        "BriefDescription": "Utilization of the core's Page Walker(s) serving STLB misses triggered by instruction/Load/Store accesses",
333        "MetricConstraint": "NO_NMI_WATCHDOG",
334        "MetricExpr": "( cpu@ITLB_MISSES.WALK_DURATION\\,cmask\\=1@ + cpu@DTLB_LOAD_MISSES.WALK_DURATION\\,cmask\\=1@ + cpu@DTLB_STORE_MISSES.WALK_DURATION\\,cmask\\=1@ + 7 * ( DTLB_STORE_MISSES.WALK_COMPLETED + DTLB_LOAD_MISSES.WALK_COMPLETED + ITLB_MISSES.WALK_COMPLETED ) ) / CPU_CLK_UNHALTED.THREAD",
335        "MetricGroup": "Mem;MemoryTLB",
336        "MetricName": "Page_Walks_Utilization"
337    },
338    {
339        "BriefDescription": "Utilization of the core's Page Walker(s) serving STLB misses triggered by instruction/Load/Store accesses",
340        "MetricExpr": "( cpu@ITLB_MISSES.WALK_DURATION\\,cmask\\=1@ + cpu@DTLB_LOAD_MISSES.WALK_DURATION\\,cmask\\=1@ + cpu@DTLB_STORE_MISSES.WALK_DURATION\\,cmask\\=1@ + 7 * ( DTLB_STORE_MISSES.WALK_COMPLETED + DTLB_LOAD_MISSES.WALK_COMPLETED + ITLB_MISSES.WALK_COMPLETED ) ) / ( ( CPU_CLK_UNHALTED.THREAD / 2 ) * ( 1 + CPU_CLK_UNHALTED.ONE_THREAD_ACTIVE / CPU_CLK_UNHALTED.REF_XCLK ) )",
341        "MetricGroup": "Mem;MemoryTLB_SMT",
342        "MetricName": "Page_Walks_Utilization_SMT"
343    },
344    {
345        "BriefDescription": "Average per-core data fill bandwidth to the L1 data cache [GB / sec]",
346        "MetricExpr": "64 * L1D.REPLACEMENT / 1000000000 / duration_time",
347        "MetricGroup": "Mem;MemoryBW",
348        "MetricName": "L1D_Cache_Fill_BW"
349    },
350    {
351        "BriefDescription": "Average per-core data fill bandwidth to the L2 cache [GB / sec]",
352        "MetricExpr": "64 * L2_LINES_IN.ALL / 1000000000 / duration_time",
353        "MetricGroup": "Mem;MemoryBW",
354        "MetricName": "L2_Cache_Fill_BW"
355    },
356    {
357        "BriefDescription": "Average per-core data fill bandwidth to the L3 cache [GB / sec]",
358        "MetricExpr": "64 * LONGEST_LAT_CACHE.MISS / 1000000000 / duration_time",
359        "MetricGroup": "Mem;MemoryBW",
360        "MetricName": "L3_Cache_Fill_BW"
361    },
362    {
363        "BriefDescription": "Average per-thread data fill bandwidth to the L1 data cache [GB / sec]",
364        "MetricExpr": "(64 * L1D.REPLACEMENT / 1000000000 / duration_time)",
365        "MetricGroup": "Mem;MemoryBW",
366        "MetricName": "L1D_Cache_Fill_BW_1T"
367    },
368    {
369        "BriefDescription": "Average per-thread data fill bandwidth to the L2 cache [GB / sec]",
370        "MetricExpr": "(64 * L2_LINES_IN.ALL / 1000000000 / duration_time)",
371        "MetricGroup": "Mem;MemoryBW",
372        "MetricName": "L2_Cache_Fill_BW_1T"
373    },
374    {
375        "BriefDescription": "Average per-thread data fill bandwidth to the L3 cache [GB / sec]",
376        "MetricExpr": "(64 * LONGEST_LAT_CACHE.MISS / 1000000000 / duration_time)",
377        "MetricGroup": "Mem;MemoryBW",
378        "MetricName": "L3_Cache_Fill_BW_1T"
379    },
380    {
381        "BriefDescription": "Average per-thread data access bandwidth to the L3 cache [GB / sec]",
382        "MetricExpr": "0",
383        "MetricGroup": "Mem;MemoryBW;Offcore",
384        "MetricName": "L3_Cache_Access_BW_1T"
385    },
386    {
387        "BriefDescription": "Average CPU Utilization",
388        "MetricExpr": "CPU_CLK_UNHALTED.REF_TSC / msr@tsc@",
389        "MetricGroup": "HPC;Summary",
390        "MetricName": "CPU_Utilization"
391    },
392    {
393        "BriefDescription": "Measured Average Frequency for unhalted processors [GHz]",
394        "MetricExpr": "(CPU_CLK_UNHALTED.THREAD / CPU_CLK_UNHALTED.REF_TSC) * msr@tsc@ / 1000000000 / duration_time",
395        "MetricGroup": "Summary;Power",
396        "MetricName": "Average_Frequency"
397    },
398    {
399        "BriefDescription": "Giga Floating Point Operations Per Second",
400        "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",
401        "MetricGroup": "Cor;Flops;HPC",
402        "MetricName": "GFLOPs",
403        "PublicDescription": "Giga Floating Point Operations Per Second. Aggregate across all supported options of: FP precisions, scalar and vector instructions, vector-width and AMX engine."
404    },
405    {
406        "BriefDescription": "Average Frequency Utilization relative nominal frequency",
407        "MetricExpr": "CPU_CLK_UNHALTED.THREAD / CPU_CLK_UNHALTED.REF_TSC",
408        "MetricGroup": "Power",
409        "MetricName": "Turbo_Utilization"
410    },
411    {
412        "BriefDescription": "Fraction of cycles where both hardware Logical Processors were active",
413        "MetricExpr": "1 - CPU_CLK_UNHALTED.ONE_THREAD_ACTIVE / ( CPU_CLK_UNHALTED.REF_XCLK_ANY / 2 ) if #SMT_on else 0",
414        "MetricGroup": "SMT",
415        "MetricName": "SMT_2T_Utilization"
416    },
417    {
418        "BriefDescription": "Fraction of cycles spent in the Operating System (OS) Kernel mode",
419        "MetricExpr": "CPU_CLK_UNHALTED.THREAD_P:k / CPU_CLK_UNHALTED.THREAD",
420        "MetricGroup": "OS",
421        "MetricName": "Kernel_Utilization"
422    },
423    {
424        "BriefDescription": "Cycles Per Instruction for the Operating System (OS) Kernel mode",
425        "MetricExpr": "CPU_CLK_UNHALTED.THREAD_P:k / INST_RETIRED.ANY_P:k",
426        "MetricGroup": "OS",
427        "MetricName": "Kernel_CPI"
428    },
429    {
430        "BriefDescription": "Average external Memory Bandwidth Use for reads and writes [GB / sec]",
431        "MetricExpr": "64 * ( arb@event\\=0x81\\,umask\\=0x1@ + arb@event\\=0x84\\,umask\\=0x1@ ) / 1000000 / duration_time / 1000",
432        "MetricGroup": "HPC;Mem;MemoryBW;SoC",
433        "MetricName": "DRAM_BW_Use"
434    },
435    {
436        "BriefDescription": "Average latency of all requests to external memory (in Uncore cycles)",
437        "MetricExpr": "UNC_ARB_TRK_OCCUPANCY.ALL / arb@event\\=0x81\\,umask\\=0x1@",
438        "MetricGroup": "Mem;SoC",
439        "MetricName": "MEM_Request_Latency"
440    },
441    {
442        "BriefDescription": "Average number of parallel requests to external memory. Accounts for all requests",
443        "MetricExpr": "UNC_ARB_TRK_OCCUPANCY.ALL / arb@event\\=0x81\\,umask\\=0x1@",
444        "MetricGroup": "Mem;SoC",
445        "MetricName": "MEM_Parallel_Requests"
446    },
447    {
448        "BriefDescription": "Instructions per Far Branch ( Far Branches apply upon transition from application to operating system, handling interrupts, exceptions) [lower number means higher occurrence rate]",
449        "MetricExpr": "INST_RETIRED.ANY / BR_INST_RETIRED.FAR_BRANCH:u",
450        "MetricGroup": "Branches;OS",
451        "MetricName": "IpFarBranch"
452    },
453    {
454        "BriefDescription": "C3 residency percent per core",
455        "MetricExpr": "(cstate_core@c3\\-residency@ / msr@tsc@) * 100",
456        "MetricGroup": "Power",
457        "MetricName": "C3_Core_Residency"
458    },
459    {
460        "BriefDescription": "C6 residency percent per core",
461        "MetricExpr": "(cstate_core@c6\\-residency@ / msr@tsc@) * 100",
462        "MetricGroup": "Power",
463        "MetricName": "C6_Core_Residency"
464    },
465    {
466        "BriefDescription": "C7 residency percent per core",
467        "MetricExpr": "(cstate_core@c7\\-residency@ / msr@tsc@) * 100",
468        "MetricGroup": "Power",
469        "MetricName": "C7_Core_Residency"
470    },
471    {
472        "BriefDescription": "C2 residency percent per package",
473        "MetricExpr": "(cstate_pkg@c2\\-residency@ / msr@tsc@) * 100",
474        "MetricGroup": "Power",
475        "MetricName": "C2_Pkg_Residency"
476    },
477    {
478        "BriefDescription": "C3 residency percent per package",
479        "MetricExpr": "(cstate_pkg@c3\\-residency@ / msr@tsc@) * 100",
480        "MetricGroup": "Power",
481        "MetricName": "C3_Pkg_Residency"
482    },
483    {
484        "BriefDescription": "C6 residency percent per package",
485        "MetricExpr": "(cstate_pkg@c6\\-residency@ / msr@tsc@) * 100",
486        "MetricGroup": "Power",
487        "MetricName": "C6_Pkg_Residency"
488    },
489    {
490        "BriefDescription": "C7 residency percent per package",
491        "MetricExpr": "(cstate_pkg@c7\\-residency@ / msr@tsc@) * 100",
492        "MetricGroup": "Power",
493        "MetricName": "C7_Pkg_Residency"
494    }
495]
496