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 * cycles)",
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-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."
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-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."
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 * cycles)",
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        "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)) )",
33        "MetricGroup": "TopdownL1",
34        "MetricName": "Backend_Bound",
35        "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."
36    },
37    {
38        "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.",
39        "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 ) )))) )",
40        "MetricGroup": "TopdownL1_SMT",
41        "MetricName": "Backend_Bound_SMT",
42        "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."
43    },
44    {
45        "BriefDescription": "This category represents fraction of slots utilized by useful work i.e. issued uops that eventually get retired",
46        "MetricExpr": "UOPS_RETIRED.RETIRE_SLOTS / (4 * cycles)",
47        "MetricGroup": "TopdownL1",
48        "MetricName": "Retiring",
49        "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. "
50    },
51    {
52        "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.",
53        "MetricExpr": "UOPS_RETIRED.RETIRE_SLOTS / (4 * (( ( CPU_CLK_UNHALTED.THREAD / 2 ) * ( 1 + CPU_CLK_UNHALTED.ONE_THREAD_ACTIVE / CPU_CLK_UNHALTED.REF_XCLK ) )))",
54        "MetricGroup": "TopdownL1_SMT",
55        "MetricName": "Retiring_SMT",
56        "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."
57    },
58    {
59        "BriefDescription": "Instructions Per Cycle (per Logical Processor)",
60        "MetricExpr": "INST_RETIRED.ANY / CPU_CLK_UNHALTED.THREAD",
61        "MetricGroup": "TopDownL1",
62        "MetricName": "IPC"
63    },
64    {
65        "BriefDescription": "Uops Per Instruction",
66        "MetricExpr": "UOPS_RETIRED.RETIRE_SLOTS / INST_RETIRED.ANY",
67        "MetricGroup": "Pipeline;Retire",
68        "MetricName": "UPI"
69    },
70    {
71        "BriefDescription": "Rough Estimation of fraction of fetched lines bytes that were likely (includes speculatively fetches) consumed by program instructions",
72        "MetricExpr": "min( 1 , UOPS_ISSUED.ANY / ( (UOPS_RETIRED.RETIRE_SLOTS / INST_RETIRED.ANY) * 32 * ( ICACHE.HIT + ICACHE.MISSES ) / 4 ) )",
73        "MetricGroup": "PGO;IcMiss",
74        "MetricName": "IFetch_Line_Utilization"
75    },
76    {
77        "BriefDescription": "Fraction of Uops delivered by the DSB (aka Decoded ICache; or Uop Cache)",
78        "MetricExpr": "IDQ.DSB_UOPS / (( IDQ.DSB_UOPS + LSD.UOPS + IDQ.MITE_UOPS + IDQ.MS_UOPS ) )",
79        "MetricGroup": "DSB;Fetch_BW",
80        "MetricName": "DSB_Coverage"
81    },
82    {
83        "BriefDescription": "Cycles Per Instruction (per Logical Processor)",
84        "MetricExpr": "1 / (INST_RETIRED.ANY / cycles)",
85        "MetricGroup": "Pipeline;Summary",
86        "MetricName": "CPI"
87    },
88    {
89        "BriefDescription": "Per-Logical Processor actual clocks when the Logical Processor is active.",
90        "MetricExpr": "CPU_CLK_UNHALTED.THREAD",
91        "MetricGroup": "Summary",
92        "MetricName": "CLKS"
93    },
94    {
95        "BriefDescription": "Total issue-pipeline slots (per-Physical Core)",
96        "MetricExpr": "4 * cycles",
97        "MetricGroup": "TopDownL1",
98        "MetricName": "SLOTS"
99    },
100    {
101        "BriefDescription": "Total issue-pipeline slots (per-Physical Core)",
102        "MetricExpr": "4 * (( ( CPU_CLK_UNHALTED.THREAD / 2 ) * ( 1 + CPU_CLK_UNHALTED.ONE_THREAD_ACTIVE / CPU_CLK_UNHALTED.REF_XCLK ) ))",
103        "MetricGroup": "TopDownL1_SMT",
104        "MetricName": "SLOTS_SMT"
105    },
106    {
107        "BriefDescription": "Total number of retired Instructions",
108        "MetricExpr": "INST_RETIRED.ANY",
109        "MetricGroup": "Summary",
110        "MetricName": "Instructions"
111    },
112    {
113        "BriefDescription": "Instructions Per Cycle (per physical core)",
114        "MetricExpr": "INST_RETIRED.ANY / cycles",
115        "MetricGroup": "SMT",
116        "MetricName": "CoreIPC"
117    },
118    {
119        "BriefDescription": "Instructions Per Cycle (per physical core)",
120        "MetricExpr": "INST_RETIRED.ANY / (( ( CPU_CLK_UNHALTED.THREAD / 2 ) * ( 1 + CPU_CLK_UNHALTED.ONE_THREAD_ACTIVE / CPU_CLK_UNHALTED.REF_XCLK ) ))",
121        "MetricGroup": "SMT",
122        "MetricName": "CoreIPC_SMT"
123    },
124    {
125        "BriefDescription": "Floating Point Operations Per Cycle",
126        "MetricExpr": "(( 1 * ( FP_COMP_OPS_EXE.SSE_SCALAR_SINGLE + FP_COMP_OPS_EXE.SSE_SCALAR_DOUBLE ) + 2 * FP_COMP_OPS_EXE.SSE_PACKED_DOUBLE + 4 * ( FP_COMP_OPS_EXE.SSE_PACKED_SINGLE + SIMD_FP_256.PACKED_DOUBLE ) + 8 * SIMD_FP_256.PACKED_SINGLE )) / cycles",
127        "MetricGroup": "FLOPS",
128        "MetricName": "FLOPc"
129    },
130    {
131        "BriefDescription": "Floating Point Operations Per Cycle",
132        "MetricExpr": "(( 1 * ( FP_COMP_OPS_EXE.SSE_SCALAR_SINGLE + FP_COMP_OPS_EXE.SSE_SCALAR_DOUBLE ) + 2 * FP_COMP_OPS_EXE.SSE_PACKED_DOUBLE + 4 * ( FP_COMP_OPS_EXE.SSE_PACKED_SINGLE + SIMD_FP_256.PACKED_DOUBLE ) + 8 * SIMD_FP_256.PACKED_SINGLE )) / (( ( CPU_CLK_UNHALTED.THREAD / 2 ) * ( 1 + CPU_CLK_UNHALTED.ONE_THREAD_ACTIVE / CPU_CLK_UNHALTED.REF_XCLK ) ))",
133        "MetricGroup": "FLOPS_SMT",
134        "MetricName": "FLOPc_SMT"
135    },
136    {
137        "BriefDescription": "Instruction-Level-Parallelism (average number of uops executed when there is at least 1 uop executed)",
138        "MetricExpr": "UOPS_DISPATCHED.THREAD / (( cpu@UOPS_DISPATCHED.CORE\\,cmask\\=1@ / 2 ) if #SMT_on else cpu@UOPS_DISPATCHED.CORE\\,cmask\\=1@)",
139        "MetricGroup": "Pipeline",
140        "MetricName": "ILP"
141    },
142    {
143        "BriefDescription": "Core actual clocks when any Logical Processor is active on the Physical Core",
144        "MetricExpr": "( ( CPU_CLK_UNHALTED.THREAD / 2 ) * ( 1 + CPU_CLK_UNHALTED.ONE_THREAD_ACTIVE / CPU_CLK_UNHALTED.REF_XCLK ) )",
145        "MetricGroup": "SMT",
146        "MetricName": "CORE_CLKS"
147    },
148    {
149        "BriefDescription": "Average CPU Utilization",
150        "MetricExpr": "CPU_CLK_UNHALTED.REF_TSC / msr@tsc@",
151        "MetricGroup": "Summary",
152        "MetricName": "CPU_Utilization"
153    },
154    {
155        "BriefDescription": "Giga Floating Point Operations Per Second",
156        "MetricExpr": "( (( 1 * ( FP_COMP_OPS_EXE.SSE_SCALAR_SINGLE + FP_COMP_OPS_EXE.SSE_SCALAR_DOUBLE ) + 2 * FP_COMP_OPS_EXE.SSE_PACKED_DOUBLE + 4 * ( FP_COMP_OPS_EXE.SSE_PACKED_SINGLE + SIMD_FP_256.PACKED_DOUBLE ) + 8 * SIMD_FP_256.PACKED_SINGLE )) / 1000000000 ) / duration_time",
157        "MetricGroup": "FLOPS;Summary",
158        "MetricName": "GFLOPs"
159    },
160    {
161        "BriefDescription": "Average Frequency Utilization relative nominal frequency",
162        "MetricExpr": "CPU_CLK_UNHALTED.THREAD / CPU_CLK_UNHALTED.REF_TSC",
163        "MetricGroup": "Power",
164        "MetricName": "Turbo_Utilization"
165    },
166    {
167        "BriefDescription": "Fraction of cycles where both hardware Logical Processors were active",
168        "MetricExpr": "1 - CPU_CLK_THREAD_UNHALTED.ONE_THREAD_ACTIVE / ( CPU_CLK_THREAD_UNHALTED.REF_XCLK_ANY / 2 ) if #SMT_on else 0",
169        "MetricGroup": "SMT;Summary",
170        "MetricName": "SMT_2T_Utilization"
171    },
172    {
173        "BriefDescription": "Fraction of cycles spent in Kernel mode",
174        "MetricExpr": "CPU_CLK_UNHALTED.THREAD:k / CPU_CLK_UNHALTED.THREAD",
175        "MetricGroup": "Summary",
176        "MetricName": "Kernel_Utilization"
177    },
178    {
179        "BriefDescription": "Average external Memory Bandwidth Use for reads and writes [GB / sec]",
180        "MetricExpr": "64 * ( arb@event\\=0x81\\,umask\\=0x1@ + arb@event\\=0x84\\,umask\\=0x1@ ) / 1000000 / duration_time / 1000",
181        "MetricGroup": "Memory_BW",
182        "MetricName": "DRAM_BW_Use"
183    },
184    {
185        "BriefDescription": "C3 residency percent per core",
186        "MetricExpr": "(cstate_core@c3\\-residency@ / msr@tsc@) * 100",
187        "MetricGroup": "Power",
188        "MetricName": "C3_Core_Residency"
189    },
190    {
191        "BriefDescription": "C6 residency percent per core",
192        "MetricExpr": "(cstate_core@c6\\-residency@ / msr@tsc@) * 100",
193        "MetricGroup": "Power",
194        "MetricName": "C6_Core_Residency"
195    },
196    {
197        "BriefDescription": "C7 residency percent per core",
198        "MetricExpr": "(cstate_core@c7\\-residency@ / msr@tsc@) * 100",
199        "MetricGroup": "Power",
200        "MetricName": "C7_Core_Residency"
201    },
202    {
203        "BriefDescription": "C2 residency percent per package",
204        "MetricExpr": "(cstate_pkg@c2\\-residency@ / msr@tsc@) * 100",
205        "MetricGroup": "Power",
206        "MetricName": "C2_Pkg_Residency"
207    },
208    {
209        "BriefDescription": "C3 residency percent per package",
210        "MetricExpr": "(cstate_pkg@c3\\-residency@ / msr@tsc@) * 100",
211        "MetricGroup": "Power",
212        "MetricName": "C3_Pkg_Residency"
213    },
214    {
215        "BriefDescription": "C6 residency percent per package",
216        "MetricExpr": "(cstate_pkg@c6\\-residency@ / msr@tsc@) * 100",
217        "MetricGroup": "Power",
218        "MetricName": "C6_Pkg_Residency"
219    },
220    {
221        "BriefDescription": "C7 residency percent per package",
222        "MetricExpr": "(cstate_pkg@c7\\-residency@ / msr@tsc@) * 100",
223        "MetricGroup": "Power",
224        "MetricName": "C7_Pkg_Residency"
225    }
226]
227