xref: /linux/tools/perf/pmu-events/arch/x86/grandridge/grr-metrics.json (revision c532de5a67a70f8533d495f8f2aaa9a0491c3ad0)
1[
2    {
3        "BriefDescription": "C1 residency percent per core",
4        "MetricExpr": "cstate_core@c1\\-residency@ / TSC",
5        "MetricGroup": "Power",
6        "MetricName": "C1_Core_Residency",
7        "ScaleUnit": "100%"
8    },
9    {
10        "BriefDescription": "C6 residency percent per core",
11        "MetricExpr": "cstate_core@c6\\-residency@ / TSC",
12        "MetricGroup": "Power",
13        "MetricName": "C6_Core_Residency",
14        "ScaleUnit": "100%"
15    },
16    {
17        "BriefDescription": "C6 residency percent per module",
18        "MetricExpr": "cstate_module@c6\\-residency@ / TSC",
19        "MetricGroup": "Power",
20        "MetricName": "C6_Module_Residency",
21        "ScaleUnit": "100%"
22    },
23    {
24        "BriefDescription": "C6 residency percent per package",
25        "MetricExpr": "cstate_pkg@c6\\-residency@ / TSC",
26        "MetricGroup": "Power",
27        "MetricName": "C6_Pkg_Residency",
28        "ScaleUnit": "100%"
29    },
30    {
31        "BriefDescription": "Cycles per instruction retired; indicating how much time each executed instruction took; in units of cycles.",
32        "MetricExpr": "CPU_CLK_UNHALTED.THREAD / INST_RETIRED.ANY",
33        "MetricName": "cpi",
34        "ScaleUnit": "1per_instr"
35    },
36    {
37        "BriefDescription": "CPU operating frequency (in GHz)",
38        "MetricExpr": "CPU_CLK_UNHALTED.THREAD / CPU_CLK_UNHALTED.REF_TSC * #SYSTEM_TSC_FREQ / 1e9",
39        "MetricName": "cpu_operating_frequency",
40        "ScaleUnit": "1GHz"
41    },
42    {
43        "BriefDescription": "Percentage of time spent in the active CPU power state C0",
44        "MetricExpr": "tma_info_system_cpu_utilization",
45        "MetricName": "cpu_utilization",
46        "ScaleUnit": "100%"
47    },
48    {
49        "BriefDescription": "Ratio of number of completed page walks (for 2 megabyte page sizes) caused by demand data loads to the total number of completed instructions",
50        "MetricExpr": "DTLB_LOAD_MISSES.WALK_COMPLETED_2M_4M / INST_RETIRED.ANY",
51        "MetricName": "dtlb_2nd_level_2mb_large_page_load_mpi",
52        "PublicDescription": "Ratio of number of completed page walks (for 2 megabyte page sizes) caused by demand data loads to the total number of completed instructions. This implies it missed in the Data Translation Lookaside Buffer (DTLB) and further levels of TLB.",
53        "ScaleUnit": "1per_instr"
54    },
55    {
56        "BriefDescription": "Ratio of number of completed page walks (for all page sizes) caused by demand data loads to the total number of completed instructions",
57        "MetricExpr": "DTLB_LOAD_MISSES.WALK_COMPLETED / INST_RETIRED.ANY",
58        "MetricName": "dtlb_2nd_level_load_mpi",
59        "PublicDescription": "Ratio of number of completed page walks (for all page sizes) caused by demand data loads to the total number of completed instructions. This implies it missed in the DTLB and further levels of TLB.",
60        "ScaleUnit": "1per_instr"
61    },
62    {
63        "BriefDescription": "Ratio of number of completed page walks (for all page sizes) caused by demand data stores to the total number of completed instructions",
64        "MetricExpr": "DTLB_STORE_MISSES.WALK_COMPLETED / INST_RETIRED.ANY",
65        "MetricName": "dtlb_2nd_level_store_mpi",
66        "PublicDescription": "Ratio of number of completed page walks (for all page sizes) caused by demand data stores to the total number of completed instructions. This implies it missed in the DTLB and further levels of TLB.",
67        "ScaleUnit": "1per_instr"
68    },
69    {
70        "BriefDescription": "Bandwidth of IO reads that are initiated by end device controllers that are requesting memory from the CPU.",
71        "MetricExpr": "UNC_CHA_TOR_INSERTS.IO_PCIRDCUR * 64 / 1e6 / duration_time",
72        "MetricName": "io_bandwidth_read",
73        "ScaleUnit": "1MB/s"
74    },
75    {
76        "BriefDescription": "Bandwidth of IO writes that are initiated by end device controllers that are writing memory to the CPU.",
77        "MetricExpr": "(UNC_CHA_TOR_INSERTS.IO_ITOM + UNC_CHA_TOR_INSERTS.IO_ITOMCACHENEAR) * 64 / 1e6 / duration_time",
78        "MetricName": "io_bandwidth_write",
79        "ScaleUnit": "1MB/s"
80    },
81    {
82        "BriefDescription": "Ratio of number of completed page walks (for 2 megabyte and 4 megabyte page sizes) caused by a code fetch to the total number of completed instructions",
83        "MetricExpr": "ITLB_MISSES.WALK_COMPLETED_2M_4M / INST_RETIRED.ANY",
84        "MetricName": "itlb_2nd_level_large_page_mpi",
85        "PublicDescription": "Ratio of number of completed page walks (for 2 megabyte and 4 megabyte page sizes) caused by a code fetch to the total number of completed instructions. This implies it missed in the Instruction Translation Lookaside Buffer (ITLB) and further levels of TLB.",
86        "ScaleUnit": "1per_instr"
87    },
88    {
89        "BriefDescription": "Ratio of number of completed page walks (for all page sizes) caused by a code fetch to the total number of completed instructions",
90        "MetricExpr": "ITLB_MISSES.WALK_COMPLETED / INST_RETIRED.ANY",
91        "MetricName": "itlb_2nd_level_mpi",
92        "PublicDescription": "Ratio of number of completed page walks (for all page sizes) caused by a code fetch to the total number of completed instructions. This implies it missed in the ITLB (Instruction TLB) and further levels of TLB.",
93        "ScaleUnit": "1per_instr"
94    },
95    {
96        "BriefDescription": "Ratio of number of code read requests missing in L1 instruction cache (includes prefetches) to the total number of completed instructions",
97        "MetricExpr": "ICACHE.MISSES / INST_RETIRED.ANY",
98        "MetricName": "l1_i_code_read_misses_with_prefetches_per_instr",
99        "ScaleUnit": "1per_instr"
100    },
101    {
102        "BriefDescription": "Ratio of number of demand load requests hitting in L1 data cache to the total number of completed instructions",
103        "MetricExpr": "MEM_LOAD_UOPS_RETIRED.L1_HIT / INST_RETIRED.ANY",
104        "MetricName": "l1d_demand_data_read_hits_per_instr",
105        "ScaleUnit": "1per_instr"
106    },
107    {
108        "BriefDescription": "Ratio of number of completed demand load requests hitting in L2 cache to the total number of completed instructions",
109        "MetricExpr": "MEM_LOAD_UOPS_RETIRED.L2_HIT / INST_RETIRED.ANY",
110        "MetricName": "l2_demand_data_read_hits_per_instr",
111        "ScaleUnit": "1per_instr"
112    },
113    {
114        "BriefDescription": "Ratio of number of completed data read request missing L2 cache to the total number of completed instructions",
115        "MetricExpr": "MEM_LOAD_UOPS_RETIRED.L2_MISS / INST_RETIRED.ANY",
116        "MetricName": "l2_demand_data_read_mpi",
117        "ScaleUnit": "1per_instr"
118    },
119    {
120        "BriefDescription": "Ratio of number of requests missing L2 cache (includes code+data+rfo w/ prefetches) to the total number of completed instructions",
121        "MetricExpr": "LONGEST_LAT_CACHE.REFERENCE / INST_RETIRED.ANY",
122        "MetricName": "l2_mpi",
123        "ScaleUnit": "1per_instr"
124    },
125    {
126        "BriefDescription": "Ratio of number of code read requests missing last level core cache (includes demand w/ prefetches) to the total number of completed instructions",
127        "MetricExpr": "(UNC_CHA_TOR_INSERTS.IA_MISS_CRD + UNC_CHA_TOR_INSERTS.IA_MISS_CRD_PREF) / INST_RETIRED.ANY",
128        "MetricName": "llc_code_read_mpi_demand_plus_prefetch",
129        "ScaleUnit": "1per_instr"
130    },
131    {
132        "BriefDescription": "Ratio of number of data read requests missing last level core cache (includes demand w/ prefetches) to the total number of completed instructions",
133        "MetricExpr": "(UNC_CHA_TOR_INSERTS.IA_MISS_DRD_OPT + UNC_CHA_TOR_INSERTS.IA_MISS_DRD_OPT_PREF + UNC_CHA_TOR_INSERTS.IA_MISS_LLCPREFDATA) / INST_RETIRED.ANY",
134        "MetricName": "llc_data_read_mpi_demand_plus_prefetch",
135        "ScaleUnit": "1per_instr"
136    },
137    {
138        "BriefDescription": "Average latency of a last level cache (LLC) demand data read miss (read memory access) in nano seconds",
139        "MetricExpr": "1e9 * (UNC_CHA_TOR_OCCUPANCY.IA_MISS_DRD_OPT / UNC_CHA_TOR_INSERTS.IA_MISS_DRD_OPT) / (UNC_CHA_CLOCKTICKS / (source_count(UNC_CHA_TOR_OCCUPANCY.IA_MISS_DRD_OPT) * #num_packages)) * duration_time",
140        "MetricName": "llc_demand_data_read_miss_latency",
141        "ScaleUnit": "1ns"
142    },
143    {
144        "BriefDescription": "Load operations retired per instruction",
145        "MetricExpr": "MEM_UOPS_RETIRED.ALL_LOADS / INST_RETIRED.ANY",
146        "MetricName": "loads_retired_per_instr",
147        "ScaleUnit": "1per_instr"
148    },
149    {
150        "BriefDescription": "DDR memory read bandwidth (MB/sec)",
151        "MetricExpr": "(UNC_M_CAS_COUNT_SCH0.RD + UNC_M_CAS_COUNT_SCH1.RD) * 64 / 1e6 / duration_time",
152        "MetricName": "memory_bandwidth_read",
153        "ScaleUnit": "1MB/s"
154    },
155    {
156        "BriefDescription": "DDR memory bandwidth (MB/sec)",
157        "MetricExpr": "(UNC_M_CAS_COUNT_SCH0.RD + UNC_M_CAS_COUNT_SCH1.RD + UNC_M_CAS_COUNT_SCH0.WR + UNC_M_CAS_COUNT_SCH1.WR) * 64 / 1e6 / duration_time",
158        "MetricName": "memory_bandwidth_total",
159        "ScaleUnit": "1MB/s"
160    },
161    {
162        "BriefDescription": "DDR memory write bandwidth (MB/sec)",
163        "MetricExpr": "(UNC_M_CAS_COUNT_SCH0.WR + UNC_M_CAS_COUNT_SCH1.WR) * 64 / 1e6 / duration_time",
164        "MetricName": "memory_bandwidth_write",
165        "ScaleUnit": "1MB/s"
166    },
167    {
168        "BriefDescription": "Percentage of cycles spent in System Management Interrupts.",
169        "MetricExpr": "((msr@aperf@ - cycles) / msr@aperf@ if msr@smi@ > 0 else 0)",
170        "MetricGroup": "smi",
171        "MetricName": "smi_cycles",
172        "MetricThreshold": "smi_cycles > 0.1",
173        "ScaleUnit": "100%"
174    },
175    {
176        "BriefDescription": "Number of SMI interrupts.",
177        "MetricExpr": "msr@smi@",
178        "MetricGroup": "smi",
179        "MetricName": "smi_num",
180        "ScaleUnit": "1SMI#"
181    },
182    {
183        "BriefDescription": "Store operations retired per instruction",
184        "MetricExpr": "MEM_UOPS_RETIRED.ALL_STORES / INST_RETIRED.ANY",
185        "MetricName": "stores_retired_per_instr",
186        "ScaleUnit": "1per_instr"
187    },
188    {
189        "BriefDescription": "Counts the number of issue slots that were not consumed by the backend due to certain allocation restrictions",
190        "MetricExpr": "tma_core_bound",
191        "MetricGroup": "TopdownL3;tma_L3_group;tma_core_bound_group",
192        "MetricName": "tma_allocation_restriction",
193        "MetricThreshold": "tma_allocation_restriction > 0.1 & (tma_core_bound > 0.1 & tma_backend_bound > 0.1)",
194        "ScaleUnit": "100%"
195    },
196    {
197        "BriefDescription": "Counts the total number of issue slots that were not consumed by the backend due to backend stalls",
198        "MetricExpr": "TOPDOWN_BE_BOUND.ALL_P / (6 * CPU_CLK_UNHALTED.CORE)",
199        "MetricGroup": "TopdownL1;tma_L1_group",
200        "MetricName": "tma_backend_bound",
201        "MetricThreshold": "tma_backend_bound > 0.1",
202        "MetricgroupNoGroup": "TopdownL1",
203        "PublicDescription": "Counts the total number of issue slots that were not consumed by the backend due to backend stalls. Note that uops must be available for consumption in order for this event to count. If a uop is not available (IQ is empty), this event will not count",
204        "ScaleUnit": "100%"
205    },
206    {
207        "BriefDescription": "Counts the total number of issue slots that were not consumed by the backend because allocation is stalled due to a mispredicted jump or a machine clear",
208        "MetricExpr": "TOPDOWN_BAD_SPECULATION.ALL_P / (6 * CPU_CLK_UNHALTED.CORE)",
209        "MetricGroup": "TopdownL1;tma_L1_group",
210        "MetricName": "tma_bad_speculation",
211        "MetricThreshold": "tma_bad_speculation > 0.15",
212        "MetricgroupNoGroup": "TopdownL1",
213        "PublicDescription": "Counts the total number of issue slots that were not consumed by the backend because allocation is stalled due to a mispredicted jump or a machine clear. Only issue slots wasted due to fast nukes such as memory ordering nukes are counted. Other nukes are not accounted for. Counts all issue slots blocked during this recovery window including relevant microcode flows and while uops are not yet available in the instruction queue (IQ). Also includes the issue slots that were consumed by the backend but were thrown away because they were younger than the mispredict or machine clear.",
214        "ScaleUnit": "100%"
215    },
216    {
217        "BriefDescription": "Counts the number of issue slots that were not delivered by the frontend due to BACLEARS, which occurs when the Branch Target Buffer (BTB) prediction or lack thereof, was corrected by a later branch predictor in the frontend",
218        "MetricExpr": "TOPDOWN_FE_BOUND.BRANCH_DETECT / (6 * CPU_CLK_UNHALTED.CORE)",
219        "MetricGroup": "TopdownL3;tma_L3_group;tma_ifetch_latency_group",
220        "MetricName": "tma_branch_detect",
221        "MetricThreshold": "tma_branch_detect > 0.05 & (tma_ifetch_latency > 0.15 & tma_frontend_bound > 0.2)",
222        "PublicDescription": "Counts the number of issue slots that were not delivered by the frontend due to BACLEARS, which occurs when the Branch Target Buffer (BTB) prediction or lack thereof, was corrected by a later branch predictor in the frontend. Includes BACLEARS due to all branch types including conditional and unconditional jumps, returns, and indirect branches.",
223        "ScaleUnit": "100%"
224    },
225    {
226        "BriefDescription": "Counts the number of issue slots that were not consumed by the backend due to branch mispredicts",
227        "MetricExpr": "TOPDOWN_BAD_SPECULATION.MISPREDICT / (6 * CPU_CLK_UNHALTED.CORE)",
228        "MetricGroup": "TopdownL2;tma_L2_group;tma_bad_speculation_group",
229        "MetricName": "tma_branch_mispredicts",
230        "MetricThreshold": "tma_branch_mispredicts > 0.05 & tma_bad_speculation > 0.15",
231        "MetricgroupNoGroup": "TopdownL2",
232        "ScaleUnit": "100%"
233    },
234    {
235        "BriefDescription": "Counts the number of issue slots that were not delivered by the frontend due to BTCLEARS, which occurs when the Branch Target Buffer (BTB) predicts a taken branch.",
236        "MetricExpr": "TOPDOWN_FE_BOUND.BRANCH_RESTEER / (6 * CPU_CLK_UNHALTED.CORE)",
237        "MetricGroup": "TopdownL3;tma_L3_group;tma_ifetch_latency_group",
238        "MetricName": "tma_branch_resteer",
239        "MetricThreshold": "tma_branch_resteer > 0.05 & (tma_ifetch_latency > 0.15 & tma_frontend_bound > 0.2)",
240        "ScaleUnit": "100%"
241    },
242    {
243        "BriefDescription": "Counts the number of issue slots that were not delivered by the frontend due to the microcode sequencer (MS).",
244        "MetricExpr": "TOPDOWN_FE_BOUND.CISC / (6 * CPU_CLK_UNHALTED.CORE)",
245        "MetricGroup": "TopdownL3;tma_L3_group;tma_ifetch_bandwidth_group",
246        "MetricName": "tma_cisc",
247        "MetricThreshold": "tma_cisc > 0.05 & (tma_ifetch_bandwidth > 0.1 & tma_frontend_bound > 0.2)",
248        "ScaleUnit": "100%"
249    },
250    {
251        "BriefDescription": "Counts the number of cycles due to backend bound stalls that are bounded by core restrictions and not attributed to an outstanding load or stores, or resource limitation",
252        "MetricExpr": "TOPDOWN_BE_BOUND.ALLOC_RESTRICTIONS / (6 * CPU_CLK_UNHALTED.CORE)",
253        "MetricGroup": "TopdownL2;tma_L2_group;tma_backend_bound_group",
254        "MetricName": "tma_core_bound",
255        "MetricThreshold": "tma_core_bound > 0.1 & tma_backend_bound > 0.1",
256        "MetricgroupNoGroup": "TopdownL2",
257        "ScaleUnit": "100%"
258    },
259    {
260        "BriefDescription": "Counts the number of issue slots that were not delivered by the frontend due to decode stalls.",
261        "MetricExpr": "TOPDOWN_FE_BOUND.DECODE / (6 * CPU_CLK_UNHALTED.CORE)",
262        "MetricGroup": "TopdownL3;tma_L3_group;tma_ifetch_bandwidth_group",
263        "MetricName": "tma_decode",
264        "MetricThreshold": "tma_decode > 0.05 & (tma_ifetch_bandwidth > 0.1 & tma_frontend_bound > 0.2)",
265        "ScaleUnit": "100%"
266    },
267    {
268        "BriefDescription": "Counts the number of issue slots that were not consumed by the backend due to a machine clear that does not require the use of microcode, classified as a fast nuke, due to memory ordering, memory disambiguation and memory renaming",
269        "MetricExpr": "TOPDOWN_BAD_SPECULATION.FASTNUKE / (6 * CPU_CLK_UNHALTED.CORE)",
270        "MetricGroup": "TopdownL3;tma_L3_group;tma_machine_clears_group",
271        "MetricName": "tma_fast_nuke",
272        "MetricThreshold": "tma_fast_nuke > 0.05 & (tma_machine_clears > 0.05 & tma_bad_speculation > 0.15)",
273        "ScaleUnit": "100%"
274    },
275    {
276        "BriefDescription": "Counts the number of issue slots that were not consumed by the backend due to frontend stalls.",
277        "MetricExpr": "TOPDOWN_FE_BOUND.ALL_P / (6 * CPU_CLK_UNHALTED.CORE)",
278        "MetricGroup": "TopdownL1;tma_L1_group",
279        "MetricName": "tma_frontend_bound",
280        "MetricThreshold": "tma_frontend_bound > 0.2",
281        "MetricgroupNoGroup": "TopdownL1",
282        "ScaleUnit": "100%"
283    },
284    {
285        "BriefDescription": "Counts the number of issue slots that were not delivered by the frontend due to instruction cache misses.",
286        "MetricExpr": "TOPDOWN_FE_BOUND.ICACHE / (6 * CPU_CLK_UNHALTED.CORE)",
287        "MetricGroup": "TopdownL3;tma_L3_group;tma_ifetch_latency_group",
288        "MetricName": "tma_icache_misses",
289        "MetricThreshold": "tma_icache_misses > 0.05 & (tma_ifetch_latency > 0.15 & tma_frontend_bound > 0.2)",
290        "ScaleUnit": "100%"
291    },
292    {
293        "BriefDescription": "Counts the number of issue slots that were not delivered by the frontend due to frontend bandwidth restrictions due to decode, predecode, cisc, and other limitations.",
294        "MetricExpr": "TOPDOWN_FE_BOUND.FRONTEND_BANDWIDTH / (6 * CPU_CLK_UNHALTED.CORE)",
295        "MetricGroup": "TopdownL2;tma_L2_group;tma_frontend_bound_group",
296        "MetricName": "tma_ifetch_bandwidth",
297        "MetricThreshold": "tma_ifetch_bandwidth > 0.1 & tma_frontend_bound > 0.2",
298        "MetricgroupNoGroup": "TopdownL2",
299        "ScaleUnit": "100%"
300    },
301    {
302        "BriefDescription": "Counts the number of issue slots that were not delivered by the frontend due to frontend latency restrictions due to icache misses, itlb misses, branch detection, and resteer limitations.",
303        "MetricExpr": "TOPDOWN_FE_BOUND.FRONTEND_LATENCY / (6 * CPU_CLK_UNHALTED.CORE)",
304        "MetricGroup": "TopdownL2;tma_L2_group;tma_frontend_bound_group",
305        "MetricName": "tma_ifetch_latency",
306        "MetricThreshold": "tma_ifetch_latency > 0.15 & tma_frontend_bound > 0.2",
307        "MetricgroupNoGroup": "TopdownL2",
308        "ScaleUnit": "100%"
309    },
310    {
311        "BriefDescription": "Instructions per Floating Point (FP) Operation",
312        "MetricExpr": "INST_RETIRED.ANY / FP_FLOPS_RETIRED.ALL",
313        "MetricGroup": "Flops",
314        "MetricName": "tma_info_arith_inst_mix_ipflop"
315    },
316    {
317        "BriefDescription": "Instructions per FP Arithmetic AVX/SSE 128-bit instruction",
318        "MetricExpr": "INST_RETIRED.ANY / (FP_INST_RETIRED.128B_DP + FP_INST_RETIRED.128B_SP)",
319        "MetricGroup": "Flops",
320        "MetricName": "tma_info_arith_inst_mix_ipfparith_avx128"
321    },
322    {
323        "BriefDescription": "Instructions per FP Arithmetic Scalar Double-Precision instruction",
324        "MetricExpr": "INST_RETIRED.ANY / FP_INST_RETIRED.64B_DP",
325        "MetricGroup": "Flops",
326        "MetricName": "tma_info_arith_inst_mix_ipfparith_scalar_dp"
327    },
328    {
329        "BriefDescription": "Instructions per FP Arithmetic Scalar Single-Precision instruction",
330        "MetricExpr": "INST_RETIRED.ANY / FP_INST_RETIRED.32B_SP",
331        "MetricGroup": "Flops",
332        "MetricName": "tma_info_arith_inst_mix_ipfparith_scalar_sp"
333    },
334    {
335        "BriefDescription": "Percentage of time that retirement is stalled due to a first level data TLB miss",
336        "MetricExpr": "tma_info_bottleneck_dtlb_miss_bound_cycles",
337        "MetricName": "tma_info_bottleneck_%_dtlb_miss_bound_cycles"
338    },
339    {
340        "BriefDescription": "Percentage of time that allocation and retirement is stalled by the Frontend Cluster due to an Ifetch Miss, either Icache or ITLB Miss",
341        "MetricExpr": "tma_info_bottleneck_ifetch_miss_bound_cycles",
342        "MetricGroup": "Ifetch",
343        "MetricName": "tma_info_bottleneck_%_ifetch_miss_bound_cycles",
344        "PublicDescription": "Percentage of time that allocation and retirement is stalled by the Frontend Cluster due to an Ifetch Miss, either Icache or ITLB Miss. See Info.Ifetch_Bound"
345    },
346    {
347        "BriefDescription": "Percentage of time that retirement is stalled due to an L1 miss",
348        "MetricExpr": "tma_info_bottleneck_load_miss_bound_cycles",
349        "MetricGroup": "Load_Store_Miss",
350        "MetricName": "tma_info_bottleneck_%_load_miss_bound_cycles",
351        "PublicDescription": "Percentage of time that retirement is stalled due to an L1 miss. See Info.Load_Miss_Bound"
352    },
353    {
354        "BriefDescription": "Percentage of time that retirement is stalled by the Memory Cluster due to a pipeline stall",
355        "MetricExpr": "tma_info_bottleneck_mem_exec_bound_cycles",
356        "MetricGroup": "Mem_Exec",
357        "MetricName": "tma_info_bottleneck_%_mem_exec_bound_cycles",
358        "PublicDescription": "Percentage of time that retirement is stalled by the Memory Cluster due to a pipeline stall. See Info.Mem_Exec_Bound"
359    },
360    {
361        "BriefDescription": "Percentage of time that retirement is stalled due to a first level data TLB miss",
362        "MetricExpr": "100 * (LD_HEAD.DTLB_MISS_AT_RET + LD_HEAD.PGWALK_AT_RET) / CPU_CLK_UNHALTED.CORE",
363        "MetricGroup": "Cycles",
364        "MetricName": "tma_info_bottleneck_dtlb_miss_bound_cycles",
365        "ScaleUnit": "100%"
366    },
367    {
368        "BriefDescription": "Percentage of time that allocation and retirement is stalled by the Frontend Cluster due to an Ifetch Miss, either Icache or ITLB Miss",
369        "MetricExpr": "100 * MEM_BOUND_STALLS_IFETCH.ALL / CPU_CLK_UNHALTED.CORE",
370        "MetricGroup": "Cycles;Ifetch",
371        "MetricName": "tma_info_bottleneck_ifetch_miss_bound_cycles",
372        "PublicDescription": "Percentage of time that allocation and retirement is stalled by the Frontend Cluster due to an Ifetch Miss, either Icache or ITLB Miss. See Info.Ifetch_Bound",
373        "ScaleUnit": "100%"
374    },
375    {
376        "BriefDescription": "Percentage of time that retirement is stalled due to an L1 miss",
377        "MetricExpr": "100 * MEM_BOUND_STALLS_LOAD.ALL / CPU_CLK_UNHALTED.CORE",
378        "MetricGroup": "Cycles;Load_Store_Miss",
379        "MetricName": "tma_info_bottleneck_load_miss_bound_cycles",
380        "PublicDescription": "Percentage of time that retirement is stalled due to an L1 miss. See Info.Load_Miss_Bound",
381        "ScaleUnit": "100%"
382    },
383    {
384        "BriefDescription": "Percentage of time that retirement is stalled by the Memory Cluster due to a pipeline stall",
385        "MetricExpr": "100 * LD_HEAD.ANY_AT_RET / CPU_CLK_UNHALTED.CORE",
386        "MetricGroup": "Cycles;Mem_Exec",
387        "MetricName": "tma_info_bottleneck_mem_exec_bound_cycles",
388        "PublicDescription": "Percentage of time that retirement is stalled by the Memory Cluster due to a pipeline stall. See Info.Mem_Exec_Bound",
389        "ScaleUnit": "100%"
390    },
391    {
392        "BriefDescription": "Instructions per Branch (lower number means higher occurrence rate)",
393        "MetricExpr": "INST_RETIRED.ANY / BR_INST_RETIRED.ALL_BRANCHES",
394        "MetricName": "tma_info_br_inst_mix_ipbranch"
395    },
396    {
397        "BriefDescription": "Instruction per (near) call (lower number means higher occurrence rate)",
398        "MetricExpr": "INST_RETIRED.ANY / BR_INST_RETIRED.NEAR_CALL",
399        "MetricName": "tma_info_br_inst_mix_ipcall"
400    },
401    {
402        "BriefDescription": "Instructions per Far Branch ( Far Branches apply upon transition from application to operating system, handling interrupts, exceptions) [lower number means higher occurrence rate]",
403        "MetricExpr": "INST_RETIRED.ANY / BR_INST_RETIRED.FAR_BRANCH:u",
404        "MetricName": "tma_info_br_inst_mix_ipfarbranch"
405    },
406    {
407        "BriefDescription": "Instructions per retired conditional Branch Misprediction where the branch was not taken",
408        "MetricExpr": "INST_RETIRED.ANY / (BR_MISP_RETIRED.COND - BR_MISP_RETIRED.COND_TAKEN)",
409        "MetricName": "tma_info_br_inst_mix_ipmisp_cond_ntaken"
410    },
411    {
412        "BriefDescription": "Instructions per retired conditional Branch Misprediction where the branch was taken",
413        "MetricExpr": "INST_RETIRED.ANY / BR_MISP_RETIRED.COND_TAKEN",
414        "MetricName": "tma_info_br_inst_mix_ipmisp_cond_taken"
415    },
416    {
417        "BriefDescription": "Instructions per retired indirect call or jump Branch Misprediction",
418        "MetricExpr": "INST_RETIRED.ANY / BR_MISP_RETIRED.INDIRECT",
419        "MetricName": "tma_info_br_inst_mix_ipmisp_indirect"
420    },
421    {
422        "BriefDescription": "Instructions per retired return Branch Misprediction",
423        "MetricExpr": "INST_RETIRED.ANY / BR_MISP_RETIRED.RETURN",
424        "MetricName": "tma_info_br_inst_mix_ipmisp_ret"
425    },
426    {
427        "BriefDescription": "Instructions per retired Branch Misprediction",
428        "MetricExpr": "INST_RETIRED.ANY / BR_MISP_RETIRED.ALL_BRANCHES",
429        "MetricName": "tma_info_br_inst_mix_ipmispredict"
430    },
431    {
432        "BriefDescription": "Ratio of all branches which mispredict",
433        "MetricExpr": "BR_MISP_RETIRED.ALL_BRANCHES / BR_INST_RETIRED.ALL_BRANCHES",
434        "MetricName": "tma_info_br_mispredict_bound_branch_mispredict_ratio"
435    },
436    {
437        "BriefDescription": "Ratio between Mispredicted branches and unknown branches",
438        "MetricExpr": "BR_MISP_RETIRED.ALL_BRANCHES / BACLEARS.ANY",
439        "MetricName": "tma_info_br_mispredict_bound_branch_mispredict_to_unknown_branch_ratio"
440    },
441    {
442        "BriefDescription": "Percentage of time that allocation is stalled due to load buffer full",
443        "MetricExpr": "tma_info_buffer_stalls_load_buffer_stall_cycles",
444        "MetricName": "tma_info_buffer_stalls_%_load_buffer_stall_cycles"
445    },
446    {
447        "BriefDescription": "Percentage of time that allocation is stalled due to memory reservation stations full",
448        "MetricExpr": "tma_info_buffer_stalls_mem_rsv_stall_cycles",
449        "MetricName": "tma_info_buffer_stalls_%_mem_rsv_stall_cycles"
450    },
451    {
452        "BriefDescription": "Percentage of time that allocation is stalled due to store buffer full",
453        "MetricExpr": "tma_info_buffer_stalls_store_buffer_stall_cycles",
454        "MetricName": "tma_info_buffer_stalls_%_store_buffer_stall_cycles"
455    },
456    {
457        "BriefDescription": "Percentage of time that allocation is stalled due to load buffer full",
458        "MetricExpr": "100 * MEM_SCHEDULER_BLOCK.LD_BUF / CPU_CLK_UNHALTED.CORE",
459        "MetricName": "tma_info_buffer_stalls_load_buffer_stall_cycles",
460        "ScaleUnit": "100%"
461    },
462    {
463        "BriefDescription": "Percentage of time that allocation is stalled due to memory reservation stations full",
464        "MetricExpr": "100 * MEM_SCHEDULER_BLOCK.RSV / CPU_CLK_UNHALTED.CORE",
465        "MetricName": "tma_info_buffer_stalls_mem_rsv_stall_cycles",
466        "ScaleUnit": "100%"
467    },
468    {
469        "BriefDescription": "Percentage of time that allocation is stalled due to store buffer full",
470        "MetricExpr": "100 * MEM_SCHEDULER_BLOCK.ST_BUF / CPU_CLK_UNHALTED.CORE",
471        "MetricName": "tma_info_buffer_stalls_store_buffer_stall_cycles",
472        "ScaleUnit": "100%"
473    },
474    {
475        "BriefDescription": "Cycles Per Instruction",
476        "MetricExpr": "CPU_CLK_UNHALTED.CORE / INST_RETIRED.ANY",
477        "MetricName": "tma_info_core_cpi"
478    },
479    {
480        "BriefDescription": "Floating Point Operations Per Cycle",
481        "MetricExpr": "FP_FLOPS_RETIRED.ALL / CPU_CLK_UNHALTED.CORE",
482        "MetricGroup": "Flops",
483        "MetricName": "tma_info_core_flopc"
484    },
485    {
486        "BriefDescription": "Instructions Per Cycle",
487        "MetricExpr": "INST_RETIRED.ANY / CPU_CLK_UNHALTED.CORE",
488        "MetricName": "tma_info_core_ipc"
489    },
490    {
491        "BriefDescription": "Uops Per Instruction",
492        "MetricExpr": "TOPDOWN_RETIRING.ALL_P / INST_RETIRED.ANY",
493        "MetricName": "tma_info_core_upi"
494    },
495    {
496        "BriefDescription": "Percentage of ifetch miss bound stalls, where the ifetch miss hits in the L2",
497        "MetricExpr": "tma_info_ifetch_miss_bound_ifetchmissbound_with_l2hit",
498        "MetricName": "tma_info_ifetch_miss_bound_%_ifetchmissbound_with_l2hit"
499    },
500    {
501        "BriefDescription": "Percentage of ifetch miss bound stalls, where the ifetch miss hits in the L3",
502        "MetricExpr": "tma_info_ifetch_miss_bound_ifetchmissbound_with_l3hit",
503        "MetricName": "tma_info_ifetch_miss_bound_%_ifetchmissbound_with_l3hit"
504    },
505    {
506        "BriefDescription": "Percentage of ifetch miss bound stalls, where the ifetch miss subsequently misses in the L3",
507        "MetricExpr": "100 * MEM_BOUND_STALLS_IFETCH.LLC_MISS / MEM_BOUND_STALLS_IFETCH.ALL",
508        "MetricName": "tma_info_ifetch_miss_bound_%_ifetchmissbound_with_l3miss"
509    },
510    {
511        "BriefDescription": "Percentage of ifetch miss bound stalls, where the ifetch miss hits in the L2",
512        "MetricExpr": "100 * MEM_BOUND_STALLS_IFETCH.L2_HIT / MEM_BOUND_STALLS_IFETCH.ALL",
513        "MetricName": "tma_info_ifetch_miss_bound_ifetchmissbound_with_l2hit",
514        "ScaleUnit": "100%"
515    },
516    {
517        "BriefDescription": "Percentage of ifetch miss bound stalls, where the ifetch miss hits in the L3",
518        "MetricExpr": "100 * MEM_BOUND_STALLS_IFETCH.LLC_HIT / MEM_BOUND_STALLS_IFETCH.ALL",
519        "MetricName": "tma_info_ifetch_miss_bound_ifetchmissbound_with_l3hit",
520        "ScaleUnit": "100%"
521    },
522    {
523        "BriefDescription": "Percentage of memory bound stalls where retirement is stalled due to an L1 miss that hit the L2",
524        "MetricExpr": "tma_info_load_miss_bound_loadmissbound_with_l2hit",
525        "MetricGroup": "load_store_bound",
526        "MetricName": "tma_info_load_miss_bound_%_loadmissbound_with_l2hit"
527    },
528    {
529        "BriefDescription": "Percentage of memory bound stalls where retirement is stalled due to an L1 miss that hit the L3",
530        "MetricExpr": "tma_info_load_miss_bound_loadmissbound_with_l3hit",
531        "MetricGroup": "load_store_bound",
532        "MetricName": "tma_info_load_miss_bound_%_loadmissbound_with_l3hit"
533    },
534    {
535        "BriefDescription": "Percentage of memory bound stalls where retirement is stalled due to an L1 miss that subsequently misses the L3",
536        "MetricExpr": "100 * MEM_BOUND_STALLS_LOAD.LLC_MISS / MEM_BOUND_STALLS_LOAD.ALL",
537        "MetricGroup": "load_store_bound",
538        "MetricName": "tma_info_load_miss_bound_%_loadmissbound_with_l3miss"
539    },
540    {
541        "BriefDescription": "Percentage of memory bound stalls where retirement is stalled due to an L1 miss that hit the L2",
542        "MetricExpr": "100 * MEM_BOUND_STALLS_LOAD.L2_HIT / MEM_BOUND_STALLS_LOAD.ALL",
543        "MetricGroup": "load_store_bound",
544        "MetricName": "tma_info_load_miss_bound_loadmissbound_with_l2hit",
545        "ScaleUnit": "100%"
546    },
547    {
548        "BriefDescription": "Percentage of memory bound stalls where retirement is stalled due to an L1 miss that hit the L3",
549        "MetricExpr": "100 * MEM_BOUND_STALLS_LOAD.LLC_HIT / MEM_BOUND_STALLS_LOAD.ALL",
550        "MetricGroup": "load_store_bound",
551        "MetricName": "tma_info_load_miss_bound_loadmissbound_with_l3hit",
552        "ScaleUnit": "100%"
553    },
554    {
555        "BriefDescription": "Counts the number of cycles that the oldest load of the load buffer is stalled at retirement due to a pipeline block",
556        "MetricExpr": "100 * LD_HEAD.L1_BOUND_AT_RET / CPU_CLK_UNHALTED.CORE",
557        "MetricGroup": "load_store_bound",
558        "MetricName": "tma_info_load_store_bound_l1_bound"
559    },
560    {
561        "BriefDescription": "Counts the number of cycles that the oldest load of the load buffer is stalled at retirement",
562        "MetricExpr": "100 * (LD_HEAD.L1_BOUND_AT_RET + MEM_BOUND_STALLS_LOAD.ALL) / CPU_CLK_UNHALTED.CORE",
563        "MetricGroup": "load_store_bound",
564        "MetricName": "tma_info_load_store_bound_load_bound"
565    },
566    {
567        "BriefDescription": "Counts the number of cycles the core is stalled due to store buffer full",
568        "MetricExpr": "100 * (MEM_SCHEDULER_BLOCK.ST_BUF / MEM_SCHEDULER_BLOCK.ALL) * tma_mem_scheduler",
569        "MetricGroup": "load_store_bound",
570        "MetricName": "tma_info_load_store_bound_store_bound"
571    },
572    {
573        "BriefDescription": "Counts the number of machine clears relative to thousands of instructions retired, due to floating point assists",
574        "MetricExpr": "1e3 * MACHINE_CLEARS.FP_ASSIST / INST_RETIRED.ANY",
575        "MetricName": "tma_info_machine_clear_bound_machine_clears_fp_assist_pki"
576    },
577    {
578        "BriefDescription": "Counts the number of machine clears relative to thousands of instructions retired, due to page faults",
579        "MetricExpr": "1e3 * MACHINE_CLEARS.PAGE_FAULT / INST_RETIRED.ANY",
580        "MetricName": "tma_info_machine_clear_bound_machine_clears_page_fault_pki"
581    },
582    {
583        "BriefDescription": "Counts the number of machine clears relative to thousands of instructions retired, due to self-modifying code",
584        "MetricExpr": "1e3 * MACHINE_CLEARS.SMC / INST_RETIRED.ANY",
585        "MetricName": "tma_info_machine_clear_bound_machine_clears_smc_pki"
586    },
587    {
588        "BriefDescription": "Percentage of total non-speculative loads with an address aliasing block",
589        "MetricExpr": "tma_info_mem_exec_blocks_loads_with_adressaliasing",
590        "MetricName": "tma_info_mem_exec_blocks_%_loads_with_adressaliasing"
591    },
592    {
593        "BriefDescription": "Percentage of total non-speculative loads with a store forward or unknown store address block",
594        "MetricExpr": "tma_info_mem_exec_blocks_loads_with_storefwdblk",
595        "MetricName": "tma_info_mem_exec_blocks_%_loads_with_storefwdblk"
596    },
597    {
598        "BriefDescription": "Percentage of total non-speculative loads with an address aliasing block",
599        "MetricExpr": "100 * LD_BLOCKS.ADDRESS_ALIAS / MEM_UOPS_RETIRED.ALL_LOADS",
600        "MetricName": "tma_info_mem_exec_blocks_loads_with_adressaliasing",
601        "ScaleUnit": "100%"
602    },
603    {
604        "BriefDescription": "Percentage of total non-speculative loads with a store forward or unknown store address block",
605        "MetricExpr": "100 * LD_BLOCKS.DATA_UNKNOWN / MEM_UOPS_RETIRED.ALL_LOADS",
606        "MetricName": "tma_info_mem_exec_blocks_loads_with_storefwdblk",
607        "ScaleUnit": "100%"
608    },
609    {
610        "BriefDescription": "Percentage of Memory Execution Bound due to a first level data cache miss",
611        "MetricExpr": "tma_info_mem_exec_bound_loadhead_with_l1miss",
612        "MetricName": "tma_info_mem_exec_bound_%_loadhead_with_l1miss"
613    },
614    {
615        "BriefDescription": "Percentage of Memory Execution Bound due to other block cases, such as pipeline conflicts, fences, etc",
616        "MetricExpr": "tma_info_mem_exec_bound_loadhead_with_otherpipelineblks",
617        "MetricName": "tma_info_mem_exec_bound_%_loadhead_with_otherpipelineblks"
618    },
619    {
620        "BriefDescription": "Percentage of Memory Execution Bound due to a pagewalk",
621        "MetricExpr": "tma_info_mem_exec_bound_loadhead_with_pagewalk",
622        "MetricName": "tma_info_mem_exec_bound_%_loadhead_with_pagewalk"
623    },
624    {
625        "BriefDescription": "Percentage of Memory Execution Bound due to a second level TLB miss",
626        "MetricExpr": "tma_info_mem_exec_bound_loadhead_with_stlbhit",
627        "MetricName": "tma_info_mem_exec_bound_%_loadhead_with_stlbhit"
628    },
629    {
630        "BriefDescription": "Percentage of Memory Execution Bound due to a store forward address match",
631        "MetricExpr": "tma_info_mem_exec_bound_loadhead_with_storefwding",
632        "MetricName": "tma_info_mem_exec_bound_%_loadhead_with_storefwding"
633    },
634    {
635        "BriefDescription": "Percentage of Memory Execution Bound due to a first level data cache miss",
636        "MetricExpr": "100 * LD_HEAD.L1_MISS_AT_RET / LD_HEAD.ANY_AT_RET",
637        "MetricName": "tma_info_mem_exec_bound_loadhead_with_l1miss",
638        "ScaleUnit": "100%"
639    },
640    {
641        "BriefDescription": "Percentage of Memory Execution Bound due to other block cases, such as pipeline conflicts, fences, etc",
642        "MetricExpr": "100 * LD_HEAD.OTHER_AT_RET / LD_HEAD.ANY_AT_RET",
643        "MetricName": "tma_info_mem_exec_bound_loadhead_with_otherpipelineblks",
644        "ScaleUnit": "100%"
645    },
646    {
647        "BriefDescription": "Percentage of Memory Execution Bound due to a pagewalk",
648        "MetricExpr": "100 * LD_HEAD.PGWALK_AT_RET / LD_HEAD.ANY_AT_RET",
649        "MetricName": "tma_info_mem_exec_bound_loadhead_with_pagewalk",
650        "ScaleUnit": "100%"
651    },
652    {
653        "BriefDescription": "Percentage of Memory Execution Bound due to a second level TLB miss",
654        "MetricExpr": "100 * LD_HEAD.DTLB_MISS_AT_RET / LD_HEAD.ANY_AT_RET",
655        "MetricName": "tma_info_mem_exec_bound_loadhead_with_stlbhit",
656        "ScaleUnit": "100%"
657    },
658    {
659        "BriefDescription": "Percentage of Memory Execution Bound due to a store forward address match",
660        "MetricExpr": "100 * LD_HEAD.ST_ADDR_AT_RET / LD_HEAD.ANY_AT_RET",
661        "MetricName": "tma_info_mem_exec_bound_loadhead_with_storefwding",
662        "ScaleUnit": "100%"
663    },
664    {
665        "BriefDescription": "Instructions per Load",
666        "MetricExpr": "INST_RETIRED.ANY / MEM_UOPS_RETIRED.ALL_LOADS",
667        "MetricName": "tma_info_mem_mix_ipload"
668    },
669    {
670        "BriefDescription": "Instructions per Store",
671        "MetricExpr": "INST_RETIRED.ANY / MEM_UOPS_RETIRED.ALL_STORES",
672        "MetricName": "tma_info_mem_mix_ipstore"
673    },
674    {
675        "BriefDescription": "Percentage of total non-speculative loads that perform one or more locks",
676        "MetricExpr": "100 * MEM_UOPS_RETIRED.LOCK_LOADS / MEM_UOPS_RETIRED.ALL_LOADS",
677        "MetricName": "tma_info_mem_mix_load_locks_ratio"
678    },
679    {
680        "BriefDescription": "Percentage of total non-speculative loads that are splits",
681        "MetricExpr": "100 * MEM_UOPS_RETIRED.SPLIT_LOADS / MEM_UOPS_RETIRED.ALL_LOADS",
682        "MetricName": "tma_info_mem_mix_load_splits_ratio"
683    },
684    {
685        "BriefDescription": "Ratio of mem load uops to all uops",
686        "MetricExpr": "1e3 * MEM_UOPS_RETIRED.ALL_LOADS / TOPDOWN_RETIRING.ALL_P",
687        "MetricName": "tma_info_mem_mix_memload_ratio"
688    },
689    {
690        "BriefDescription": "Percentage of time that the core is stalled due to a TPAUSE or UMWAIT instruction",
691        "MetricExpr": "tma_info_serialization_tpause_cycles",
692        "MetricName": "tma_info_serialization _%_tpause_cycles"
693    },
694    {
695        "BriefDescription": "Percentage of time that the core is stalled due to a TPAUSE or UMWAIT instruction",
696        "MetricExpr": "100 * SERIALIZATION.C01_MS_SCB / (6 * CPU_CLK_UNHALTED.CORE)",
697        "MetricName": "tma_info_serialization_tpause_cycles",
698        "ScaleUnit": "100%"
699    },
700    {
701        "BriefDescription": "Average CPU Utilization",
702        "MetricExpr": "CPU_CLK_UNHALTED.REF_TSC / TSC",
703        "MetricName": "tma_info_system_cpu_utilization"
704    },
705    {
706        "BriefDescription": "Giga Floating Point Operations Per Second",
707        "MetricExpr": "FP_FLOPS_RETIRED.ALL / (duration_time * 1e9)",
708        "MetricGroup": "Flops",
709        "MetricName": "tma_info_system_gflops",
710        "PublicDescription": "Giga Floating Point Operations Per Second. Aggregate across all supported options of: FP precisions, scalar and vector instructions, vector-width"
711    },
712    {
713        "BriefDescription": "Fraction of cycles spent in Kernel mode",
714        "MetricExpr": "cpu@CPU_CLK_UNHALTED.CORE_P@k / CPU_CLK_UNHALTED.CORE",
715        "MetricGroup": "Summary",
716        "MetricName": "tma_info_system_kernel_utilization"
717    },
718    {
719        "BriefDescription": "Average Frequency Utilization relative nominal frequency",
720        "MetricExpr": "CPU_CLK_UNHALTED.CORE / CPU_CLK_UNHALTED.REF_TSC",
721        "MetricGroup": "Power",
722        "MetricName": "tma_info_system_turbo_utilization"
723    },
724    {
725        "BriefDescription": "Percentage of all uops which are FPDiv uops",
726        "MetricExpr": "100 * UOPS_RETIRED.FPDIV / TOPDOWN_RETIRING.ALL_P",
727        "MetricName": "tma_info_uop_mix_fpdiv_uop_ratio"
728    },
729    {
730        "BriefDescription": "Percentage of all uops which are IDiv uops",
731        "MetricExpr": "100 * UOPS_RETIRED.IDIV / TOPDOWN_RETIRING.ALL_P",
732        "MetricName": "tma_info_uop_mix_idiv_uop_ratio"
733    },
734    {
735        "BriefDescription": "Percentage of all uops which are microcode ops",
736        "MetricExpr": "100 * UOPS_RETIRED.MS / TOPDOWN_RETIRING.ALL_P",
737        "MetricName": "tma_info_uop_mix_microcode_uop_ratio"
738    },
739    {
740        "BriefDescription": "Percentage of all uops which are x87 uops",
741        "MetricExpr": "100 * UOPS_RETIRED.X87 / TOPDOWN_RETIRING.ALL_P",
742        "MetricName": "tma_info_uop_mix_x87_uop_ratio"
743    },
744    {
745        "BriefDescription": "Counts the number of issue slots that were not delivered by the frontend due to Instruction Table Lookaside Buffer (ITLB) misses.",
746        "MetricExpr": "TOPDOWN_FE_BOUND.ITLB_MISS / (6 * CPU_CLK_UNHALTED.CORE)",
747        "MetricGroup": "TopdownL3;tma_L3_group;tma_ifetch_latency_group",
748        "MetricName": "tma_itlb_misses",
749        "MetricThreshold": "tma_itlb_misses > 0.05 & (tma_ifetch_latency > 0.15 & tma_frontend_bound > 0.2)",
750        "ScaleUnit": "100%"
751    },
752    {
753        "BriefDescription": "Counts the total number of issue slots that were not consumed by the backend because allocation is stalled due to a machine clear (nuke) of any kind including memory ordering and memory disambiguation",
754        "MetricExpr": "TOPDOWN_BAD_SPECULATION.MACHINE_CLEARS / (6 * CPU_CLK_UNHALTED.CORE)",
755        "MetricGroup": "TopdownL2;tma_L2_group;tma_bad_speculation_group",
756        "MetricName": "tma_machine_clears",
757        "MetricThreshold": "tma_machine_clears > 0.05 & tma_bad_speculation > 0.15",
758        "MetricgroupNoGroup": "TopdownL2",
759        "ScaleUnit": "100%"
760    },
761    {
762        "BriefDescription": "Counts the number of issue slots that were not consumed by the backend due to memory reservation stalls in which a scheduler is not able to accept uops",
763        "MetricExpr": "TOPDOWN_BE_BOUND.MEM_SCHEDULER / (6 * CPU_CLK_UNHALTED.CORE)",
764        "MetricGroup": "TopdownL3;tma_L3_group;tma_resource_bound_group",
765        "MetricName": "tma_mem_scheduler",
766        "MetricThreshold": "tma_mem_scheduler > 0.1 & (tma_resource_bound > 0.2 & tma_backend_bound > 0.1)",
767        "ScaleUnit": "100%"
768    },
769    {
770        "BriefDescription": "Counts the number of issue slots that were not consumed by the backend due to IEC or FPC RAT stalls, which can be due to FIQ or IEC reservation stalls in which the integer, floating point or SIMD scheduler is not able to accept uops",
771        "MetricExpr": "TOPDOWN_BE_BOUND.NON_MEM_SCHEDULER / (6 * CPU_CLK_UNHALTED.CORE)",
772        "MetricGroup": "TopdownL3;tma_L3_group;tma_resource_bound_group",
773        "MetricName": "tma_non_mem_scheduler",
774        "MetricThreshold": "tma_non_mem_scheduler > 0.1 & (tma_resource_bound > 0.2 & tma_backend_bound > 0.1)",
775        "ScaleUnit": "100%"
776    },
777    {
778        "BriefDescription": "Counts the number of issue slots that were not consumed by the backend due to a machine clear that requires the use of microcode (slow nuke)",
779        "MetricExpr": "TOPDOWN_BAD_SPECULATION.NUKE / (6 * CPU_CLK_UNHALTED.CORE)",
780        "MetricGroup": "TopdownL3;tma_L3_group;tma_machine_clears_group",
781        "MetricName": "tma_nuke",
782        "MetricThreshold": "tma_nuke > 0.05 & (tma_machine_clears > 0.05 & tma_bad_speculation > 0.15)",
783        "ScaleUnit": "100%"
784    },
785    {
786        "BriefDescription": "Counts the number of issue slots that were not delivered by the frontend due to other common frontend stalls not categorized.",
787        "MetricExpr": "TOPDOWN_FE_BOUND.OTHER / (6 * CPU_CLK_UNHALTED.CORE)",
788        "MetricGroup": "TopdownL3;tma_L3_group;tma_ifetch_bandwidth_group",
789        "MetricName": "tma_other_fb",
790        "MetricThreshold": "tma_other_fb > 0.05 & (tma_ifetch_bandwidth > 0.1 & tma_frontend_bound > 0.2)",
791        "ScaleUnit": "100%"
792    },
793    {
794        "BriefDescription": "Counts the number of issue slots that were not delivered by the frontend due to wrong predecodes.",
795        "MetricExpr": "TOPDOWN_FE_BOUND.PREDECODE / (6 * CPU_CLK_UNHALTED.CORE)",
796        "MetricGroup": "TopdownL3;tma_L3_group;tma_ifetch_bandwidth_group",
797        "MetricName": "tma_predecode",
798        "MetricThreshold": "tma_predecode > 0.05 & (tma_ifetch_bandwidth > 0.1 & tma_frontend_bound > 0.2)",
799        "ScaleUnit": "100%"
800    },
801    {
802        "BriefDescription": "Counts the number of issue slots that were not consumed by the backend due to the physical register file unable to accept an entry (marble stalls)",
803        "MetricExpr": "TOPDOWN_BE_BOUND.REGISTER / (6 * CPU_CLK_UNHALTED.CORE)",
804        "MetricGroup": "TopdownL3;tma_L3_group;tma_resource_bound_group",
805        "MetricName": "tma_register",
806        "MetricThreshold": "tma_register > 0.1 & (tma_resource_bound > 0.2 & tma_backend_bound > 0.1)",
807        "ScaleUnit": "100%"
808    },
809    {
810        "BriefDescription": "Counts the number of issue slots that were not consumed by the backend due to the reorder buffer being full (ROB stalls)",
811        "MetricExpr": "TOPDOWN_BE_BOUND.REORDER_BUFFER / (6 * CPU_CLK_UNHALTED.CORE)",
812        "MetricGroup": "TopdownL3;tma_L3_group;tma_resource_bound_group",
813        "MetricName": "tma_reorder_buffer",
814        "MetricThreshold": "tma_reorder_buffer > 0.1 & (tma_resource_bound > 0.2 & tma_backend_bound > 0.1)",
815        "ScaleUnit": "100%"
816    },
817    {
818        "BriefDescription": "Counts the number of cycles the core is stalled due to a resource limitation",
819        "MetricExpr": "tma_backend_bound - tma_core_bound",
820        "MetricGroup": "TopdownL2;tma_L2_group;tma_backend_bound_group",
821        "MetricName": "tma_resource_bound",
822        "MetricThreshold": "tma_resource_bound > 0.2 & tma_backend_bound > 0.1",
823        "MetricgroupNoGroup": "TopdownL2",
824        "ScaleUnit": "100%"
825    },
826    {
827        "BriefDescription": "Counts the number of issue slots that result in retirement slots",
828        "MetricExpr": "TOPDOWN_RETIRING.ALL_P / (6 * CPU_CLK_UNHALTED.CORE)",
829        "MetricGroup": "TopdownL1;tma_L1_group",
830        "MetricName": "tma_retiring",
831        "MetricThreshold": "tma_retiring > 0.75",
832        "MetricgroupNoGroup": "TopdownL1",
833        "ScaleUnit": "100%"
834    },
835    {
836        "BriefDescription": "Counts the number of issue slots that were not consumed by the backend due to scoreboards from the instruction queue (IQ), jump execution unit (JEU), or microcode sequencer (MS)",
837        "MetricExpr": "TOPDOWN_BE_BOUND.SERIALIZATION / (6 * CPU_CLK_UNHALTED.CORE)",
838        "MetricGroup": "TopdownL3;tma_L3_group;tma_resource_bound_group",
839        "MetricName": "tma_serialization",
840        "MetricThreshold": "tma_serialization > 0.1 & (tma_resource_bound > 0.2 & tma_backend_bound > 0.1)",
841        "ScaleUnit": "100%"
842    },
843    {
844        "BriefDescription": "Uncore operating frequency in GHz",
845        "MetricExpr": "UNC_CHA_CLOCKTICKS / (source_count(UNC_CHA_CLOCKTICKS) * #num_packages) / 1e9 / duration_time",
846        "MetricName": "uncore_frequency",
847        "ScaleUnit": "1GHz"
848    }
849]
850