xref: /linux/tools/perf/pmu-events/arch/x86/cascadelakex/clx-metrics.json (revision a1ff5a7d78a036d6c2178ee5acd6ba4946243800)
1[
2    {
3        "BriefDescription": "C2 residency percent per package",
4        "MetricExpr": "cstate_pkg@c2\\-residency@ / TSC",
5        "MetricGroup": "Power",
6        "MetricName": "C2_Pkg_Residency",
7        "ScaleUnit": "100%"
8    },
9    {
10        "BriefDescription": "C3 residency percent per core",
11        "MetricExpr": "cstate_core@c3\\-residency@ / TSC",
12        "MetricGroup": "Power",
13        "MetricName": "C3_Core_Residency",
14        "ScaleUnit": "100%"
15    },
16    {
17        "BriefDescription": "C3 residency percent per package",
18        "MetricExpr": "cstate_pkg@c3\\-residency@ / TSC",
19        "MetricGroup": "Power",
20        "MetricName": "C3_Pkg_Residency",
21        "ScaleUnit": "100%"
22    },
23    {
24        "BriefDescription": "C6 residency percent per core",
25        "MetricExpr": "cstate_core@c6\\-residency@ / TSC",
26        "MetricGroup": "Power",
27        "MetricName": "C6_Core_Residency",
28        "ScaleUnit": "100%"
29    },
30    {
31        "BriefDescription": "C6 residency percent per package",
32        "MetricExpr": "cstate_pkg@c6\\-residency@ / TSC",
33        "MetricGroup": "Power",
34        "MetricName": "C6_Pkg_Residency",
35        "ScaleUnit": "100%"
36    },
37    {
38        "BriefDescription": "C7 residency percent per core",
39        "MetricExpr": "cstate_core@c7\\-residency@ / TSC",
40        "MetricGroup": "Power",
41        "MetricName": "C7_Core_Residency",
42        "ScaleUnit": "100%"
43    },
44    {
45        "BriefDescription": "C7 residency percent per package",
46        "MetricExpr": "cstate_pkg@c7\\-residency@ / TSC",
47        "MetricGroup": "Power",
48        "MetricName": "C7_Pkg_Residency",
49        "ScaleUnit": "100%"
50    },
51    {
52        "BriefDescription": "Uncore frequency per die [GHZ]",
53        "MetricExpr": "tma_info_system_socket_clks / #num_dies / duration_time / 1e9",
54        "MetricGroup": "SoC",
55        "MetricName": "UNCORE_FREQ"
56    },
57    {
58        "BriefDescription": "Cycles per instruction retired; indicating how much time each executed instruction took; in units of cycles.",
59        "MetricExpr": "CPU_CLK_UNHALTED.THREAD / INST_RETIRED.ANY",
60        "MetricName": "cpi",
61        "ScaleUnit": "1per_instr"
62    },
63    {
64        "BriefDescription": "CPU operating frequency (in GHz)",
65        "MetricExpr": "CPU_CLK_UNHALTED.THREAD / CPU_CLK_UNHALTED.REF_TSC * #SYSTEM_TSC_FREQ / 1e9",
66        "MetricName": "cpu_operating_frequency",
67        "ScaleUnit": "1GHz"
68    },
69    {
70        "BriefDescription": "Percentage of time spent in the active CPU power state C0",
71        "MetricExpr": "tma_info_system_cpus_utilized",
72        "MetricName": "cpu_utilization",
73        "ScaleUnit": "100%"
74    },
75    {
76        "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",
77        "MetricExpr": "DTLB_LOAD_MISSES.WALK_COMPLETED_2M_4M / INST_RETIRED.ANY",
78        "MetricName": "dtlb_2mb_large_page_load_mpi",
79        "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.",
80        "ScaleUnit": "1per_instr"
81    },
82    {
83        "BriefDescription": "Ratio of number of completed page walks (for all page sizes) caused by demand data loads to the total number of completed instructions",
84        "MetricExpr": "DTLB_LOAD_MISSES.WALK_COMPLETED / INST_RETIRED.ANY",
85        "MetricName": "dtlb_load_mpi",
86        "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.",
87        "ScaleUnit": "1per_instr"
88    },
89    {
90        "BriefDescription": "Ratio of number of completed page walks (for all page sizes) caused by demand data stores to the total number of completed instructions",
91        "MetricExpr": "DTLB_STORE_MISSES.WALK_COMPLETED / INST_RETIRED.ANY",
92        "MetricName": "dtlb_store_mpi",
93        "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.",
94        "ScaleUnit": "1per_instr"
95    },
96    {
97        "BriefDescription": "Bandwidth of IO reads that are initiated by end device controllers that are requesting memory from the CPU.",
98        "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 / 1e6 / duration_time",
99        "MetricName": "io_bandwidth_read",
100        "ScaleUnit": "1MB/s"
101    },
102    {
103        "BriefDescription": "Bandwidth of IO writes that are initiated by end device controllers that are writing memory to the CPU.",
104        "MetricExpr": "(UNC_IIO_PAYLOAD_BYTES_IN.MEM_WRITE.PART0 + UNC_IIO_PAYLOAD_BYTES_IN.MEM_WRITE.PART1 + UNC_IIO_PAYLOAD_BYTES_IN.MEM_WRITE.PART2 + UNC_IIO_PAYLOAD_BYTES_IN.MEM_WRITE.PART3) * 4 / 1e6 / duration_time",
105        "MetricName": "io_bandwidth_write",
106        "ScaleUnit": "1MB/s"
107    },
108    {
109        "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",
110        "MetricExpr": "ITLB_MISSES.WALK_COMPLETED_2M_4M / INST_RETIRED.ANY",
111        "MetricName": "itlb_large_page_mpi",
112        "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.",
113        "ScaleUnit": "1per_instr"
114    },
115    {
116        "BriefDescription": "Ratio of number of completed page walks (for all page sizes) caused by a code fetch to the total number of completed instructions",
117        "MetricExpr": "ITLB_MISSES.WALK_COMPLETED / INST_RETIRED.ANY",
118        "MetricName": "itlb_mpi",
119        "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.",
120        "ScaleUnit": "1per_instr"
121    },
122    {
123        "BriefDescription": "Ratio of number of code read requests missing in L1 instruction cache (includes prefetches) to the total number of completed instructions",
124        "MetricExpr": "L2_RQSTS.ALL_CODE_RD / INST_RETIRED.ANY",
125        "MetricName": "l1_i_code_read_misses_with_prefetches_per_instr",
126        "ScaleUnit": "1per_instr"
127    },
128    {
129        "BriefDescription": "Ratio of number of demand load requests hitting in L1 data cache to the total number of completed instructions",
130        "MetricExpr": "MEM_LOAD_RETIRED.L1_HIT / INST_RETIRED.ANY",
131        "MetricName": "l1d_demand_data_read_hits_per_instr",
132        "ScaleUnit": "1per_instr"
133    },
134    {
135        "BriefDescription": "Ratio of number of requests missing L1 data cache (includes data+rfo w/ prefetches) to the total number of completed instructions",
136        "MetricExpr": "L1D.REPLACEMENT / INST_RETIRED.ANY",
137        "MetricName": "l1d_mpi",
138        "ScaleUnit": "1per_instr"
139    },
140    {
141        "BriefDescription": "Ratio of number of code read request missing L2 cache to the total number of completed instructions",
142        "MetricExpr": "L2_RQSTS.CODE_RD_MISS / INST_RETIRED.ANY",
143        "MetricName": "l2_demand_code_mpi",
144        "ScaleUnit": "1per_instr"
145    },
146    {
147        "BriefDescription": "Ratio of number of completed demand load requests hitting in L2 cache to the total number of completed instructions",
148        "MetricExpr": "MEM_LOAD_RETIRED.L2_HIT / INST_RETIRED.ANY",
149        "MetricName": "l2_demand_data_read_hits_per_instr",
150        "ScaleUnit": "1per_instr"
151    },
152    {
153        "BriefDescription": "Ratio of number of completed data read request missing L2 cache to the total number of completed instructions",
154        "MetricExpr": "MEM_LOAD_RETIRED.L2_MISS / INST_RETIRED.ANY",
155        "MetricName": "l2_demand_data_read_mpi",
156        "ScaleUnit": "1per_instr"
157    },
158    {
159        "BriefDescription": "Ratio of number of requests missing L2 cache (includes code+data+rfo w/ prefetches) to the total number of completed instructions",
160        "MetricExpr": "L2_LINES_IN.ALL / INST_RETIRED.ANY",
161        "MetricName": "l2_mpi",
162        "ScaleUnit": "1per_instr"
163    },
164    {
165        "BriefDescription": "Ratio of number of code read requests missing last level core cache (includes demand w/ prefetches) to the total number of completed instructions",
166        "MetricExpr": "cha@UNC_CHA_TOR_INSERTS.IA_MISS\\,config1\\=0x12cc0233@ / INST_RETIRED.ANY",
167        "MetricName": "llc_code_read_mpi_demand_plus_prefetch",
168        "ScaleUnit": "1per_instr"
169    },
170    {
171        "BriefDescription": "Average latency of a last level cache (LLC) demand and prefetch data read miss (read memory access) in nano seconds",
172        "MetricExpr": "1e9 * (cha@UNC_CHA_TOR_OCCUPANCY.IA_MISS\\,config1\\=0x40433@ / cha@UNC_CHA_TOR_INSERTS.IA_MISS\\,config1\\=0x40433@) / (UNC_CHA_CLOCKTICKS / (source_count(UNC_CHA_CLOCKTICKS) * #num_packages)) * duration_time",
173        "MetricName": "llc_data_read_demand_plus_prefetch_miss_latency",
174        "ScaleUnit": "1ns"
175    },
176    {
177        "BriefDescription": "Average latency of a last level cache (LLC) demand and prefetch data read miss (read memory access) addressed to local memory in nano seconds",
178        "MetricExpr": "1e9 * (cha@UNC_CHA_TOR_OCCUPANCY.IA_MISS\\,config1\\=0x40432@ / cha@UNC_CHA_TOR_INSERTS.IA_MISS\\,config1\\=0x40432@) / (UNC_CHA_CLOCKTICKS / (source_count(UNC_CHA_CLOCKTICKS) * #num_packages)) * duration_time",
179        "MetricName": "llc_data_read_demand_plus_prefetch_miss_latency_for_local_requests",
180        "ScaleUnit": "1ns"
181    },
182    {
183        "BriefDescription": "Average latency of a last level cache (LLC) demand and prefetch data read miss (read memory access) addressed to remote memory in nano seconds",
184        "MetricExpr": "1e9 * (cha@UNC_CHA_TOR_OCCUPANCY.IA_MISS\\,config1\\=0x40431@ / cha@UNC_CHA_TOR_INSERTS.IA_MISS\\,config1\\=0x40431@) / (UNC_CHA_CLOCKTICKS / (source_count(UNC_CHA_CLOCKTICKS) * #num_packages)) * duration_time",
185        "MetricName": "llc_data_read_demand_plus_prefetch_miss_latency_for_remote_requests",
186        "ScaleUnit": "1ns"
187    },
188    {
189        "BriefDescription": "Ratio of number of data read requests missing last level core cache (includes demand w/ prefetches) to the total number of completed instructions",
190        "MetricExpr": "cha@UNC_CHA_TOR_INSERTS.IA_MISS\\,config1\\=0x12d40433@ / INST_RETIRED.ANY",
191        "MetricName": "llc_data_read_mpi_demand_plus_prefetch",
192        "ScaleUnit": "1per_instr"
193    },
194    {
195        "BriefDescription": "Bandwidth (MB/sec) of read requests that miss the last level cache (LLC) and go to local memory.",
196        "MetricExpr": "UNC_CHA_REQUESTS.READS_LOCAL * 64 / 1e6 / duration_time",
197        "MetricName": "llc_miss_local_memory_bandwidth_read",
198        "ScaleUnit": "1MB/s"
199    },
200    {
201        "BriefDescription": "Bandwidth (MB/sec) of write requests that miss the last level cache (LLC) and go to local memory.",
202        "MetricExpr": "UNC_CHA_REQUESTS.WRITES_LOCAL * 64 / 1e6 / duration_time",
203        "MetricName": "llc_miss_local_memory_bandwidth_write",
204        "ScaleUnit": "1MB/s"
205    },
206    {
207        "BriefDescription": "Bandwidth (MB/sec) of read requests that miss the last level cache (LLC) and go to remote memory.",
208        "MetricExpr": "UNC_CHA_REQUESTS.READS_REMOTE * 64 / 1e6 / duration_time",
209        "MetricName": "llc_miss_remote_memory_bandwidth_read",
210        "ScaleUnit": "1MB/s"
211    },
212    {
213        "BriefDescription": "Bandwidth (MB/sec) of write requests that miss the last level cache (LLC) and go to remote memory.",
214        "MetricExpr": "UNC_CHA_REQUESTS.WRITES_REMOTE * 64 / 1e6 / duration_time",
215        "MetricName": "llc_miss_remote_memory_bandwidth_write",
216        "ScaleUnit": "1MB/s"
217    },
218    {
219        "BriefDescription": "The ratio of number of completed memory load instructions to the total number completed instructions",
220        "MetricExpr": "MEM_INST_RETIRED.ALL_LOADS / INST_RETIRED.ANY",
221        "MetricName": "loads_per_instr",
222        "ScaleUnit": "1per_instr"
223    },
224    {
225        "BriefDescription": "DDR memory read bandwidth (MB/sec)",
226        "MetricExpr": "UNC_M_CAS_COUNT.RD * 64 / 1e6 / duration_time",
227        "MetricName": "memory_bandwidth_read",
228        "ScaleUnit": "1MB/s"
229    },
230    {
231        "BriefDescription": "DDR memory bandwidth (MB/sec)",
232        "MetricExpr": "(UNC_M_CAS_COUNT.RD + UNC_M_CAS_COUNT.WR) * 64 / 1e6 / duration_time",
233        "MetricName": "memory_bandwidth_total",
234        "ScaleUnit": "1MB/s"
235    },
236    {
237        "BriefDescription": "DDR memory write bandwidth (MB/sec)",
238        "MetricExpr": "UNC_M_CAS_COUNT.WR * 64 / 1e6 / duration_time",
239        "MetricName": "memory_bandwidth_write",
240        "ScaleUnit": "1MB/s"
241    },
242    {
243        "BriefDescription": "Memory read that miss the last level cache (LLC) addressed to local DRAM as a percentage of total memory read accesses, does not include LLC prefetches.",
244        "MetricExpr": "cha@UNC_CHA_TOR_INSERTS.IA_MISS\\,config1\\=0x40432@ / (cha@UNC_CHA_TOR_INSERTS.IA_MISS\\,config1\\=0x40432@ + cha@UNC_CHA_TOR_INSERTS.IA_MISS\\,config1\\=0x40431@)",
245        "MetricName": "numa_reads_addressed_to_local_dram",
246        "ScaleUnit": "100%"
247    },
248    {
249        "BriefDescription": "Memory reads that miss the last level cache (LLC) addressed to remote DRAM as a percentage of total memory read accesses, does not include LLC prefetches.",
250        "MetricExpr": "cha@UNC_CHA_TOR_INSERTS.IA_MISS\\,config1\\=0x40431@ / (cha@UNC_CHA_TOR_INSERTS.IA_MISS\\,config1\\=0x40432@ + cha@UNC_CHA_TOR_INSERTS.IA_MISS\\,config1\\=0x40431@)",
251        "MetricName": "numa_reads_addressed_to_remote_dram",
252        "ScaleUnit": "100%"
253    },
254    {
255        "BriefDescription": "Uops delivered from decoded instruction cache (decoded stream buffer or DSB) as a percent of total uops delivered to Instruction Decode Queue",
256        "MetricExpr": "IDQ.DSB_UOPS / (IDQ.DSB_UOPS + IDQ.MITE_UOPS + IDQ.MS_UOPS + LSD.UOPS)",
257        "MetricName": "percent_uops_delivered_from_decoded_icache",
258        "ScaleUnit": "100%"
259    },
260    {
261        "BriefDescription": "Uops delivered from legacy decode pipeline (Micro-instruction Translation Engine or MITE) as a percent of total uops delivered to Instruction Decode Queue",
262        "MetricExpr": "IDQ.MITE_UOPS / (IDQ.DSB_UOPS + IDQ.MITE_UOPS + IDQ.MS_UOPS + LSD.UOPS)",
263        "MetricName": "percent_uops_delivered_from_legacy_decode_pipeline",
264        "ScaleUnit": "100%"
265    },
266    {
267        "BriefDescription": "Uops delivered from microcode sequencer (MS) as a percent of total uops delivered to Instruction Decode Queue",
268        "MetricExpr": "IDQ.MS_UOPS / (IDQ.DSB_UOPS + IDQ.MITE_UOPS + IDQ.MS_UOPS + LSD.UOPS)",
269        "MetricName": "percent_uops_delivered_from_microcode_sequencer",
270        "ScaleUnit": "100%"
271    },
272    {
273        "BriefDescription": "Intel(R) Optane(TM) Persistent Memory(PMEM) memory read bandwidth (MB/sec)",
274        "MetricExpr": "UNC_M_PMM_RPQ_INSERTS * 64 / 1e6 / duration_time",
275        "MetricName": "pmem_memory_bandwidth_read",
276        "ScaleUnit": "1MB/s"
277    },
278    {
279        "BriefDescription": "Intel(R) Optane(TM) Persistent Memory(PMEM) memory bandwidth (MB/sec)",
280        "MetricExpr": "(UNC_M_PMM_RPQ_INSERTS + UNC_M_PMM_WPQ_INSERTS) * 64 / 1e6 / duration_time",
281        "MetricName": "pmem_memory_bandwidth_total",
282        "ScaleUnit": "1MB/s"
283    },
284    {
285        "BriefDescription": "Intel(R) Optane(TM) Persistent Memory(PMEM) memory write bandwidth (MB/sec)",
286        "MetricExpr": "UNC_M_PMM_WPQ_INSERTS * 64 / 1e6 / duration_time",
287        "MetricName": "pmem_memory_bandwidth_write",
288        "ScaleUnit": "1MB/s"
289    },
290    {
291        "BriefDescription": "Percentage of cycles spent in System Management Interrupts.",
292        "MetricExpr": "((msr@aperf@ - cycles) / msr@aperf@ if msr@smi@ > 0 else 0)",
293        "MetricGroup": "smi",
294        "MetricName": "smi_cycles",
295        "MetricThreshold": "smi_cycles > 0.1",
296        "ScaleUnit": "100%"
297    },
298    {
299        "BriefDescription": "Number of SMI interrupts.",
300        "MetricExpr": "msr@smi@",
301        "MetricGroup": "smi",
302        "MetricName": "smi_num",
303        "ScaleUnit": "1SMI#"
304    },
305    {
306        "BriefDescription": "The ratio of number of completed memory store instructions to the total number completed instructions",
307        "MetricExpr": "MEM_INST_RETIRED.ALL_STORES / INST_RETIRED.ANY",
308        "MetricName": "stores_per_instr",
309        "ScaleUnit": "1per_instr"
310    },
311    {
312        "BriefDescription": "This metric estimates how often memory load accesses were aliased by preceding stores (in program order) with a 4K address offset",
313        "MetricExpr": "LD_BLOCKS_PARTIAL.ADDRESS_ALIAS / tma_info_thread_clks",
314        "MetricGroup": "TopdownL4;tma_L4_group;tma_l1_bound_group",
315        "MetricName": "tma_4k_aliasing",
316        "MetricThreshold": "tma_4k_aliasing > 0.2 & (tma_l1_bound > 0.1 & (tma_memory_bound > 0.2 & tma_backend_bound > 0.2))",
317        "PublicDescription": "This metric estimates how often memory load accesses were aliased by preceding stores (in program order) with a 4K address offset. False match is possible; which incur a few cycles load re-issue. However; the short re-issue duration is often hidden by the out-of-order core and HW optimizations; hence a user may safely ignore a high value of this metric unless it manages to propagate up into parent nodes of the hierarchy (e.g. to L1_Bound).",
318        "ScaleUnit": "100%"
319    },
320    {
321        "BriefDescription": "This metric represents Core fraction of cycles CPU dispatched uops on execution ports for ALU operations.",
322        "MetricExpr": "(UOPS_DISPATCHED_PORT.PORT_0 + UOPS_DISPATCHED_PORT.PORT_1 + UOPS_DISPATCHED_PORT.PORT_5 + UOPS_DISPATCHED_PORT.PORT_6) / tma_info_thread_slots",
323        "MetricGroup": "TopdownL5;tma_L5_group;tma_ports_utilized_3m_group",
324        "MetricName": "tma_alu_op_utilization",
325        "MetricThreshold": "tma_alu_op_utilization > 0.4",
326        "ScaleUnit": "100%"
327    },
328    {
329        "BriefDescription": "This metric estimates fraction of slots the CPU retired uops delivered by the Microcode_Sequencer as a result of Assists",
330        "MetricExpr": "34 * (FP_ASSIST.ANY + OTHER_ASSISTS.ANY) / tma_info_thread_slots",
331        "MetricGroup": "BvIO;TopdownL4;tma_L4_group;tma_microcode_sequencer_group",
332        "MetricName": "tma_assists",
333        "MetricThreshold": "tma_assists > 0.1 & (tma_microcode_sequencer > 0.05 & tma_heavy_operations > 0.1)",
334        "PublicDescription": "This metric estimates fraction of slots the CPU retired uops delivered by the Microcode_Sequencer as a result of Assists. Assists are long sequences of uops that are required in certain corner-cases for operations that cannot be handled natively by the execution pipeline. For example; when working with very small floating point values (so-called Denormals); the FP units are not set up to perform these operations natively. Instead; a sequence of instructions to perform the computation on the Denormals is injected into the pipeline. Since these microcode sequences might be dozens of uops long; Assists can be extremely deleterious to performance and they can be avoided in many cases. Sample with: OTHER_ASSISTS.ANY",
335        "ScaleUnit": "100%"
336    },
337    {
338        "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",
339        "MetricExpr": "1 - tma_frontend_bound - (UOPS_ISSUED.ANY + 4 * (INT_MISC.RECOVERY_CYCLES_ANY / 2 if #SMT_on else INT_MISC.RECOVERY_CYCLES)) / tma_info_thread_slots",
340        "MetricGroup": "BvOB;TmaL1;TopdownL1;tma_L1_group",
341        "MetricName": "tma_backend_bound",
342        "MetricThreshold": "tma_backend_bound > 0.2",
343        "MetricgroupNoGroup": "TopdownL1",
344        "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.",
345        "ScaleUnit": "100%"
346    },
347    {
348        "BriefDescription": "This category represents fraction of slots wasted due to incorrect speculations",
349        "MetricExpr": "(UOPS_ISSUED.ANY - UOPS_RETIRED.RETIRE_SLOTS + 4 * (INT_MISC.RECOVERY_CYCLES_ANY / 2 if #SMT_on else INT_MISC.RECOVERY_CYCLES)) / tma_info_thread_slots",
350        "MetricGroup": "TmaL1;TopdownL1;tma_L1_group",
351        "MetricName": "tma_bad_speculation",
352        "MetricThreshold": "tma_bad_speculation > 0.15",
353        "MetricgroupNoGroup": "TopdownL1",
354        "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.",
355        "ScaleUnit": "100%"
356    },
357    {
358        "BriefDescription": "This metric represents fraction of slots the CPU has wasted due to Branch Misprediction",
359        "MetricConstraint": "NO_GROUP_EVENTS",
360        "MetricExpr": "BR_MISP_RETIRED.ALL_BRANCHES / (BR_MISP_RETIRED.ALL_BRANCHES + MACHINE_CLEARS.COUNT) * tma_bad_speculation",
361        "MetricGroup": "BadSpec;BrMispredicts;BvMP;TmaL2;TopdownL2;tma_L2_group;tma_bad_speculation_group;tma_issueBM",
362        "MetricName": "tma_branch_mispredicts",
363        "MetricThreshold": "tma_branch_mispredicts > 0.1 & tma_bad_speculation > 0.15",
364        "MetricgroupNoGroup": "TopdownL2",
365        "PublicDescription": "This metric represents fraction of slots the CPU has wasted due to Branch Misprediction.  These slots are either wasted by uops fetched from an incorrectly speculated program path; or stalls when the out-of-order part of the machine needs to recover its state from a speculative path. Sample with: BR_MISP_RETIRED.ALL_BRANCHES. Related metrics: tma_info_bad_spec_branch_misprediction_cost, tma_info_bottleneck_mispredictions, tma_mispredicts_resteers",
366        "ScaleUnit": "100%"
367    },
368    {
369        "BriefDescription": "This metric represents fraction of cycles the CPU was stalled due to Branch Resteers",
370        "MetricExpr": "INT_MISC.CLEAR_RESTEER_CYCLES / tma_info_thread_clks + tma_unknown_branches",
371        "MetricGroup": "FetchLat;TopdownL3;tma_L3_group;tma_fetch_latency_group",
372        "MetricName": "tma_branch_resteers",
373        "MetricThreshold": "tma_branch_resteers > 0.05 & (tma_fetch_latency > 0.1 & tma_frontend_bound > 0.15)",
374        "PublicDescription": "This metric represents fraction of cycles the CPU was stalled due to Branch Resteers. Branch Resteers estimates the Frontend delay in fetching operations from corrected path; following all sorts of miss-predicted branches. For example; branchy code with lots of miss-predictions might get categorized under Branch Resteers. Note the value of this node may overlap with its siblings. Sample with: BR_MISP_RETIRED.ALL_BRANCHES",
375        "ScaleUnit": "100%"
376    },
377    {
378        "BriefDescription": "This metric estimates fraction of cycles the CPU retired uops originated from CISC (complex instruction set computer) instruction",
379        "MetricExpr": "max(0, tma_microcode_sequencer - tma_assists)",
380        "MetricGroup": "TopdownL4;tma_L4_group;tma_microcode_sequencer_group",
381        "MetricName": "tma_cisc",
382        "MetricThreshold": "tma_cisc > 0.1 & (tma_microcode_sequencer > 0.05 & tma_heavy_operations > 0.1)",
383        "PublicDescription": "This metric estimates fraction of cycles the CPU retired uops originated from CISC (complex instruction set computer) instruction. A CISC instruction has multiple uops that are required to perform the instruction's functionality as in the case of read-modify-write as an example. Since these instructions require multiple uops they may or may not imply sub-optimal use of machine resources.",
384        "ScaleUnit": "100%"
385    },
386    {
387        "BriefDescription": "This metric represents fraction of cycles the CPU was stalled due to Branch Resteers as a result of Machine Clears",
388        "MetricExpr": "(1 - BR_MISP_RETIRED.ALL_BRANCHES / (BR_MISP_RETIRED.ALL_BRANCHES + MACHINE_CLEARS.COUNT)) * INT_MISC.CLEAR_RESTEER_CYCLES / tma_info_thread_clks",
389        "MetricGroup": "BadSpec;MachineClears;TopdownL4;tma_L4_group;tma_branch_resteers_group;tma_issueMC",
390        "MetricName": "tma_clears_resteers",
391        "MetricThreshold": "tma_clears_resteers > 0.05 & (tma_branch_resteers > 0.05 & (tma_fetch_latency > 0.1 & tma_frontend_bound > 0.15))",
392        "PublicDescription": "This metric represents fraction of cycles the CPU was stalled due to Branch Resteers as a result of Machine Clears. Sample with: INT_MISC.CLEAR_RESTEER_CYCLES. Related metrics: tma_l1_bound, tma_machine_clears, tma_microcode_sequencer, tma_ms_switches",
393        "ScaleUnit": "100%"
394    },
395    {
396        "BriefDescription": "This metric estimates fraction of cycles while the memory subsystem was handling synchronizations due to contested accesses",
397        "MetricConstraint": "NO_GROUP_EVENTS",
398        "MetricExpr": "(44 * tma_info_system_core_frequency * (MEM_LOAD_L3_HIT_RETIRED.XSNP_HITM * (OCR.DEMAND_DATA_RD.L3_HIT.HITM_OTHER_CORE / (OCR.DEMAND_DATA_RD.L3_HIT.HITM_OTHER_CORE + OCR.DEMAND_DATA_RD.L3_HIT.HIT_OTHER_CORE_FWD))) + 44 * tma_info_system_core_frequency * MEM_LOAD_L3_HIT_RETIRED.XSNP_MISS) * (1 + MEM_LOAD_RETIRED.FB_HIT / MEM_LOAD_RETIRED.L1_MISS / 2) / tma_info_thread_clks",
399        "MetricGroup": "BvMS;DataSharing;Offcore;Snoop;TopdownL4;tma_L4_group;tma_issueSyncxn;tma_l3_bound_group",
400        "MetricName": "tma_contested_accesses",
401        "MetricThreshold": "tma_contested_accesses > 0.05 & (tma_l3_bound > 0.05 & (tma_memory_bound > 0.2 & tma_backend_bound > 0.2))",
402        "PublicDescription": "This metric estimates fraction of cycles while the memory subsystem was handling synchronizations due to contested accesses. Contested accesses occur when data written by one Logical Processor are read by another Logical Processor on a different Physical Core. Examples of contested accesses include synchronizations such as locks; true data sharing such as modified locked variables; and false sharing. Sample with: MEM_LOAD_L3_HIT_RETIRED.XSNP_HITM_PS;MEM_LOAD_L3_HIT_RETIRED.XSNP_MISS_PS. Related metrics: tma_data_sharing, tma_false_sharing, tma_machine_clears, tma_remote_cache",
403        "ScaleUnit": "100%"
404    },
405    {
406        "BriefDescription": "This metric represents fraction of slots where Core non-memory issues were of a bottleneck",
407        "MetricConstraint": "NO_GROUP_EVENTS",
408        "MetricExpr": "tma_backend_bound - tma_memory_bound",
409        "MetricGroup": "Backend;Compute;TmaL2;TopdownL2;tma_L2_group;tma_backend_bound_group",
410        "MetricName": "tma_core_bound",
411        "MetricThreshold": "tma_core_bound > 0.1 & tma_backend_bound > 0.2",
412        "MetricgroupNoGroup": "TopdownL2",
413        "PublicDescription": "This metric represents fraction of slots where Core non-memory issues were of a bottleneck.  Shortage in hardware compute resources; or dependencies in software's instructions are both categorized under Core Bound. Hence it may indicate the machine ran out of an out-of-order resource; certain execution units are overloaded or dependencies in program's data- or instruction-flow are limiting the performance (e.g. FP-chained long-latency arithmetic operations).",
414        "ScaleUnit": "100%"
415    },
416    {
417        "BriefDescription": "This metric estimates fraction of cycles while the memory subsystem was handling synchronizations due to data-sharing accesses",
418        "MetricConstraint": "NO_GROUP_EVENTS",
419        "MetricExpr": "44 * tma_info_system_core_frequency * (MEM_LOAD_L3_HIT_RETIRED.XSNP_HIT + MEM_LOAD_L3_HIT_RETIRED.XSNP_HITM * (1 - OCR.DEMAND_DATA_RD.L3_HIT.HITM_OTHER_CORE / (OCR.DEMAND_DATA_RD.L3_HIT.HITM_OTHER_CORE + OCR.DEMAND_DATA_RD.L3_HIT.HIT_OTHER_CORE_FWD))) * (1 + MEM_LOAD_RETIRED.FB_HIT / MEM_LOAD_RETIRED.L1_MISS / 2) / tma_info_thread_clks",
420        "MetricGroup": "BvMS;Offcore;Snoop;TopdownL4;tma_L4_group;tma_issueSyncxn;tma_l3_bound_group",
421        "MetricName": "tma_data_sharing",
422        "MetricThreshold": "tma_data_sharing > 0.05 & (tma_l3_bound > 0.05 & (tma_memory_bound > 0.2 & tma_backend_bound > 0.2))",
423        "PublicDescription": "This metric estimates fraction of cycles while the memory subsystem was handling synchronizations due to data-sharing accesses. Data shared by multiple Logical Processors (even just read shared) may cause increased access latency due to cache coherency. Excessive data sharing can drastically harm multithreaded performance. Sample with: MEM_LOAD_L3_HIT_RETIRED.XSNP_HIT_PS. Related metrics: tma_contested_accesses, tma_false_sharing, tma_machine_clears, tma_remote_cache",
424        "ScaleUnit": "100%"
425    },
426    {
427        "BriefDescription": "This metric represents fraction of cycles where decoder-0 was the only active decoder",
428        "MetricExpr": "(cpu@INST_DECODED.DECODERS\\,cmask\\=1@ - cpu@INST_DECODED.DECODERS\\,cmask\\=2@) / tma_info_core_core_clks / 2",
429        "MetricGroup": "DSBmiss;FetchBW;TopdownL4;tma_L4_group;tma_issueD0;tma_mite_group",
430        "MetricName": "tma_decoder0_alone",
431        "MetricThreshold": "tma_decoder0_alone > 0.1 & (tma_mite > 0.1 & tma_fetch_bandwidth > 0.2)",
432        "PublicDescription": "This metric represents fraction of cycles where decoder-0 was the only active decoder. Related metrics: tma_few_uops_instructions",
433        "ScaleUnit": "100%"
434    },
435    {
436        "BriefDescription": "This metric represents fraction of cycles where the Divider unit was active",
437        "MetricExpr": "ARITH.DIVIDER_ACTIVE / tma_info_thread_clks",
438        "MetricGroup": "BvCB;TopdownL3;tma_L3_group;tma_core_bound_group",
439        "MetricName": "tma_divider",
440        "MetricThreshold": "tma_divider > 0.2 & (tma_core_bound > 0.1 & tma_backend_bound > 0.2)",
441        "PublicDescription": "This metric represents fraction of cycles where the Divider unit was active. Divide and square root instructions are performed by the Divider unit and can take considerably longer latency than integer or Floating Point addition; subtraction; or multiplication. Sample with: ARITH.DIVIDER_ACTIVE",
442        "ScaleUnit": "100%"
443    },
444    {
445        "BriefDescription": "This metric estimates how often the CPU was stalled on accesses to external memory (DRAM) by loads",
446        "MetricConstraint": "NO_GROUP_EVENTS",
447        "MetricExpr": "(CYCLE_ACTIVITY.STALLS_L3_MISS / tma_info_thread_clks + (CYCLE_ACTIVITY.STALLS_L1D_MISS - CYCLE_ACTIVITY.STALLS_L2_MISS) / tma_info_thread_clks - tma_l2_bound - tma_pmm_bound if #has_pmem > 0 else CYCLE_ACTIVITY.STALLS_L3_MISS / tma_info_thread_clks + (CYCLE_ACTIVITY.STALLS_L1D_MISS - CYCLE_ACTIVITY.STALLS_L2_MISS) / tma_info_thread_clks - tma_l2_bound)",
448        "MetricGroup": "MemoryBound;TmaL3mem;TopdownL3;tma_L3_group;tma_memory_bound_group",
449        "MetricName": "tma_dram_bound",
450        "MetricThreshold": "tma_dram_bound > 0.1 & (tma_memory_bound > 0.2 & tma_backend_bound > 0.2)",
451        "PublicDescription": "This metric estimates how often the CPU was stalled on accesses to external memory (DRAM) by loads. Better caching can improve the latency and increase performance. Sample with: MEM_LOAD_RETIRED.L3_MISS_PS",
452        "ScaleUnit": "100%"
453    },
454    {
455        "BriefDescription": "This metric represents Core fraction of cycles in which CPU was likely limited due to DSB (decoded uop cache) fetch pipeline",
456        "MetricExpr": "(IDQ.DSB_CYCLES_ANY - IDQ.DSB_CYCLES_OK) / tma_info_core_core_clks / 2",
457        "MetricGroup": "DSB;FetchBW;TopdownL3;tma_L3_group;tma_fetch_bandwidth_group",
458        "MetricName": "tma_dsb",
459        "MetricThreshold": "tma_dsb > 0.15 & tma_fetch_bandwidth > 0.2",
460        "PublicDescription": "This metric represents Core fraction of cycles in which CPU was likely limited due to DSB (decoded uop cache) fetch pipeline.  For example; inefficient utilization of the DSB cache structure or bank conflict when reading from it; are categorized here.",
461        "ScaleUnit": "100%"
462    },
463    {
464        "BriefDescription": "This metric represents fraction of cycles the CPU was stalled due to switches from DSB to MITE pipelines",
465        "MetricExpr": "DSB2MITE_SWITCHES.PENALTY_CYCLES / tma_info_thread_clks",
466        "MetricGroup": "DSBmiss;FetchLat;TopdownL3;tma_L3_group;tma_fetch_latency_group;tma_issueFB",
467        "MetricName": "tma_dsb_switches",
468        "MetricThreshold": "tma_dsb_switches > 0.05 & (tma_fetch_latency > 0.1 & tma_frontend_bound > 0.15)",
469        "PublicDescription": "This metric represents fraction of cycles the CPU was stalled due to switches from DSB to MITE pipelines. The DSB (decoded i-cache) is a Uop Cache where the front-end directly delivers Uops (micro operations) avoiding heavy x86 decoding. The DSB pipeline has shorter latency and delivered higher bandwidth than the MITE (legacy instruction decode pipeline). Switching between the two pipelines can cause penalties hence this metric measures the exposed penalty. Sample with: FRONTEND_RETIRED.DSB_MISS_PS. Related metrics: tma_fetch_bandwidth, tma_info_botlnk_l2_dsb_bandwidth, tma_info_botlnk_l2_dsb_misses, tma_info_frontend_dsb_coverage, tma_info_inst_mix_iptb, tma_lcp",
470        "ScaleUnit": "100%"
471    },
472    {
473        "BriefDescription": "This metric roughly estimates the fraction of cycles where the Data TLB (DTLB) was missed by load accesses",
474        "MetricConstraint": "NO_GROUP_EVENTS_NMI",
475        "MetricExpr": "min(9 * cpu@DTLB_LOAD_MISSES.STLB_HIT\\,cmask\\=1@ + DTLB_LOAD_MISSES.WALK_ACTIVE, max(CYCLE_ACTIVITY.CYCLES_MEM_ANY - CYCLE_ACTIVITY.CYCLES_L1D_MISS, 0)) / tma_info_thread_clks",
476        "MetricGroup": "BvMT;MemoryTLB;TopdownL4;tma_L4_group;tma_issueTLB;tma_l1_bound_group",
477        "MetricName": "tma_dtlb_load",
478        "MetricThreshold": "tma_dtlb_load > 0.1 & (tma_l1_bound > 0.1 & (tma_memory_bound > 0.2 & tma_backend_bound > 0.2))",
479        "PublicDescription": "This metric roughly estimates the fraction of cycles where the Data TLB (DTLB) was missed by load accesses. TLBs (Translation Look-aside Buffers) are processor caches for recently used entries out of the Page Tables that are used to map virtual- to physical-addresses by the operating system. This metric approximates the potential delay of demand loads missing the first-level data TLB (assuming worst case scenario with back to back misses to different pages). This includes hitting in the second-level TLB (STLB) as well as performing a hardware page walk on an STLB miss. Sample with: MEM_INST_RETIRED.STLB_MISS_LOADS_PS. Related metrics: tma_dtlb_store, tma_info_bottleneck_memory_data_tlbs, tma_info_bottleneck_memory_synchronization",
480        "ScaleUnit": "100%"
481    },
482    {
483        "BriefDescription": "This metric roughly estimates the fraction of cycles spent handling first-level data TLB store misses",
484        "MetricExpr": "(9 * cpu@DTLB_STORE_MISSES.STLB_HIT\\,cmask\\=1@ + DTLB_STORE_MISSES.WALK_ACTIVE) / tma_info_core_core_clks",
485        "MetricGroup": "BvMT;MemoryTLB;TopdownL4;tma_L4_group;tma_issueTLB;tma_store_bound_group",
486        "MetricName": "tma_dtlb_store",
487        "MetricThreshold": "tma_dtlb_store > 0.05 & (tma_store_bound > 0.2 & (tma_memory_bound > 0.2 & tma_backend_bound > 0.2))",
488        "PublicDescription": "This metric roughly estimates the fraction of cycles spent handling first-level data TLB store misses.  As with ordinary data caching; focus on improving data locality and reducing working-set size to reduce DTLB overhead.  Additionally; consider using profile-guided optimization (PGO) to collocate frequently-used data on the same page.  Try using larger page sizes for large amounts of frequently-used data. Sample with: MEM_INST_RETIRED.STLB_MISS_STORES_PS. Related metrics: tma_dtlb_load, tma_info_bottleneck_memory_data_tlbs, tma_info_bottleneck_memory_synchronization",
489        "ScaleUnit": "100%"
490    },
491    {
492        "BriefDescription": "This metric roughly estimates how often CPU was handling synchronizations due to False Sharing",
493        "MetricConstraint": "NO_GROUP_EVENTS",
494        "MetricExpr": "(110 * tma_info_system_core_frequency * (OCR.DEMAND_RFO.L3_MISS.REMOTE_HITM + OCR.PF_L2_RFO.L3_MISS.REMOTE_HITM) + 47.5 * tma_info_system_core_frequency * (OCR.DEMAND_RFO.L3_HIT.HITM_OTHER_CORE + OCR.PF_L2_RFO.L3_HIT.HITM_OTHER_CORE)) / tma_info_thread_clks",
495        "MetricGroup": "BvMS;DataSharing;Offcore;Snoop;TopdownL4;tma_L4_group;tma_issueSyncxn;tma_store_bound_group",
496        "MetricName": "tma_false_sharing",
497        "MetricThreshold": "tma_false_sharing > 0.05 & (tma_store_bound > 0.2 & (tma_memory_bound > 0.2 & tma_backend_bound > 0.2))",
498        "PublicDescription": "This metric roughly estimates how often CPU was handling synchronizations due to False Sharing. False Sharing is a multithreading hiccup; where multiple Logical Processors contend on different data-elements mapped into the same cache line. Sample with: MEM_LOAD_L3_HIT_RETIRED.XSNP_HITM_PS;OFFCORE_RESPONSE.DEMAND_RFO.L3_HIT.SNOOP_HITM. Related metrics: tma_contested_accesses, tma_data_sharing, tma_machine_clears, tma_remote_cache",
499        "ScaleUnit": "100%"
500    },
501    {
502        "BriefDescription": "This metric does a *rough estimation* of how often L1D Fill Buffer unavailability limited additional L1D miss memory access requests to proceed",
503        "MetricConstraint": "NO_GROUP_EVENTS_NMI",
504        "MetricExpr": "tma_info_memory_load_miss_real_latency * cpu@L1D_PEND_MISS.FB_FULL\\,cmask\\=1@ / tma_info_thread_clks",
505        "MetricGroup": "BvMS;MemoryBW;TopdownL4;tma_L4_group;tma_issueBW;tma_issueSL;tma_issueSmSt;tma_l1_bound_group",
506        "MetricName": "tma_fb_full",
507        "MetricThreshold": "tma_fb_full > 0.3",
508        "PublicDescription": "This metric does a *rough estimation* of how often L1D Fill Buffer unavailability limited additional L1D miss memory access requests to proceed. The higher the metric value; the deeper the memory hierarchy level the misses are satisfied from (metric values >1 are valid). Often it hints on approaching bandwidth limits (to L2 cache; L3 cache or external memory). Related metrics: tma_info_bottleneck_cache_memory_bandwidth, tma_info_system_dram_bw_use, tma_mem_bandwidth, tma_sq_full, tma_store_latency, tma_streaming_stores",
509        "ScaleUnit": "100%"
510    },
511    {
512        "BriefDescription": "This metric represents fraction of slots the CPU was stalled due to Frontend bandwidth issues",
513        "MetricExpr": "tma_frontend_bound - tma_fetch_latency",
514        "MetricGroup": "FetchBW;Frontend;TmaL2;TopdownL2;tma_L2_group;tma_frontend_bound_group;tma_issueFB",
515        "MetricName": "tma_fetch_bandwidth",
516        "MetricThreshold": "tma_fetch_bandwidth > 0.2",
517        "MetricgroupNoGroup": "TopdownL2",
518        "PublicDescription": "This metric represents fraction of slots the CPU was stalled due to Frontend bandwidth issues.  For example; inefficiencies at the instruction decoders; or restrictions for caching in the DSB (decoded uops cache) are categorized under Fetch Bandwidth. In such cases; the Frontend typically delivers suboptimal amount of uops to the Backend. Sample with: FRONTEND_RETIRED.LATENCY_GE_2_BUBBLES_GE_1_PS;FRONTEND_RETIRED.LATENCY_GE_1_PS;FRONTEND_RETIRED.LATENCY_GE_2_PS. Related metrics: tma_dsb_switches, tma_info_botlnk_l2_dsb_bandwidth, tma_info_botlnk_l2_dsb_misses, tma_info_frontend_dsb_coverage, tma_info_inst_mix_iptb, tma_lcp",
519        "ScaleUnit": "100%"
520    },
521    {
522        "BriefDescription": "This metric represents fraction of slots the CPU was stalled due to Frontend latency issues",
523        "MetricExpr": "4 * IDQ_UOPS_NOT_DELIVERED.CYCLES_0_UOPS_DELIV.CORE / tma_info_thread_slots",
524        "MetricGroup": "Frontend;TmaL2;TopdownL2;tma_L2_group;tma_frontend_bound_group",
525        "MetricName": "tma_fetch_latency",
526        "MetricThreshold": "tma_fetch_latency > 0.1 & tma_frontend_bound > 0.15",
527        "MetricgroupNoGroup": "TopdownL2",
528        "PublicDescription": "This metric represents fraction of slots the CPU was stalled due to Frontend latency issues.  For example; instruction-cache misses; iTLB misses or fetch stalls after a branch misprediction are categorized under Frontend Latency. In such cases; the Frontend eventually delivers no uops for some period. Sample with: FRONTEND_RETIRED.LATENCY_GE_16_PS;FRONTEND_RETIRED.LATENCY_GE_8_PS",
529        "ScaleUnit": "100%"
530    },
531    {
532        "BriefDescription": "This metric represents fraction of slots where the CPU was retiring instructions that that are decoder into two or up to ([SNB+] four; [ADL+] five) uops",
533        "MetricConstraint": "NO_GROUP_EVENTS_NMI",
534        "MetricExpr": "tma_heavy_operations - tma_microcode_sequencer",
535        "MetricGroup": "TopdownL3;tma_L3_group;tma_heavy_operations_group;tma_issueD0",
536        "MetricName": "tma_few_uops_instructions",
537        "MetricThreshold": "tma_few_uops_instructions > 0.05 & tma_heavy_operations > 0.1",
538        "PublicDescription": "This metric represents fraction of slots where the CPU was retiring instructions that that are decoder into two or up to ([SNB+] four; [ADL+] five) uops. This highly-correlates with the number of uops in such instructions. Related metrics: tma_decoder0_alone",
539        "ScaleUnit": "100%"
540    },
541    {
542        "BriefDescription": "This metric represents overall arithmetic floating-point (FP) operations fraction the CPU has executed (retired)",
543        "MetricConstraint": "NO_GROUP_EVENTS",
544        "MetricExpr": "tma_x87_use + tma_fp_scalar + tma_fp_vector",
545        "MetricGroup": "HPC;TopdownL3;tma_L3_group;tma_light_operations_group",
546        "MetricName": "tma_fp_arith",
547        "MetricThreshold": "tma_fp_arith > 0.2 & tma_light_operations > 0.6",
548        "PublicDescription": "This metric represents overall arithmetic floating-point (FP) operations fraction the CPU has executed (retired). Note this metric's value may exceed its parent due to use of \"Uops\" CountDomain and FMA double-counting.",
549        "ScaleUnit": "100%"
550    },
551    {
552        "BriefDescription": "This metric roughly estimates fraction of slots the CPU retired uops as a result of handing Floating Point (FP) Assists",
553        "MetricExpr": "34 * FP_ASSIST.ANY / tma_info_thread_slots",
554        "MetricGroup": "HPC;TopdownL5;tma_L5_group;tma_assists_group",
555        "MetricName": "tma_fp_assists",
556        "MetricThreshold": "tma_fp_assists > 0.1",
557        "PublicDescription": "This metric roughly estimates fraction of slots the CPU retired uops as a result of handing Floating Point (FP) Assists. FP Assist may apply when working with very small floating point values (so-called Denormals).",
558        "ScaleUnit": "100%"
559    },
560    {
561        "BriefDescription": "This metric approximates arithmetic floating-point (FP) scalar uops fraction the CPU has retired",
562        "MetricExpr": "FP_ARITH_INST_RETIRED.SCALAR / UOPS_RETIRED.RETIRE_SLOTS",
563        "MetricGroup": "Compute;Flops;TopdownL4;tma_L4_group;tma_fp_arith_group;tma_issue2P",
564        "MetricName": "tma_fp_scalar",
565        "MetricThreshold": "tma_fp_scalar > 0.1 & (tma_fp_arith > 0.2 & tma_light_operations > 0.6)",
566        "PublicDescription": "This metric approximates arithmetic floating-point (FP) scalar uops fraction the CPU has retired. May overcount due to FMA double counting. Related metrics: tma_fp_vector, tma_fp_vector_128b, tma_fp_vector_256b, tma_fp_vector_512b, tma_port_0, tma_port_1, tma_port_5, tma_port_6, tma_ports_utilized_2",
567        "ScaleUnit": "100%"
568    },
569    {
570        "BriefDescription": "This metric approximates arithmetic floating-point (FP) vector uops fraction the CPU has retired aggregated across all vector widths",
571        "MetricConstraint": "NO_GROUP_EVENTS",
572        "MetricExpr": "cpu@FP_ARITH_INST_RETIRED.128B_PACKED_DOUBLE\\,umask\\=0xfc@ / UOPS_RETIRED.RETIRE_SLOTS",
573        "MetricGroup": "Compute;Flops;TopdownL4;tma_L4_group;tma_fp_arith_group;tma_issue2P",
574        "MetricName": "tma_fp_vector",
575        "MetricThreshold": "tma_fp_vector > 0.1 & (tma_fp_arith > 0.2 & tma_light_operations > 0.6)",
576        "PublicDescription": "This metric approximates arithmetic floating-point (FP) vector uops fraction the CPU has retired aggregated across all vector widths. May overcount due to FMA double counting. Related metrics: tma_fp_scalar, tma_fp_vector_128b, tma_fp_vector_256b, tma_fp_vector_512b, tma_port_0, tma_port_1, tma_port_5, tma_port_6, tma_ports_utilized_2",
577        "ScaleUnit": "100%"
578    },
579    {
580        "BriefDescription": "This metric approximates arithmetic FP vector uops fraction the CPU has retired for 128-bit wide vectors",
581        "MetricExpr": "(FP_ARITH_INST_RETIRED.128B_PACKED_DOUBLE + FP_ARITH_INST_RETIRED.128B_PACKED_SINGLE) / UOPS_RETIRED.RETIRE_SLOTS",
582        "MetricGroup": "Compute;Flops;TopdownL5;tma_L5_group;tma_fp_vector_group;tma_issue2P",
583        "MetricName": "tma_fp_vector_128b",
584        "MetricThreshold": "tma_fp_vector_128b > 0.1 & (tma_fp_vector > 0.1 & (tma_fp_arith > 0.2 & tma_light_operations > 0.6))",
585        "PublicDescription": "This metric approximates arithmetic FP vector uops fraction the CPU has retired for 128-bit wide vectors. May overcount due to FMA double counting. Related metrics: tma_fp_scalar, tma_fp_vector, tma_fp_vector_256b, tma_fp_vector_512b, tma_port_0, tma_port_1, tma_port_5, tma_port_6, tma_ports_utilized_2",
586        "ScaleUnit": "100%"
587    },
588    {
589        "BriefDescription": "This metric approximates arithmetic FP vector uops fraction the CPU has retired for 256-bit wide vectors",
590        "MetricExpr": "(FP_ARITH_INST_RETIRED.256B_PACKED_DOUBLE + FP_ARITH_INST_RETIRED.256B_PACKED_SINGLE) / UOPS_RETIRED.RETIRE_SLOTS",
591        "MetricGroup": "Compute;Flops;TopdownL5;tma_L5_group;tma_fp_vector_group;tma_issue2P",
592        "MetricName": "tma_fp_vector_256b",
593        "MetricThreshold": "tma_fp_vector_256b > 0.1 & (tma_fp_vector > 0.1 & (tma_fp_arith > 0.2 & tma_light_operations > 0.6))",
594        "PublicDescription": "This metric approximates arithmetic FP vector uops fraction the CPU has retired for 256-bit wide vectors. May overcount due to FMA double counting. Related metrics: tma_fp_scalar, tma_fp_vector, tma_fp_vector_128b, tma_fp_vector_512b, tma_port_0, tma_port_1, tma_port_5, tma_port_6, tma_ports_utilized_2",
595        "ScaleUnit": "100%"
596    },
597    {
598        "BriefDescription": "This metric approximates arithmetic FP vector uops fraction the CPU has retired for 512-bit wide vectors",
599        "MetricExpr": "(FP_ARITH_INST_RETIRED.512B_PACKED_DOUBLE + FP_ARITH_INST_RETIRED.512B_PACKED_SINGLE) / UOPS_RETIRED.RETIRE_SLOTS",
600        "MetricGroup": "Compute;Flops;TopdownL5;tma_L5_group;tma_fp_vector_group;tma_issue2P",
601        "MetricName": "tma_fp_vector_512b",
602        "MetricThreshold": "tma_fp_vector_512b > 0.1 & (tma_fp_vector > 0.1 & (tma_fp_arith > 0.2 & tma_light_operations > 0.6))",
603        "PublicDescription": "This metric approximates arithmetic FP vector uops fraction the CPU has retired for 512-bit wide vectors. May overcount due to FMA double counting. Related metrics: tma_fp_scalar, tma_fp_vector, tma_fp_vector_128b, tma_fp_vector_256b, tma_port_0, tma_port_1, tma_port_5, tma_port_6, tma_ports_utilized_2",
604        "ScaleUnit": "100%"
605    },
606    {
607        "BriefDescription": "This category represents fraction of slots where the processor's Frontend undersupplies its Backend",
608        "MetricExpr": "IDQ_UOPS_NOT_DELIVERED.CORE / tma_info_thread_slots",
609        "MetricGroup": "BvFB;BvIO;PGO;TmaL1;TopdownL1;tma_L1_group",
610        "MetricName": "tma_frontend_bound",
611        "MetricThreshold": "tma_frontend_bound > 0.15",
612        "MetricgroupNoGroup": "TopdownL1",
613        "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 Pipeline_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. Sample with: FRONTEND_RETIRED.LATENCY_GE_4_PS",
614        "ScaleUnit": "100%"
615    },
616    {
617        "BriefDescription": "This metric represents fraction of slots where the CPU was retiring fused instructions -- where one uop can represent multiple contiguous instructions",
618        "MetricExpr": "tma_light_operations * UOPS_RETIRED.MACRO_FUSED / UOPS_RETIRED.RETIRE_SLOTS",
619        "MetricGroup": "Branches;BvBO;Pipeline;TopdownL3;tma_L3_group;tma_light_operations_group",
620        "MetricName": "tma_fused_instructions",
621        "MetricThreshold": "tma_fused_instructions > 0.1 & tma_light_operations > 0.6",
622        "PublicDescription": "This metric represents fraction of slots where the CPU was retiring fused instructions -- where one uop can represent multiple contiguous instructions. CMP+JCC or DEC+JCC are common examples of legacy fusions. {([MTL] Note new MOV+OP and Load+OP fusions appear under Other_Light_Ops in MTL!)}",
623        "ScaleUnit": "100%"
624    },
625    {
626        "BriefDescription": "This metric represents fraction of slots where the CPU was retiring heavy-weight operations -- instructions that require two or more uops or micro-coded sequences",
627        "MetricExpr": "(UOPS_RETIRED.RETIRE_SLOTS + UOPS_RETIRED.MACRO_FUSED - INST_RETIRED.ANY) / tma_info_thread_slots",
628        "MetricGroup": "Retire;TmaL2;TopdownL2;tma_L2_group;tma_retiring_group",
629        "MetricName": "tma_heavy_operations",
630        "MetricThreshold": "tma_heavy_operations > 0.1",
631        "MetricgroupNoGroup": "TopdownL2",
632        "PublicDescription": "This metric represents fraction of slots where the CPU was retiring heavy-weight operations -- instructions that require two or more uops or micro-coded sequences. This highly-correlates with the uop length of these instructions/sequences. ([ICL+] Note this may overcount due to approximation using indirect events; [ADL+] .)",
633        "ScaleUnit": "100%"
634    },
635    {
636        "BriefDescription": "This metric represents fraction of cycles the CPU was stalled due to instruction cache misses",
637        "MetricExpr": "(ICACHE_16B.IFDATA_STALL + 2 * cpu@ICACHE_16B.IFDATA_STALL\\,cmask\\=1\\,edge@) / tma_info_thread_clks",
638        "MetricGroup": "BigFootprint;BvBC;FetchLat;IcMiss;TopdownL3;tma_L3_group;tma_fetch_latency_group",
639        "MetricName": "tma_icache_misses",
640        "MetricThreshold": "tma_icache_misses > 0.05 & (tma_fetch_latency > 0.1 & tma_frontend_bound > 0.15)",
641        "PublicDescription": "This metric represents fraction of cycles the CPU was stalled due to instruction cache misses. Sample with: FRONTEND_RETIRED.L2_MISS_PS;FRONTEND_RETIRED.L1I_MISS_PS",
642        "ScaleUnit": "100%"
643    },
644    {
645        "BriefDescription": "Branch Misprediction Cost: Fraction of TMA slots wasted per non-speculative branch misprediction (retired JEClear)",
646        "MetricExpr": "tma_info_bottleneck_mispredictions * tma_info_thread_slots / BR_MISP_RETIRED.ALL_BRANCHES / 100",
647        "MetricGroup": "Bad;BrMispredicts;tma_issueBM",
648        "MetricName": "tma_info_bad_spec_branch_misprediction_cost",
649        "PublicDescription": "Branch Misprediction Cost: Fraction of TMA slots wasted per non-speculative branch misprediction (retired JEClear). Related metrics: tma_branch_mispredicts, tma_info_bottleneck_mispredictions, tma_mispredicts_resteers"
650    },
651    {
652        "BriefDescription": "Instructions per retired mispredicts for indirect CALL or JMP branches (lower number means higher occurrence rate).",
653        "MetricExpr": "tma_info_inst_mix_instructions / (UOPS_RETIRED.RETIRE_SLOTS / UOPS_ISSUED.ANY * BR_MISP_EXEC.INDIRECT)",
654        "MetricGroup": "Bad;BrMispredicts",
655        "MetricName": "tma_info_bad_spec_ipmisp_indirect",
656        "MetricThreshold": "tma_info_bad_spec_ipmisp_indirect < 1e3"
657    },
658    {
659        "BriefDescription": "Number of Instructions per non-speculative Branch Misprediction (JEClear) (lower number means higher occurrence rate)",
660        "MetricExpr": "INST_RETIRED.ANY / BR_MISP_RETIRED.ALL_BRANCHES",
661        "MetricGroup": "Bad;BadSpec;BrMispredicts",
662        "MetricName": "tma_info_bad_spec_ipmispredict",
663        "MetricThreshold": "tma_info_bad_spec_ipmispredict < 200"
664    },
665    {
666        "BriefDescription": "Speculative to Retired ratio of all clears (covering mispredicts and nukes)",
667        "MetricExpr": "INT_MISC.CLEARS_COUNT / (BR_MISP_RETIRED.ALL_BRANCHES + MACHINE_CLEARS.COUNT)",
668        "MetricGroup": "BrMispredicts",
669        "MetricName": "tma_info_bad_spec_spec_clears_ratio"
670    },
671    {
672        "BriefDescription": "Probability of Core Bound bottleneck hidden by SMT-profiling artifacts",
673        "MetricConstraint": "NO_GROUP_EVENTS",
674        "MetricExpr": "(100 * (1 - tma_core_bound / tma_ports_utilization if tma_core_bound < tma_ports_utilization else 1) if tma_info_system_smt_2t_utilization > 0.5 else 0)",
675        "MetricGroup": "Cor;SMT",
676        "MetricName": "tma_info_botlnk_l0_core_bound_likely",
677        "MetricThreshold": "tma_info_botlnk_l0_core_bound_likely > 0.5"
678    },
679    {
680        "BriefDescription": "Total pipeline cost of DSB (uop cache) hits - subset of the Instruction_Fetch_BW Bottleneck",
681        "MetricExpr": "100 * (tma_frontend_bound * (tma_fetch_bandwidth / (tma_fetch_bandwidth + tma_fetch_latency)) * (tma_dsb / (tma_dsb + tma_mite)))",
682        "MetricGroup": "DSB;FetchBW;tma_issueFB",
683        "MetricName": "tma_info_botlnk_l2_dsb_bandwidth",
684        "MetricThreshold": "tma_info_botlnk_l2_dsb_bandwidth > 10",
685        "PublicDescription": "Total pipeline cost of DSB (uop cache) hits - subset of the Instruction_Fetch_BW Bottleneck. Related metrics: tma_dsb_switches, tma_fetch_bandwidth, tma_info_botlnk_l2_dsb_misses, tma_info_frontend_dsb_coverage, tma_info_inst_mix_iptb, tma_lcp"
686    },
687    {
688        "BriefDescription": "Total pipeline cost of DSB (uop cache) misses - subset of the Instruction_Fetch_BW Bottleneck",
689        "MetricConstraint": "NO_GROUP_EVENTS",
690        "MetricExpr": "100 * (tma_fetch_latency * tma_dsb_switches / (tma_branch_resteers + tma_dsb_switches + tma_icache_misses + tma_itlb_misses + tma_lcp + tma_ms_switches) + tma_fetch_bandwidth * tma_mite / (tma_dsb + tma_mite))",
691        "MetricGroup": "DSBmiss;Fed;tma_issueFB",
692        "MetricName": "tma_info_botlnk_l2_dsb_misses",
693        "MetricThreshold": "tma_info_botlnk_l2_dsb_misses > 10",
694        "PublicDescription": "Total pipeline cost of DSB (uop cache) misses - subset of the Instruction_Fetch_BW Bottleneck. Related metrics: tma_dsb_switches, tma_fetch_bandwidth, tma_info_botlnk_l2_dsb_bandwidth, tma_info_frontend_dsb_coverage, tma_info_inst_mix_iptb, tma_lcp"
695    },
696    {
697        "BriefDescription": "Total pipeline cost of Instruction Cache misses - subset of the Big_Code Bottleneck",
698        "MetricExpr": "100 * (tma_fetch_latency * tma_icache_misses / (tma_branch_resteers + tma_dsb_switches + tma_icache_misses + tma_itlb_misses + tma_lcp + tma_ms_switches))",
699        "MetricGroup": "Fed;FetchLat;IcMiss;tma_issueFL",
700        "MetricName": "tma_info_botlnk_l2_ic_misses",
701        "MetricThreshold": "tma_info_botlnk_l2_ic_misses > 5",
702        "PublicDescription": "Total pipeline cost of Instruction Cache misses - subset of the Big_Code Bottleneck. Related metrics: "
703    },
704    {
705        "BriefDescription": "Total pipeline cost of instruction fetch related bottlenecks by large code footprint programs (i-side cache; TLB and BTB misses)",
706        "MetricConstraint": "NO_GROUP_EVENTS",
707        "MetricExpr": "100 * tma_fetch_latency * (tma_itlb_misses + tma_icache_misses + tma_unknown_branches) / (tma_branch_resteers + tma_dsb_switches + tma_icache_misses + tma_itlb_misses + tma_lcp + tma_ms_switches)",
708        "MetricGroup": "BigFootprint;BvBC;Fed;Frontend;IcMiss;MemoryTLB",
709        "MetricName": "tma_info_bottleneck_big_code",
710        "MetricThreshold": "tma_info_bottleneck_big_code > 20"
711    },
712    {
713        "BriefDescription": "Total pipeline cost of instructions used for program control-flow - a subset of the Retiring category in TMA",
714        "MetricExpr": "100 * ((BR_INST_RETIRED.ALL_BRANCHES + 2 * BR_INST_RETIRED.NEAR_CALL + INST_RETIRED.NOP) / tma_info_thread_slots)",
715        "MetricGroup": "BvBO;Ret",
716        "MetricName": "tma_info_bottleneck_branching_overhead",
717        "MetricThreshold": "tma_info_bottleneck_branching_overhead > 5",
718        "PublicDescription": "Total pipeline cost of instructions used for program control-flow - a subset of the Retiring category in TMA. Examples include function calls; loops and alignments. (A lower bound)"
719    },
720    {
721        "BriefDescription": "Total pipeline cost of external Memory- or Cache-Bandwidth related bottlenecks",
722        "MetricExpr": "100 * (tma_memory_bound * (tma_dram_bound / (tma_dram_bound + tma_l1_bound + tma_l2_bound + tma_l3_bound + tma_pmm_bound + tma_store_bound)) * (tma_mem_bandwidth / (tma_mem_bandwidth + tma_mem_latency)) + tma_memory_bound * (tma_l3_bound / (tma_dram_bound + tma_l1_bound + tma_l2_bound + tma_l3_bound + tma_pmm_bound + tma_store_bound)) * (tma_sq_full / (tma_contested_accesses + tma_data_sharing + tma_l3_hit_latency + tma_sq_full)) + tma_memory_bound * (tma_l1_bound / (tma_dram_bound + tma_l1_bound + tma_l2_bound + tma_l3_bound + tma_pmm_bound + tma_store_bound)) * (tma_fb_full / (tma_4k_aliasing + tma_dtlb_load + tma_fb_full + tma_l1_hit_latency + tma_lock_latency + tma_split_loads + tma_store_fwd_blk)))",
723        "MetricGroup": "BvMB;Mem;MemoryBW;Offcore;tma_issueBW",
724        "MetricName": "tma_info_bottleneck_cache_memory_bandwidth",
725        "MetricThreshold": "tma_info_bottleneck_cache_memory_bandwidth > 20",
726        "PublicDescription": "Total pipeline cost of external Memory- or Cache-Bandwidth related bottlenecks. Related metrics: tma_fb_full, tma_info_system_dram_bw_use, tma_mem_bandwidth, tma_sq_full"
727    },
728    {
729        "BriefDescription": "Total pipeline cost of external Memory- or Cache-Latency related bottlenecks",
730        "MetricExpr": "100 * (tma_memory_bound * (tma_dram_bound / (tma_dram_bound + tma_l1_bound + tma_l2_bound + tma_l3_bound + tma_pmm_bound + tma_store_bound)) * (tma_mem_latency / (tma_mem_bandwidth + tma_mem_latency)) + tma_memory_bound * (tma_l3_bound / (tma_dram_bound + tma_l1_bound + tma_l2_bound + tma_l3_bound + tma_pmm_bound + tma_store_bound)) * (tma_l3_hit_latency / (tma_contested_accesses + tma_data_sharing + tma_l3_hit_latency + tma_sq_full)) + tma_memory_bound * tma_l2_bound / (tma_dram_bound + tma_l1_bound + tma_l2_bound + tma_l3_bound + tma_pmm_bound + tma_store_bound) + tma_memory_bound * (tma_store_bound / (tma_dram_bound + tma_l1_bound + tma_l2_bound + tma_l3_bound + tma_pmm_bound + tma_store_bound)) * (tma_store_latency / (tma_dtlb_store + tma_false_sharing + tma_split_stores + tma_store_latency)) + tma_memory_bound * (tma_l1_bound / (tma_dram_bound + tma_l1_bound + tma_l2_bound + tma_l3_bound + tma_pmm_bound + tma_store_bound)) * (tma_l1_hit_latency / (tma_4k_aliasing + tma_dtlb_load + tma_fb_full + tma_l1_hit_latency + tma_lock_latency + tma_split_loads + tma_store_fwd_blk)))",
731        "MetricGroup": "BvML;Mem;MemoryLat;Offcore;tma_issueLat",
732        "MetricName": "tma_info_bottleneck_cache_memory_latency",
733        "MetricThreshold": "tma_info_bottleneck_cache_memory_latency > 20",
734        "PublicDescription": "Total pipeline cost of external Memory- or Cache-Latency related bottlenecks. Related metrics: tma_l3_hit_latency, tma_mem_latency"
735    },
736    {
737        "BriefDescription": "Total pipeline cost when the execution is compute-bound - an estimation",
738        "MetricExpr": "100 * (tma_core_bound * tma_divider / (tma_divider + tma_ports_utilization + tma_serializing_operation) + tma_core_bound * (tma_ports_utilization / (tma_divider + tma_ports_utilization + tma_serializing_operation)) * (tma_ports_utilized_3m / (tma_ports_utilized_0 + tma_ports_utilized_1 + tma_ports_utilized_2 + tma_ports_utilized_3m)))",
739        "MetricGroup": "BvCB;Cor;tma_issueComp",
740        "MetricName": "tma_info_bottleneck_compute_bound_est",
741        "MetricThreshold": "tma_info_bottleneck_compute_bound_est > 20",
742        "PublicDescription": "Total pipeline cost when the execution is compute-bound - an estimation. Covers Core Bound when High ILP as well as when long-latency execution units are busy. Related metrics: "
743    },
744    {
745        "BriefDescription": "Total pipeline cost of instruction fetch bandwidth related bottlenecks (when the front-end could not sustain operations delivery to the back-end)",
746        "MetricConstraint": "NO_GROUP_EVENTS",
747        "MetricExpr": "100 * (tma_frontend_bound - (1 - 10 * tma_microcode_sequencer * tma_other_mispredicts / tma_branch_mispredicts) * tma_fetch_latency * tma_mispredicts_resteers / (tma_branch_resteers + tma_dsb_switches + tma_icache_misses + tma_itlb_misses + tma_lcp + tma_ms_switches) - tma_microcode_sequencer / (tma_few_uops_instructions + tma_microcode_sequencer) * (tma_assists / tma_microcode_sequencer) * tma_fetch_latency * (tma_ms_switches + tma_branch_resteers * (tma_clears_resteers + tma_mispredicts_resteers * (10 * tma_microcode_sequencer * tma_other_mispredicts / tma_branch_mispredicts)) / (tma_clears_resteers + tma_mispredicts_resteers + tma_unknown_branches)) / (tma_branch_resteers + tma_dsb_switches + tma_icache_misses + tma_itlb_misses + tma_lcp + tma_ms_switches)) - tma_info_bottleneck_big_code",
748        "MetricGroup": "BvFB;Fed;FetchBW;Frontend",
749        "MetricName": "tma_info_bottleneck_instruction_fetch_bw",
750        "MetricThreshold": "tma_info_bottleneck_instruction_fetch_bw > 20"
751    },
752    {
753        "BriefDescription": "Total pipeline cost of irregular execution (e.g",
754        "MetricExpr": "100 * (tma_microcode_sequencer / (tma_few_uops_instructions + tma_microcode_sequencer) * (tma_assists / tma_microcode_sequencer) * tma_fetch_latency * (tma_ms_switches + tma_branch_resteers * (tma_clears_resteers + tma_mispredicts_resteers * (10 * tma_microcode_sequencer * tma_other_mispredicts / tma_branch_mispredicts)) / (tma_clears_resteers + tma_mispredicts_resteers + tma_unknown_branches)) / (tma_branch_resteers + tma_dsb_switches + tma_icache_misses + tma_itlb_misses + tma_lcp + tma_ms_switches) + 10 * tma_microcode_sequencer * tma_other_mispredicts / tma_branch_mispredicts * tma_branch_mispredicts + tma_machine_clears * tma_other_nukes / tma_other_nukes + tma_core_bound * (tma_serializing_operation + tma_core_bound * RS_EVENTS.EMPTY_CYCLES / tma_info_thread_clks * tma_ports_utilized_0) / (tma_divider + tma_ports_utilization + tma_serializing_operation) + tma_microcode_sequencer / (tma_few_uops_instructions + tma_microcode_sequencer) * (tma_assists / tma_microcode_sequencer) * tma_heavy_operations)",
755        "MetricGroup": "Bad;BvIO;Cor;Ret;tma_issueMS",
756        "MetricName": "tma_info_bottleneck_irregular_overhead",
757        "MetricThreshold": "tma_info_bottleneck_irregular_overhead > 10",
758        "PublicDescription": "Total pipeline cost of irregular execution (e.g. FP-assists in HPC, Wait time with work imbalance multithreaded workloads, overhead in system services or virtualized environments). Related metrics: tma_microcode_sequencer, tma_ms_switches"
759    },
760    {
761        "BriefDescription": "Total pipeline cost of Memory Address Translation related bottlenecks (data-side TLBs)",
762        "MetricConstraint": "NO_GROUP_EVENTS",
763        "MetricExpr": "100 * (tma_memory_bound * (tma_l1_bound / max(tma_memory_bound, tma_dram_bound + tma_l1_bound + tma_l2_bound + tma_l3_bound + tma_pmm_bound + tma_store_bound)) * (tma_dtlb_load / max(tma_l1_bound, tma_4k_aliasing + tma_dtlb_load + tma_fb_full + tma_l1_hit_latency + tma_lock_latency + tma_split_loads + tma_store_fwd_blk)) + tma_memory_bound * (tma_store_bound / (tma_dram_bound + tma_l1_bound + tma_l2_bound + tma_l3_bound + tma_pmm_bound + tma_store_bound)) * (tma_dtlb_store / (tma_dtlb_store + tma_false_sharing + tma_split_stores + tma_store_latency)))",
764        "MetricGroup": "BvMT;Mem;MemoryTLB;Offcore;tma_issueTLB",
765        "MetricName": "tma_info_bottleneck_memory_data_tlbs",
766        "MetricThreshold": "tma_info_bottleneck_memory_data_tlbs > 20",
767        "PublicDescription": "Total pipeline cost of Memory Address Translation related bottlenecks (data-side TLBs). Related metrics: tma_dtlb_load, tma_dtlb_store, tma_info_bottleneck_memory_synchronization"
768    },
769    {
770        "BriefDescription": "Total pipeline cost of Memory Synchronization related bottlenecks (data transfers and coherency updates across processors)",
771        "MetricExpr": "100 * (tma_memory_bound * (tma_dram_bound / (tma_dram_bound + tma_l1_bound + tma_l2_bound + tma_l3_bound + tma_pmm_bound + tma_store_bound) * (tma_mem_latency / (tma_mem_bandwidth + tma_mem_latency)) * tma_remote_cache / (tma_local_mem + tma_remote_cache + tma_remote_mem) + tma_l3_bound / (tma_dram_bound + tma_l1_bound + tma_l2_bound + tma_l3_bound + tma_pmm_bound + tma_store_bound) * (tma_contested_accesses + tma_data_sharing) / (tma_contested_accesses + tma_data_sharing + tma_l3_hit_latency + tma_sq_full) + tma_store_bound / (tma_dram_bound + tma_l1_bound + tma_l2_bound + tma_l3_bound + tma_pmm_bound + tma_store_bound) * tma_false_sharing / (tma_dtlb_store + tma_false_sharing + tma_split_stores + tma_store_latency - tma_store_latency)) + tma_machine_clears * (1 - tma_other_nukes / tma_other_nukes))",
772        "MetricGroup": "BvMS;Mem;Offcore;tma_issueTLB",
773        "MetricName": "tma_info_bottleneck_memory_synchronization",
774        "MetricThreshold": "tma_info_bottleneck_memory_synchronization > 10",
775        "PublicDescription": "Total pipeline cost of Memory Synchronization related bottlenecks (data transfers and coherency updates across processors). Related metrics: tma_dtlb_load, tma_dtlb_store, tma_info_bottleneck_memory_data_tlbs"
776    },
777    {
778        "BriefDescription": "Total pipeline cost of Branch Misprediction related bottlenecks",
779        "MetricConstraint": "NO_GROUP_EVENTS",
780        "MetricExpr": "100 * (1 - 10 * tma_microcode_sequencer * tma_other_mispredicts / tma_branch_mispredicts) * (tma_branch_mispredicts + tma_fetch_latency * tma_mispredicts_resteers / (tma_branch_resteers + tma_dsb_switches + tma_icache_misses + tma_itlb_misses + tma_lcp + tma_ms_switches))",
781        "MetricGroup": "Bad;BadSpec;BrMispredicts;BvMP;tma_issueBM",
782        "MetricName": "tma_info_bottleneck_mispredictions",
783        "MetricThreshold": "tma_info_bottleneck_mispredictions > 20",
784        "PublicDescription": "Total pipeline cost of Branch Misprediction related bottlenecks. Related metrics: tma_branch_mispredicts, tma_info_bad_spec_branch_misprediction_cost, tma_mispredicts_resteers"
785    },
786    {
787        "BriefDescription": "Total pipeline cost of remaining bottlenecks in the back-end",
788        "MetricExpr": "100 - (tma_info_bottleneck_big_code + tma_info_bottleneck_instruction_fetch_bw + tma_info_bottleneck_mispredictions + tma_info_bottleneck_cache_memory_bandwidth + tma_info_bottleneck_cache_memory_latency + tma_info_bottleneck_memory_data_tlbs + tma_info_bottleneck_memory_synchronization + tma_info_bottleneck_compute_bound_est + tma_info_bottleneck_irregular_overhead + tma_info_bottleneck_branching_overhead + tma_info_bottleneck_useful_work)",
789        "MetricGroup": "BvOB;Cor;Offcore",
790        "MetricName": "tma_info_bottleneck_other_bottlenecks",
791        "MetricThreshold": "tma_info_bottleneck_other_bottlenecks > 20",
792        "PublicDescription": "Total pipeline cost of remaining bottlenecks in the back-end. Examples include data-dependencies (Core Bound when Low ILP) and other unlisted memory-related stalls."
793    },
794    {
795        "BriefDescription": "Total pipeline cost of \"useful operations\" - the portion of Retiring category not covered by Branching_Overhead nor Irregular_Overhead.",
796        "MetricExpr": "100 * (tma_retiring - (BR_INST_RETIRED.ALL_BRANCHES + 2 * BR_INST_RETIRED.NEAR_CALL + INST_RETIRED.NOP) / tma_info_thread_slots - tma_microcode_sequencer / (tma_few_uops_instructions + tma_microcode_sequencer) * (tma_assists / tma_microcode_sequencer) * tma_heavy_operations)",
797        "MetricGroup": "BvUW;Ret",
798        "MetricName": "tma_info_bottleneck_useful_work",
799        "MetricThreshold": "tma_info_bottleneck_useful_work > 20"
800    },
801    {
802        "BriefDescription": "Fraction of branches that are CALL or RET",
803        "MetricExpr": "(BR_INST_RETIRED.NEAR_CALL + BR_INST_RETIRED.NEAR_RETURN) / BR_INST_RETIRED.ALL_BRANCHES",
804        "MetricGroup": "Bad;Branches",
805        "MetricName": "tma_info_branches_callret"
806    },
807    {
808        "BriefDescription": "Fraction of branches that are non-taken conditionals",
809        "MetricExpr": "BR_INST_RETIRED.NOT_TAKEN / BR_INST_RETIRED.ALL_BRANCHES",
810        "MetricGroup": "Bad;Branches;CodeGen;PGO",
811        "MetricName": "tma_info_branches_cond_nt"
812    },
813    {
814        "BriefDescription": "Fraction of branches that are taken conditionals",
815        "MetricExpr": "(BR_INST_RETIRED.CONDITIONAL - BR_INST_RETIRED.NOT_TAKEN) / BR_INST_RETIRED.ALL_BRANCHES",
816        "MetricGroup": "Bad;Branches;CodeGen;PGO",
817        "MetricName": "tma_info_branches_cond_tk"
818    },
819    {
820        "BriefDescription": "Fraction of branches that are unconditional (direct or indirect) jumps",
821        "MetricConstraint": "NO_GROUP_EVENTS",
822        "MetricExpr": "(BR_INST_RETIRED.NEAR_TAKEN - (BR_INST_RETIRED.COND - BR_INST_RETIRED.NOT_TAKEN) - 2 * BR_INST_RETIRED.NEAR_CALL) / BR_INST_RETIRED.ALL_BRANCHES",
823        "MetricGroup": "Bad;Branches",
824        "MetricName": "tma_info_branches_jump"
825    },
826    {
827        "BriefDescription": "Core actual clocks when any Logical Processor is active on the Physical Core",
828        "MetricExpr": "(CPU_CLK_UNHALTED.THREAD / 2 * (1 + CPU_CLK_UNHALTED.ONE_THREAD_ACTIVE / CPU_CLK_UNHALTED.REF_XCLK) if #core_wide < 1 else (CPU_CLK_UNHALTED.THREAD_ANY / 2 if #SMT_on else tma_info_thread_clks))",
829        "MetricGroup": "SMT",
830        "MetricName": "tma_info_core_core_clks"
831    },
832    {
833        "BriefDescription": "Instructions Per Cycle across hyper-threads (per physical core)",
834        "MetricExpr": "INST_RETIRED.ANY / tma_info_core_core_clks",
835        "MetricGroup": "Ret;SMT;TmaL1;tma_L1_group",
836        "MetricName": "tma_info_core_coreipc"
837    },
838    {
839        "BriefDescription": "uops Executed per Cycle",
840        "MetricExpr": "UOPS_EXECUTED.THREAD / tma_info_thread_clks",
841        "MetricGroup": "Power",
842        "MetricName": "tma_info_core_epc"
843    },
844    {
845        "BriefDescription": "Floating Point Operations Per Cycle",
846        "MetricConstraint": "NO_GROUP_EVENTS",
847        "MetricExpr": "(FP_ARITH_INST_RETIRED.SCALAR + 2 * FP_ARITH_INST_RETIRED.128B_PACKED_DOUBLE + 4 * FP_ARITH_INST_RETIRED.4_FLOPS + 8 * FP_ARITH_INST_RETIRED.8_FLOPS + 16 * FP_ARITH_INST_RETIRED.512B_PACKED_SINGLE) / tma_info_core_core_clks",
848        "MetricGroup": "Flops;Ret",
849        "MetricName": "tma_info_core_flopc"
850    },
851    {
852        "BriefDescription": "Actual per-core usage of the Floating Point non-X87 execution units (regardless of precision or vector-width)",
853        "MetricExpr": "(FP_ARITH_INST_RETIRED.SCALAR + cpu@FP_ARITH_INST_RETIRED.128B_PACKED_DOUBLE\\,umask\\=0xfc@) / (2 * tma_info_core_core_clks)",
854        "MetricGroup": "Cor;Flops;HPC",
855        "MetricName": "tma_info_core_fp_arith_utilization",
856        "PublicDescription": "Actual per-core usage of the Floating Point non-X87 execution units (regardless of precision or vector-width). Values > 1 are possible due to ([BDW+] Fused-Multiply Add (FMA) counting - common; [ADL+] use all of ADD/MUL/FMA in Scalar or 128/256-bit vectors - less common)."
857    },
858    {
859        "BriefDescription": "Instruction-Level-Parallelism (average number of uops executed when there is execution) per thread (logical-processor)",
860        "MetricExpr": "UOPS_EXECUTED.THREAD / cpu@UOPS_EXECUTED.THREAD\\,cmask\\=1@",
861        "MetricGroup": "Backend;Cor;Pipeline;PortsUtil",
862        "MetricName": "tma_info_core_ilp"
863    },
864    {
865        "BriefDescription": "Fraction of Uops delivered by the DSB (aka Decoded ICache; or Uop Cache)",
866        "MetricExpr": "IDQ.DSB_UOPS / (IDQ.DSB_UOPS + IDQ.MITE_UOPS + IDQ.MS_UOPS)",
867        "MetricGroup": "DSB;Fed;FetchBW;tma_issueFB",
868        "MetricName": "tma_info_frontend_dsb_coverage",
869        "MetricThreshold": "tma_info_frontend_dsb_coverage < 0.7 & tma_info_thread_ipc / 4 > 0.35",
870        "PublicDescription": "Fraction of Uops delivered by the DSB (aka Decoded ICache; or Uop Cache). Related metrics: tma_dsb_switches, tma_fetch_bandwidth, tma_info_botlnk_l2_dsb_bandwidth, tma_info_botlnk_l2_dsb_misses, tma_info_inst_mix_iptb, tma_lcp"
871    },
872    {
873        "BriefDescription": "Average number of cycles of a switch from the DSB fetch-unit to MITE fetch unit - see DSB_Switches tree node for details.",
874        "MetricExpr": "DSB2MITE_SWITCHES.PENALTY_CYCLES / DSB2MITE_SWITCHES.COUNT",
875        "MetricGroup": "DSBmiss",
876        "MetricName": "tma_info_frontend_dsb_switch_cost"
877    },
878    {
879        "BriefDescription": "Average number of Uops issued by front-end when it issued something",
880        "MetricExpr": "UOPS_ISSUED.ANY / cpu@UOPS_ISSUED.ANY\\,cmask\\=1@",
881        "MetricGroup": "Fed;FetchBW",
882        "MetricName": "tma_info_frontend_fetch_upc"
883    },
884    {
885        "BriefDescription": "Average Latency for L1 instruction cache misses",
886        "MetricExpr": "ICACHE_16B.IFDATA_STALL / cpu@ICACHE_16B.IFDATA_STALL\\,cmask\\=1\\,edge@ + 2",
887        "MetricGroup": "Fed;FetchLat;IcMiss",
888        "MetricName": "tma_info_frontend_icache_miss_latency"
889    },
890    {
891        "BriefDescription": "Instructions per non-speculative DSB miss (lower number means higher occurrence rate)",
892        "MetricExpr": "INST_RETIRED.ANY / FRONTEND_RETIRED.ANY_DSB_MISS",
893        "MetricGroup": "DSBmiss;Fed",
894        "MetricName": "tma_info_frontend_ipdsb_miss_ret",
895        "MetricThreshold": "tma_info_frontend_ipdsb_miss_ret < 50"
896    },
897    {
898        "BriefDescription": "Instructions per speculative Unknown Branch Misprediction (BAClear) (lower number means higher occurrence rate)",
899        "MetricExpr": "tma_info_inst_mix_instructions / BACLEARS.ANY",
900        "MetricGroup": "Fed",
901        "MetricName": "tma_info_frontend_ipunknown_branch"
902    },
903    {
904        "BriefDescription": "L2 cache true code cacheline misses per kilo instruction",
905        "MetricExpr": "1e3 * FRONTEND_RETIRED.L2_MISS / INST_RETIRED.ANY",
906        "MetricGroup": "IcMiss",
907        "MetricName": "tma_info_frontend_l2mpki_code"
908    },
909    {
910        "BriefDescription": "L2 cache speculative code cacheline misses per kilo instruction",
911        "MetricExpr": "1e3 * L2_RQSTS.CODE_RD_MISS / INST_RETIRED.ANY",
912        "MetricGroup": "IcMiss",
913        "MetricName": "tma_info_frontend_l2mpki_code_all"
914    },
915    {
916        "BriefDescription": "Branch instructions per taken branch.",
917        "MetricExpr": "BR_INST_RETIRED.ALL_BRANCHES / BR_INST_RETIRED.NEAR_TAKEN",
918        "MetricGroup": "Branches;Fed;PGO",
919        "MetricName": "tma_info_inst_mix_bptkbranch"
920    },
921    {
922        "BriefDescription": "Total number of retired Instructions",
923        "MetricExpr": "INST_RETIRED.ANY",
924        "MetricGroup": "Summary;TmaL1;tma_L1_group",
925        "MetricName": "tma_info_inst_mix_instructions",
926        "PublicDescription": "Total number of retired Instructions. Sample with: INST_RETIRED.PREC_DIST"
927    },
928    {
929        "BriefDescription": "Instructions per FP Arithmetic instruction (lower number means higher occurrence rate)",
930        "MetricConstraint": "NO_GROUP_EVENTS",
931        "MetricExpr": "INST_RETIRED.ANY / (FP_ARITH_INST_RETIRED.SCALAR + cpu@FP_ARITH_INST_RETIRED.128B_PACKED_DOUBLE\\,umask\\=0xfc@)",
932        "MetricGroup": "Flops;InsType",
933        "MetricName": "tma_info_inst_mix_iparith",
934        "MetricThreshold": "tma_info_inst_mix_iparith < 10",
935        "PublicDescription": "Instructions per FP Arithmetic instruction (lower number means higher occurrence rate). Values < 1 are possible due to intentional FMA double counting. Approximated prior to BDW."
936    },
937    {
938        "BriefDescription": "Instructions per FP Arithmetic AVX/SSE 128-bit instruction (lower number means higher occurrence rate)",
939        "MetricExpr": "INST_RETIRED.ANY / (FP_ARITH_INST_RETIRED.128B_PACKED_DOUBLE + FP_ARITH_INST_RETIRED.128B_PACKED_SINGLE)",
940        "MetricGroup": "Flops;FpVector;InsType",
941        "MetricName": "tma_info_inst_mix_iparith_avx128",
942        "MetricThreshold": "tma_info_inst_mix_iparith_avx128 < 10",
943        "PublicDescription": "Instructions per FP Arithmetic AVX/SSE 128-bit instruction (lower number means higher occurrence rate). Values < 1 are possible due to intentional FMA double counting."
944    },
945    {
946        "BriefDescription": "Instructions per FP Arithmetic AVX* 256-bit instruction (lower number means higher occurrence rate)",
947        "MetricExpr": "INST_RETIRED.ANY / (FP_ARITH_INST_RETIRED.256B_PACKED_DOUBLE + FP_ARITH_INST_RETIRED.256B_PACKED_SINGLE)",
948        "MetricGroup": "Flops;FpVector;InsType",
949        "MetricName": "tma_info_inst_mix_iparith_avx256",
950        "MetricThreshold": "tma_info_inst_mix_iparith_avx256 < 10",
951        "PublicDescription": "Instructions per FP Arithmetic AVX* 256-bit instruction (lower number means higher occurrence rate). Values < 1 are possible due to intentional FMA double counting."
952    },
953    {
954        "BriefDescription": "Instructions per FP Arithmetic AVX 512-bit instruction (lower number means higher occurrence rate)",
955        "MetricExpr": "INST_RETIRED.ANY / (FP_ARITH_INST_RETIRED.512B_PACKED_DOUBLE + FP_ARITH_INST_RETIRED.512B_PACKED_SINGLE)",
956        "MetricGroup": "Flops;FpVector;InsType",
957        "MetricName": "tma_info_inst_mix_iparith_avx512",
958        "MetricThreshold": "tma_info_inst_mix_iparith_avx512 < 10",
959        "PublicDescription": "Instructions per FP Arithmetic AVX 512-bit instruction (lower number means higher occurrence rate). Values < 1 are possible due to intentional FMA double counting."
960    },
961    {
962        "BriefDescription": "Instructions per FP Arithmetic Scalar Double-Precision instruction (lower number means higher occurrence rate)",
963        "MetricExpr": "INST_RETIRED.ANY / FP_ARITH_INST_RETIRED.SCALAR_DOUBLE",
964        "MetricGroup": "Flops;FpScalar;InsType",
965        "MetricName": "tma_info_inst_mix_iparith_scalar_dp",
966        "MetricThreshold": "tma_info_inst_mix_iparith_scalar_dp < 10",
967        "PublicDescription": "Instructions per FP Arithmetic Scalar Double-Precision instruction (lower number means higher occurrence rate). Values < 1 are possible due to intentional FMA double counting."
968    },
969    {
970        "BriefDescription": "Instructions per FP Arithmetic Scalar Single-Precision instruction (lower number means higher occurrence rate)",
971        "MetricExpr": "INST_RETIRED.ANY / FP_ARITH_INST_RETIRED.SCALAR_SINGLE",
972        "MetricGroup": "Flops;FpScalar;InsType",
973        "MetricName": "tma_info_inst_mix_iparith_scalar_sp",
974        "MetricThreshold": "tma_info_inst_mix_iparith_scalar_sp < 10",
975        "PublicDescription": "Instructions per FP Arithmetic Scalar Single-Precision instruction (lower number means higher occurrence rate). Values < 1 are possible due to intentional FMA double counting."
976    },
977    {
978        "BriefDescription": "Instructions per Branch (lower number means higher occurrence rate)",
979        "MetricExpr": "INST_RETIRED.ANY / BR_INST_RETIRED.ALL_BRANCHES",
980        "MetricGroup": "Branches;Fed;InsType",
981        "MetricName": "tma_info_inst_mix_ipbranch",
982        "MetricThreshold": "tma_info_inst_mix_ipbranch < 8"
983    },
984    {
985        "BriefDescription": "Instructions per (near) call (lower number means higher occurrence rate)",
986        "MetricExpr": "INST_RETIRED.ANY / BR_INST_RETIRED.NEAR_CALL",
987        "MetricGroup": "Branches;Fed;PGO",
988        "MetricName": "tma_info_inst_mix_ipcall",
989        "MetricThreshold": "tma_info_inst_mix_ipcall < 200"
990    },
991    {
992        "BriefDescription": "Instructions per Floating Point (FP) Operation (lower number means higher occurrence rate)",
993        "MetricConstraint": "NO_GROUP_EVENTS",
994        "MetricExpr": "INST_RETIRED.ANY / (FP_ARITH_INST_RETIRED.SCALAR + 2 * FP_ARITH_INST_RETIRED.128B_PACKED_DOUBLE + 4 * FP_ARITH_INST_RETIRED.4_FLOPS + 8 * FP_ARITH_INST_RETIRED.8_FLOPS + 16 * FP_ARITH_INST_RETIRED.512B_PACKED_SINGLE)",
995        "MetricGroup": "Flops;InsType",
996        "MetricName": "tma_info_inst_mix_ipflop",
997        "MetricThreshold": "tma_info_inst_mix_ipflop < 10"
998    },
999    {
1000        "BriefDescription": "Instructions per Load (lower number means higher occurrence rate)",
1001        "MetricExpr": "INST_RETIRED.ANY / MEM_INST_RETIRED.ALL_LOADS",
1002        "MetricGroup": "InsType",
1003        "MetricName": "tma_info_inst_mix_ipload",
1004        "MetricThreshold": "tma_info_inst_mix_ipload < 3"
1005    },
1006    {
1007        "BriefDescription": "Instructions per PAUSE (lower number means higher occurrence rate)",
1008        "MetricExpr": "tma_info_inst_mix_instructions / ROB_MISC_EVENTS.PAUSE_INST",
1009        "MetricGroup": "Flops;FpVector;InsType",
1010        "MetricName": "tma_info_inst_mix_ippause"
1011    },
1012    {
1013        "BriefDescription": "Instructions per Store (lower number means higher occurrence rate)",
1014        "MetricExpr": "INST_RETIRED.ANY / MEM_INST_RETIRED.ALL_STORES",
1015        "MetricGroup": "InsType",
1016        "MetricName": "tma_info_inst_mix_ipstore",
1017        "MetricThreshold": "tma_info_inst_mix_ipstore < 8"
1018    },
1019    {
1020        "BriefDescription": "Instructions per Software prefetch instruction (of any type: NTA/T0/T1/T2/Prefetch) (lower number means higher occurrence rate)",
1021        "MetricExpr": "INST_RETIRED.ANY / cpu@SW_PREFETCH_ACCESS.T0\\,umask\\=0xF@",
1022        "MetricGroup": "Prefetches",
1023        "MetricName": "tma_info_inst_mix_ipswpf",
1024        "MetricThreshold": "tma_info_inst_mix_ipswpf < 100"
1025    },
1026    {
1027        "BriefDescription": "Instructions per taken branch",
1028        "MetricExpr": "INST_RETIRED.ANY / BR_INST_RETIRED.NEAR_TAKEN",
1029        "MetricGroup": "Branches;Fed;FetchBW;Frontend;PGO;tma_issueFB",
1030        "MetricName": "tma_info_inst_mix_iptb",
1031        "MetricThreshold": "tma_info_inst_mix_iptb < 9",
1032        "PublicDescription": "Instructions per taken branch. Related metrics: tma_dsb_switches, tma_fetch_bandwidth, tma_info_botlnk_l2_dsb_bandwidth, tma_info_botlnk_l2_dsb_misses, tma_info_frontend_dsb_coverage, tma_lcp"
1033    },
1034    {
1035        "BriefDescription": "Average per-core data fill bandwidth to the L1 data cache [GB / sec]",
1036        "MetricExpr": "tma_info_memory_l1d_cache_fill_bw",
1037        "MetricGroup": "Mem;MemoryBW",
1038        "MetricName": "tma_info_memory_core_l1d_cache_fill_bw_2t"
1039    },
1040    {
1041        "BriefDescription": "Average per-core data fill bandwidth to the L2 cache [GB / sec]",
1042        "MetricExpr": "tma_info_memory_l2_cache_fill_bw",
1043        "MetricGroup": "Mem;MemoryBW",
1044        "MetricName": "tma_info_memory_core_l2_cache_fill_bw_2t"
1045    },
1046    {
1047        "BriefDescription": "Rate of non silent evictions from the L2 cache per Kilo instruction",
1048        "MetricExpr": "1e3 * L2_LINES_OUT.NON_SILENT / tma_info_inst_mix_instructions",
1049        "MetricGroup": "L2Evicts;Mem;Server",
1050        "MetricName": "tma_info_memory_core_l2_evictions_nonsilent_pki"
1051    },
1052    {
1053        "BriefDescription": "Rate of silent evictions from the L2 cache per Kilo instruction where the evicted lines are dropped (no writeback to L3 or memory)",
1054        "MetricExpr": "1e3 * L2_LINES_OUT.SILENT / tma_info_inst_mix_instructions",
1055        "MetricGroup": "L2Evicts;Mem;Server",
1056        "MetricName": "tma_info_memory_core_l2_evictions_silent_pki"
1057    },
1058    {
1059        "BriefDescription": "Average per-core data access bandwidth to the L3 cache [GB / sec]",
1060        "MetricExpr": "tma_info_memory_l3_cache_access_bw",
1061        "MetricGroup": "Mem;MemoryBW;Offcore",
1062        "MetricName": "tma_info_memory_core_l3_cache_access_bw_2t"
1063    },
1064    {
1065        "BriefDescription": "Average per-core data fill bandwidth to the L3 cache [GB / sec]",
1066        "MetricExpr": "tma_info_memory_l3_cache_fill_bw",
1067        "MetricGroup": "Mem;MemoryBW",
1068        "MetricName": "tma_info_memory_core_l3_cache_fill_bw_2t"
1069    },
1070    {
1071        "BriefDescription": "Fill Buffer (FB) hits per kilo instructions for retired demand loads (L1D misses that merge into ongoing miss-handling entries)",
1072        "MetricExpr": "1e3 * MEM_LOAD_RETIRED.FB_HIT / INST_RETIRED.ANY",
1073        "MetricGroup": "CacheHits;Mem",
1074        "MetricName": "tma_info_memory_fb_hpki"
1075    },
1076    {
1077        "BriefDescription": "Average per-thread data fill bandwidth to the L1 data cache [GB / sec]",
1078        "MetricExpr": "64 * L1D.REPLACEMENT / 1e9 / duration_time",
1079        "MetricGroup": "Mem;MemoryBW",
1080        "MetricName": "tma_info_memory_l1d_cache_fill_bw"
1081    },
1082    {
1083        "BriefDescription": "L1 cache true misses per kilo instruction for retired demand loads",
1084        "MetricExpr": "1e3 * MEM_LOAD_RETIRED.L1_MISS / INST_RETIRED.ANY",
1085        "MetricGroup": "CacheHits;Mem",
1086        "MetricName": "tma_info_memory_l1mpki"
1087    },
1088    {
1089        "BriefDescription": "L1 cache true misses per kilo instruction for all demand loads (including speculative)",
1090        "MetricExpr": "1e3 * L2_RQSTS.ALL_DEMAND_DATA_RD / INST_RETIRED.ANY",
1091        "MetricGroup": "CacheHits;Mem",
1092        "MetricName": "tma_info_memory_l1mpki_load"
1093    },
1094    {
1095        "BriefDescription": "Average per-thread data fill bandwidth to the L2 cache [GB / sec]",
1096        "MetricExpr": "64 * L2_LINES_IN.ALL / 1e9 / duration_time",
1097        "MetricGroup": "Mem;MemoryBW",
1098        "MetricName": "tma_info_memory_l2_cache_fill_bw"
1099    },
1100    {
1101        "BriefDescription": "L2 cache hits per kilo instruction for all request types (including speculative)",
1102        "MetricExpr": "1e3 * (L2_RQSTS.REFERENCES - L2_RQSTS.MISS) / INST_RETIRED.ANY",
1103        "MetricGroup": "CacheHits;Mem",
1104        "MetricName": "tma_info_memory_l2hpki_all"
1105    },
1106    {
1107        "BriefDescription": "L2 cache hits per kilo instruction for all demand loads  (including speculative)",
1108        "MetricExpr": "1e3 * L2_RQSTS.DEMAND_DATA_RD_HIT / INST_RETIRED.ANY",
1109        "MetricGroup": "CacheHits;Mem",
1110        "MetricName": "tma_info_memory_l2hpki_load"
1111    },
1112    {
1113        "BriefDescription": "L2 cache true misses per kilo instruction for retired demand loads",
1114        "MetricExpr": "1e3 * MEM_LOAD_RETIRED.L2_MISS / INST_RETIRED.ANY",
1115        "MetricGroup": "Backend;CacheHits;Mem",
1116        "MetricName": "tma_info_memory_l2mpki"
1117    },
1118    {
1119        "BriefDescription": "L2 cache ([RKL+] true) misses per kilo instruction for all request types (including speculative)",
1120        "MetricExpr": "1e3 * L2_RQSTS.MISS / INST_RETIRED.ANY",
1121        "MetricGroup": "CacheHits;Mem;Offcore",
1122        "MetricName": "tma_info_memory_l2mpki_all"
1123    },
1124    {
1125        "BriefDescription": "L2 cache ([RKL+] true) misses per kilo instruction for all demand loads  (including speculative)",
1126        "MetricExpr": "1e3 * L2_RQSTS.DEMAND_DATA_RD_MISS / INST_RETIRED.ANY",
1127        "MetricGroup": "CacheHits;Mem",
1128        "MetricName": "tma_info_memory_l2mpki_load"
1129    },
1130    {
1131        "BriefDescription": "Offcore requests (L2 cache miss) per kilo instruction for demand RFOs",
1132        "MetricExpr": "1e3 * OFFCORE_REQUESTS.DEMAND_RFO / INST_RETIRED.ANY",
1133        "MetricGroup": "CacheMisses;Offcore",
1134        "MetricName": "tma_info_memory_l2mpki_rfo"
1135    },
1136    {
1137        "BriefDescription": "Average per-thread data access bandwidth to the L3 cache [GB / sec]",
1138        "MetricExpr": "64 * OFFCORE_REQUESTS.ALL_REQUESTS / 1e9 / duration_time",
1139        "MetricGroup": "Mem;MemoryBW;Offcore",
1140        "MetricName": "tma_info_memory_l3_cache_access_bw"
1141    },
1142    {
1143        "BriefDescription": "Average per-thread data fill bandwidth to the L3 cache [GB / sec]",
1144        "MetricExpr": "64 * LONGEST_LAT_CACHE.MISS / 1e9 / duration_time",
1145        "MetricGroup": "Mem;MemoryBW",
1146        "MetricName": "tma_info_memory_l3_cache_fill_bw"
1147    },
1148    {
1149        "BriefDescription": "L3 cache true misses per kilo instruction for retired demand loads",
1150        "MetricExpr": "1e3 * MEM_LOAD_RETIRED.L3_MISS / INST_RETIRED.ANY",
1151        "MetricGroup": "Mem",
1152        "MetricName": "tma_info_memory_l3mpki"
1153    },
1154    {
1155        "BriefDescription": "Average Parallel L2 cache miss data reads",
1156        "MetricExpr": "OFFCORE_REQUESTS_OUTSTANDING.ALL_DATA_RD / OFFCORE_REQUESTS_OUTSTANDING.CYCLES_WITH_DATA_RD",
1157        "MetricGroup": "Memory_BW;Offcore",
1158        "MetricName": "tma_info_memory_latency_data_l2_mlp"
1159    },
1160    {
1161        "BriefDescription": "Average Latency for L2 cache miss demand Loads",
1162        "MetricExpr": "OFFCORE_REQUESTS_OUTSTANDING.DEMAND_DATA_RD / OFFCORE_REQUESTS.DEMAND_DATA_RD",
1163        "MetricGroup": "Memory_Lat;Offcore",
1164        "MetricName": "tma_info_memory_latency_load_l2_miss_latency"
1165    },
1166    {
1167        "BriefDescription": "Average Parallel L2 cache miss demand Loads",
1168        "MetricExpr": "OFFCORE_REQUESTS_OUTSTANDING.DEMAND_DATA_RD / OFFCORE_REQUESTS_OUTSTANDING.CYCLES_WITH_DEMAND_DATA_RD",
1169        "MetricGroup": "Memory_BW;Offcore",
1170        "MetricName": "tma_info_memory_latency_load_l2_mlp"
1171    },
1172    {
1173        "BriefDescription": "Actual Average Latency for L1 data-cache miss demand load operations (in core cycles)",
1174        "MetricExpr": "L1D_PEND_MISS.PENDING / (MEM_LOAD_RETIRED.L1_MISS + MEM_LOAD_RETIRED.FB_HIT)",
1175        "MetricGroup": "Mem;MemoryBound;MemoryLat",
1176        "MetricName": "tma_info_memory_load_miss_real_latency"
1177    },
1178    {
1179        "BriefDescription": "Un-cacheable retired load per kilo instruction",
1180        "MetricExpr": "1e3 * MEM_LOAD_MISC_RETIRED.UC / INST_RETIRED.ANY",
1181        "MetricGroup": "Mem",
1182        "MetricName": "tma_info_memory_mix_uc_load_pki"
1183    },
1184    {
1185        "BriefDescription": "Memory-Level-Parallelism (average number of L1 miss demand load when there is at least one such miss",
1186        "MetricExpr": "L1D_PEND_MISS.PENDING / L1D_PEND_MISS.PENDING_CYCLES",
1187        "MetricGroup": "Mem;MemoryBW;MemoryBound",
1188        "MetricName": "tma_info_memory_mlp",
1189        "PublicDescription": "Memory-Level-Parallelism (average number of L1 miss demand load when there is at least one such miss. Per-Logical Processor)"
1190    },
1191    {
1192        "BriefDescription": "STLB (2nd level TLB) code speculative misses per kilo instruction (misses of any page-size that complete the page walk)",
1193        "MetricExpr": "1e3 * ITLB_MISSES.WALK_COMPLETED / INST_RETIRED.ANY",
1194        "MetricGroup": "Fed;MemoryTLB",
1195        "MetricName": "tma_info_memory_tlb_code_stlb_mpki"
1196    },
1197    {
1198        "BriefDescription": "STLB (2nd level TLB) data load speculative misses per kilo instruction (misses of any page-size that complete the page walk)",
1199        "MetricExpr": "1e3 * DTLB_LOAD_MISSES.WALK_COMPLETED / INST_RETIRED.ANY",
1200        "MetricGroup": "Mem;MemoryTLB",
1201        "MetricName": "tma_info_memory_tlb_load_stlb_mpki"
1202    },
1203    {
1204        "BriefDescription": "Utilization of the core's Page Walker(s) serving STLB misses triggered by instruction/Load/Store accesses",
1205        "MetricConstraint": "NO_GROUP_EVENTS_NMI",
1206        "MetricExpr": "(ITLB_MISSES.WALK_PENDING + DTLB_LOAD_MISSES.WALK_PENDING + DTLB_STORE_MISSES.WALK_PENDING + EPT.WALK_PENDING) / (2 * tma_info_core_core_clks)",
1207        "MetricGroup": "Mem;MemoryTLB",
1208        "MetricName": "tma_info_memory_tlb_page_walks_utilization",
1209        "MetricThreshold": "tma_info_memory_tlb_page_walks_utilization > 0.5"
1210    },
1211    {
1212        "BriefDescription": "STLB (2nd level TLB) data store speculative misses per kilo instruction (misses of any page-size that complete the page walk)",
1213        "MetricExpr": "1e3 * DTLB_STORE_MISSES.WALK_COMPLETED / INST_RETIRED.ANY",
1214        "MetricGroup": "Mem;MemoryTLB",
1215        "MetricName": "tma_info_memory_tlb_store_stlb_mpki"
1216    },
1217    {
1218        "BriefDescription": "Instruction-Level-Parallelism (average number of uops executed when there is execution) per core",
1219        "MetricExpr": "UOPS_EXECUTED.THREAD / (UOPS_EXECUTED.CORE_CYCLES_GE_1 / 2 if #SMT_on else cpu@UOPS_EXECUTED.THREAD\\,cmask\\=1@)",
1220        "MetricGroup": "Cor;Pipeline;PortsUtil;SMT",
1221        "MetricName": "tma_info_pipeline_execute"
1222    },
1223    {
1224        "BriefDescription": "Average number of uops fetched from DSB per cycle",
1225        "MetricExpr": "IDQ.DSB_UOPS / IDQ.DSB_CYCLES_ANY",
1226        "MetricGroup": "Fed;FetchBW",
1227        "MetricName": "tma_info_pipeline_fetch_dsb"
1228    },
1229    {
1230        "BriefDescription": "Average number of uops fetched from MITE per cycle",
1231        "MetricExpr": "IDQ.MITE_UOPS / IDQ.MITE_CYCLES",
1232        "MetricGroup": "Fed;FetchBW",
1233        "MetricName": "tma_info_pipeline_fetch_mite"
1234    },
1235    {
1236        "BriefDescription": "Instructions per a microcode Assist invocation",
1237        "MetricExpr": "INST_RETIRED.ANY / (FP_ASSIST.ANY + OTHER_ASSISTS.ANY)",
1238        "MetricGroup": "MicroSeq;Pipeline;Ret;Retire",
1239        "MetricName": "tma_info_pipeline_ipassist",
1240        "MetricThreshold": "tma_info_pipeline_ipassist < 100e3",
1241        "PublicDescription": "Instructions per a microcode Assist invocation. See Assists tree node for details (lower number means higher occurrence rate)"
1242    },
1243    {
1244        "BriefDescription": "Average number of Uops retired in cycles where at least one uop has retired.",
1245        "MetricExpr": "UOPS_RETIRED.RETIRE_SLOTS / cpu@UOPS_RETIRED.RETIRE_SLOTS\\,cmask\\=1@",
1246        "MetricGroup": "Pipeline;Ret",
1247        "MetricName": "tma_info_pipeline_retire"
1248    },
1249    {
1250        "BriefDescription": "Measured Average Core Frequency for unhalted processors [GHz]",
1251        "MetricExpr": "tma_info_system_turbo_utilization * TSC / 1e9 / duration_time",
1252        "MetricGroup": "Power;Summary",
1253        "MetricName": "tma_info_system_core_frequency"
1254    },
1255    {
1256        "BriefDescription": "Average CPU Utilization (percentage)",
1257        "MetricExpr": "tma_info_system_cpus_utilized / #num_cpus_online",
1258        "MetricGroup": "HPC;Summary",
1259        "MetricName": "tma_info_system_cpu_utilization"
1260    },
1261    {
1262        "BriefDescription": "Average number of utilized CPUs",
1263        "MetricExpr": "CPU_CLK_UNHALTED.REF_TSC / TSC",
1264        "MetricGroup": "Summary",
1265        "MetricName": "tma_info_system_cpus_utilized"
1266    },
1267    {
1268        "BriefDescription": "Average external Memory Bandwidth Use for reads and writes [GB / sec]",
1269        "MetricExpr": "64 * (UNC_M_CAS_COUNT.RD + UNC_M_CAS_COUNT.WR) / 1e9 / duration_time",
1270        "MetricGroup": "HPC;MemOffcore;MemoryBW;SoC;tma_issueBW",
1271        "MetricName": "tma_info_system_dram_bw_use",
1272        "PublicDescription": "Average external Memory Bandwidth Use for reads and writes [GB / sec]. Related metrics: tma_fb_full, tma_info_bottleneck_cache_memory_bandwidth, tma_mem_bandwidth, tma_sq_full"
1273    },
1274    {
1275        "BriefDescription": "Giga Floating Point Operations Per Second",
1276        "MetricConstraint": "NO_GROUP_EVENTS",
1277        "MetricExpr": "(FP_ARITH_INST_RETIRED.SCALAR + 2 * FP_ARITH_INST_RETIRED.128B_PACKED_DOUBLE + 4 * FP_ARITH_INST_RETIRED.4_FLOPS + 8 * FP_ARITH_INST_RETIRED.8_FLOPS + 16 * FP_ARITH_INST_RETIRED.512B_PACKED_SINGLE) / 1e9 / duration_time",
1278        "MetricGroup": "Cor;Flops;HPC",
1279        "MetricName": "tma_info_system_gflops",
1280        "PublicDescription": "Giga Floating Point Operations Per Second. Aggregate across all supported options of: FP precisions, scalar and vector instructions, vector-width"
1281    },
1282    {
1283        "BriefDescription": "Average IO (network or disk) Bandwidth Use for Reads [GB / sec]",
1284        "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 / 1e9 / duration_time",
1285        "MetricGroup": "IoBW;MemOffcore;Server;SoC",
1286        "MetricName": "tma_info_system_io_read_bw",
1287        "PublicDescription": "Average IO (network or disk) Bandwidth Use for Reads [GB / sec]. Bandwidth of IO reads that are initiated by end device controllers that are requesting memory from the CPU"
1288    },
1289    {
1290        "BriefDescription": "Average IO (network or disk) Bandwidth Use for Writes [GB / sec]",
1291        "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 / 1e9 / duration_time",
1292        "MetricGroup": "IoBW;MemOffcore;Server;SoC",
1293        "MetricName": "tma_info_system_io_write_bw",
1294        "PublicDescription": "Average IO (network or disk) Bandwidth Use for Writes [GB / sec]. Bandwidth of IO writes that are initiated by end device controllers that are writing memory to the CPU"
1295    },
1296    {
1297        "BriefDescription": "Instructions per Far Branch ( Far Branches apply upon transition from application to operating system, handling interrupts, exceptions) [lower number means higher occurrence rate]",
1298        "MetricExpr": "INST_RETIRED.ANY / BR_INST_RETIRED.FAR_BRANCH:u",
1299        "MetricGroup": "Branches;OS",
1300        "MetricName": "tma_info_system_ipfarbranch",
1301        "MetricThreshold": "tma_info_system_ipfarbranch < 1e6"
1302    },
1303    {
1304        "BriefDescription": "Cycles Per Instruction for the Operating System (OS) Kernel mode",
1305        "MetricExpr": "CPU_CLK_UNHALTED.THREAD_P:k / INST_RETIRED.ANY_P:k",
1306        "MetricGroup": "OS",
1307        "MetricName": "tma_info_system_kernel_cpi"
1308    },
1309    {
1310        "BriefDescription": "Fraction of cycles spent in the Operating System (OS) Kernel mode",
1311        "MetricExpr": "CPU_CLK_UNHALTED.THREAD_P:k / CPU_CLK_UNHALTED.THREAD",
1312        "MetricGroup": "OS",
1313        "MetricName": "tma_info_system_kernel_utilization",
1314        "MetricThreshold": "tma_info_system_kernel_utilization > 0.05"
1315    },
1316    {
1317        "BriefDescription": "Average latency of data read request to external DRAM memory [in nanoseconds]",
1318        "MetricExpr": "1e9 * (UNC_M_RPQ_OCCUPANCY / UNC_M_RPQ_INSERTS) / imc_0@event\\=0x0@",
1319        "MetricGroup": "MemOffcore;MemoryLat;Server;SoC",
1320        "MetricName": "tma_info_system_mem_dram_read_latency",
1321        "PublicDescription": "Average latency of data read request to external DRAM memory [in nanoseconds]. Accounts for demand loads and L1/L2 data-read prefetches"
1322    },
1323    {
1324        "BriefDescription": "Average number of parallel data read requests to external memory",
1325        "MetricExpr": "UNC_CHA_TOR_OCCUPANCY.IA_MISS_DRD / UNC_CHA_TOR_OCCUPANCY.IA_MISS_DRD@thresh\\=1@",
1326        "MetricGroup": "Mem;MemoryBW;SoC",
1327        "MetricName": "tma_info_system_mem_parallel_reads",
1328        "PublicDescription": "Average number of parallel data read requests to external memory. Accounts for demand loads and L1/L2 prefetches"
1329    },
1330    {
1331        "BriefDescription": "Average latency of data read request to external 3D X-Point memory [in nanoseconds]",
1332        "MetricExpr": "(1e9 * (UNC_M_PMM_RPQ_OCCUPANCY.ALL / UNC_M_PMM_RPQ_INSERTS) / imc_0@event\\=0x0@ if #has_pmem > 0 else 0)",
1333        "MetricGroup": "MemOffcore;MemoryLat;Server;SoC",
1334        "MetricName": "tma_info_system_mem_pmm_read_latency",
1335        "PublicDescription": "Average latency of data read request to external 3D X-Point memory [in nanoseconds]. Accounts for demand loads and L1/L2 data-read prefetches"
1336    },
1337    {
1338        "BriefDescription": "Average latency of data read request to external memory (in nanoseconds)",
1339        "MetricExpr": "1e9 * (UNC_CHA_TOR_OCCUPANCY.IA_MISS_DRD / UNC_CHA_TOR_INSERTS.IA_MISS_DRD) / (tma_info_system_socket_clks / duration_time)",
1340        "MetricGroup": "Mem;MemoryLat;SoC",
1341        "MetricName": "tma_info_system_mem_read_latency",
1342        "PublicDescription": "Average latency of data read request to external memory (in nanoseconds). Accounts for demand loads and L1/L2 prefetches. ([RKL+]memory-controller only)"
1343    },
1344    {
1345        "BriefDescription": "Average 3DXP Memory Bandwidth Use for reads [GB / sec]",
1346        "MetricExpr": "(64 * UNC_M_PMM_RPQ_INSERTS / 1e9 / duration_time if #has_pmem > 0 else 0)",
1347        "MetricGroup": "MemOffcore;MemoryBW;Server;SoC",
1348        "MetricName": "tma_info_system_pmm_read_bw"
1349    },
1350    {
1351        "BriefDescription": "Average 3DXP Memory Bandwidth Use for Writes [GB / sec]",
1352        "MetricExpr": "(64 * UNC_M_PMM_WPQ_INSERTS / 1e9 / duration_time if #has_pmem > 0 else 0)",
1353        "MetricGroup": "MemOffcore;MemoryBW;Server;SoC",
1354        "MetricName": "tma_info_system_pmm_write_bw"
1355    },
1356    {
1357        "BriefDescription": "Fraction of Core cycles where the core was running with power-delivery for baseline license level 0",
1358        "MetricExpr": "(CORE_POWER.LVL0_TURBO_LICENSE / 2 / tma_info_core_core_clks if #SMT_on else CORE_POWER.LVL0_TURBO_LICENSE / tma_info_core_core_clks)",
1359        "MetricGroup": "Power",
1360        "MetricName": "tma_info_system_power_license0_utilization",
1361        "PublicDescription": "Fraction of Core cycles where the core was running with power-delivery for baseline license level 0.  This includes non-AVX codes, SSE, AVX 128-bit, and low-current AVX 256-bit codes."
1362    },
1363    {
1364        "BriefDescription": "Fraction of Core cycles where the core was running with power-delivery for license level 1",
1365        "MetricExpr": "(CORE_POWER.LVL1_TURBO_LICENSE / 2 / tma_info_core_core_clks if #SMT_on else CORE_POWER.LVL1_TURBO_LICENSE / tma_info_core_core_clks)",
1366        "MetricGroup": "Power",
1367        "MetricName": "tma_info_system_power_license1_utilization",
1368        "MetricThreshold": "tma_info_system_power_license1_utilization > 0.5",
1369        "PublicDescription": "Fraction of Core cycles where the core was running with power-delivery for license level 1.  This includes high current AVX 256-bit instructions as well as low current AVX 512-bit instructions."
1370    },
1371    {
1372        "BriefDescription": "Fraction of Core cycles where the core was running with power-delivery for license level 2 (introduced in SKX)",
1373        "MetricExpr": "(CORE_POWER.LVL2_TURBO_LICENSE / 2 / tma_info_core_core_clks if #SMT_on else CORE_POWER.LVL2_TURBO_LICENSE / tma_info_core_core_clks)",
1374        "MetricGroup": "Power",
1375        "MetricName": "tma_info_system_power_license2_utilization",
1376        "MetricThreshold": "tma_info_system_power_license2_utilization > 0.5",
1377        "PublicDescription": "Fraction of Core cycles where the core was running with power-delivery for license level 2 (introduced in SKX).  This includes high current AVX 512-bit instructions."
1378    },
1379    {
1380        "BriefDescription": "Fraction of cycles where both hardware Logical Processors were active",
1381        "MetricExpr": "(1 - CPU_CLK_UNHALTED.ONE_THREAD_ACTIVE / (CPU_CLK_UNHALTED.REF_XCLK_ANY / 2) if #SMT_on else 0)",
1382        "MetricGroup": "SMT",
1383        "MetricName": "tma_info_system_smt_2t_utilization"
1384    },
1385    {
1386        "BriefDescription": "Socket actual clocks when any core is active on that socket",
1387        "MetricExpr": "cha_0@event\\=0x0@",
1388        "MetricGroup": "SoC",
1389        "MetricName": "tma_info_system_socket_clks"
1390    },
1391    {
1392        "BriefDescription": "Average Frequency Utilization relative nominal frequency",
1393        "MetricExpr": "tma_info_thread_clks / CPU_CLK_UNHALTED.REF_TSC",
1394        "MetricGroup": "Power",
1395        "MetricName": "tma_info_system_turbo_utilization"
1396    },
1397    {
1398        "BriefDescription": "Measured Average Uncore Frequency for the SoC [GHz]",
1399        "MetricExpr": "tma_info_system_socket_clks / 1e9 / duration_time",
1400        "MetricGroup": "SoC",
1401        "MetricName": "tma_info_system_uncore_frequency"
1402    },
1403    {
1404        "BriefDescription": "Per-Logical Processor actual clocks when the Logical Processor is active.",
1405        "MetricExpr": "CPU_CLK_UNHALTED.THREAD",
1406        "MetricGroup": "Pipeline",
1407        "MetricName": "tma_info_thread_clks"
1408    },
1409    {
1410        "BriefDescription": "Cycles Per Instruction (per Logical Processor)",
1411        "MetricExpr": "1 / tma_info_thread_ipc",
1412        "MetricGroup": "Mem;Pipeline",
1413        "MetricName": "tma_info_thread_cpi"
1414    },
1415    {
1416        "BriefDescription": "The ratio of Executed- by Issued-Uops",
1417        "MetricExpr": "UOPS_EXECUTED.THREAD / UOPS_ISSUED.ANY",
1418        "MetricGroup": "Cor;Pipeline",
1419        "MetricName": "tma_info_thread_execute_per_issue",
1420        "PublicDescription": "The ratio of Executed- by Issued-Uops. Ratio > 1 suggests high rate of uop micro-fusions. Ratio < 1 suggest high rate of \"execute\" at rename stage."
1421    },
1422    {
1423        "BriefDescription": "Instructions Per Cycle (per Logical Processor)",
1424        "MetricExpr": "INST_RETIRED.ANY / tma_info_thread_clks",
1425        "MetricGroup": "Ret;Summary",
1426        "MetricName": "tma_info_thread_ipc"
1427    },
1428    {
1429        "BriefDescription": "Total issue-pipeline slots (per-Physical Core till ICL; per-Logical Processor ICL onward)",
1430        "MetricExpr": "4 * tma_info_core_core_clks",
1431        "MetricGroup": "TmaL1;tma_L1_group",
1432        "MetricName": "tma_info_thread_slots"
1433    },
1434    {
1435        "BriefDescription": "Uops Per Instruction",
1436        "MetricExpr": "UOPS_RETIRED.RETIRE_SLOTS / INST_RETIRED.ANY",
1437        "MetricGroup": "Pipeline;Ret;Retire",
1438        "MetricName": "tma_info_thread_uoppi",
1439        "MetricThreshold": "tma_info_thread_uoppi > 1.05"
1440    },
1441    {
1442        "BriefDescription": "Uops per taken branch",
1443        "MetricExpr": "UOPS_RETIRED.RETIRE_SLOTS / BR_INST_RETIRED.NEAR_TAKEN",
1444        "MetricGroup": "Branches;Fed;FetchBW",
1445        "MetricName": "tma_info_thread_uptb",
1446        "MetricThreshold": "tma_info_thread_uptb < 6"
1447    },
1448    {
1449        "BriefDescription": "This metric represents fraction of cycles the CPU was stalled due to Instruction TLB (ITLB) misses",
1450        "MetricExpr": "ICACHE_TAG.STALLS / tma_info_thread_clks",
1451        "MetricGroup": "BigFootprint;BvBC;FetchLat;MemoryTLB;TopdownL3;tma_L3_group;tma_fetch_latency_group",
1452        "MetricName": "tma_itlb_misses",
1453        "MetricThreshold": "tma_itlb_misses > 0.05 & (tma_fetch_latency > 0.1 & tma_frontend_bound > 0.15)",
1454        "PublicDescription": "This metric represents fraction of cycles the CPU was stalled due to Instruction TLB (ITLB) misses. Sample with: FRONTEND_RETIRED.STLB_MISS_PS;FRONTEND_RETIRED.ITLB_MISS_PS",
1455        "ScaleUnit": "100%"
1456    },
1457    {
1458        "BriefDescription": "This metric estimates how often the CPU was stalled without loads missing the L1 data cache",
1459        "MetricExpr": "max((CYCLE_ACTIVITY.STALLS_MEM_ANY - CYCLE_ACTIVITY.STALLS_L1D_MISS) / tma_info_thread_clks, 0)",
1460        "MetricGroup": "CacheHits;MemoryBound;TmaL3mem;TopdownL3;tma_L3_group;tma_issueL1;tma_issueMC;tma_memory_bound_group",
1461        "MetricName": "tma_l1_bound",
1462        "MetricThreshold": "tma_l1_bound > 0.1 & (tma_memory_bound > 0.2 & tma_backend_bound > 0.2)",
1463        "PublicDescription": "This metric estimates how often the CPU was stalled without loads missing the L1 data cache.  The L1 data cache typically has the shortest latency.  However; in certain cases like loads blocked on older stores; a load might suffer due to high latency even though it is being satisfied by the L1. Another example is loads who miss in the TLB. These cases are characterized by execution unit stalls; while some non-completed demand load lives in the machine without having that demand load missing the L1 cache. Sample with: MEM_LOAD_RETIRED.L1_HIT_PS;MEM_LOAD_RETIRED.FB_HIT_PS. Related metrics: tma_clears_resteers, tma_machine_clears, tma_microcode_sequencer, tma_ms_switches, tma_ports_utilized_1",
1464        "ScaleUnit": "100%"
1465    },
1466    {
1467        "BriefDescription": "This metric roughly estimates fraction of cycles with demand load accesses that hit the L1 cache",
1468        "MetricExpr": "min(2 * (MEM_INST_RETIRED.ALL_LOADS - MEM_LOAD_RETIRED.FB_HIT - MEM_LOAD_RETIRED.L1_MISS) * 20 / 100, max(CYCLE_ACTIVITY.CYCLES_MEM_ANY - CYCLE_ACTIVITY.CYCLES_L1D_MISS, 0)) / tma_info_thread_clks",
1469        "MetricGroup": "BvML;MemoryLat;TopdownL4;tma_L4_group;tma_l1_bound_group",
1470        "MetricName": "tma_l1_hit_latency",
1471        "MetricThreshold": "tma_l1_hit_latency > 0.1 & (tma_l1_bound > 0.1 & (tma_memory_bound > 0.2 & tma_backend_bound > 0.2))",
1472        "PublicDescription": "This metric roughly estimates fraction of cycles with demand load accesses that hit the L1 cache. The short latency of the L1 data cache may be exposed in pointer-chasing memory access patterns as an example. Sample with: MEM_LOAD_RETIRED.L1_HIT",
1473        "ScaleUnit": "100%"
1474    },
1475    {
1476        "BriefDescription": "This metric estimates how often the CPU was stalled due to L2 cache accesses by loads",
1477        "MetricConstraint": "NO_GROUP_EVENTS",
1478        "MetricExpr": "MEM_LOAD_RETIRED.L2_HIT * (1 + MEM_LOAD_RETIRED.FB_HIT / MEM_LOAD_RETIRED.L1_MISS) / (MEM_LOAD_RETIRED.L2_HIT * (1 + MEM_LOAD_RETIRED.FB_HIT / MEM_LOAD_RETIRED.L1_MISS) + cpu@L1D_PEND_MISS.FB_FULL\\,cmask\\=1@) * ((CYCLE_ACTIVITY.STALLS_L1D_MISS - CYCLE_ACTIVITY.STALLS_L2_MISS) / tma_info_thread_clks)",
1479        "MetricGroup": "BvML;CacheHits;MemoryBound;TmaL3mem;TopdownL3;tma_L3_group;tma_memory_bound_group",
1480        "MetricName": "tma_l2_bound",
1481        "MetricThreshold": "tma_l2_bound > 0.05 & (tma_memory_bound > 0.2 & tma_backend_bound > 0.2)",
1482        "PublicDescription": "This metric estimates how often the CPU was stalled due to L2 cache accesses by loads.  Avoiding cache misses (i.e. L1 misses/L2 hits) can improve the latency and increase performance. Sample with: MEM_LOAD_RETIRED.L2_HIT_PS",
1483        "ScaleUnit": "100%"
1484    },
1485    {
1486        "BriefDescription": "This metric estimates how often the CPU was stalled due to loads accesses to L3 cache or contended with a sibling Core",
1487        "MetricExpr": "(CYCLE_ACTIVITY.STALLS_L2_MISS - CYCLE_ACTIVITY.STALLS_L3_MISS) / tma_info_thread_clks",
1488        "MetricGroup": "CacheHits;MemoryBound;TmaL3mem;TopdownL3;tma_L3_group;tma_memory_bound_group",
1489        "MetricName": "tma_l3_bound",
1490        "MetricThreshold": "tma_l3_bound > 0.05 & (tma_memory_bound > 0.2 & tma_backend_bound > 0.2)",
1491        "PublicDescription": "This metric estimates how often the CPU was stalled due to loads accesses to L3 cache or contended with a sibling Core.  Avoiding cache misses (i.e. L2 misses/L3 hits) can improve the latency and increase performance. Sample with: MEM_LOAD_RETIRED.L3_HIT_PS",
1492        "ScaleUnit": "100%"
1493    },
1494    {
1495        "BriefDescription": "This metric estimates fraction of cycles with demand load accesses that hit the L3 cache under unloaded scenarios (possibly L3 latency limited)",
1496        "MetricExpr": "17 * tma_info_system_core_frequency * (MEM_LOAD_RETIRED.L3_HIT * (1 + MEM_LOAD_RETIRED.FB_HIT / MEM_LOAD_RETIRED.L1_MISS / 2)) / tma_info_thread_clks",
1497        "MetricGroup": "BvML;MemoryLat;TopdownL4;tma_L4_group;tma_issueLat;tma_l3_bound_group",
1498        "MetricName": "tma_l3_hit_latency",
1499        "MetricThreshold": "tma_l3_hit_latency > 0.1 & (tma_l3_bound > 0.05 & (tma_memory_bound > 0.2 & tma_backend_bound > 0.2))",
1500        "PublicDescription": "This metric estimates fraction of cycles with demand load accesses that hit the L3 cache under unloaded scenarios (possibly L3 latency limited).  Avoiding private cache misses (i.e. L2 misses/L3 hits) will improve the latency; reduce contention with sibling physical cores and increase performance.  Note the value of this node may overlap with its siblings. Sample with: MEM_LOAD_RETIRED.L3_HIT_PS. Related metrics: tma_info_bottleneck_cache_memory_latency, tma_mem_latency",
1501        "ScaleUnit": "100%"
1502    },
1503    {
1504        "BriefDescription": "This metric represents fraction of cycles CPU was stalled due to Length Changing Prefixes (LCPs)",
1505        "MetricExpr": "DECODE.LCP / tma_info_thread_clks",
1506        "MetricGroup": "FetchLat;TopdownL3;tma_L3_group;tma_fetch_latency_group;tma_issueFB",
1507        "MetricName": "tma_lcp",
1508        "MetricThreshold": "tma_lcp > 0.05 & (tma_fetch_latency > 0.1 & tma_frontend_bound > 0.15)",
1509        "PublicDescription": "This metric represents fraction of cycles CPU was stalled due to Length Changing Prefixes (LCPs). Using proper compiler flags or Intel Compiler by default will certainly avoid this. #Link: Optimization Guide about LCP BKMs. Related metrics: tma_dsb_switches, tma_fetch_bandwidth, tma_info_botlnk_l2_dsb_bandwidth, tma_info_botlnk_l2_dsb_misses, tma_info_frontend_dsb_coverage, tma_info_inst_mix_iptb",
1510        "ScaleUnit": "100%"
1511    },
1512    {
1513        "BriefDescription": "This metric represents fraction of slots where the CPU was retiring light-weight operations -- instructions that require no more than one uop (micro-operation)",
1514        "MetricExpr": "tma_retiring - tma_heavy_operations",
1515        "MetricGroup": "Retire;TmaL2;TopdownL2;tma_L2_group;tma_retiring_group",
1516        "MetricName": "tma_light_operations",
1517        "MetricThreshold": "tma_light_operations > 0.6",
1518        "MetricgroupNoGroup": "TopdownL2",
1519        "PublicDescription": "This metric represents fraction of slots where the CPU was retiring light-weight operations -- instructions that require no more than one uop (micro-operation). This correlates with total number of instructions used by the program. A uops-per-instruction (see UopPI metric) ratio of 1 or less should be expected for decently optimized code running on Intel Core/Xeon products. While this often indicates efficient X86 instructions were executed; high value does not necessarily mean better performance cannot be achieved. ([ICL+] Note this may undercount due to approximation using indirect events; [ADL+] .). Sample with: INST_RETIRED.PREC_DIST",
1520        "ScaleUnit": "100%"
1521    },
1522    {
1523        "BriefDescription": "This metric represents Core fraction of cycles CPU dispatched uops on execution port for Load operations",
1524        "MetricExpr": "(UOPS_DISPATCHED_PORT.PORT_2 + UOPS_DISPATCHED_PORT.PORT_3 + UOPS_DISPATCHED_PORT.PORT_7 - UOPS_DISPATCHED_PORT.PORT_4) / (2 * tma_info_core_core_clks)",
1525        "MetricGroup": "TopdownL5;tma_L5_group;tma_ports_utilized_3m_group",
1526        "MetricName": "tma_load_op_utilization",
1527        "MetricThreshold": "tma_load_op_utilization > 0.6",
1528        "PublicDescription": "This metric represents Core fraction of cycles CPU dispatched uops on execution port for Load operations. Sample with: UOPS_DISPATCHED.PORT_2_3",
1529        "ScaleUnit": "100%"
1530    },
1531    {
1532        "BriefDescription": "This metric roughly estimates the fraction of cycles where the (first level) DTLB was missed by load accesses, that later on hit in second-level TLB (STLB)",
1533        "MetricConstraint": "NO_GROUP_EVENTS_NMI",
1534        "MetricExpr": "tma_dtlb_load - tma_load_stlb_miss",
1535        "MetricGroup": "MemoryTLB;TopdownL5;tma_L5_group;tma_dtlb_load_group",
1536        "MetricName": "tma_load_stlb_hit",
1537        "MetricThreshold": "tma_load_stlb_hit > 0.05 & (tma_dtlb_load > 0.1 & (tma_l1_bound > 0.1 & (tma_memory_bound > 0.2 & tma_backend_bound > 0.2)))",
1538        "ScaleUnit": "100%"
1539    },
1540    {
1541        "BriefDescription": "This metric estimates the fraction of cycles where the Second-level TLB (STLB) was missed by load accesses, performing a hardware page walk",
1542        "MetricExpr": "DTLB_LOAD_MISSES.WALK_ACTIVE / tma_info_thread_clks",
1543        "MetricGroup": "MemoryTLB;TopdownL5;tma_L5_group;tma_dtlb_load_group",
1544        "MetricName": "tma_load_stlb_miss",
1545        "MetricThreshold": "tma_load_stlb_miss > 0.05 & (tma_dtlb_load > 0.1 & (tma_l1_bound > 0.1 & (tma_memory_bound > 0.2 & tma_backend_bound > 0.2)))",
1546        "ScaleUnit": "100%"
1547    },
1548    {
1549        "BriefDescription": "This metric estimates fraction of cycles while the memory subsystem was handling loads from local memory",
1550        "MetricExpr": "59.5 * tma_info_system_core_frequency * MEM_LOAD_L3_MISS_RETIRED.LOCAL_DRAM * (1 + MEM_LOAD_RETIRED.FB_HIT / MEM_LOAD_RETIRED.L1_MISS / 2) / tma_info_thread_clks",
1551        "MetricGroup": "Server;TopdownL5;tma_L5_group;tma_mem_latency_group",
1552        "MetricName": "tma_local_mem",
1553        "MetricThreshold": "tma_local_mem > 0.1 & (tma_mem_latency > 0.1 & (tma_dram_bound > 0.1 & (tma_memory_bound > 0.2 & tma_backend_bound > 0.2)))",
1554        "PublicDescription": "This metric estimates fraction of cycles while the memory subsystem was handling loads from local memory. Caching will improve the latency and increase performance. Sample with: MEM_LOAD_L3_MISS_RETIRED.LOCAL_DRAM",
1555        "ScaleUnit": "100%"
1556    },
1557    {
1558        "BriefDescription": "This metric represents fraction of cycles the CPU spent handling cache misses due to lock operations",
1559        "MetricExpr": "(12 * max(0, MEM_INST_RETIRED.LOCK_LOADS - L2_RQSTS.ALL_RFO) + MEM_INST_RETIRED.LOCK_LOADS / MEM_INST_RETIRED.ALL_STORES * (11 * L2_RQSTS.RFO_HIT + min(CPU_CLK_UNHALTED.THREAD, OFFCORE_REQUESTS_OUTSTANDING.CYCLES_WITH_DEMAND_RFO))) / tma_info_thread_clks",
1560        "MetricGroup": "Offcore;TopdownL4;tma_L4_group;tma_issueRFO;tma_l1_bound_group",
1561        "MetricName": "tma_lock_latency",
1562        "MetricThreshold": "tma_lock_latency > 0.2 & (tma_l1_bound > 0.1 & (tma_memory_bound > 0.2 & tma_backend_bound > 0.2))",
1563        "PublicDescription": "This metric represents fraction of cycles the CPU spent handling cache misses due to lock operations. Due to the microarchitecture handling of locks; they are classified as L1_Bound regardless of what memory source satisfied them. Sample with: MEM_INST_RETIRED.LOCK_LOADS. Related metrics: tma_store_latency",
1564        "ScaleUnit": "100%"
1565    },
1566    {
1567        "BriefDescription": "This metric represents fraction of slots the CPU has wasted due to Machine Clears",
1568        "MetricConstraint": "NO_GROUP_EVENTS",
1569        "MetricExpr": "tma_bad_speculation - tma_branch_mispredicts",
1570        "MetricGroup": "BadSpec;BvMS;MachineClears;TmaL2;TopdownL2;tma_L2_group;tma_bad_speculation_group;tma_issueMC;tma_issueSyncxn",
1571        "MetricName": "tma_machine_clears",
1572        "MetricThreshold": "tma_machine_clears > 0.1 & tma_bad_speculation > 0.15",
1573        "MetricgroupNoGroup": "TopdownL2",
1574        "PublicDescription": "This metric represents fraction of slots the CPU has wasted due to Machine Clears.  These slots are either wasted by uops fetched prior to the clear; or stalls the out-of-order portion of the machine needs to recover its state after the clear. For example; this can happen due to memory ordering Nukes (e.g. Memory Disambiguation) or Self-Modifying-Code (SMC) nukes. Sample with: MACHINE_CLEARS.COUNT. Related metrics: tma_clears_resteers, tma_contested_accesses, tma_data_sharing, tma_false_sharing, tma_l1_bound, tma_microcode_sequencer, tma_ms_switches, tma_remote_cache",
1575        "ScaleUnit": "100%"
1576    },
1577    {
1578        "BriefDescription": "This metric estimates fraction of cycles where the core's performance was likely hurt due to approaching bandwidth limits of external memory - DRAM ([SPR-HBM] and/or HBM)",
1579        "MetricExpr": "min(CPU_CLK_UNHALTED.THREAD, cpu@OFFCORE_REQUESTS_OUTSTANDING.ALL_DATA_RD\\,cmask\\=4@) / tma_info_thread_clks",
1580        "MetricGroup": "BvMS;MemoryBW;Offcore;TopdownL4;tma_L4_group;tma_dram_bound_group;tma_issueBW",
1581        "MetricName": "tma_mem_bandwidth",
1582        "MetricThreshold": "tma_mem_bandwidth > 0.2 & (tma_dram_bound > 0.1 & (tma_memory_bound > 0.2 & tma_backend_bound > 0.2))",
1583        "PublicDescription": "This metric estimates fraction of cycles where the core's performance was likely hurt due to approaching bandwidth limits of external memory - DRAM ([SPR-HBM] and/or HBM).  The underlying heuristic assumes that a similar off-core traffic is generated by all IA cores. This metric does not aggregate non-data-read requests by this logical processor; requests from other IA Logical Processors/Physical Cores/sockets; or other non-IA devices like GPU; hence the maximum external memory bandwidth limits may or may not be approached when this metric is flagged (see Uncore counters for that). Related metrics: tma_fb_full, tma_info_bottleneck_cache_memory_bandwidth, tma_info_system_dram_bw_use, tma_sq_full",
1584        "ScaleUnit": "100%"
1585    },
1586    {
1587        "BriefDescription": "This metric estimates fraction of cycles where the performance was likely hurt due to latency from external memory - DRAM ([SPR-HBM] and/or HBM)",
1588        "MetricExpr": "min(CPU_CLK_UNHALTED.THREAD, OFFCORE_REQUESTS_OUTSTANDING.CYCLES_WITH_DATA_RD) / tma_info_thread_clks - tma_mem_bandwidth",
1589        "MetricGroup": "BvML;MemoryLat;Offcore;TopdownL4;tma_L4_group;tma_dram_bound_group;tma_issueLat",
1590        "MetricName": "tma_mem_latency",
1591        "MetricThreshold": "tma_mem_latency > 0.1 & (tma_dram_bound > 0.1 & (tma_memory_bound > 0.2 & tma_backend_bound > 0.2))",
1592        "PublicDescription": "This metric estimates fraction of cycles where the performance was likely hurt due to latency from external memory - DRAM ([SPR-HBM] and/or HBM).  This metric does not aggregate requests from other Logical Processors/Physical Cores/sockets (see Uncore counters for that). Related metrics: tma_info_bottleneck_cache_memory_latency, tma_l3_hit_latency",
1593        "ScaleUnit": "100%"
1594    },
1595    {
1596        "BriefDescription": "This metric represents fraction of slots the Memory subsystem within the Backend was a bottleneck",
1597        "MetricConstraint": "NO_GROUP_EVENTS",
1598        "MetricExpr": "(CYCLE_ACTIVITY.STALLS_MEM_ANY + EXE_ACTIVITY.BOUND_ON_STORES) / (CYCLE_ACTIVITY.STALLS_TOTAL + (EXE_ACTIVITY.1_PORTS_UTIL + tma_retiring * EXE_ACTIVITY.2_PORTS_UTIL) + EXE_ACTIVITY.BOUND_ON_STORES) * tma_backend_bound",
1599        "MetricGroup": "Backend;TmaL2;TopdownL2;tma_L2_group;tma_backend_bound_group",
1600        "MetricName": "tma_memory_bound",
1601        "MetricThreshold": "tma_memory_bound > 0.2 & tma_backend_bound > 0.2",
1602        "MetricgroupNoGroup": "TopdownL2",
1603        "PublicDescription": "This metric represents fraction of slots the Memory subsystem within the Backend was a bottleneck.  Memory Bound estimates fraction of slots where pipeline is likely stalled due to demand load or store instructions. This accounts mainly for (1) non-completed in-flight memory demand loads which coincides with execution units starvation; in addition to (2) cases where stores could impose backpressure on the pipeline when many of them get buffered at the same time (less common out of the two).",
1604        "ScaleUnit": "100%"
1605    },
1606    {
1607        "BriefDescription": "This metric represents fraction of slots where the CPU was retiring memory operations -- uops for memory load or store accesses.",
1608        "MetricExpr": "tma_light_operations * MEM_INST_RETIRED.ANY / INST_RETIRED.ANY",
1609        "MetricGroup": "Pipeline;TopdownL3;tma_L3_group;tma_light_operations_group",
1610        "MetricName": "tma_memory_operations",
1611        "MetricThreshold": "tma_memory_operations > 0.1 & tma_light_operations > 0.6",
1612        "ScaleUnit": "100%"
1613    },
1614    {
1615        "BriefDescription": "This metric represents fraction of slots the CPU was retiring uops fetched by the Microcode Sequencer (MS) unit",
1616        "MetricConstraint": "NO_GROUP_EVENTS_NMI",
1617        "MetricExpr": "UOPS_RETIRED.RETIRE_SLOTS / UOPS_ISSUED.ANY * IDQ.MS_UOPS / tma_info_thread_slots",
1618        "MetricGroup": "MicroSeq;TopdownL3;tma_L3_group;tma_heavy_operations_group;tma_issueMC;tma_issueMS",
1619        "MetricName": "tma_microcode_sequencer",
1620        "MetricThreshold": "tma_microcode_sequencer > 0.05 & tma_heavy_operations > 0.1",
1621        "PublicDescription": "This metric represents fraction of slots the CPU was retiring uops fetched by the Microcode Sequencer (MS) unit.  The MS is used for CISC instructions not supported by the default decoders (like repeat move strings; or CPUID); or by microcode assists used to address some operation modes (like in Floating Point assists). These cases can often be avoided. Sample with: IDQ.MS_UOPS. Related metrics: tma_clears_resteers, tma_info_bottleneck_irregular_overhead, tma_l1_bound, tma_machine_clears, tma_ms_switches",
1622        "ScaleUnit": "100%"
1623    },
1624    {
1625        "BriefDescription": "This metric represents fraction of cycles the CPU was stalled due to Branch Resteers as a result of Branch Misprediction at execution stage",
1626        "MetricExpr": "BR_MISP_RETIRED.ALL_BRANCHES / (BR_MISP_RETIRED.ALL_BRANCHES + MACHINE_CLEARS.COUNT) * INT_MISC.CLEAR_RESTEER_CYCLES / tma_info_thread_clks",
1627        "MetricGroup": "BadSpec;BrMispredicts;BvMP;TopdownL4;tma_L4_group;tma_branch_resteers_group;tma_issueBM",
1628        "MetricName": "tma_mispredicts_resteers",
1629        "MetricThreshold": "tma_mispredicts_resteers > 0.05 & (tma_branch_resteers > 0.05 & (tma_fetch_latency > 0.1 & tma_frontend_bound > 0.15))",
1630        "PublicDescription": "This metric represents fraction of cycles the CPU was stalled due to Branch Resteers as a result of Branch Misprediction at execution stage. Sample with: INT_MISC.CLEAR_RESTEER_CYCLES. Related metrics: tma_branch_mispredicts, tma_info_bad_spec_branch_misprediction_cost, tma_info_bottleneck_mispredictions",
1631        "ScaleUnit": "100%"
1632    },
1633    {
1634        "BriefDescription": "This metric represents Core fraction of cycles in which CPU was likely limited due to the MITE pipeline (the legacy decode pipeline)",
1635        "MetricExpr": "(IDQ.ALL_MITE_CYCLES_ANY_UOPS - IDQ.ALL_MITE_CYCLES_4_UOPS) / tma_info_core_core_clks / 2",
1636        "MetricGroup": "DSBmiss;FetchBW;TopdownL3;tma_L3_group;tma_fetch_bandwidth_group",
1637        "MetricName": "tma_mite",
1638        "MetricThreshold": "tma_mite > 0.1 & tma_fetch_bandwidth > 0.2",
1639        "PublicDescription": "This metric represents Core fraction of cycles in which CPU was likely limited due to the MITE pipeline (the legacy decode pipeline). This pipeline is used for code that was not pre-cached in the DSB or LSD. For example; inefficiencies due to asymmetric decoders; use of long immediate or LCP can manifest as MITE fetch bandwidth bottleneck. Sample with: FRONTEND_RETIRED.ANY_DSB_MISS",
1640        "ScaleUnit": "100%"
1641    },
1642    {
1643        "BriefDescription": "This metric estimates penalty in terms of percentage of([SKL+] injected blend uops out of all Uops Issued -- the Count Domain; [ADL+] cycles)",
1644        "MetricExpr": "UOPS_ISSUED.VECTOR_WIDTH_MISMATCH / UOPS_ISSUED.ANY",
1645        "MetricGroup": "TopdownL5;tma_L5_group;tma_issueMV;tma_ports_utilized_0_group",
1646        "MetricName": "tma_mixing_vectors",
1647        "MetricThreshold": "tma_mixing_vectors > 0.05",
1648        "PublicDescription": "This metric estimates penalty in terms of percentage of([SKL+] injected blend uops out of all Uops Issued -- the Count Domain; [ADL+] cycles). Usually a Mixing_Vectors over 5% is worth investigating. Read more in Appendix B1 of the Optimizations Guide for this topic. Related metrics: tma_ms_switches",
1649        "ScaleUnit": "100%"
1650    },
1651    {
1652        "BriefDescription": "This metric estimates the fraction of cycles when the CPU was stalled due to switches of uop delivery to the Microcode Sequencer (MS)",
1653        "MetricExpr": "2 * IDQ.MS_SWITCHES / tma_info_thread_clks",
1654        "MetricGroup": "FetchLat;MicroSeq;TopdownL3;tma_L3_group;tma_fetch_latency_group;tma_issueMC;tma_issueMS;tma_issueMV;tma_issueSO",
1655        "MetricName": "tma_ms_switches",
1656        "MetricThreshold": "tma_ms_switches > 0.05 & (tma_fetch_latency > 0.1 & tma_frontend_bound > 0.15)",
1657        "PublicDescription": "This metric estimates the fraction of cycles when the CPU was stalled due to switches of uop delivery to the Microcode Sequencer (MS). Commonly used instructions are optimized for delivery by the DSB (decoded i-cache) or MITE (legacy instruction decode) pipelines. Certain operations cannot be handled natively by the execution pipeline; and must be performed by microcode (small programs injected into the execution stream). Switching to the MS too often can negatively impact performance. The MS is designated to deliver long uop flows required by CISC instructions like CPUID; or uncommon conditions like Floating Point Assists when dealing with Denormals. Sample with: IDQ.MS_SWITCHES. Related metrics: tma_clears_resteers, tma_info_bottleneck_irregular_overhead, tma_l1_bound, tma_machine_clears, tma_microcode_sequencer, tma_mixing_vectors, tma_serializing_operation",
1658        "ScaleUnit": "100%"
1659    },
1660    {
1661        "BriefDescription": "This metric represents fraction of slots where the CPU was retiring branch instructions that were not fused",
1662        "MetricExpr": "tma_light_operations * (BR_INST_RETIRED.ALL_BRANCHES - UOPS_RETIRED.MACRO_FUSED) / UOPS_RETIRED.RETIRE_SLOTS",
1663        "MetricGroup": "Branches;BvBO;Pipeline;TopdownL3;tma_L3_group;tma_light_operations_group",
1664        "MetricName": "tma_non_fused_branches",
1665        "MetricThreshold": "tma_non_fused_branches > 0.1 & tma_light_operations > 0.6",
1666        "PublicDescription": "This metric represents fraction of slots where the CPU was retiring branch instructions that were not fused. Non-conditional branches like direct JMP or CALL would count here. Can be used to examine fusible conditional jumps that were not fused.",
1667        "ScaleUnit": "100%"
1668    },
1669    {
1670        "BriefDescription": "This metric represents fraction of slots where the CPU was retiring NOP (no op) instructions",
1671        "MetricExpr": "tma_light_operations * INST_RETIRED.NOP / UOPS_RETIRED.RETIRE_SLOTS",
1672        "MetricGroup": "BvBO;Pipeline;TopdownL4;tma_L4_group;tma_other_light_ops_group",
1673        "MetricName": "tma_nop_instructions",
1674        "MetricThreshold": "tma_nop_instructions > 0.1 & (tma_other_light_ops > 0.3 & tma_light_operations > 0.6)",
1675        "PublicDescription": "This metric represents fraction of slots where the CPU was retiring NOP (no op) instructions. Compilers often use NOPs for certain address alignments - e.g. start address of a function or loop body. Sample with: INST_RETIRED.NOP",
1676        "ScaleUnit": "100%"
1677    },
1678    {
1679        "BriefDescription": "This metric represents the remaining light uops fraction the CPU has executed - remaining means not covered by other sibling nodes",
1680        "MetricExpr": "max(0, tma_light_operations - (tma_fp_arith + tma_memory_operations + tma_fused_instructions + tma_non_fused_branches))",
1681        "MetricGroup": "Pipeline;TopdownL3;tma_L3_group;tma_light_operations_group",
1682        "MetricName": "tma_other_light_ops",
1683        "MetricThreshold": "tma_other_light_ops > 0.3 & tma_light_operations > 0.6",
1684        "PublicDescription": "This metric represents the remaining light uops fraction the CPU has executed - remaining means not covered by other sibling nodes. May undercount due to FMA double counting",
1685        "ScaleUnit": "100%"
1686    },
1687    {
1688        "BriefDescription": "This metric estimates fraction of slots the CPU was stalled due to other cases of misprediction (non-retired x86 branches or other types).",
1689        "MetricExpr": "max(tma_branch_mispredicts * (1 - BR_MISP_RETIRED.ALL_BRANCHES / (INT_MISC.CLEARS_COUNT - MACHINE_CLEARS.COUNT)), 0.0001)",
1690        "MetricGroup": "BrMispredicts;BvIO;TopdownL3;tma_L3_group;tma_branch_mispredicts_group",
1691        "MetricName": "tma_other_mispredicts",
1692        "MetricThreshold": "tma_other_mispredicts > 0.05 & (tma_branch_mispredicts > 0.1 & tma_bad_speculation > 0.15)",
1693        "ScaleUnit": "100%"
1694    },
1695    {
1696        "BriefDescription": "This metric represents fraction of slots the CPU has wasted due to Nukes (Machine Clears) not related to memory ordering.",
1697        "MetricExpr": "max(tma_machine_clears * (1 - MACHINE_CLEARS.MEMORY_ORDERING / MACHINE_CLEARS.COUNT), 0.0001)",
1698        "MetricGroup": "BvIO;Machine_Clears;TopdownL3;tma_L3_group;tma_machine_clears_group",
1699        "MetricName": "tma_other_nukes",
1700        "MetricThreshold": "tma_other_nukes > 0.05 & (tma_machine_clears > 0.1 & tma_bad_speculation > 0.15)",
1701        "ScaleUnit": "100%"
1702    },
1703    {
1704        "BriefDescription": "This metric roughly estimates (based on idle latencies) how often the CPU was stalled on accesses to external 3D-Xpoint (Crystal Ridge, a.k.a",
1705        "MetricConstraint": "NO_GROUP_EVENTS",
1706        "MetricExpr": "(((1 - (19 * (MEM_LOAD_L3_MISS_RETIRED.REMOTE_DRAM * (1 + MEM_LOAD_RETIRED.FB_HIT / MEM_LOAD_RETIRED.L1_MISS)) + 10 * (MEM_LOAD_L3_MISS_RETIRED.LOCAL_DRAM * (1 + MEM_LOAD_RETIRED.FB_HIT / MEM_LOAD_RETIRED.L1_MISS) + MEM_LOAD_L3_MISS_RETIRED.REMOTE_FWD * (1 + MEM_LOAD_RETIRED.FB_HIT / MEM_LOAD_RETIRED.L1_MISS) + MEM_LOAD_L3_MISS_RETIRED.REMOTE_HITM * (1 + MEM_LOAD_RETIRED.FB_HIT / MEM_LOAD_RETIRED.L1_MISS))) / (19 * (MEM_LOAD_L3_MISS_RETIRED.REMOTE_DRAM * (1 + MEM_LOAD_RETIRED.FB_HIT / MEM_LOAD_RETIRED.L1_MISS)) + 10 * (MEM_LOAD_L3_MISS_RETIRED.LOCAL_DRAM * (1 + MEM_LOAD_RETIRED.FB_HIT / MEM_LOAD_RETIRED.L1_MISS) + MEM_LOAD_L3_MISS_RETIRED.REMOTE_FWD * (1 + MEM_LOAD_RETIRED.FB_HIT / MEM_LOAD_RETIRED.L1_MISS) + MEM_LOAD_L3_MISS_RETIRED.REMOTE_HITM * (1 + MEM_LOAD_RETIRED.FB_HIT / MEM_LOAD_RETIRED.L1_MISS)) + (25 * (MEM_LOAD_RETIRED.LOCAL_PMM * (1 + MEM_LOAD_RETIRED.FB_HIT / MEM_LOAD_RETIRED.L1_MISS)) + 33 * (MEM_LOAD_L3_MISS_RETIRED.REMOTE_PMM * (1 + MEM_LOAD_RETIRED.FB_HIT / MEM_LOAD_RETIRED.L1_MISS))))) * (CYCLE_ACTIVITY.STALLS_L3_MISS / tma_info_thread_clks + (CYCLE_ACTIVITY.STALLS_L1D_MISS - CYCLE_ACTIVITY.STALLS_L2_MISS) / tma_info_thread_clks - tma_l2_bound) if 1e6 * (MEM_LOAD_L3_MISS_RETIRED.REMOTE_PMM + MEM_LOAD_RETIRED.LOCAL_PMM) > MEM_LOAD_RETIRED.L1_MISS else 0) if #has_pmem > 0 else 0)",
1707        "MetricGroup": "MemoryBound;Server;TmaL3mem;TopdownL3;tma_L3_group;tma_memory_bound_group",
1708        "MetricName": "tma_pmm_bound",
1709        "MetricThreshold": "tma_pmm_bound > 0.1 & (tma_memory_bound > 0.2 & tma_backend_bound > 0.2)",
1710        "PublicDescription": "This metric roughly estimates (based on idle latencies) how often the CPU was stalled on accesses to external 3D-Xpoint (Crystal Ridge, a.k.a. IXP) memory by loads, PMM stands for Persistent Memory Module.",
1711        "ScaleUnit": "100%"
1712    },
1713    {
1714        "BriefDescription": "This metric represents Core fraction of cycles CPU dispatched uops on execution port 0 ([SNB+] ALU; [HSW+] ALU and 2nd branch)",
1715        "MetricExpr": "UOPS_DISPATCHED_PORT.PORT_0 / tma_info_core_core_clks",
1716        "MetricGroup": "Compute;TopdownL6;tma_L6_group;tma_alu_op_utilization_group;tma_issue2P",
1717        "MetricName": "tma_port_0",
1718        "MetricThreshold": "tma_port_0 > 0.6",
1719        "PublicDescription": "This metric represents Core fraction of cycles CPU dispatched uops on execution port 0 ([SNB+] ALU; [HSW+] ALU and 2nd branch). Sample with: UOPS_DISPATCHED_PORT.PORT_0. Related metrics: tma_fp_scalar, tma_fp_vector, tma_fp_vector_128b, tma_fp_vector_256b, tma_fp_vector_512b, tma_port_1, tma_port_5, tma_port_6, tma_ports_utilized_2",
1720        "ScaleUnit": "100%"
1721    },
1722    {
1723        "BriefDescription": "This metric represents Core fraction of cycles CPU dispatched uops on execution port 1 (ALU)",
1724        "MetricExpr": "UOPS_DISPATCHED_PORT.PORT_1 / tma_info_core_core_clks",
1725        "MetricGroup": "TopdownL6;tma_L6_group;tma_alu_op_utilization_group;tma_issue2P",
1726        "MetricName": "tma_port_1",
1727        "MetricThreshold": "tma_port_1 > 0.6",
1728        "PublicDescription": "This metric represents Core fraction of cycles CPU dispatched uops on execution port 1 (ALU). Sample with: UOPS_DISPATCHED_PORT.PORT_1. Related metrics: tma_fp_scalar, tma_fp_vector, tma_fp_vector_128b, tma_fp_vector_256b, tma_fp_vector_512b, tma_port_0, tma_port_5, tma_port_6, tma_ports_utilized_2",
1729        "ScaleUnit": "100%"
1730    },
1731    {
1732        "BriefDescription": "This metric represents Core fraction of cycles CPU dispatched uops on execution port 2 ([SNB+]Loads and Store-address; [ICL+] Loads)",
1733        "MetricExpr": "UOPS_DISPATCHED_PORT.PORT_2 / tma_info_core_core_clks",
1734        "MetricGroup": "TopdownL6;tma_L6_group;tma_load_op_utilization_group",
1735        "MetricName": "tma_port_2",
1736        "MetricThreshold": "tma_port_2 > 0.6",
1737        "PublicDescription": "This metric represents Core fraction of cycles CPU dispatched uops on execution port 2 ([SNB+]Loads and Store-address; [ICL+] Loads). Sample with: UOPS_DISPATCHED_PORT.PORT_2",
1738        "ScaleUnit": "100%"
1739    },
1740    {
1741        "BriefDescription": "This metric represents Core fraction of cycles CPU dispatched uops on execution port 3 ([SNB+]Loads and Store-address; [ICL+] Loads)",
1742        "MetricExpr": "UOPS_DISPATCHED_PORT.PORT_3 / tma_info_core_core_clks",
1743        "MetricGroup": "TopdownL6;tma_L6_group;tma_load_op_utilization_group",
1744        "MetricName": "tma_port_3",
1745        "MetricThreshold": "tma_port_3 > 0.6",
1746        "PublicDescription": "This metric represents Core fraction of cycles CPU dispatched uops on execution port 3 ([SNB+]Loads and Store-address; [ICL+] Loads). Sample with: UOPS_DISPATCHED_PORT.PORT_3",
1747        "ScaleUnit": "100%"
1748    },
1749    {
1750        "BriefDescription": "This metric represents Core fraction of cycles CPU dispatched uops on execution port 4 (Store-data)",
1751        "MetricExpr": "tma_store_op_utilization",
1752        "MetricGroup": "TopdownL6;tma_L6_group;tma_issueSpSt;tma_store_op_utilization_group",
1753        "MetricName": "tma_port_4",
1754        "MetricThreshold": "tma_port_4 > 0.6",
1755        "PublicDescription": "This metric represents Core fraction of cycles CPU dispatched uops on execution port 4 (Store-data). Sample with: UOPS_DISPATCHED_PORT.PORT_4. Related metrics: tma_split_stores",
1756        "ScaleUnit": "100%"
1757    },
1758    {
1759        "BriefDescription": "This metric represents Core fraction of cycles CPU dispatched uops on execution port 5 ([SNB+] Branches and ALU; [HSW+] ALU)",
1760        "MetricExpr": "UOPS_DISPATCHED_PORT.PORT_5 / tma_info_core_core_clks",
1761        "MetricGroup": "TopdownL6;tma_L6_group;tma_alu_op_utilization_group;tma_issue2P",
1762        "MetricName": "tma_port_5",
1763        "MetricThreshold": "tma_port_5 > 0.6",
1764        "PublicDescription": "This metric represents Core fraction of cycles CPU dispatched uops on execution port 5 ([SNB+] Branches and ALU; [HSW+] ALU). Sample with: UOPS_DISPATCHED.PORT_5. Related metrics: tma_fp_scalar, tma_fp_vector, tma_fp_vector_128b, tma_fp_vector_256b, tma_fp_vector_512b, tma_port_0, tma_port_1, tma_port_6, tma_ports_utilized_2",
1765        "ScaleUnit": "100%"
1766    },
1767    {
1768        "BriefDescription": "This metric represents Core fraction of cycles CPU dispatched uops on execution port 6 ([HSW+] Primary Branch and simple ALU)",
1769        "MetricExpr": "UOPS_DISPATCHED_PORT.PORT_6 / tma_info_core_core_clks",
1770        "MetricGroup": "TopdownL6;tma_L6_group;tma_alu_op_utilization_group;tma_issue2P",
1771        "MetricName": "tma_port_6",
1772        "MetricThreshold": "tma_port_6 > 0.6",
1773        "PublicDescription": "This metric represents Core fraction of cycles CPU dispatched uops on execution port 6 ([HSW+] Primary Branch and simple ALU). Sample with: UOPS_DISPATCHED_PORT.PORT_6. Related metrics: tma_fp_scalar, tma_fp_vector, tma_fp_vector_128b, tma_fp_vector_256b, tma_fp_vector_512b, tma_port_0, tma_port_1, tma_port_5, tma_ports_utilized_2",
1774        "ScaleUnit": "100%"
1775    },
1776    {
1777        "BriefDescription": "This metric represents Core fraction of cycles CPU dispatched uops on execution port 7 ([HSW+]simple Store-address)",
1778        "MetricExpr": "UOPS_DISPATCHED_PORT.PORT_7 / tma_info_core_core_clks",
1779        "MetricGroup": "TopdownL6;tma_L6_group;tma_store_op_utilization_group",
1780        "MetricName": "tma_port_7",
1781        "MetricThreshold": "tma_port_7 > 0.6",
1782        "PublicDescription": "This metric represents Core fraction of cycles CPU dispatched uops on execution port 7 ([HSW+]simple Store-address). Sample with: UOPS_DISPATCHED_PORT.PORT_7",
1783        "ScaleUnit": "100%"
1784    },
1785    {
1786        "BriefDescription": "This metric estimates fraction of cycles the CPU performance was potentially limited due to Core computation issues (non divider-related)",
1787        "MetricExpr": "((tma_ports_utilized_0 * tma_info_thread_clks + (EXE_ACTIVITY.1_PORTS_UTIL + tma_retiring * EXE_ACTIVITY.2_PORTS_UTIL)) / tma_info_thread_clks if ARITH.DIVIDER_ACTIVE < CYCLE_ACTIVITY.STALLS_TOTAL - CYCLE_ACTIVITY.STALLS_MEM_ANY else (EXE_ACTIVITY.1_PORTS_UTIL + tma_retiring * EXE_ACTIVITY.2_PORTS_UTIL) / tma_info_thread_clks)",
1788        "MetricGroup": "PortsUtil;TopdownL3;tma_L3_group;tma_core_bound_group",
1789        "MetricName": "tma_ports_utilization",
1790        "MetricThreshold": "tma_ports_utilization > 0.15 & (tma_core_bound > 0.1 & tma_backend_bound > 0.2)",
1791        "PublicDescription": "This metric estimates fraction of cycles the CPU performance was potentially limited due to Core computation issues (non divider-related).  Two distinct categories can be attributed into this metric: (1) heavy data-dependency among contiguous instructions would manifest in this metric - such cases are often referred to as low Instruction Level Parallelism (ILP). (2) Contention on some hardware execution unit other than Divider. For example; when there are too many multiply operations.",
1792        "ScaleUnit": "100%"
1793    },
1794    {
1795        "BriefDescription": "This metric represents fraction of cycles CPU executed no uops on any execution port (Logical Processor cycles since ICL, Physical Core cycles otherwise)",
1796        "MetricExpr": "EXE_ACTIVITY.EXE_BOUND_0_PORTS / tma_info_thread_clks",
1797        "MetricGroup": "PortsUtil;TopdownL4;tma_L4_group;tma_ports_utilization_group",
1798        "MetricName": "tma_ports_utilized_0",
1799        "MetricThreshold": "tma_ports_utilized_0 > 0.2 & (tma_ports_utilization > 0.15 & (tma_core_bound > 0.1 & tma_backend_bound > 0.2))",
1800        "PublicDescription": "This metric represents fraction of cycles CPU executed no uops on any execution port (Logical Processor cycles since ICL, Physical Core cycles otherwise). Long-latency instructions like divides may contribute to this metric.",
1801        "ScaleUnit": "100%"
1802    },
1803    {
1804        "BriefDescription": "This metric represents fraction of cycles where the CPU executed total of 1 uop per cycle on all execution ports (Logical Processor cycles since ICL, Physical Core cycles otherwise)",
1805        "MetricExpr": "((UOPS_EXECUTED.CORE_CYCLES_GE_1 - UOPS_EXECUTED.CORE_CYCLES_GE_2) / 2 if #SMT_on else EXE_ACTIVITY.1_PORTS_UTIL) / tma_info_core_core_clks",
1806        "MetricGroup": "PortsUtil;TopdownL4;tma_L4_group;tma_issueL1;tma_ports_utilization_group",
1807        "MetricName": "tma_ports_utilized_1",
1808        "MetricThreshold": "tma_ports_utilized_1 > 0.2 & (tma_ports_utilization > 0.15 & (tma_core_bound > 0.1 & tma_backend_bound > 0.2))",
1809        "PublicDescription": "This metric represents fraction of cycles where the CPU executed total of 1 uop per cycle on all execution ports (Logical Processor cycles since ICL, Physical Core cycles otherwise). This can be due to heavy data-dependency among software instructions; or over oversubscribing a particular hardware resource. In some other cases with high 1_Port_Utilized and L1_Bound; this metric can point to L1 data-cache latency bottleneck that may not necessarily manifest with complete execution starvation (due to the short L1 latency e.g. walking a linked list) - looking at the assembly can be helpful. Related metrics: tma_l1_bound",
1810        "ScaleUnit": "100%"
1811    },
1812    {
1813        "BriefDescription": "This metric represents fraction of cycles CPU executed total of 2 uops per cycle on all execution ports (Logical Processor cycles since ICL, Physical Core cycles otherwise)",
1814        "MetricExpr": "((UOPS_EXECUTED.CORE_CYCLES_GE_2 - UOPS_EXECUTED.CORE_CYCLES_GE_3) / 2 if #SMT_on else EXE_ACTIVITY.2_PORTS_UTIL) / tma_info_core_core_clks",
1815        "MetricGroup": "PortsUtil;TopdownL4;tma_L4_group;tma_issue2P;tma_ports_utilization_group",
1816        "MetricName": "tma_ports_utilized_2",
1817        "MetricThreshold": "tma_ports_utilized_2 > 0.15 & (tma_ports_utilization > 0.15 & (tma_core_bound > 0.1 & tma_backend_bound > 0.2))",
1818        "PublicDescription": "This metric represents fraction of cycles CPU executed total of 2 uops per cycle on all execution ports (Logical Processor cycles since ICL, Physical Core cycles otherwise).  Loop Vectorization -most compilers feature auto-Vectorization options today- reduces pressure on the execution ports as multiple elements are calculated with same uop. Related metrics: tma_fp_scalar, tma_fp_vector, tma_fp_vector_128b, tma_fp_vector_256b, tma_fp_vector_512b, tma_port_0, tma_port_1, tma_port_5, tma_port_6",
1819        "ScaleUnit": "100%"
1820    },
1821    {
1822        "BriefDescription": "This metric represents fraction of cycles CPU executed total of 3 or more uops per cycle on all execution ports (Logical Processor cycles since ICL, Physical Core cycles otherwise).",
1823        "MetricExpr": "(UOPS_EXECUTED.CORE_CYCLES_GE_3 / 2 if #SMT_on else UOPS_EXECUTED.CORE_CYCLES_GE_3) / tma_info_core_core_clks",
1824        "MetricGroup": "BvCB;PortsUtil;TopdownL4;tma_L4_group;tma_ports_utilization_group",
1825        "MetricName": "tma_ports_utilized_3m",
1826        "MetricThreshold": "tma_ports_utilized_3m > 0.4 & (tma_ports_utilization > 0.15 & (tma_core_bound > 0.1 & tma_backend_bound > 0.2))",
1827        "ScaleUnit": "100%"
1828    },
1829    {
1830        "BriefDescription": "This metric estimates fraction of cycles while the memory subsystem was handling loads from remote cache in other sockets including synchronizations issues",
1831        "MetricConstraint": "NO_GROUP_EVENTS_NMI",
1832        "MetricExpr": "(89.5 * tma_info_system_core_frequency * MEM_LOAD_L3_MISS_RETIRED.REMOTE_HITM + 89.5 * tma_info_system_core_frequency * MEM_LOAD_L3_MISS_RETIRED.REMOTE_FWD) * (1 + MEM_LOAD_RETIRED.FB_HIT / MEM_LOAD_RETIRED.L1_MISS / 2) / tma_info_thread_clks",
1833        "MetricGroup": "Offcore;Server;Snoop;TopdownL5;tma_L5_group;tma_issueSyncxn;tma_mem_latency_group",
1834        "MetricName": "tma_remote_cache",
1835        "MetricThreshold": "tma_remote_cache > 0.05 & (tma_mem_latency > 0.1 & (tma_dram_bound > 0.1 & (tma_memory_bound > 0.2 & tma_backend_bound > 0.2)))",
1836        "PublicDescription": "This metric estimates fraction of cycles while the memory subsystem was handling loads from remote cache in other sockets including synchronizations issues. This is caused often due to non-optimal NUMA allocations. #link to NUMA article. Sample with: MEM_LOAD_L3_MISS_RETIRED.REMOTE_HITM_PS;MEM_LOAD_L3_MISS_RETIRED.REMOTE_FWD_PS. Related metrics: tma_contested_accesses, tma_data_sharing, tma_false_sharing, tma_machine_clears",
1837        "ScaleUnit": "100%"
1838    },
1839    {
1840        "BriefDescription": "This metric estimates fraction of cycles while the memory subsystem was handling loads from remote memory",
1841        "MetricExpr": "127 * tma_info_system_core_frequency * MEM_LOAD_L3_MISS_RETIRED.REMOTE_DRAM * (1 + MEM_LOAD_RETIRED.FB_HIT / MEM_LOAD_RETIRED.L1_MISS / 2) / tma_info_thread_clks",
1842        "MetricGroup": "Server;Snoop;TopdownL5;tma_L5_group;tma_mem_latency_group",
1843        "MetricName": "tma_remote_mem",
1844        "MetricThreshold": "tma_remote_mem > 0.1 & (tma_mem_latency > 0.1 & (tma_dram_bound > 0.1 & (tma_memory_bound > 0.2 & tma_backend_bound > 0.2)))",
1845        "PublicDescription": "This metric estimates fraction of cycles while the memory subsystem was handling loads from remote memory. This is caused often due to non-optimal NUMA allocations. #link to NUMA article. Sample with: MEM_LOAD_L3_MISS_RETIRED.REMOTE_DRAM_PS",
1846        "ScaleUnit": "100%"
1847    },
1848    {
1849        "BriefDescription": "This category represents fraction of slots utilized by useful work i.e. issued uops that eventually get retired",
1850        "MetricExpr": "UOPS_RETIRED.RETIRE_SLOTS / tma_info_thread_slots",
1851        "MetricGroup": "BvUW;TmaL1;TopdownL1;tma_L1_group",
1852        "MetricName": "tma_retiring",
1853        "MetricThreshold": "tma_retiring > 0.7 | tma_heavy_operations > 0.1",
1854        "MetricgroupNoGroup": "TopdownL1",
1855        "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 Pipeline_Width throughput was achieved.  Maximizing Retiring typically increases the Instructions-per-cycle (see IPC metric). Note that a high Retiring value does not necessary mean there is no room for more performance.  For example; Heavy-operations or Microcode Assists are categorized under Retiring. They often indicate suboptimal performance and can often be optimized or avoided. Sample with: UOPS_RETIRED.RETIRE_SLOTS",
1856        "ScaleUnit": "100%"
1857    },
1858    {
1859        "BriefDescription": "This metric represents fraction of cycles the CPU issue-pipeline was stalled due to serializing operations",
1860        "MetricExpr": "PARTIAL_RAT_STALLS.SCOREBOARD / tma_info_thread_clks",
1861        "MetricGroup": "BvIO;PortsUtil;TopdownL3;tma_L3_group;tma_core_bound_group;tma_issueSO",
1862        "MetricName": "tma_serializing_operation",
1863        "MetricThreshold": "tma_serializing_operation > 0.1 & (tma_core_bound > 0.1 & tma_backend_bound > 0.2)",
1864        "PublicDescription": "This metric represents fraction of cycles the CPU issue-pipeline was stalled due to serializing operations. Instructions like CPUID; WRMSR or LFENCE serialize the out-of-order execution which may limit performance. Sample with: PARTIAL_RAT_STALLS.SCOREBOARD. Related metrics: tma_ms_switches",
1865        "ScaleUnit": "100%"
1866    },
1867    {
1868        "BriefDescription": "This metric represents fraction of cycles the CPU was stalled due to PAUSE Instructions",
1869        "MetricExpr": "40 * ROB_MISC_EVENTS.PAUSE_INST / tma_info_thread_clks",
1870        "MetricGroup": "TopdownL4;tma_L4_group;tma_serializing_operation_group",
1871        "MetricName": "tma_slow_pause",
1872        "MetricThreshold": "tma_slow_pause > 0.05 & (tma_serializing_operation > 0.1 & (tma_core_bound > 0.1 & tma_backend_bound > 0.2))",
1873        "PublicDescription": "This metric represents fraction of cycles the CPU was stalled due to PAUSE Instructions. Sample with: MISC_RETIRED.PAUSE_INST",
1874        "ScaleUnit": "100%"
1875    },
1876    {
1877        "BriefDescription": "This metric estimates fraction of cycles handling memory load split accesses - load that cross 64-byte cache line boundary",
1878        "MetricConstraint": "NO_GROUP_EVENTS_NMI",
1879        "MetricExpr": "tma_info_memory_load_miss_real_latency * LD_BLOCKS.NO_SR / tma_info_thread_clks",
1880        "MetricGroup": "TopdownL4;tma_L4_group;tma_l1_bound_group",
1881        "MetricName": "tma_split_loads",
1882        "MetricThreshold": "tma_split_loads > 0.2 & (tma_l1_bound > 0.1 & (tma_memory_bound > 0.2 & tma_backend_bound > 0.2))",
1883        "PublicDescription": "This metric estimates fraction of cycles handling memory load split accesses - load that cross 64-byte cache line boundary. Sample with: MEM_INST_RETIRED.SPLIT_LOADS_PS",
1884        "ScaleUnit": "100%"
1885    },
1886    {
1887        "BriefDescription": "This metric represents rate of split store accesses",
1888        "MetricExpr": "MEM_INST_RETIRED.SPLIT_STORES / tma_info_core_core_clks",
1889        "MetricGroup": "TopdownL4;tma_L4_group;tma_issueSpSt;tma_store_bound_group",
1890        "MetricName": "tma_split_stores",
1891        "MetricThreshold": "tma_split_stores > 0.2 & (tma_store_bound > 0.2 & (tma_memory_bound > 0.2 & tma_backend_bound > 0.2))",
1892        "PublicDescription": "This metric represents rate of split store accesses.  Consider aligning your data to the 64-byte cache line granularity. Sample with: MEM_INST_RETIRED.SPLIT_STORES_PS. Related metrics: tma_port_4",
1893        "ScaleUnit": "100%"
1894    },
1895    {
1896        "BriefDescription": "This metric measures fraction of cycles where the Super Queue (SQ) was full taking into account all request-types and both hardware SMT threads (Logical Processors)",
1897        "MetricExpr": "(OFFCORE_REQUESTS_BUFFER.SQ_FULL / 2 if #SMT_on else OFFCORE_REQUESTS_BUFFER.SQ_FULL) / tma_info_core_core_clks",
1898        "MetricGroup": "BvMS;MemoryBW;Offcore;TopdownL4;tma_L4_group;tma_issueBW;tma_l3_bound_group",
1899        "MetricName": "tma_sq_full",
1900        "MetricThreshold": "tma_sq_full > 0.3 & (tma_l3_bound > 0.05 & (tma_memory_bound > 0.2 & tma_backend_bound > 0.2))",
1901        "PublicDescription": "This metric measures fraction of cycles where the Super Queue (SQ) was full taking into account all request-types and both hardware SMT threads (Logical Processors). Related metrics: tma_fb_full, tma_info_bottleneck_cache_memory_bandwidth, tma_info_system_dram_bw_use, tma_mem_bandwidth",
1902        "ScaleUnit": "100%"
1903    },
1904    {
1905        "BriefDescription": "This metric estimates how often CPU was stalled  due to RFO store memory accesses; RFO store issue a read-for-ownership request before the write",
1906        "MetricExpr": "EXE_ACTIVITY.BOUND_ON_STORES / tma_info_thread_clks",
1907        "MetricGroup": "MemoryBound;TmaL3mem;TopdownL3;tma_L3_group;tma_memory_bound_group",
1908        "MetricName": "tma_store_bound",
1909        "MetricThreshold": "tma_store_bound > 0.2 & (tma_memory_bound > 0.2 & tma_backend_bound > 0.2)",
1910        "PublicDescription": "This metric estimates how often CPU was stalled  due to RFO store memory accesses; RFO store issue a read-for-ownership request before the write. Even though store accesses do not typically stall out-of-order CPUs; there are few cases where stores can lead to actual stalls. This metric will be flagged should RFO stores be a bottleneck. Sample with: MEM_INST_RETIRED.ALL_STORES_PS",
1911        "ScaleUnit": "100%"
1912    },
1913    {
1914        "BriefDescription": "This metric roughly estimates fraction of cycles when the memory subsystem had loads blocked since they could not forward data from earlier (in program order) overlapping stores",
1915        "MetricExpr": "13 * LD_BLOCKS.STORE_FORWARD / tma_info_thread_clks",
1916        "MetricGroup": "TopdownL4;tma_L4_group;tma_l1_bound_group",
1917        "MetricName": "tma_store_fwd_blk",
1918        "MetricThreshold": "tma_store_fwd_blk > 0.1 & (tma_l1_bound > 0.1 & (tma_memory_bound > 0.2 & tma_backend_bound > 0.2))",
1919        "PublicDescription": "This metric roughly estimates fraction of cycles when the memory subsystem had loads blocked since they could not forward data from earlier (in program order) overlapping stores. To streamline memory operations in the pipeline; a load can avoid waiting for memory if a prior in-flight store is writing the data that the load wants to read (store forwarding process). However; in some cases the load may be blocked for a significant time pending the store forward. For example; when the prior store is writing a smaller region than the load is reading.",
1920        "ScaleUnit": "100%"
1921    },
1922    {
1923        "BriefDescription": "This metric estimates fraction of cycles the CPU spent handling L1D store misses",
1924        "MetricConstraint": "NO_GROUP_EVENTS_NMI",
1925        "MetricExpr": "(L2_RQSTS.RFO_HIT * 11 * (1 - MEM_INST_RETIRED.LOCK_LOADS / MEM_INST_RETIRED.ALL_STORES) + (1 - MEM_INST_RETIRED.LOCK_LOADS / MEM_INST_RETIRED.ALL_STORES) * min(CPU_CLK_UNHALTED.THREAD, OFFCORE_REQUESTS_OUTSTANDING.CYCLES_WITH_DEMAND_RFO)) / tma_info_thread_clks",
1926        "MetricGroup": "BvML;MemoryLat;Offcore;TopdownL4;tma_L4_group;tma_issueRFO;tma_issueSL;tma_store_bound_group",
1927        "MetricName": "tma_store_latency",
1928        "MetricThreshold": "tma_store_latency > 0.1 & (tma_store_bound > 0.2 & (tma_memory_bound > 0.2 & tma_backend_bound > 0.2))",
1929        "PublicDescription": "This metric estimates fraction of cycles the CPU spent handling L1D store misses. Store accesses usually less impact out-of-order core performance; however; holding resources for longer time can lead into undesired implications (e.g. contention on L1D fill-buffer entries - see FB_Full). Related metrics: tma_fb_full, tma_lock_latency",
1930        "ScaleUnit": "100%"
1931    },
1932    {
1933        "BriefDescription": "This metric represents Core fraction of cycles CPU dispatched uops on execution port for Store operations",
1934        "MetricExpr": "UOPS_DISPATCHED_PORT.PORT_4 / tma_info_core_core_clks",
1935        "MetricGroup": "TopdownL5;tma_L5_group;tma_ports_utilized_3m_group",
1936        "MetricName": "tma_store_op_utilization",
1937        "MetricThreshold": "tma_store_op_utilization > 0.6",
1938        "ScaleUnit": "100%"
1939    },
1940    {
1941        "BriefDescription": "This metric roughly estimates the fraction of cycles where the TLB was missed by store accesses, hitting in the second-level TLB (STLB)",
1942        "MetricExpr": "tma_dtlb_store - tma_store_stlb_miss",
1943        "MetricGroup": "MemoryTLB;TopdownL5;tma_L5_group;tma_dtlb_store_group",
1944        "MetricName": "tma_store_stlb_hit",
1945        "MetricThreshold": "tma_store_stlb_hit > 0.05 & (tma_dtlb_store > 0.05 & (tma_store_bound > 0.2 & (tma_memory_bound > 0.2 & tma_backend_bound > 0.2)))",
1946        "ScaleUnit": "100%"
1947    },
1948    {
1949        "BriefDescription": "This metric estimates the fraction of cycles where the STLB was missed by store accesses, performing a hardware page walk",
1950        "MetricExpr": "DTLB_STORE_MISSES.WALK_ACTIVE / tma_info_core_core_clks",
1951        "MetricGroup": "MemoryTLB;TopdownL5;tma_L5_group;tma_dtlb_store_group",
1952        "MetricName": "tma_store_stlb_miss",
1953        "MetricThreshold": "tma_store_stlb_miss > 0.05 & (tma_dtlb_store > 0.05 & (tma_store_bound > 0.2 & (tma_memory_bound > 0.2 & tma_backend_bound > 0.2)))",
1954        "ScaleUnit": "100%"
1955    },
1956    {
1957        "BriefDescription": "This metric represents fraction of cycles the CPU was stalled due to new branch address clears",
1958        "MetricExpr": "9 * BACLEARS.ANY / tma_info_thread_clks",
1959        "MetricGroup": "BigFootprint;BvBC;FetchLat;TopdownL4;tma_L4_group;tma_branch_resteers_group",
1960        "MetricName": "tma_unknown_branches",
1961        "MetricThreshold": "tma_unknown_branches > 0.05 & (tma_branch_resteers > 0.05 & (tma_fetch_latency > 0.1 & tma_frontend_bound > 0.15))",
1962        "PublicDescription": "This metric represents fraction of cycles the CPU was stalled due to new branch address clears. These are fetched branches the Branch Prediction Unit was unable to recognize (e.g. first time the branch is fetched or hitting BTB capacity limit) hence called Unknown Branches. Sample with: BACLEARS.ANY",
1963        "ScaleUnit": "100%"
1964    },
1965    {
1966        "BriefDescription": "This metric serves as an approximation of legacy x87 usage",
1967        "MetricExpr": "tma_retiring * UOPS_EXECUTED.X87 / UOPS_EXECUTED.THREAD",
1968        "MetricGroup": "Compute;TopdownL4;tma_L4_group;tma_fp_arith_group",
1969        "MetricName": "tma_x87_use",
1970        "MetricThreshold": "tma_x87_use > 0.1 & (tma_fp_arith > 0.2 & tma_light_operations > 0.6)",
1971        "PublicDescription": "This metric serves as an approximation of legacy x87 usage. It accounts for instructions beyond X87 FP arithmetic operations; hence may be used as a thermometer to avoid X87 high usage and preferably upgrade to modern ISA. See Tip under Tuning Hint.",
1972        "ScaleUnit": "100%"
1973    },
1974    {
1975        "BriefDescription": "Percentage of cycles in aborted transactions.",
1976        "MetricExpr": "(max(cycles\\-t - cycles\\-ct, 0) / cycles if has_event(cycles\\-t) else 0)",
1977        "MetricGroup": "transaction",
1978        "MetricName": "tsx_aborted_cycles",
1979        "ScaleUnit": "100%"
1980    },
1981    {
1982        "BriefDescription": "Number of cycles within a transaction divided by the number of elisions.",
1983        "MetricExpr": "(cycles\\-t / el\\-start if has_event(el\\-start) else 0)",
1984        "MetricGroup": "transaction",
1985        "MetricName": "tsx_cycles_per_elision",
1986        "ScaleUnit": "1cycles / elision"
1987    },
1988    {
1989        "BriefDescription": "Number of cycles within a transaction divided by the number of transactions.",
1990        "MetricExpr": "(cycles\\-t / tx\\-start if has_event(cycles\\-t) else 0)",
1991        "MetricGroup": "transaction",
1992        "MetricName": "tsx_cycles_per_transaction",
1993        "ScaleUnit": "1cycles / transaction"
1994    },
1995    {
1996        "BriefDescription": "Percentage of cycles within a transaction region.",
1997        "MetricExpr": "(cycles\\-t / cycles if has_event(cycles\\-t) else 0)",
1998        "MetricGroup": "transaction",
1999        "MetricName": "tsx_transactional_cycles",
2000        "ScaleUnit": "100%"
2001    },
2002    {
2003        "BriefDescription": "Uncore operating frequency in GHz",
2004        "MetricExpr": "UNC_CHA_CLOCKTICKS / (source_count(UNC_CHA_CLOCKTICKS) * #num_packages) / 1e9 / duration_time",
2005        "MetricName": "uncore_frequency",
2006        "ScaleUnit": "1GHz"
2007    },
2008    {
2009        "BriefDescription": "Intel(R) Ultra Path Interconnect (UPI) data receive bandwidth (MB/sec)",
2010        "MetricExpr": "UNC_UPI_RxL_FLITS.ALL_DATA * 7.111111111111111 / 1e6 / duration_time",
2011        "MetricName": "upi_data_receive_bw",
2012        "ScaleUnit": "1MB/s"
2013    },
2014    {
2015        "BriefDescription": "Intel(R) Ultra Path Interconnect (UPI) data transmit bandwidth (MB/sec)",
2016        "MetricExpr": "UNC_UPI_TxL_FLITS.ALL_DATA * 7.111111111111111 / 1e6 / duration_time",
2017        "MetricName": "upi_data_transmit_bw",
2018        "ScaleUnit": "1MB/s"
2019    }
2020]
2021