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-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 * 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        "MetricConstraint": "NO_NMI_WATCHDOG",
33        "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)) )",
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 * cycles)",
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 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. "
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 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."
58    },
59    {
60        "BriefDescription": "Instructions Per Cycle (per Logical Processor)",
61        "MetricExpr": "INST_RETIRED.ANY / CPU_CLK_UNHALTED.THREAD",
62        "MetricGroup": "Summary",
63        "MetricName": "IPC"
64    },
65    {
66        "BriefDescription": "Uops Per Instruction",
67        "MetricExpr": "UOPS_RETIRED.RETIRE_SLOTS / INST_RETIRED.ANY",
68        "MetricGroup": "Pipeline;Retire",
69        "MetricName": "UPI"
70    },
71    {
72        "BriefDescription": "Instruction per taken branch",
73        "MetricExpr": "INST_RETIRED.ANY / BR_INST_RETIRED.NEAR_TAKEN",
74        "MetricGroup": "Branches;Fetch_BW;PGO",
75        "MetricName": "IpTB"
76    },
77    {
78        "BriefDescription": "Cycles Per Instruction (per Logical Processor)",
79        "MetricExpr": "1 / (INST_RETIRED.ANY / cycles)",
80        "MetricGroup": "Pipeline;Summary",
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": "Summary",
87        "MetricName": "CLKS"
88    },
89    {
90        "BriefDescription": "Total issue-pipeline slots (per-Physical Core till ICL; per-Logical Processor ICL onward)",
91        "MetricExpr": "4 * cycles",
92        "MetricGroup": "TopDownL1",
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": "TopDownL1_SMT",
99        "MetricName": "SLOTS_SMT"
100    },
101    {
102        "BriefDescription": "Instructions per Load (lower number means higher occurrence rate)",
103        "MetricExpr": "INST_RETIRED.ANY / MEM_INST_RETIRED.ALL_LOADS",
104        "MetricGroup": "Instruction_Type",
105        "MetricName": "IpLoad"
106    },
107    {
108        "BriefDescription": "Instructions per Store (lower number means higher occurrence rate)",
109        "MetricExpr": "INST_RETIRED.ANY / MEM_INST_RETIRED.ALL_STORES",
110        "MetricGroup": "Instruction_Type",
111        "MetricName": "IpStore"
112    },
113    {
114        "BriefDescription": "Instructions per Branch (lower number means higher occurrence rate)",
115        "MetricExpr": "INST_RETIRED.ANY / BR_INST_RETIRED.ALL_BRANCHES",
116        "MetricGroup": "Branches;Instruction_Type",
117        "MetricName": "IpBranch"
118    },
119    {
120        "BriefDescription": "Instructions per (near) call (lower number means higher occurrence rate)",
121        "MetricExpr": "INST_RETIRED.ANY / BR_INST_RETIRED.NEAR_CALL",
122        "MetricGroup": "Branches",
123        "MetricName": "IpCall"
124    },
125    {
126        "BriefDescription": "Branch instructions per taken branch. ",
127        "MetricExpr": "BR_INST_RETIRED.ALL_BRANCHES / BR_INST_RETIRED.NEAR_TAKEN",
128        "MetricGroup": "Branches;PGO",
129        "MetricName": "BpTkBranch"
130    },
131    {
132        "BriefDescription": "Instructions per Floating Point (FP) Operation (lower number means higher occurrence rate)",
133        "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 )",
134        "MetricGroup": "FLOPS;FP_Arith;Instruction_Type",
135        "MetricName": "IpFLOP"
136    },
137    {
138        "BriefDescription": "Total number of retired Instructions",
139        "MetricExpr": "INST_RETIRED.ANY",
140        "MetricGroup": "Summary;TopDownL1",
141        "MetricName": "Instructions"
142    },
143    {
144        "BriefDescription": "Fraction of Uops delivered by the DSB (aka Decoded ICache; or Uop Cache)",
145        "MetricExpr": "IDQ.DSB_UOPS / (IDQ.DSB_UOPS + IDQ.MITE_UOPS + IDQ.MS_UOPS)",
146        "MetricGroup": "DSB;Fetch_BW",
147        "MetricName": "DSB_Coverage"
148    },
149    {
150        "BriefDescription": "Instructions Per Cycle (per physical core)",
151        "MetricExpr": "INST_RETIRED.ANY / cycles",
152        "MetricGroup": "SMT;TopDownL1",
153        "MetricName": "CoreIPC"
154    },
155    {
156        "BriefDescription": "Instructions Per Cycle (per physical core)",
157        "MetricExpr": "INST_RETIRED.ANY / ( ( CPU_CLK_UNHALTED.THREAD / 2 ) * ( 1 + CPU_CLK_UNHALTED.ONE_THREAD_ACTIVE / CPU_CLK_UNHALTED.REF_XCLK ) )",
158        "MetricGroup": "SMT;TopDownL1",
159        "MetricName": "CoreIPC_SMT"
160    },
161    {
162        "BriefDescription": "Floating Point Operations Per Cycle",
163        "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",
164        "MetricGroup": "FLOPS",
165        "MetricName": "FLOPc"
166    },
167    {
168        "BriefDescription": "Floating Point Operations Per Cycle",
169        "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 ) )",
170        "MetricGroup": "FLOPS_SMT",
171        "MetricName": "FLOPc_SMT"
172    },
173    {
174        "BriefDescription": "Instruction-Level-Parallelism (average number of uops executed when there is at least 1 uop executed)",
175        "MetricExpr": "UOPS_EXECUTED.THREAD / ( UOPS_EXECUTED.CORE_CYCLES_GE_1 / 2 )",
176        "MetricGroup": "Pipeline;Ports_Utilization",
177        "MetricName": "ILP"
178    },
179    {
180        "BriefDescription": "Branch Misprediction Cost: Fraction of TopDown slots wasted per non-speculative branch misprediction (jeclear)",
181        "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 - ( FRONTEND_RETIRED.LATENCY_GE_1 - FRONTEND_RETIRED.LATENCY_GE_2 ) / (UOPS_RETIRED.RETIRE_SLOTS / UOPS_ISSUED.ANY) ) / (4 * cycles)) * (( INT_MISC.CLEAR_RESTEER_CYCLES + 9 * BACLEARS.ANY ) / cycles) / (4 * ( IDQ_UOPS_NOT_DELIVERED.CYCLES_0_UOPS_DELIV.CORE - ( FRONTEND_RETIRED.LATENCY_GE_1 - FRONTEND_RETIRED.LATENCY_GE_2 ) / (UOPS_RETIRED.RETIRE_SLOTS / UOPS_ISSUED.ANY) ) / (4 * cycles)) ) * (4 * cycles) / BR_MISP_RETIRED.ALL_BRANCHES",
182        "MetricGroup": "BrMispredicts",
183        "MetricName": "Branch_Misprediction_Cost"
184    },
185    {
186        "BriefDescription": "Branch Misprediction Cost: Fraction of TopDown slots wasted per non-speculative branch misprediction (jeclear)",
187        "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 - ( FRONTEND_RETIRED.LATENCY_GE_1 - FRONTEND_RETIRED.LATENCY_GE_2 ) / (UOPS_RETIRED.RETIRE_SLOTS / UOPS_ISSUED.ANY) ) / (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 - ( FRONTEND_RETIRED.LATENCY_GE_1 - FRONTEND_RETIRED.LATENCY_GE_2 ) / (UOPS_RETIRED.RETIRE_SLOTS / UOPS_ISSUED.ANY) ) / (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",
188        "MetricGroup": "BrMispredicts_SMT",
189        "MetricName": "Branch_Misprediction_Cost_SMT"
190    },
191    {
192        "BriefDescription": "Number of Instructions per non-speculative Branch Misprediction (JEClear)",
193        "MetricExpr": "INST_RETIRED.ANY / BR_MISP_RETIRED.ALL_BRANCHES",
194        "MetricGroup": "BrMispredicts",
195        "MetricName": "IpMispredict"
196    },
197    {
198        "BriefDescription": "Core actual clocks when any Logical Processor is active on the Physical Core",
199        "MetricExpr": "( ( CPU_CLK_UNHALTED.THREAD / 2 ) * ( 1 + CPU_CLK_UNHALTED.ONE_THREAD_ACTIVE / CPU_CLK_UNHALTED.REF_XCLK ) )",
200        "MetricGroup": "SMT",
201        "MetricName": "CORE_CLKS"
202    },
203    {
204        "BriefDescription": "Actual Average Latency for L1 data-cache miss demand loads (in core cycles)",
205        "MetricExpr": "L1D_PEND_MISS.PENDING / ( MEM_LOAD_RETIRED.L1_MISS + MEM_LOAD_RETIRED.FB_HIT )",
206        "MetricGroup": "Memory_Bound;Memory_Lat",
207        "MetricName": "Load_Miss_Real_Latency"
208    },
209    {
210        "BriefDescription": "Memory-Level-Parallelism (average number of L1 miss demand load when there is at least one such miss. Per-Logical Processor)",
211        "MetricExpr": "L1D_PEND_MISS.PENDING / L1D_PEND_MISS.PENDING_CYCLES",
212        "MetricGroup": "Memory_Bound;Memory_BW",
213        "MetricName": "MLP"
214    },
215    {
216        "BriefDescription": "Utilization of the core's Page Walker(s) serving STLB misses triggered by instruction/Load/Store accesses",
217        "MetricConstraint": "NO_NMI_WATCHDOG",
218        "MetricExpr": "( ITLB_MISSES.WALK_PENDING + DTLB_LOAD_MISSES.WALK_PENDING + DTLB_STORE_MISSES.WALK_PENDING + EPT.WALK_PENDING ) / ( 2 * cycles )",
219        "MetricGroup": "TLB",
220        "MetricName": "Page_Walks_Utilization"
221    },
222    {
223        "BriefDescription": "Utilization of the core's Page Walker(s) serving STLB misses triggered by instruction/Load/Store accesses",
224        "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 ) ) )",
225        "MetricGroup": "TLB_SMT",
226        "MetricName": "Page_Walks_Utilization_SMT"
227    },
228    {
229        "BriefDescription": "Average data fill bandwidth to the L1 data cache [GB / sec]",
230        "MetricExpr": "64 * L1D.REPLACEMENT / 1000000000 / duration_time",
231        "MetricGroup": "Memory_BW",
232        "MetricName": "L1D_Cache_Fill_BW"
233    },
234    {
235        "BriefDescription": "Average data fill bandwidth to the L2 cache [GB / sec]",
236        "MetricExpr": "64 * L2_LINES_IN.ALL / 1000000000 / duration_time",
237        "MetricGroup": "Memory_BW",
238        "MetricName": "L2_Cache_Fill_BW"
239    },
240    {
241        "BriefDescription": "Average per-core data fill bandwidth to the L3 cache [GB / sec]",
242        "MetricExpr": "64 * LONGEST_LAT_CACHE.MISS / 1000000000 / duration_time",
243        "MetricGroup": "Memory_BW",
244        "MetricName": "L3_Cache_Fill_BW"
245    },
246    {
247        "BriefDescription": "Average per-core data fill bandwidth to the L3 cache [GB / sec]",
248        "MetricExpr": "64 * OFFCORE_REQUESTS.ALL_REQUESTS / 1000000000 / duration_time",
249        "MetricGroup": "Memory_BW;Offcore",
250        "MetricName": "L3_Cache_Access_BW"
251    },
252    {
253        "BriefDescription": "L1 cache true misses per kilo instruction for retired demand loads",
254        "MetricExpr": "1000 * MEM_LOAD_RETIRED.L1_MISS / INST_RETIRED.ANY",
255        "MetricGroup": "Cache_Misses",
256        "MetricName": "L1MPKI"
257    },
258    {
259        "BriefDescription": "L2 cache true misses per kilo instruction for retired demand loads",
260        "MetricExpr": "1000 * MEM_LOAD_RETIRED.L2_MISS / INST_RETIRED.ANY",
261        "MetricGroup": "Cache_Misses",
262        "MetricName": "L2MPKI"
263    },
264    {
265        "BriefDescription": "L2 cache misses per kilo instruction for all request types (including speculative)",
266        "MetricExpr": "1000 * L2_RQSTS.MISS / INST_RETIRED.ANY",
267        "MetricGroup": "Cache_Misses;Offcore",
268        "MetricName": "L2MPKI_All"
269    },
270    {
271        "BriefDescription": "L2 cache hits per kilo instruction for all request types (including speculative)",
272        "MetricExpr": "1000 * ( L2_RQSTS.REFERENCES - L2_RQSTS.MISS ) / INST_RETIRED.ANY",
273        "MetricGroup": "Cache_Misses",
274        "MetricName": "L2HPKI_All"
275    },
276    {
277        "BriefDescription": "L3 cache true misses per kilo instruction for retired demand loads",
278        "MetricExpr": "1000 * MEM_LOAD_RETIRED.L3_MISS / INST_RETIRED.ANY",
279        "MetricGroup": "Cache_Misses",
280        "MetricName": "L3MPKI"
281    },
282    {
283        "BriefDescription": "Rate of silent evictions from the L2 cache per Kilo instruction where the evicted lines are dropped (no writeback to L3 or memory)",
284        "MetricExpr": "1000 * L2_LINES_OUT.SILENT / INST_RETIRED.ANY",
285        "MetricGroup": "",
286        "MetricName": "L2_Evictions_Silent_PKI"
287    },
288    {
289        "BriefDescription": "Rate of non silent evictions from the L2 cache per Kilo instruction",
290        "MetricExpr": "1000 * L2_LINES_OUT.NON_SILENT / INST_RETIRED.ANY",
291        "MetricGroup": "",
292        "MetricName": "L2_Evictions_NonSilent_PKI"
293    },
294    {
295        "BriefDescription": "Average CPU Utilization",
296        "MetricExpr": "CPU_CLK_UNHALTED.REF_TSC / msr@tsc@",
297        "MetricGroup": "Summary",
298        "MetricName": "CPU_Utilization"
299    },
300    {
301        "BriefDescription": "Giga Floating Point Operations Per Second",
302        "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",
303        "MetricGroup": "FLOPS;Summary",
304        "MetricName": "GFLOPs"
305    },
306    {
307        "BriefDescription": "Average Frequency Utilization relative nominal frequency",
308        "MetricExpr": "CPU_CLK_UNHALTED.THREAD / CPU_CLK_UNHALTED.REF_TSC",
309        "MetricGroup": "Power",
310        "MetricName": "Turbo_Utilization"
311    },
312    {
313        "BriefDescription": "Fraction of cycles where both hardware Logical Processors were active",
314        "MetricExpr": "1 - CPU_CLK_THREAD_UNHALTED.ONE_THREAD_ACTIVE / ( CPU_CLK_THREAD_UNHALTED.REF_XCLK_ANY / 2 )",
315        "MetricGroup": "SMT;Summary",
316        "MetricName": "SMT_2T_Utilization"
317    },
318    {
319        "BriefDescription": "Fraction of cycles spent in the Operating System (OS) Kernel mode",
320        "MetricExpr": "CPU_CLK_UNHALTED.THREAD:k / CPU_CLK_UNHALTED.THREAD",
321        "MetricGroup": "OS",
322        "MetricName": "Kernel_Utilization"
323    },
324    {
325        "BriefDescription": "Average external Memory Bandwidth Use for reads and writes [GB / sec]",
326        "MetricExpr": "( ( ( uncore_imc@cas_count_read@ + uncore_imc@cas_count_write@ ) * 1048576 ) / 1000000000 ) / duration_time",
327        "MetricGroup": "Memory_BW;SoC",
328        "MetricName": "DRAM_BW_Use"
329    },
330    {
331        "BriefDescription": "Average latency of data read request to external memory (in nanoseconds). Accounts for demand loads and L1/L2 prefetches",
332        "MetricExpr": "1000000000 * ( cha@event\\=0x36\\,umask\\=0x21\\,config\\=0x40433@ / cha@event\\=0x35\\,umask\\=0x21\\,config\\=0x40433@ ) / ( cha_0@event\\=0x0@ / duration_time )",
333        "MetricGroup": "Memory_Lat;SoC",
334        "MetricName": "MEM_Read_Latency"
335    },
336    {
337        "BriefDescription": "Average number of parallel data read requests to external memory. Accounts for demand loads and L1/L2 prefetches",
338        "MetricExpr": "cha@event\\=0x36\\,umask\\=0x21\\,config\\=0x40433@ / cha@event\\=0x36\\,umask\\=0x21\\,config\\=0x40433\\,thresh\\=1@",
339        "MetricGroup": "Memory_BW;SoC",
340        "MetricName": "MEM_Parallel_Reads"
341    },
342    {
343        "BriefDescription": "Average IO (network or disk) Bandwidth Use for Writes [GB / sec]",
344        "MetricExpr": "( UNC_IIO_DATA_REQ_OF_CPU.MEM_READ.PART0 + UNC_IIO_DATA_REQ_OF_CPU.MEM_READ.PART1 + UNC_IIO_DATA_REQ_OF_CPU.MEM_READ.PART2 + UNC_IIO_DATA_REQ_OF_CPU.MEM_READ.PART3 ) * 4 / 1000000000 / duration_time",
345        "MetricGroup": "IO_BW;SoC;Server",
346        "MetricName": "IO_Write_BW"
347    },
348    {
349        "BriefDescription": "Average IO (network or disk) Bandwidth Use for Reads [GB / sec]",
350        "MetricExpr": "( UNC_IIO_DATA_REQ_OF_CPU.MEM_WRITE.PART0 + UNC_IIO_DATA_REQ_OF_CPU.MEM_WRITE.PART1 + UNC_IIO_DATA_REQ_OF_CPU.MEM_WRITE.PART2 + UNC_IIO_DATA_REQ_OF_CPU.MEM_WRITE.PART3 ) * 4 / 1000000000 / duration_time",
351        "MetricGroup": "IO_BW;SoC;Server",
352        "MetricName": "IO_Read_BW"
353    },
354    {
355        "BriefDescription": "Socket actual clocks when any core is active on that socket",
356        "MetricExpr": "cha_0@event\\=0x0@",
357        "MetricGroup": "SoC",
358        "MetricName": "Socket_CLKS"
359    },
360    {
361        "BriefDescription": "Instructions per Far Branch ( Far Branches apply upon transition from application to operating system, handling interrupts, exceptions) [lower number means higher occurrence rate]",
362        "MetricExpr": "INST_RETIRED.ANY / ( BR_INST_RETIRED.FAR_BRANCH / 2 )",
363        "MetricGroup": "Branches;OS",
364        "MetricName": "IpFarBranch"
365    },
366    {
367        "BriefDescription": "C3 residency percent per core",
368        "MetricExpr": "(cstate_core@c3\\-residency@ / msr@tsc@) * 100",
369        "MetricGroup": "Power",
370        "MetricName": "C3_Core_Residency"
371    },
372    {
373        "BriefDescription": "C6 residency percent per core",
374        "MetricExpr": "(cstate_core@c6\\-residency@ / msr@tsc@) * 100",
375        "MetricGroup": "Power",
376        "MetricName": "C6_Core_Residency"
377    },
378    {
379        "BriefDescription": "C7 residency percent per core",
380        "MetricExpr": "(cstate_core@c7\\-residency@ / msr@tsc@) * 100",
381        "MetricGroup": "Power",
382        "MetricName": "C7_Core_Residency"
383    },
384    {
385        "BriefDescription": "C2 residency percent per package",
386        "MetricExpr": "(cstate_pkg@c2\\-residency@ / msr@tsc@) * 100",
387        "MetricGroup": "Power",
388        "MetricName": "C2_Pkg_Residency"
389    },
390    {
391        "BriefDescription": "C3 residency percent per package",
392        "MetricExpr": "(cstate_pkg@c3\\-residency@ / msr@tsc@) * 100",
393        "MetricGroup": "Power",
394        "MetricName": "C3_Pkg_Residency"
395    },
396    {
397        "BriefDescription": "C6 residency percent per package",
398        "MetricExpr": "(cstate_pkg@c6\\-residency@ / msr@tsc@) * 100",
399        "MetricGroup": "Power",
400        "MetricName": "C6_Pkg_Residency"
401    },
402    {
403        "BriefDescription": "C7 residency percent per package",
404        "MetricExpr": "(cstate_pkg@c7\\-residency@ / msr@tsc@) * 100",
405        "MetricGroup": "Power",
406        "MetricName": "C7_Pkg_Residency"
407    }
408]
409