1[
2    {
3        "MetricExpr": "IDQ_UOPS_NOT_DELIVERED.CORE / (4 * cycles)",
4        "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-ops (uops). Ideally the Frontend can issue 4 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.",
5        "BriefDescription": "This category represents fraction of slots where the processor's Frontend undersupplies its Backend",
6        "MetricGroup": "TopdownL1",
7        "MetricName": "Frontend_Bound"
8    },
9    {
10        "MetricExpr": "IDQ_UOPS_NOT_DELIVERED.CORE / (4 * (( ( CPU_CLK_UNHALTED.THREAD / 2 ) * ( 1 + CPU_CLK_UNHALTED.ONE_THREAD_ACTIVE / CPU_CLK_UNHALTED.REF_XCLK ) )))",
11        "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-ops (uops). Ideally the Frontend can issue 4 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.",
12        "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.",
13        "MetricGroup": "TopdownL1_SMT",
14        "MetricName": "Frontend_Bound_SMT"
15    },
16    {
17        "MetricExpr": "( UOPS_ISSUED.ANY - UOPS_RETIRED.RETIRE_SLOTS + 4 * INT_MISC.RECOVERY_CYCLES ) / (4 * cycles)",
18        "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.",
19        "BriefDescription": "This category represents fraction of slots wasted due to incorrect speculations",
20        "MetricGroup": "TopdownL1",
21        "MetricName": "Bad_Speculation"
22    },
23    {
24        "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 ) )))",
25        "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.",
26        "BriefDescription": "This category represents fraction of slots wasted due to incorrect speculations. SMT version; use when SMT is enabled and measuring per logical CPU.",
27        "MetricGroup": "TopdownL1_SMT",
28        "MetricName": "Bad_Speculation_SMT"
29    },
30    {
31        "MetricExpr": "1 - ( (IDQ_UOPS_NOT_DELIVERED.CORE / (4 * cycles)) + (( UOPS_ISSUED.ANY - UOPS_RETIRED.RETIRE_SLOTS + 4 * INT_MISC.RECOVERY_CYCLES ) / (4 * cycles)) + (UOPS_RETIRED.RETIRE_SLOTS / (4 * cycles)) )",
32        "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.",
33        "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",
34        "MetricGroup": "TopdownL1",
35        "MetricName": "Backend_Bound"
36    },
37    {
38        "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 ) )))) )",
39        "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.",
40        "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.",
41        "MetricGroup": "TopdownL1_SMT",
42        "MetricName": "Backend_Bound_SMT"
43    },
44    {
45        "MetricExpr": "UOPS_RETIRED.RETIRE_SLOTS / (4 * cycles)",
46        "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 4 uops retired per cycle has been achieved.  Maximizing Retiring typically increases the Instruction-Per-Cycle metric. Note that a high Retiring value does not necessary mean there is no room for more performance.  For example; Microcode assists are categorized under Retiring. They hurt performance and can often be avoided. ",
47        "BriefDescription": "This category represents fraction of slots utilized by useful work i.e. issued uops that eventually get retired",
48        "MetricGroup": "TopdownL1",
49        "MetricName": "Retiring"
50    },
51    {
52        "MetricExpr": "UOPS_RETIRED.RETIRE_SLOTS / (4 * (( ( CPU_CLK_UNHALTED.THREAD / 2 ) * ( 1 + CPU_CLK_UNHALTED.ONE_THREAD_ACTIVE / CPU_CLK_UNHALTED.REF_XCLK ) )))",
53        "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 4 uops retired per cycle has been achieved.  Maximizing Retiring typically increases the Instruction-Per-Cycle metric. Note that a high Retiring value does not necessary mean there is no room for more performance.  For example; Microcode assists are categorized under Retiring. They hurt performance and can often be avoided. SMT version; use when SMT is enabled and measuring per logical CPU.",
54        "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.",
55        "MetricGroup": "TopdownL1_SMT",
56        "MetricName": "Retiring_SMT"
57    },
58    {
59        "MetricExpr": "INST_RETIRED.ANY / CPU_CLK_UNHALTED.THREAD",
60        "BriefDescription": "Instructions Per Cycle (per logical thread)",
61        "MetricGroup": "TopDownL1",
62        "MetricName": "IPC"
63    },
64    {
65        "MetricExpr": "UOPS_RETIRED.RETIRE_SLOTS / INST_RETIRED.ANY",
66        "BriefDescription": "Uops Per Instruction",
67        "MetricGroup": "Pipeline;Retiring",
68        "MetricName": "UPI"
69    },
70    {
71        "MetricExpr": "INST_RETIRED.ANY / BR_INST_RETIRED.NEAR_TAKEN",
72        "BriefDescription": "Instruction per taken branch",
73        "MetricGroup": "Branches;PGO",
74        "MetricName": "IpTB"
75    },
76    {
77        "MetricExpr": "BR_INST_RETIRED.ALL_BRANCHES / BR_INST_RETIRED.NEAR_TAKEN",
78        "BriefDescription": "Branch instructions per taken branch. ",
79        "MetricGroup": "Branches;PGO",
80        "MetricName": "BpTB"
81    },
82    {
83        "MetricExpr": "min( 1 , UOPS_ISSUED.ANY / ( (UOPS_RETIRED.RETIRE_SLOTS / INST_RETIRED.ANY) * 64 * ( ICACHE_64B.IFTAG_HIT + ICACHE_64B.IFTAG_MISS ) / 4.1 ) )",
84        "BriefDescription": "Rough Estimation of fraction of fetched lines bytes that were likely (includes speculatively fetches) consumed by program instructions",
85        "MetricGroup": "PGO",
86        "MetricName": "IFetch_Line_Utilization"
87    },
88    {
89        "MetricExpr": "IDQ.DSB_UOPS / (( IDQ.DSB_UOPS + LSD.UOPS + IDQ.MITE_UOPS + IDQ.MS_UOPS ))",
90        "BriefDescription": "Fraction of Uops delivered by the DSB (aka Decoded ICache; or Uop Cache)",
91        "MetricGroup": "DSB;Frontend_Bandwidth",
92        "MetricName": "DSB_Coverage"
93    },
94    {
95        "MetricExpr": "1 / (INST_RETIRED.ANY / cycles)",
96        "BriefDescription": "Cycles Per Instruction (threaded)",
97        "MetricGroup": "Pipeline;Summary",
98        "MetricName": "CPI"
99    },
100    {
101        "MetricExpr": "CPU_CLK_UNHALTED.THREAD",
102        "BriefDescription": "Per-thread actual clocks when the logical processor is active.",
103        "MetricGroup": "Summary",
104        "MetricName": "CLKS"
105    },
106    {
107        "MetricExpr": "4 * cycles",
108        "BriefDescription": "Total issue-pipeline slots (per core)",
109        "MetricGroup": "TopDownL1",
110        "MetricName": "SLOTS"
111    },
112    {
113        "MetricExpr": "4 * (( ( CPU_CLK_UNHALTED.THREAD / 2 ) * ( 1 + CPU_CLK_UNHALTED.ONE_THREAD_ACTIVE / CPU_CLK_UNHALTED.REF_XCLK ) ))",
114        "BriefDescription": "Total issue-pipeline slots (per core)",
115        "MetricGroup": "TopDownL1_SMT",
116        "MetricName": "SLOTS_SMT"
117    },
118    {
119        "MetricExpr": "INST_RETIRED.ANY / MEM_INST_RETIRED.ALL_LOADS",
120        "BriefDescription": "Instructions per Load (lower number means loads are more frequent)",
121        "MetricGroup": "Instruction_Type;L1_Bound",
122        "MetricName": "IpL"
123    },
124    {
125        "MetricExpr": "INST_RETIRED.ANY / MEM_INST_RETIRED.ALL_STORES",
126        "BriefDescription": "Instructions per Store",
127        "MetricGroup": "Instruction_Type;Store_Bound",
128        "MetricName": "IpS"
129    },
130    {
131        "MetricExpr": "INST_RETIRED.ANY / BR_INST_RETIRED.ALL_BRANCHES",
132        "BriefDescription": "Instructions per Branch",
133        "MetricGroup": "Branches;Instruction_Type;Port_5;Port_6",
134        "MetricName": "IpB"
135    },
136    {
137        "MetricExpr": "INST_RETIRED.ANY / BR_INST_RETIRED.NEAR_CALL",
138        "BriefDescription": "Instruction per (near) call",
139        "MetricGroup": "Branches",
140        "MetricName": "IpCall"
141    },
142    {
143        "MetricExpr": "INST_RETIRED.ANY",
144        "BriefDescription": "Total number of retired Instructions",
145        "MetricGroup": "Summary",
146        "MetricName": "Instructions"
147    },
148    {
149        "MetricExpr": "INST_RETIRED.ANY / cycles",
150        "BriefDescription": "Instructions Per Cycle (per physical core)",
151        "MetricGroup": "SMT",
152        "MetricName": "CoreIPC"
153    },
154    {
155        "MetricExpr": "INST_RETIRED.ANY / (( ( CPU_CLK_UNHALTED.THREAD / 2 ) * ( 1 + CPU_CLK_UNHALTED.ONE_THREAD_ACTIVE / CPU_CLK_UNHALTED.REF_XCLK ) ))",
156        "BriefDescription": "Instructions Per Cycle (per physical core)",
157        "MetricGroup": "SMT",
158        "MetricName": "CoreIPC_SMT"
159    },
160    {
161        "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 + FP_ARITH_INST_RETIRED.512B_PACKED_DOUBLE ) + 16 * FP_ARITH_INST_RETIRED.512B_PACKED_SINGLE )) / cycles",
162        "BriefDescription": "Floating Point Operations Per Cycle",
163        "MetricGroup": "FLOPS",
164        "MetricName": "FLOPc"
165    },
166    {
167        "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 + FP_ARITH_INST_RETIRED.512B_PACKED_DOUBLE ) + 16 * FP_ARITH_INST_RETIRED.512B_PACKED_SINGLE )) / (( ( CPU_CLK_UNHALTED.THREAD / 2 ) * ( 1 + CPU_CLK_UNHALTED.ONE_THREAD_ACTIVE / CPU_CLK_UNHALTED.REF_XCLK ) ))",
168        "BriefDescription": "Floating Point Operations Per Cycle",
169        "MetricGroup": "FLOPS_SMT",
170        "MetricName": "FLOPc_SMT"
171    },
172    {
173        "MetricExpr": "UOPS_EXECUTED.THREAD / (( UOPS_EXECUTED.CORE_CYCLES_GE_1 / 2 ) if #SMT_on else UOPS_EXECUTED.CORE_CYCLES_GE_1)",
174        "BriefDescription": "Instruction-Level-Parallelism (average number of uops executed when there is at least 1 uop executed)",
175        "MetricGroup": "Pipeline;Ports_Utilization",
176        "MetricName": "ILP"
177    },
178    {
179        "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 * cycles))) + (4 * IDQ_UOPS_NOT_DELIVERED.CYCLES_0_UOPS_DELIV.CORE / (4 * cycles)) * (( INT_MISC.CLEAR_RESTEER_CYCLES + 9 * BACLEARS.ANY ) / cycles) / (4 * IDQ_UOPS_NOT_DELIVERED.CYCLES_0_UOPS_DELIV.CORE / (4 * cycles)) ) * (4 * cycles) / BR_MISP_RETIRED.ALL_BRANCHES",
180        "BriefDescription": "Branch Misprediction Cost: Fraction of TopDown slots wasted per branch misprediction (jeclear and baclear)",
181        "MetricGroup": "Branch_Mispredicts",
182        "MetricName": "Branch_Misprediction_Cost"
183    },
184    {
185        "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 ) )))) * (( INT_MISC.CLEAR_RESTEER_CYCLES + 9 * BACLEARS.ANY ) / cycles) / (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",
186        "BriefDescription": "Branch Misprediction Cost: Fraction of TopDown slots wasted per branch misprediction (jeclear and baclear)",
187        "MetricGroup": "Branch_Mispredicts_SMT",
188        "MetricName": "Branch_Misprediction_Cost_SMT"
189    },
190    {
191        "MetricExpr": "INST_RETIRED.ANY / BR_MISP_RETIRED.ALL_BRANCHES",
192        "BriefDescription": "Number of Instructions per non-speculative Branch Misprediction (JEClear)",
193        "MetricGroup": "Branch_Mispredicts",
194        "MetricName": "IpMispredict"
195    },
196    {
197        "MetricExpr": "( ( CPU_CLK_UNHALTED.THREAD / 2 ) * ( 1 + CPU_CLK_UNHALTED.ONE_THREAD_ACTIVE / CPU_CLK_UNHALTED.REF_XCLK ) )",
198        "BriefDescription": "Core actual clocks when any thread is active on the physical core",
199        "MetricGroup": "SMT",
200        "MetricName": "CORE_CLKS"
201    },
202    {
203        "MetricExpr": "L1D_PEND_MISS.PENDING / ( MEM_LOAD_RETIRED.L1_MISS + MEM_LOAD_RETIRED.FB_HIT )",
204        "BriefDescription": "Actual Average Latency for L1 data-cache miss demand loads (in core cycles)",
205        "MetricGroup": "Memory_Bound;Memory_Lat",
206        "MetricName": "Load_Miss_Real_Latency"
207    },
208    {
209        "MetricExpr": "L1D_PEND_MISS.PENDING / L1D_PEND_MISS.PENDING_CYCLES",
210        "BriefDescription": "Memory-Level-Parallelism (average number of L1 miss demand load when there is at least one such miss. Per-thread)",
211        "MetricGroup": "Memory_Bound;Memory_BW",
212        "MetricName": "MLP"
213    },
214    {
215        "MetricExpr": "( ITLB_MISSES.WALK_PENDING + DTLB_LOAD_MISSES.WALK_PENDING + DTLB_STORE_MISSES.WALK_PENDING + EPT.WALK_PENDING ) / ( 2 * cycles )",
216        "BriefDescription": "Utilization of the core's Page Walker(s) serving STLB misses triggered by instruction/Load/Store accesses",
217        "MetricGroup": "TLB",
218        "MetricName": "Page_Walks_Utilization"
219    },
220    {
221        "MetricExpr": "( ITLB_MISSES.WALK_PENDING + DTLB_LOAD_MISSES.WALK_PENDING + DTLB_STORE_MISSES.WALK_PENDING + EPT.WALK_PENDING ) / ( 2 * (( ( CPU_CLK_UNHALTED.THREAD / 2 ) * ( 1 + CPU_CLK_UNHALTED.ONE_THREAD_ACTIVE / CPU_CLK_UNHALTED.REF_XCLK ) )) )",
222        "BriefDescription": "Utilization of the core's Page Walker(s) serving STLB misses triggered by instruction/Load/Store accesses",
223        "MetricGroup": "TLB_SMT",
224        "MetricName": "Page_Walks_Utilization_SMT"
225    },
226    {
227        "MetricExpr": "64 * L1D.REPLACEMENT / 1000000000 / duration_time",
228        "BriefDescription": "Average data fill bandwidth to the L1 data cache [GB / sec]",
229        "MetricGroup": "Memory_BW",
230        "MetricName": "L1D_Cache_Fill_BW"
231    },
232    {
233        "MetricExpr": "64 * L2_LINES_IN.ALL / 1000000000 / duration_time",
234        "BriefDescription": "Average data fill bandwidth to the L2 cache [GB / sec]",
235        "MetricGroup": "Memory_BW",
236        "MetricName": "L2_Cache_Fill_BW"
237    },
238    {
239        "MetricExpr": "64 * LONGEST_LAT_CACHE.MISS / 1000000000 / duration_time",
240        "BriefDescription": "Average per-core data fill bandwidth to the L3 cache [GB / sec]",
241        "MetricGroup": "Memory_BW",
242        "MetricName": "L3_Cache_Fill_BW"
243    },
244    {
245        "MetricExpr": "64 * OFFCORE_REQUESTS.ALL_REQUESTS / 1000000000 / duration_time",
246        "BriefDescription": "Average per-core data fill bandwidth to the L3 cache [GB / sec]",
247        "MetricGroup": "Memory_BW",
248        "MetricName": "L3_Cache_Access_BW"
249    },
250    {
251        "MetricExpr": "1000 * MEM_LOAD_RETIRED.L1_MISS / INST_RETIRED.ANY",
252        "BriefDescription": "L1 cache true misses per kilo instruction for retired demand loads",
253        "MetricGroup": "Cache_Misses;",
254        "MetricName": "L1MPKI"
255    },
256    {
257        "MetricExpr": "1000 * MEM_LOAD_RETIRED.L2_MISS / INST_RETIRED.ANY",
258        "BriefDescription": "L2 cache true misses per kilo instruction for retired demand loads",
259        "MetricGroup": "Cache_Misses;",
260        "MetricName": "L2MPKI"
261    },
262    {
263        "MetricExpr": "1000 * L2_RQSTS.MISS / INST_RETIRED.ANY",
264        "BriefDescription": "L2 cache misses per kilo instruction for all request types (including speculative)",
265        "MetricGroup": "Cache_Misses;",
266        "MetricName": "L2MPKI_All"
267    },
268    {
269        "MetricExpr": "1000 * ( L2_RQSTS.REFERENCES - L2_RQSTS.MISS ) / INST_RETIRED.ANY",
270        "BriefDescription": "L2 cache hits per kilo instruction for all request types (including speculative)",
271        "MetricGroup": "Cache_Misses;",
272        "MetricName": "L2HPKI_All"
273    },
274    {
275        "MetricExpr": "1000 * MEM_LOAD_RETIRED.L3_MISS / INST_RETIRED.ANY",
276        "BriefDescription": "L3 cache true misses per kilo instruction for retired demand loads",
277        "MetricGroup": "Cache_Misses;",
278        "MetricName": "L3MPKI"
279    },
280    {
281        "MetricExpr": "CPU_CLK_UNHALTED.REF_TSC / msr@tsc@",
282        "BriefDescription": "Average CPU Utilization",
283        "MetricGroup": "Summary",
284        "MetricName": "CPU_Utilization"
285    },
286    {
287        "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 + FP_ARITH_INST_RETIRED.512B_PACKED_DOUBLE ) + 16 * FP_ARITH_INST_RETIRED.512B_PACKED_SINGLE )) / 1000000000 ) / duration_time",
288        "BriefDescription": "Giga Floating Point Operations Per Second",
289        "MetricGroup": "FLOPS;Summary",
290        "MetricName": "GFLOPs"
291    },
292    {
293        "MetricExpr": "CPU_CLK_UNHALTED.THREAD / CPU_CLK_UNHALTED.REF_TSC",
294        "BriefDescription": "Average Frequency Utilization relative nominal frequency",
295        "MetricGroup": "Power",
296        "MetricName": "Turbo_Utilization"
297    },
298    {
299        "MetricExpr": "1 - CPU_CLK_THREAD_UNHALTED.ONE_THREAD_ACTIVE / ( CPU_CLK_THREAD_UNHALTED.REF_XCLK_ANY / 2 ) if #SMT_on else 0",
300        "BriefDescription": "Fraction of cycles where both hardware threads were active",
301        "MetricGroup": "SMT;Summary",
302        "MetricName": "SMT_2T_Utilization"
303    },
304    {
305        "MetricExpr": "CPU_CLK_UNHALTED.REF_TSC:u / CPU_CLK_UNHALTED.REF_TSC",
306        "BriefDescription": "Fraction of cycles spent in Kernel mode",
307        "MetricGroup": "Summary",
308        "MetricName": "Kernel_Utilization"
309    },
310    {
311        "MetricExpr": "( 64 * ( uncore_imc@cas_count_read@ + uncore_imc@cas_count_write@ ) / 1000000000 ) / duration_time",
312        "BriefDescription": "Average external Memory Bandwidth Use for reads and writes [GB / sec]",
313        "MetricGroup": "Memory_BW",
314        "MetricName": "DRAM_BW_Use"
315    },
316    {
317	"MetricExpr": "1000000000 * ( cha@event\\=0x36\\\\\\,umask\\=0x21\\\\\\,config\\=0x40433@ / cha@event\\=0x35\\\\\\,umask\\=0x21\\\\\\,config\\=0x40433@ ) / ( cha_0@event\\=0x0@ / duration_time )",
318        "BriefDescription": "Average latency of data read request to external memory (in nanoseconds). Accounts for demand loads and L1/L2 prefetches",
319        "MetricGroup": "Memory_Lat",
320        "MetricName": "DRAM_Read_Latency"
321    },
322    {
323	"MetricExpr": "cha@event\\=0x36\\\\\\,umask\\=0x21\\\\\\,config\\=0x40433@ / cha@event\\=0x36\\\\\\,umask\\=0x21\\\\\\,thresh\\=1\\\\\\,config\\=0x40433@",
324        "BriefDescription": "Average number of parallel data read requests to external memory. Accounts for demand loads and L1/L2 prefetches",
325        "MetricGroup": "Memory_BW",
326        "MetricName": "DRAM_Parallel_Reads"
327    },
328    {
329        "MetricExpr": "( 1000000000 * ( imc@event\\=0xe0\\\\\\,umask\\=0x1@ / imc@event\\=0xe3@ ) / imc_0@event\\=0x0@ ) if 1 if 1 == 1 else 0 else 0",
330        "BriefDescription": "Average latency of data read request to external 3D X-Point memory [in nanoseconds]. Accounts for demand loads and L1/L2 data-read prefetches",
331        "MetricGroup": "Memory_Lat",
332        "MetricName": "MEM_PMM_Read_Latency"
333    },
334    {
335        "MetricExpr": "( ( 64 * imc@event\\=0xe3@ / 1000000000 ) / duration_time ) if 1 if 1 == 1 else 0 else 0",
336        "BriefDescription": "Average 3DXP Memory Bandwidth Use for reads [GB / sec]",
337        "MetricGroup": "Memory_BW",
338        "MetricName": "PMM_Read_BW"
339    },
340    {
341        "MetricExpr": "( ( 64 * imc@event\\=0xe7@ / 1000000000 ) / duration_time ) if 1 if 1 == 1 else 0 else 0",
342        "BriefDescription": "Average 3DXP Memory Bandwidth Use for Writes [GB / sec]",
343        "MetricGroup": "Memory_BW",
344        "MetricName": "PMM_Write_BW"
345    },
346    {
347        "MetricExpr": "cha_0@event\\=0x0@",
348        "BriefDescription": "Socket actual clocks when any core is active on that socket",
349        "MetricGroup": "",
350        "MetricName": "Socket_CLKS"
351    },
352    {
353        "MetricExpr": "(cstate_core@c3\\-residency@ / msr@tsc@) * 100",
354        "MetricGroup": "Power",
355        "BriefDescription": "C3 residency percent per core",
356        "MetricName": "C3_Core_Residency"
357    },
358    {
359        "MetricExpr": "(cstate_core@c6\\-residency@ / msr@tsc@) * 100",
360        "MetricGroup": "Power",
361        "BriefDescription": "C6 residency percent per core",
362        "MetricName": "C6_Core_Residency"
363    },
364    {
365        "MetricExpr": "(cstate_core@c7\\-residency@ / msr@tsc@) * 100",
366        "MetricGroup": "Power",
367        "BriefDescription": "C7 residency percent per core",
368        "MetricName": "C7_Core_Residency"
369    },
370    {
371        "MetricExpr": "(cstate_pkg@c2\\-residency@ / msr@tsc@) * 100",
372        "MetricGroup": "Power",
373        "BriefDescription": "C2 residency percent per package",
374        "MetricName": "C2_Pkg_Residency"
375    },
376    {
377        "MetricExpr": "(cstate_pkg@c3\\-residency@ / msr@tsc@) * 100",
378        "MetricGroup": "Power",
379        "BriefDescription": "C3 residency percent per package",
380        "MetricName": "C3_Pkg_Residency"
381    },
382    {
383        "MetricExpr": "(cstate_pkg@c6\\-residency@ / msr@tsc@) * 100",
384        "MetricGroup": "Power",
385        "BriefDescription": "C6 residency percent per package",
386        "MetricName": "C6_Pkg_Residency"
387    },
388    {
389        "MetricExpr": "(cstate_pkg@c7\\-residency@ / msr@tsc@) * 100",
390        "MetricGroup": "Power",
391        "BriefDescription": "C7 residency percent per package",
392        "MetricName": "C7_Pkg_Residency"
393    }
394]
395