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    },
8    {
9        "BriefDescription": "Total pipeline cost of instruction fetch related bottlenecks by large code footprint programs (i-side cache; TLB and BTB misses)",
10        "MetricExpr": "100 * (( 5 * IDQ_UOPS_NOT_DELIVERED.CYCLES_0_UOPS_DELIV.CORE - INT_MISC.UOP_DROPPING ) / TOPDOWN.SLOTS) * ( (ICACHE_64B.IFTAG_STALL / CPU_CLK_UNHALTED.THREAD) + (ICACHE_16B.IFDATA_STALL / CPU_CLK_UNHALTED.THREAD) + (10 * BACLEARS.ANY / CPU_CLK_UNHALTED.THREAD) ) / #(( 5 * IDQ_UOPS_NOT_DELIVERED.CYCLES_0_UOPS_DELIV.CORE - INT_MISC.UOP_DROPPING ) / TOPDOWN.SLOTS)",
11        "MetricGroup": "BigFoot;Fed;Frontend;IcMiss;MemoryTLB",
12        "MetricName": "Big_Code"
13    },
14    {
15        "BriefDescription": "Instructions Per Cycle (per Logical Processor)",
16        "MetricExpr": "INST_RETIRED.ANY / CPU_CLK_UNHALTED.THREAD",
17        "MetricGroup": "Ret;Summary",
18        "MetricName": "IPC"
19    },
20    {
21        "BriefDescription": "Uops Per Instruction",
22        "MetricExpr": "UOPS_RETIRED.RETIRE_SLOTS / INST_RETIRED.ANY",
23        "MetricGroup": "Pipeline;Ret;Retire",
24        "MetricName": "UPI"
25    },
26    {
27        "BriefDescription": "Instruction per taken branch",
28        "MetricExpr": "UOPS_RETIRED.RETIRE_SLOTS / BR_INST_RETIRED.NEAR_TAKEN",
29        "MetricGroup": "Branches;Fed;FetchBW",
30        "MetricName": "UpTB"
31    },
32    {
33        "BriefDescription": "Cycles Per Instruction (per Logical Processor)",
34        "MetricExpr": "1 / (INST_RETIRED.ANY / CPU_CLK_UNHALTED.THREAD)",
35        "MetricGroup": "Pipeline;Mem",
36        "MetricName": "CPI"
37    },
38    {
39        "BriefDescription": "Per-Logical Processor actual clocks when the Logical Processor is active.",
40        "MetricExpr": "CPU_CLK_UNHALTED.THREAD",
41        "MetricGroup": "Pipeline",
42        "MetricName": "CLKS"
43    },
44    {
45        "BriefDescription": "Total issue-pipeline slots (per-Physical Core till ICL; per-Logical Processor ICL onward)",
46        "MetricExpr": "TOPDOWN.SLOTS",
47        "MetricGroup": "TmaL1",
48        "MetricName": "SLOTS"
49    },
50    {
51        "BriefDescription": "Fraction of Physical Core issue-slots utilized by this Logical Processor",
52        "MetricExpr": "TOPDOWN.SLOTS / ( TOPDOWN.SLOTS / 2 ) if #SMT_on else 1",
53        "MetricGroup": "SMT",
54        "MetricName": "Slots_Utilization"
55    },
56    {
57        "BriefDescription": "The ratio of Executed- by Issued-Uops",
58        "MetricExpr": "UOPS_EXECUTED.THREAD / UOPS_ISSUED.ANY",
59        "MetricGroup": "Cor;Pipeline",
60        "MetricName": "Execute_per_Issue",
61        "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."
62    },
63    {
64        "BriefDescription": "Instructions Per Cycle across hyper-threads (per physical core)",
65        "MetricExpr": "INST_RETIRED.ANY / CPU_CLK_UNHALTED.DISTRIBUTED",
66        "MetricGroup": "Ret;SMT;TmaL1",
67        "MetricName": "CoreIPC"
68    },
69    {
70        "BriefDescription": "Floating Point Operations Per Cycle",
71        "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.DISTRIBUTED",
72        "MetricGroup": "Ret;Flops",
73        "MetricName": "FLOPc"
74    },
75    {
76        "BriefDescription": "Actual per-core usage of the Floating Point execution units (regardless of the vector width)",
77        "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 + FP_ARITH_INST_RETIRED.512B_PACKED_DOUBLE + FP_ARITH_INST_RETIRED.512B_PACKED_SINGLE) ) / ( 2 * CPU_CLK_UNHALTED.DISTRIBUTED )",
78        "MetricGroup": "Cor;Flops;HPC",
79        "MetricName": "FP_Arith_Utilization",
80        "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."
81    },
82    {
83        "BriefDescription": "Instruction-Level-Parallelism (average number of uops executed when there is at least 1 uop executed)",
84        "MetricExpr": "UOPS_EXECUTED.THREAD / (( UOPS_EXECUTED.CORE_CYCLES_GE_1 / 2 ) if #SMT_on else UOPS_EXECUTED.CORE_CYCLES_GE_1)",
85        "MetricGroup": "Backend;Cor;Pipeline;PortsUtil",
86        "MetricName": "ILP"
87    },
88    {
89        "BriefDescription": "Number of Instructions per non-speculative Branch Misprediction (JEClear)",
90        "MetricExpr": "INST_RETIRED.ANY / BR_MISP_RETIRED.ALL_BRANCHES",
91        "MetricGroup": "Bad;BadSpec;BrMispredicts",
92        "MetricName": "IpMispredict"
93    },
94    {
95        "BriefDescription": "Core actual clocks when any Logical Processor is active on the Physical Core",
96        "MetricExpr": "CPU_CLK_UNHALTED.DISTRIBUTED",
97        "MetricGroup": "SMT",
98        "MetricName": "CORE_CLKS"
99    },
100    {
101        "BriefDescription": "Instructions per Load (lower number means higher occurrence rate)",
102        "MetricExpr": "INST_RETIRED.ANY / MEM_INST_RETIRED.ALL_LOADS",
103        "MetricGroup": "InsType",
104        "MetricName": "IpLoad"
105    },
106    {
107        "BriefDescription": "Instructions per Store (lower number means higher occurrence rate)",
108        "MetricExpr": "INST_RETIRED.ANY / MEM_INST_RETIRED.ALL_STORES",
109        "MetricGroup": "InsType",
110        "MetricName": "IpStore"
111    },
112    {
113        "BriefDescription": "Instructions per Branch (lower number means higher occurrence rate)",
114        "MetricExpr": "INST_RETIRED.ANY / BR_INST_RETIRED.ALL_BRANCHES",
115        "MetricGroup": "Branches;Fed;InsType",
116        "MetricName": "IpBranch"
117    },
118    {
119        "BriefDescription": "Instructions per (near) call (lower number means higher occurrence rate)",
120        "MetricExpr": "INST_RETIRED.ANY / BR_INST_RETIRED.NEAR_CALL",
121        "MetricGroup": "Branches;Fed;PGO",
122        "MetricName": "IpCall"
123    },
124    {
125        "BriefDescription": "Instruction per taken branch",
126        "MetricExpr": "INST_RETIRED.ANY / BR_INST_RETIRED.NEAR_TAKEN",
127        "MetricGroup": "Branches;Fed;FetchBW;Frontend;PGO",
128        "MetricName": "IpTB"
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    },
136    {
137        "BriefDescription": "Instructions per Floating Point (FP) Operation (lower number means higher occurrence rate)",
138        "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 + FP_ARITH_INST_RETIRED.512B_PACKED_DOUBLE ) + 16 * FP_ARITH_INST_RETIRED.512B_PACKED_SINGLE )",
139        "MetricGroup": "Flops;InsType",
140        "MetricName": "IpFLOP"
141    },
142    {
143        "BriefDescription": "Instructions per FP Arithmetic instruction (lower number means higher occurrence rate)",
144        "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 + FP_ARITH_INST_RETIRED.512B_PACKED_DOUBLE + FP_ARITH_INST_RETIRED.512B_PACKED_SINGLE) )",
145        "MetricGroup": "Flops;InsType",
146        "MetricName": "IpArith",
147        "PublicDescription": "Instructions per FP Arithmetic instruction (lower number means higher occurrence rate). May undercount due to FMA double counting. Approximated prior to BDW."
148    },
149    {
150        "BriefDescription": "Instructions per FP Arithmetic Scalar Single-Precision instruction (lower number means higher occurrence rate)",
151        "MetricExpr": "INST_RETIRED.ANY / FP_ARITH_INST_RETIRED.SCALAR_SINGLE",
152        "MetricGroup": "Flops;FpScalar;InsType",
153        "MetricName": "IpArith_Scalar_SP",
154        "PublicDescription": "Instructions per FP Arithmetic Scalar Single-Precision instruction (lower number means higher occurrence rate). May undercount due to FMA double counting."
155    },
156    {
157        "BriefDescription": "Instructions per FP Arithmetic Scalar Double-Precision instruction (lower number means higher occurrence rate)",
158        "MetricExpr": "INST_RETIRED.ANY / FP_ARITH_INST_RETIRED.SCALAR_DOUBLE",
159        "MetricGroup": "Flops;FpScalar;InsType",
160        "MetricName": "IpArith_Scalar_DP",
161        "PublicDescription": "Instructions per FP Arithmetic Scalar Double-Precision instruction (lower number means higher occurrence rate). May undercount due to FMA double counting."
162    },
163    {
164        "BriefDescription": "Instructions per FP Arithmetic AVX/SSE 128-bit instruction (lower number means higher occurrence rate)",
165        "MetricExpr": "INST_RETIRED.ANY / ( FP_ARITH_INST_RETIRED.128B_PACKED_DOUBLE + FP_ARITH_INST_RETIRED.128B_PACKED_SINGLE )",
166        "MetricGroup": "Flops;FpVector;InsType",
167        "MetricName": "IpArith_AVX128",
168        "PublicDescription": "Instructions per FP Arithmetic AVX/SSE 128-bit instruction (lower number means higher occurrence rate). May undercount due to FMA double counting."
169    },
170    {
171        "BriefDescription": "Instructions per FP Arithmetic AVX* 256-bit instruction (lower number means higher occurrence rate)",
172        "MetricExpr": "INST_RETIRED.ANY / ( FP_ARITH_INST_RETIRED.256B_PACKED_DOUBLE + FP_ARITH_INST_RETIRED.256B_PACKED_SINGLE )",
173        "MetricGroup": "Flops;FpVector;InsType",
174        "MetricName": "IpArith_AVX256",
175        "PublicDescription": "Instructions per FP Arithmetic AVX* 256-bit instruction (lower number means higher occurrence rate). May undercount due to FMA double counting."
176    },
177    {
178        "BriefDescription": "Instructions per FP Arithmetic AVX 512-bit instruction (lower number means higher occurrence rate)",
179        "MetricExpr": "INST_RETIRED.ANY / ( FP_ARITH_INST_RETIRED.512B_PACKED_DOUBLE + FP_ARITH_INST_RETIRED.512B_PACKED_SINGLE )",
180        "MetricGroup": "Flops;FpVector;InsType",
181        "MetricName": "IpArith_AVX512",
182        "PublicDescription": "Instructions per FP Arithmetic AVX 512-bit instruction (lower number means higher occurrence rate). May undercount due to FMA double counting."
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    },
190    {
191        "BriefDescription": "Average number of Uops issued by front-end when it issued something",
192        "MetricExpr": "UOPS_ISSUED.ANY / cpu@UOPS_ISSUED.ANY\\,cmask\\=1@",
193        "MetricGroup": "Fed;FetchBW",
194        "MetricName": "Fetch_UpC"
195    },
196    {
197        "BriefDescription": "Fraction of Uops delivered by the LSD (Loop Stream Detector; aka Loop Cache)",
198        "MetricExpr": "LSD.UOPS / (IDQ.DSB_UOPS + LSD.UOPS + IDQ.MITE_UOPS + IDQ.MS_UOPS)",
199        "MetricGroup": "Fed;LSD",
200        "MetricName": "LSD_Coverage"
201    },
202    {
203        "BriefDescription": "Fraction of Uops delivered by the DSB (aka Decoded ICache; or Uop Cache)",
204        "MetricExpr": "IDQ.DSB_UOPS / (IDQ.DSB_UOPS + LSD.UOPS + IDQ.MITE_UOPS + IDQ.MS_UOPS)",
205        "MetricGroup": "DSB;Fed;FetchBW",
206        "MetricName": "DSB_Coverage"
207    },
208    {
209        "BriefDescription": "Number of Instructions per non-speculative DSB miss",
210        "MetricExpr": "INST_RETIRED.ANY / FRONTEND_RETIRED.ANY_DSB_MISS",
211        "MetricGroup": "DSBmiss;Fed",
212        "MetricName": "IpDSB_Miss_Ret"
213    },
214    {
215        "BriefDescription": "Fraction of branches that are non-taken conditionals",
216        "MetricExpr": "BR_INST_RETIRED.COND_NTAKEN / BR_INST_RETIRED.ALL_BRANCHES",
217        "MetricGroup": "Bad;Branches;CodeGen;PGO",
218        "MetricName": "Cond_NT"
219    },
220    {
221        "BriefDescription": "Fraction of branches that are taken conditionals",
222        "MetricExpr": "BR_INST_RETIRED.COND_TAKEN / BR_INST_RETIRED.ALL_BRANCHES",
223        "MetricGroup": "Bad;Branches;CodeGen;PGO",
224        "MetricName": "Cond_TK"
225    },
226    {
227        "BriefDescription": "Fraction of branches that are CALL or RET",
228        "MetricExpr": "( BR_INST_RETIRED.NEAR_CALL + BR_INST_RETIRED.NEAR_RETURN ) / BR_INST_RETIRED.ALL_BRANCHES",
229        "MetricGroup": "Bad;Branches",
230        "MetricName": "CallRet"
231    },
232    {
233        "BriefDescription": "Fraction of branches that are unconditional (direct or indirect) jumps",
234        "MetricExpr": "(BR_INST_RETIRED.NEAR_TAKEN - BR_INST_RETIRED.COND_TAKEN - 2 * BR_INST_RETIRED.NEAR_CALL) / BR_INST_RETIRED.ALL_BRANCHES",
235        "MetricGroup": "Bad;Branches",
236        "MetricName": "Jump"
237    },
238    {
239        "BriefDescription": "Fraction of branches of other types (not individually covered by other metrics in Info.Branches group)",
240        "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) )",
241        "MetricGroup": "Bad;Branches",
242        "MetricName": "Other_Branches"
243    },
244    {
245        "BriefDescription": "Actual Average Latency for L1 data-cache miss demand load instructions (in core cycles)",
246        "MetricExpr": "L1D_PEND_MISS.PENDING / ( MEM_LOAD_RETIRED.L1_MISS + MEM_LOAD_RETIRED.FB_HIT )",
247        "MetricGroup": "Mem;MemoryBound;MemoryLat",
248        "MetricName": "Load_Miss_Real_Latency",
249        "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."
250    },
251    {
252        "BriefDescription": "Memory-Level-Parallelism (average number of L1 miss demand load when there is at least one such miss. Per-Logical Processor)",
253        "MetricExpr": "L1D_PEND_MISS.PENDING / L1D_PEND_MISS.PENDING_CYCLES",
254        "MetricGroup": "Mem;MemoryBound;MemoryBW",
255        "MetricName": "MLP"
256    },
257    {
258        "BriefDescription": "Average data fill bandwidth to the L1 data cache [GB / sec]",
259        "MetricExpr": "64 * L1D.REPLACEMENT / 1000000000 / duration_time",
260        "MetricGroup": "Mem;MemoryBW",
261        "MetricName": "L1D_Cache_Fill_BW"
262    },
263    {
264        "BriefDescription": "Average data fill bandwidth to the L2 cache [GB / sec]",
265        "MetricExpr": "64 * L2_LINES_IN.ALL / 1000000000 / duration_time",
266        "MetricGroup": "Mem;MemoryBW",
267        "MetricName": "L2_Cache_Fill_BW"
268    },
269    {
270        "BriefDescription": "Average per-core data fill bandwidth to the L3 cache [GB / sec]",
271        "MetricExpr": "64 * LONGEST_LAT_CACHE.MISS / 1000000000 / duration_time",
272        "MetricGroup": "Mem;MemoryBW",
273        "MetricName": "L3_Cache_Fill_BW"
274    },
275    {
276        "BriefDescription": "Average per-core data access bandwidth to the L3 cache [GB / sec]",
277        "MetricExpr": "64 * OFFCORE_REQUESTS.ALL_REQUESTS / 1000000000 / duration_time",
278        "MetricGroup": "Mem;MemoryBW;Offcore",
279        "MetricName": "L3_Cache_Access_BW"
280    },
281    {
282        "BriefDescription": "L1 cache true misses per kilo instruction for retired demand loads",
283        "MetricExpr": "1000 * MEM_LOAD_RETIRED.L1_MISS / INST_RETIRED.ANY",
284        "MetricGroup": "Mem;CacheMisses",
285        "MetricName": "L1MPKI"
286    },
287    {
288        "BriefDescription": "L1 cache true misses per kilo instruction for all demand loads (including speculative)",
289        "MetricExpr": "1000 * L2_RQSTS.ALL_DEMAND_DATA_RD / INST_RETIRED.ANY",
290        "MetricGroup": "Mem;CacheMisses",
291        "MetricName": "L1MPKI_Load"
292    },
293    {
294        "BriefDescription": "L2 cache true misses per kilo instruction for retired demand loads",
295        "MetricExpr": "1000 * MEM_LOAD_RETIRED.L2_MISS / INST_RETIRED.ANY",
296        "MetricGroup": "Mem;Backend;CacheMisses",
297        "MetricName": "L2MPKI"
298    },
299    {
300        "BriefDescription": "L2 cache misses per kilo instruction for all request types (including speculative)",
301        "MetricExpr": "1000 * ( ( OFFCORE_REQUESTS.ALL_DATA_RD - OFFCORE_REQUESTS.DEMAND_DATA_RD ) + L2_RQSTS.ALL_DEMAND_MISS + L2_RQSTS.SWPF_MISS ) / INST_RETIRED.ANY",
302        "MetricGroup": "Mem;CacheMisses;Offcore",
303        "MetricName": "L2MPKI_All"
304    },
305    {
306        "BriefDescription": "L2 cache misses per kilo instruction for all demand loads  (including speculative)",
307        "MetricExpr": "1000 * L2_RQSTS.DEMAND_DATA_RD_MISS / INST_RETIRED.ANY",
308        "MetricGroup": "Mem;CacheMisses",
309        "MetricName": "L2MPKI_Load"
310    },
311    {
312        "BriefDescription": "L2 cache hits per kilo instruction for all demand loads  (including speculative)",
313        "MetricExpr": "1000 * L2_RQSTS.DEMAND_DATA_RD_HIT / INST_RETIRED.ANY",
314        "MetricGroup": "Mem;CacheMisses",
315        "MetricName": "L2HPKI_Load"
316    },
317    {
318        "BriefDescription": "L3 cache true misses per kilo instruction for retired demand loads",
319        "MetricExpr": "1000 * MEM_LOAD_RETIRED.L3_MISS / INST_RETIRED.ANY",
320        "MetricGroup": "Mem;CacheMisses",
321        "MetricName": "L3MPKI"
322    },
323    {
324        "BriefDescription": "Fill Buffer (FB) true hits per kilo instructions for retired demand loads",
325        "MetricExpr": "1000 * MEM_LOAD_RETIRED.FB_HIT / INST_RETIRED.ANY",
326        "MetricGroup": "Mem;CacheMisses",
327        "MetricName": "FB_HPKI"
328    },
329    {
330        "BriefDescription": "Utilization of the core's Page Walker(s) serving STLB misses triggered by instruction/Load/Store accesses",
331        "MetricConstraint": "NO_NMI_WATCHDOG",
332        "MetricExpr": "( ITLB_MISSES.WALK_PENDING + DTLB_LOAD_MISSES.WALK_PENDING + DTLB_STORE_MISSES.WALK_PENDING ) / ( 2 * CPU_CLK_UNHALTED.DISTRIBUTED )",
333        "MetricGroup": "Mem;MemoryTLB",
334        "MetricName": "Page_Walks_Utilization"
335    },
336    {
337        "BriefDescription": "Average CPU Utilization",
338        "MetricExpr": "CPU_CLK_UNHALTED.REF_TSC / msr@tsc@",
339        "MetricGroup": "HPC;Summary",
340        "MetricName": "CPU_Utilization"
341    },
342    {
343        "BriefDescription": "Measured Average Frequency for unhalted processors [GHz]",
344        "MetricExpr": "(CPU_CLK_UNHALTED.THREAD / CPU_CLK_UNHALTED.REF_TSC) * msr@tsc@ / 1000000000 / duration_time",
345        "MetricGroup": "Summary;Power",
346        "MetricName": "Average_Frequency"
347    },
348    {
349        "BriefDescription": "Giga Floating Point Operations Per Second",
350        "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",
351        "MetricGroup": "Cor;Flops;HPC",
352        "MetricName": "GFLOPs"
353    },
354    {
355        "BriefDescription": "Average Frequency Utilization relative nominal frequency",
356        "MetricExpr": "CPU_CLK_UNHALTED.THREAD / CPU_CLK_UNHALTED.REF_TSC",
357        "MetricGroup": "Power",
358        "MetricName": "Turbo_Utilization"
359    },
360    {
361        "BriefDescription": "Fraction of Core cycles where the core was running with power-delivery for baseline license level 0",
362        "MetricExpr": "CORE_POWER.LVL0_TURBO_LICENSE / CPU_CLK_UNHALTED.DISTRIBUTED",
363        "MetricGroup": "Power",
364        "MetricName": "Power_License0_Utilization",
365        "PublicDescription": "Fraction of Core cycles where the core was running with power-delivery for baseline license level 0.  This includes non-AVX codes, SSE, AVX 128-bit, and low-current AVX 256-bit codes."
366    },
367    {
368        "BriefDescription": "Fraction of Core cycles where the core was running with power-delivery for license level 1",
369        "MetricExpr": "CORE_POWER.LVL1_TURBO_LICENSE / CPU_CLK_UNHALTED.DISTRIBUTED",
370        "MetricGroup": "Power",
371        "MetricName": "Power_License1_Utilization",
372        "PublicDescription": "Fraction of Core cycles where the core was running with power-delivery for license level 1.  This includes high current AVX 256-bit instructions as well as low current AVX 512-bit instructions."
373    },
374    {
375        "BriefDescription": "Fraction of Core cycles where the core was running with power-delivery for license level 2 (introduced in SKX)",
376        "MetricExpr": "CORE_POWER.LVL2_TURBO_LICENSE / CPU_CLK_UNHALTED.DISTRIBUTED",
377        "MetricGroup": "Power",
378        "MetricName": "Power_License2_Utilization",
379        "PublicDescription": "Fraction of Core cycles where the core was running with power-delivery for license level 2 (introduced in SKX).  This includes high current AVX 512-bit instructions."
380    },
381    {
382        "BriefDescription": "Fraction of cycles where both hardware Logical Processors were active",
383        "MetricExpr": "1 - CPU_CLK_UNHALTED.ONE_THREAD_ACTIVE / CPU_CLK_UNHALTED.REF_DISTRIBUTED if #SMT_on else 0",
384        "MetricGroup": "SMT",
385        "MetricName": "SMT_2T_Utilization"
386    },
387    {
388        "BriefDescription": "Fraction of cycles spent in the Operating System (OS) Kernel mode",
389        "MetricExpr": "CPU_CLK_UNHALTED.THREAD_P:k / CPU_CLK_UNHALTED.THREAD",
390        "MetricGroup": "OS",
391        "MetricName": "Kernel_Utilization"
392    },
393    {
394        "BriefDescription": "Cycles Per Instruction for the Operating System (OS) Kernel mode",
395        "MetricExpr": "CPU_CLK_UNHALTED.THREAD_P:k / INST_RETIRED.ANY_P:k",
396        "MetricGroup": "OS",
397        "MetricName": "Kernel_CPI"
398    },
399    {
400        "BriefDescription": "Average external Memory Bandwidth Use for reads and writes [GB / sec]",
401        "MetricExpr": "64 * ( arb@event\\=0x81\\,umask\\=0x1@ + arb@event\\=0x84\\,umask\\=0x1@ ) / 1000000 / duration_time / 1000",
402        "MetricGroup": "HPC;Mem;MemoryBW;SoC",
403        "MetricName": "DRAM_BW_Use"
404    },
405    {
406        "BriefDescription": "Instructions per Far Branch ( Far Branches apply upon transition from application to operating system, handling interrupts, exceptions) [lower number means higher occurrence rate]",
407        "MetricExpr": "INST_RETIRED.ANY / BR_INST_RETIRED.FAR_BRANCH:u",
408        "MetricGroup": "Branches;OS",
409        "MetricName": "IpFarBranch"
410    },
411    {
412        "BriefDescription": "C3 residency percent per core",
413        "MetricExpr": "(cstate_core@c3\\-residency@ / msr@tsc@) * 100",
414        "MetricGroup": "Power",
415        "MetricName": "C3_Core_Residency"
416    },
417    {
418        "BriefDescription": "C6 residency percent per core",
419        "MetricExpr": "(cstate_core@c6\\-residency@ / msr@tsc@) * 100",
420        "MetricGroup": "Power",
421        "MetricName": "C6_Core_Residency"
422    },
423    {
424        "BriefDescription": "C7 residency percent per core",
425        "MetricExpr": "(cstate_core@c7\\-residency@ / msr@tsc@) * 100",
426        "MetricGroup": "Power",
427        "MetricName": "C7_Core_Residency"
428    },
429    {
430        "BriefDescription": "C2 residency percent per package",
431        "MetricExpr": "(cstate_pkg@c2\\-residency@ / msr@tsc@) * 100",
432        "MetricGroup": "Power",
433        "MetricName": "C2_Pkg_Residency"
434    },
435    {
436        "BriefDescription": "C3 residency percent per package",
437        "MetricExpr": "(cstate_pkg@c3\\-residency@ / msr@tsc@) * 100",
438        "MetricGroup": "Power",
439        "MetricName": "C3_Pkg_Residency"
440    },
441    {
442        "BriefDescription": "C6 residency percent per package",
443        "MetricExpr": "(cstate_pkg@c6\\-residency@ / msr@tsc@) * 100",
444        "MetricGroup": "Power",
445        "MetricName": "C6_Pkg_Residency"
446    },
447    {
448        "BriefDescription": "C7 residency percent per package",
449        "MetricExpr": "(cstate_pkg@c7\\-residency@ / msr@tsc@) * 100",
450        "MetricGroup": "Power",
451        "MetricName": "C7_Pkg_Residency"
452    }
453]
454