xref: /linux/tools/perf/pmu-events/arch/x86/skylakex/skx-metrics.json (revision 4b132aacb0768ac1e652cf517097ea6f237214b9)
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 / (#num_cores / #num_packages * #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 / (#num_cores / #num_packages * #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 / (#num_cores / #num_packages * #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 / UOPS_ISSUED.ANY",
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 / UOPS_ISSUED.ANY",
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 / UOPS_ISSUED.ANY",
269        "MetricName": "percent_uops_delivered_from_microcode_sequencer",
270        "ScaleUnit": "100%"
271    },
272    {
273        "BriefDescription": "Percentage of cycles spent in System Management Interrupts.",
274        "MetricExpr": "((msr@aperf@ - cycles) / msr@aperf@ if msr@smi@ > 0 else 0)",
275        "MetricGroup": "smi",
276        "MetricName": "smi_cycles",
277        "MetricThreshold": "smi_cycles > 0.1",
278        "ScaleUnit": "100%"
279    },
280    {
281        "BriefDescription": "Number of SMI interrupts.",
282        "MetricExpr": "msr@smi@",
283        "MetricGroup": "smi",
284        "MetricName": "smi_num",
285        "ScaleUnit": "1SMI#"
286    },
287    {
288        "BriefDescription": "The ratio of number of completed memory store instructions to the total number completed instructions",
289        "MetricExpr": "MEM_INST_RETIRED.ALL_STORES / INST_RETIRED.ANY",
290        "MetricName": "stores_per_instr",
291        "ScaleUnit": "1per_instr"
292    },
293    {
294        "BriefDescription": "This metric estimates how often memory load accesses were aliased by preceding stores (in program order) with a 4K address offset",
295        "MetricExpr": "LD_BLOCKS_PARTIAL.ADDRESS_ALIAS / tma_info_thread_clks",
296        "MetricGroup": "TopdownL4;tma_L4_group;tma_l1_bound_group",
297        "MetricName": "tma_4k_aliasing",
298        "MetricThreshold": "tma_4k_aliasing > 0.2 & (tma_l1_bound > 0.1 & (tma_memory_bound > 0.2 & tma_backend_bound > 0.2))",
299        "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).",
300        "ScaleUnit": "100%"
301    },
302    {
303        "BriefDescription": "This metric represents Core fraction of cycles CPU dispatched uops on execution ports for ALU operations.",
304        "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",
305        "MetricGroup": "TopdownL5;tma_L5_group;tma_ports_utilized_3m_group",
306        "MetricName": "tma_alu_op_utilization",
307        "MetricThreshold": "tma_alu_op_utilization > 0.4",
308        "ScaleUnit": "100%"
309    },
310    {
311        "BriefDescription": "This metric estimates fraction of slots the CPU retired uops delivered by the Microcode_Sequencer as a result of Assists",
312        "MetricExpr": "34 * (FP_ASSIST.ANY + OTHER_ASSISTS.ANY) / tma_info_thread_slots",
313        "MetricGroup": "BvIO;TopdownL4;tma_L4_group;tma_microcode_sequencer_group",
314        "MetricName": "tma_assists",
315        "MetricThreshold": "tma_assists > 0.1 & (tma_microcode_sequencer > 0.05 & tma_heavy_operations > 0.1)",
316        "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",
317        "ScaleUnit": "100%"
318    },
319    {
320        "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",
321        "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",
322        "MetricGroup": "BvOB;TmaL1;TopdownL1;tma_L1_group",
323        "MetricName": "tma_backend_bound",
324        "MetricThreshold": "tma_backend_bound > 0.2",
325        "MetricgroupNoGroup": "TopdownL1",
326        "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.",
327        "ScaleUnit": "100%"
328    },
329    {
330        "BriefDescription": "This category represents fraction of slots wasted due to incorrect speculations",
331        "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",
332        "MetricGroup": "TmaL1;TopdownL1;tma_L1_group",
333        "MetricName": "tma_bad_speculation",
334        "MetricThreshold": "tma_bad_speculation > 0.15",
335        "MetricgroupNoGroup": "TopdownL1",
336        "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.",
337        "ScaleUnit": "100%"
338    },
339    {
340        "BriefDescription": "This metric represents fraction of slots the CPU has wasted due to Branch Misprediction",
341        "MetricConstraint": "NO_GROUP_EVENTS",
342        "MetricExpr": "BR_MISP_RETIRED.ALL_BRANCHES / (BR_MISP_RETIRED.ALL_BRANCHES + MACHINE_CLEARS.COUNT) * tma_bad_speculation",
343        "MetricGroup": "BadSpec;BrMispredicts;BvMP;TmaL2;TopdownL2;tma_L2_group;tma_bad_speculation_group;tma_issueBM",
344        "MetricName": "tma_branch_mispredicts",
345        "MetricThreshold": "tma_branch_mispredicts > 0.1 & tma_bad_speculation > 0.15",
346        "MetricgroupNoGroup": "TopdownL2",
347        "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",
348        "ScaleUnit": "100%"
349    },
350    {
351        "BriefDescription": "This metric represents fraction of cycles the CPU was stalled due to Branch Resteers",
352        "MetricExpr": "INT_MISC.CLEAR_RESTEER_CYCLES / tma_info_thread_clks + tma_unknown_branches",
353        "MetricGroup": "FetchLat;TopdownL3;tma_L3_group;tma_fetch_latency_group",
354        "MetricName": "tma_branch_resteers",
355        "MetricThreshold": "tma_branch_resteers > 0.05 & (tma_fetch_latency > 0.1 & tma_frontend_bound > 0.15)",
356        "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",
357        "ScaleUnit": "100%"
358    },
359    {
360        "BriefDescription": "This metric estimates fraction of cycles the CPU retired uops originated from CISC (complex instruction set computer) instruction",
361        "MetricExpr": "max(0, tma_microcode_sequencer - tma_assists)",
362        "MetricGroup": "TopdownL4;tma_L4_group;tma_microcode_sequencer_group",
363        "MetricName": "tma_cisc",
364        "MetricThreshold": "tma_cisc > 0.1 & (tma_microcode_sequencer > 0.05 & tma_heavy_operations > 0.1)",
365        "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.",
366        "ScaleUnit": "100%"
367    },
368    {
369        "BriefDescription": "This metric represents fraction of cycles the CPU was stalled due to Branch Resteers as a result of Machine Clears",
370        "MetricExpr": "(1 - BR_MISP_RETIRED.ALL_BRANCHES / (BR_MISP_RETIRED.ALL_BRANCHES + MACHINE_CLEARS.COUNT)) * INT_MISC.CLEAR_RESTEER_CYCLES / tma_info_thread_clks",
371        "MetricGroup": "BadSpec;MachineClears;TopdownL4;tma_L4_group;tma_branch_resteers_group;tma_issueMC",
372        "MetricName": "tma_clears_resteers",
373        "MetricThreshold": "tma_clears_resteers > 0.05 & (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 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",
375        "ScaleUnit": "100%"
376    },
377    {
378        "BriefDescription": "This metric estimates fraction of cycles while the memory subsystem was handling synchronizations due to contested accesses",
379        "MetricConstraint": "NO_GROUP_EVENTS",
380        "MetricExpr": "(44 * tma_info_system_core_frequency * (MEM_LOAD_L3_HIT_RETIRED.XSNP_HITM * (OFFCORE_RESPONSE.DEMAND_DATA_RD.L3_HIT.HITM_OTHER_CORE / (OFFCORE_RESPONSE.DEMAND_DATA_RD.L3_HIT.HITM_OTHER_CORE + OFFCORE_RESPONSE.DEMAND_DATA_RD.L3_HIT.SNOOP_HIT_WITH_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",
381        "MetricGroup": "BvMS;DataSharing;Offcore;Snoop;TopdownL4;tma_L4_group;tma_issueSyncxn;tma_l3_bound_group",
382        "MetricName": "tma_contested_accesses",
383        "MetricThreshold": "tma_contested_accesses > 0.05 & (tma_l3_bound > 0.05 & (tma_memory_bound > 0.2 & tma_backend_bound > 0.2))",
384        "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",
385        "ScaleUnit": "100%"
386    },
387    {
388        "BriefDescription": "This metric represents fraction of slots where Core non-memory issues were of a bottleneck",
389        "MetricConstraint": "NO_GROUP_EVENTS",
390        "MetricExpr": "tma_backend_bound - tma_memory_bound",
391        "MetricGroup": "Backend;Compute;TmaL2;TopdownL2;tma_L2_group;tma_backend_bound_group",
392        "MetricName": "tma_core_bound",
393        "MetricThreshold": "tma_core_bound > 0.1 & tma_backend_bound > 0.2",
394        "MetricgroupNoGroup": "TopdownL2",
395        "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).",
396        "ScaleUnit": "100%"
397    },
398    {
399        "BriefDescription": "This metric estimates fraction of cycles while the memory subsystem was handling synchronizations due to data-sharing accesses",
400        "MetricConstraint": "NO_GROUP_EVENTS",
401        "MetricExpr": "44 * tma_info_system_core_frequency * (MEM_LOAD_L3_HIT_RETIRED.XSNP_HIT + MEM_LOAD_L3_HIT_RETIRED.XSNP_HITM * (1 - OFFCORE_RESPONSE.DEMAND_DATA_RD.L3_HIT.HITM_OTHER_CORE / (OFFCORE_RESPONSE.DEMAND_DATA_RD.L3_HIT.HITM_OTHER_CORE + OFFCORE_RESPONSE.DEMAND_DATA_RD.L3_HIT.SNOOP_HIT_WITH_FWD))) * (1 + MEM_LOAD_RETIRED.FB_HIT / MEM_LOAD_RETIRED.L1_MISS / 2) / tma_info_thread_clks",
402        "MetricGroup": "BvMS;Offcore;Snoop;TopdownL4;tma_L4_group;tma_issueSyncxn;tma_l3_bound_group",
403        "MetricName": "tma_data_sharing",
404        "MetricThreshold": "tma_data_sharing > 0.05 & (tma_l3_bound > 0.05 & (tma_memory_bound > 0.2 & tma_backend_bound > 0.2))",
405        "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",
406        "ScaleUnit": "100%"
407    },
408    {
409        "BriefDescription": "This metric represents fraction of cycles where decoder-0 was the only active decoder",
410        "MetricExpr": "(cpu@INST_DECODED.DECODERS\\,cmask\\=1@ - cpu@INST_DECODED.DECODERS\\,cmask\\=2@) / tma_info_core_core_clks / 2",
411        "MetricGroup": "DSBmiss;FetchBW;TopdownL4;tma_L4_group;tma_issueD0;tma_mite_group",
412        "MetricName": "tma_decoder0_alone",
413        "MetricThreshold": "tma_decoder0_alone > 0.1 & (tma_mite > 0.1 & tma_fetch_bandwidth > 0.2)",
414        "PublicDescription": "This metric represents fraction of cycles where decoder-0 was the only active decoder. Related metrics: tma_few_uops_instructions",
415        "ScaleUnit": "100%"
416    },
417    {
418        "BriefDescription": "This metric represents fraction of cycles where the Divider unit was active",
419        "MetricExpr": "ARITH.DIVIDER_ACTIVE / tma_info_thread_clks",
420        "MetricGroup": "BvCB;TopdownL3;tma_L3_group;tma_core_bound_group",
421        "MetricName": "tma_divider",
422        "MetricThreshold": "tma_divider > 0.2 & (tma_core_bound > 0.1 & tma_backend_bound > 0.2)",
423        "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",
424        "ScaleUnit": "100%"
425    },
426    {
427        "BriefDescription": "This metric estimates how often the CPU was stalled on accesses to external memory (DRAM) by loads",
428        "MetricConstraint": "NO_GROUP_EVENTS",
429        "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",
430        "MetricGroup": "MemoryBound;TmaL3mem;TopdownL3;tma_L3_group;tma_memory_bound_group",
431        "MetricName": "tma_dram_bound",
432        "MetricThreshold": "tma_dram_bound > 0.1 & (tma_memory_bound > 0.2 & tma_backend_bound > 0.2)",
433        "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",
434        "ScaleUnit": "100%"
435    },
436    {
437        "BriefDescription": "This metric represents Core fraction of cycles in which CPU was likely limited due to DSB (decoded uop cache) fetch pipeline",
438        "MetricExpr": "(IDQ.DSB_CYCLES_ANY - IDQ.DSB_CYCLES_OK) / tma_info_core_core_clks / 2",
439        "MetricGroup": "DSB;FetchBW;TopdownL3;tma_L3_group;tma_fetch_bandwidth_group",
440        "MetricName": "tma_dsb",
441        "MetricThreshold": "tma_dsb > 0.15 & tma_fetch_bandwidth > 0.2",
442        "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.",
443        "ScaleUnit": "100%"
444    },
445    {
446        "BriefDescription": "This metric represents fraction of cycles the CPU was stalled due to switches from DSB to MITE pipelines",
447        "MetricExpr": "DSB2MITE_SWITCHES.PENALTY_CYCLES / tma_info_thread_clks",
448        "MetricGroup": "DSBmiss;FetchLat;TopdownL3;tma_L3_group;tma_fetch_latency_group;tma_issueFB",
449        "MetricName": "tma_dsb_switches",
450        "MetricThreshold": "tma_dsb_switches > 0.05 & (tma_fetch_latency > 0.1 & tma_frontend_bound > 0.15)",
451        "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",
452        "ScaleUnit": "100%"
453    },
454    {
455        "BriefDescription": "This metric roughly estimates the fraction of cycles where the Data TLB (DTLB) was missed by load accesses",
456        "MetricConstraint": "NO_GROUP_EVENTS_NMI",
457        "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",
458        "MetricGroup": "BvMT;MemoryTLB;TopdownL4;tma_L4_group;tma_issueTLB;tma_l1_bound_group",
459        "MetricName": "tma_dtlb_load",
460        "MetricThreshold": "tma_dtlb_load > 0.1 & (tma_l1_bound > 0.1 & (tma_memory_bound > 0.2 & tma_backend_bound > 0.2))",
461        "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",
462        "ScaleUnit": "100%"
463    },
464    {
465        "BriefDescription": "This metric roughly estimates the fraction of cycles spent handling first-level data TLB store misses",
466        "MetricExpr": "(9 * cpu@DTLB_STORE_MISSES.STLB_HIT\\,cmask\\=1@ + DTLB_STORE_MISSES.WALK_ACTIVE) / tma_info_core_core_clks",
467        "MetricGroup": "BvMT;MemoryTLB;TopdownL4;tma_L4_group;tma_issueTLB;tma_store_bound_group",
468        "MetricName": "tma_dtlb_store",
469        "MetricThreshold": "tma_dtlb_store > 0.05 & (tma_store_bound > 0.2 & (tma_memory_bound > 0.2 & tma_backend_bound > 0.2))",
470        "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",
471        "ScaleUnit": "100%"
472    },
473    {
474        "BriefDescription": "This metric roughly estimates how often CPU was handling synchronizations due to False Sharing",
475        "MetricConstraint": "NO_GROUP_EVENTS",
476        "MetricExpr": "(110 * tma_info_system_core_frequency * (OFFCORE_RESPONSE.DEMAND_RFO.L3_MISS.REMOTE_HITM + OFFCORE_RESPONSE.PF_L2_RFO.L3_MISS.REMOTE_HITM) + 47.5 * tma_info_system_core_frequency * (OFFCORE_RESPONSE.DEMAND_RFO.L3_HIT.HITM_OTHER_CORE + OFFCORE_RESPONSE.PF_L2_RFO.L3_HIT.HITM_OTHER_CORE)) / tma_info_thread_clks",
477        "MetricGroup": "BvMS;DataSharing;Offcore;Snoop;TopdownL4;tma_L4_group;tma_issueSyncxn;tma_store_bound_group",
478        "MetricName": "tma_false_sharing",
479        "MetricThreshold": "tma_false_sharing > 0.05 & (tma_store_bound > 0.2 & (tma_memory_bound > 0.2 & tma_backend_bound > 0.2))",
480        "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",
481        "ScaleUnit": "100%"
482    },
483    {
484        "BriefDescription": "This metric does a *rough estimation* of how often L1D Fill Buffer unavailability limited additional L1D miss memory access requests to proceed",
485        "MetricConstraint": "NO_GROUP_EVENTS_NMI",
486        "MetricExpr": "tma_info_memory_load_miss_real_latency * cpu@L1D_PEND_MISS.FB_FULL\\,cmask\\=1@ / tma_info_thread_clks",
487        "MetricGroup": "BvMS;MemoryBW;TopdownL4;tma_L4_group;tma_issueBW;tma_issueSL;tma_issueSmSt;tma_l1_bound_group",
488        "MetricName": "tma_fb_full",
489        "MetricThreshold": "tma_fb_full > 0.3",
490        "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",
491        "ScaleUnit": "100%"
492    },
493    {
494        "BriefDescription": "This metric represents fraction of slots the CPU was stalled due to Frontend bandwidth issues",
495        "MetricExpr": "tma_frontend_bound - tma_fetch_latency",
496        "MetricGroup": "FetchBW;Frontend;TmaL2;TopdownL2;tma_L2_group;tma_frontend_bound_group;tma_issueFB",
497        "MetricName": "tma_fetch_bandwidth",
498        "MetricThreshold": "tma_fetch_bandwidth > 0.2",
499        "MetricgroupNoGroup": "TopdownL2",
500        "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",
501        "ScaleUnit": "100%"
502    },
503    {
504        "BriefDescription": "This metric represents fraction of slots the CPU was stalled due to Frontend latency issues",
505        "MetricExpr": "4 * IDQ_UOPS_NOT_DELIVERED.CYCLES_0_UOPS_DELIV.CORE / tma_info_thread_slots",
506        "MetricGroup": "Frontend;TmaL2;TopdownL2;tma_L2_group;tma_frontend_bound_group",
507        "MetricName": "tma_fetch_latency",
508        "MetricThreshold": "tma_fetch_latency > 0.1 & tma_frontend_bound > 0.15",
509        "MetricgroupNoGroup": "TopdownL2",
510        "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",
511        "ScaleUnit": "100%"
512    },
513    {
514        "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",
515        "MetricConstraint": "NO_GROUP_EVENTS_NMI",
516        "MetricExpr": "tma_heavy_operations - tma_microcode_sequencer",
517        "MetricGroup": "TopdownL3;tma_L3_group;tma_heavy_operations_group;tma_issueD0",
518        "MetricName": "tma_few_uops_instructions",
519        "MetricThreshold": "tma_few_uops_instructions > 0.05 & tma_heavy_operations > 0.1",
520        "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",
521        "ScaleUnit": "100%"
522    },
523    {
524        "BriefDescription": "This metric represents overall arithmetic floating-point (FP) operations fraction the CPU has executed (retired)",
525        "MetricConstraint": "NO_GROUP_EVENTS",
526        "MetricExpr": "tma_x87_use + tma_fp_scalar + tma_fp_vector",
527        "MetricGroup": "HPC;TopdownL3;tma_L3_group;tma_light_operations_group",
528        "MetricName": "tma_fp_arith",
529        "MetricThreshold": "tma_fp_arith > 0.2 & tma_light_operations > 0.6",
530        "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.",
531        "ScaleUnit": "100%"
532    },
533    {
534        "BriefDescription": "This metric roughly estimates fraction of slots the CPU retired uops as a result of handing Floating Point (FP) Assists",
535        "MetricExpr": "34 * FP_ASSIST.ANY / tma_info_thread_slots",
536        "MetricGroup": "HPC;TopdownL5;tma_L5_group;tma_assists_group",
537        "MetricName": "tma_fp_assists",
538        "MetricThreshold": "tma_fp_assists > 0.1",
539        "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).",
540        "ScaleUnit": "100%"
541    },
542    {
543        "BriefDescription": "This metric approximates arithmetic floating-point (FP) scalar uops fraction the CPU has retired",
544        "MetricExpr": "FP_ARITH_INST_RETIRED.SCALAR / UOPS_RETIRED.RETIRE_SLOTS",
545        "MetricGroup": "Compute;Flops;TopdownL4;tma_L4_group;tma_fp_arith_group;tma_issue2P",
546        "MetricName": "tma_fp_scalar",
547        "MetricThreshold": "tma_fp_scalar > 0.1 & (tma_fp_arith > 0.2 & tma_light_operations > 0.6)",
548        "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",
549        "ScaleUnit": "100%"
550    },
551    {
552        "BriefDescription": "This metric approximates arithmetic floating-point (FP) vector uops fraction the CPU has retired aggregated across all vector widths",
553        "MetricConstraint": "NO_GROUP_EVENTS",
554        "MetricExpr": "cpu@FP_ARITH_INST_RETIRED.128B_PACKED_DOUBLE\\,umask\\=0xfc@ / UOPS_RETIRED.RETIRE_SLOTS",
555        "MetricGroup": "Compute;Flops;TopdownL4;tma_L4_group;tma_fp_arith_group;tma_issue2P",
556        "MetricName": "tma_fp_vector",
557        "MetricThreshold": "tma_fp_vector > 0.1 & (tma_fp_arith > 0.2 & tma_light_operations > 0.6)",
558        "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",
559        "ScaleUnit": "100%"
560    },
561    {
562        "BriefDescription": "This metric approximates arithmetic FP vector uops fraction the CPU has retired for 128-bit wide vectors",
563        "MetricExpr": "(FP_ARITH_INST_RETIRED.128B_PACKED_DOUBLE + FP_ARITH_INST_RETIRED.128B_PACKED_SINGLE) / UOPS_RETIRED.RETIRE_SLOTS",
564        "MetricGroup": "Compute;Flops;TopdownL5;tma_L5_group;tma_fp_vector_group;tma_issue2P",
565        "MetricName": "tma_fp_vector_128b",
566        "MetricThreshold": "tma_fp_vector_128b > 0.1 & (tma_fp_vector > 0.1 & (tma_fp_arith > 0.2 & tma_light_operations > 0.6))",
567        "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",
568        "ScaleUnit": "100%"
569    },
570    {
571        "BriefDescription": "This metric approximates arithmetic FP vector uops fraction the CPU has retired for 256-bit wide vectors",
572        "MetricExpr": "(FP_ARITH_INST_RETIRED.256B_PACKED_DOUBLE + FP_ARITH_INST_RETIRED.256B_PACKED_SINGLE) / UOPS_RETIRED.RETIRE_SLOTS",
573        "MetricGroup": "Compute;Flops;TopdownL5;tma_L5_group;tma_fp_vector_group;tma_issue2P",
574        "MetricName": "tma_fp_vector_256b",
575        "MetricThreshold": "tma_fp_vector_256b > 0.1 & (tma_fp_vector > 0.1 & (tma_fp_arith > 0.2 & tma_light_operations > 0.6))",
576        "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",
577        "ScaleUnit": "100%"
578    },
579    {
580        "BriefDescription": "This metric approximates arithmetic FP vector uops fraction the CPU has retired for 512-bit wide vectors",
581        "MetricExpr": "(FP_ARITH_INST_RETIRED.512B_PACKED_DOUBLE + FP_ARITH_INST_RETIRED.512B_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_512b",
584        "MetricThreshold": "tma_fp_vector_512b > 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 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",
586        "ScaleUnit": "100%"
587    },
588    {
589        "BriefDescription": "This category represents fraction of slots where the processor's Frontend undersupplies its Backend",
590        "MetricExpr": "IDQ_UOPS_NOT_DELIVERED.CORE / tma_info_thread_slots",
591        "MetricGroup": "BvFB;BvIO;PGO;TmaL1;TopdownL1;tma_L1_group",
592        "MetricName": "tma_frontend_bound",
593        "MetricThreshold": "tma_frontend_bound > 0.15",
594        "MetricgroupNoGroup": "TopdownL1",
595        "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",
596        "ScaleUnit": "100%"
597    },
598    {
599        "BriefDescription": "This metric represents fraction of slots where the CPU was retiring fused instructions -- where one uop can represent multiple contiguous instructions",
600        "MetricExpr": "tma_light_operations * UOPS_RETIRED.MACRO_FUSED / UOPS_RETIRED.RETIRE_SLOTS",
601        "MetricGroup": "Branches;BvBO;Pipeline;TopdownL3;tma_L3_group;tma_light_operations_group",
602        "MetricName": "tma_fused_instructions",
603        "MetricThreshold": "tma_fused_instructions > 0.1 & tma_light_operations > 0.6",
604        "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!)}",
605        "ScaleUnit": "100%"
606    },
607    {
608        "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",
609        "MetricExpr": "(UOPS_RETIRED.RETIRE_SLOTS + UOPS_RETIRED.MACRO_FUSED - INST_RETIRED.ANY) / tma_info_thread_slots",
610        "MetricGroup": "Retire;TmaL2;TopdownL2;tma_L2_group;tma_retiring_group",
611        "MetricName": "tma_heavy_operations",
612        "MetricThreshold": "tma_heavy_operations > 0.1",
613        "MetricgroupNoGroup": "TopdownL2",
614        "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+] .)",
615        "ScaleUnit": "100%"
616    },
617    {
618        "BriefDescription": "This metric represents fraction of cycles the CPU was stalled due to instruction cache misses",
619        "MetricExpr": "(ICACHE_16B.IFDATA_STALL + 2 * cpu@ICACHE_16B.IFDATA_STALL\\,cmask\\=1\\,edge@) / tma_info_thread_clks",
620        "MetricGroup": "BigFootprint;BvBC;FetchLat;IcMiss;TopdownL3;tma_L3_group;tma_fetch_latency_group",
621        "MetricName": "tma_icache_misses",
622        "MetricThreshold": "tma_icache_misses > 0.05 & (tma_fetch_latency > 0.1 & tma_frontend_bound > 0.15)",
623        "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",
624        "ScaleUnit": "100%"
625    },
626    {
627        "BriefDescription": "Branch Misprediction Cost: Fraction of TMA slots wasted per non-speculative branch misprediction (retired JEClear)",
628        "MetricExpr": "tma_info_bottleneck_mispredictions * tma_info_thread_slots / BR_MISP_RETIRED.ALL_BRANCHES / 100",
629        "MetricGroup": "Bad;BrMispredicts;tma_issueBM",
630        "MetricName": "tma_info_bad_spec_branch_misprediction_cost",
631        "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"
632    },
633    {
634        "BriefDescription": "Instructions per retired mispredicts for indirect CALL or JMP branches (lower number means higher occurrence rate).",
635        "MetricExpr": "tma_info_inst_mix_instructions / (UOPS_RETIRED.RETIRE_SLOTS / UOPS_ISSUED.ANY * BR_MISP_EXEC.INDIRECT)",
636        "MetricGroup": "Bad;BrMispredicts",
637        "MetricName": "tma_info_bad_spec_ipmisp_indirect",
638        "MetricThreshold": "tma_info_bad_spec_ipmisp_indirect < 1e3"
639    },
640    {
641        "BriefDescription": "Number of Instructions per non-speculative Branch Misprediction (JEClear) (lower number means higher occurrence rate)",
642        "MetricExpr": "INST_RETIRED.ANY / BR_MISP_RETIRED.ALL_BRANCHES",
643        "MetricGroup": "Bad;BadSpec;BrMispredicts",
644        "MetricName": "tma_info_bad_spec_ipmispredict",
645        "MetricThreshold": "tma_info_bad_spec_ipmispredict < 200"
646    },
647    {
648        "BriefDescription": "Speculative to Retired ratio of all clears (covering mispredicts and nukes)",
649        "MetricExpr": "INT_MISC.CLEARS_COUNT / (BR_MISP_RETIRED.ALL_BRANCHES + MACHINE_CLEARS.COUNT)",
650        "MetricGroup": "BrMispredicts",
651        "MetricName": "tma_info_bad_spec_spec_clears_ratio"
652    },
653    {
654        "BriefDescription": "Probability of Core Bound bottleneck hidden by SMT-profiling artifacts",
655        "MetricConstraint": "NO_GROUP_EVENTS",
656        "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)",
657        "MetricGroup": "Cor;SMT",
658        "MetricName": "tma_info_botlnk_l0_core_bound_likely",
659        "MetricThreshold": "tma_info_botlnk_l0_core_bound_likely > 0.5"
660    },
661    {
662        "BriefDescription": "Total pipeline cost of DSB (uop cache) hits - subset of the Instruction_Fetch_BW Bottleneck",
663        "MetricExpr": "100 * (tma_frontend_bound * (tma_fetch_bandwidth / (tma_fetch_bandwidth + tma_fetch_latency)) * (tma_dsb / (tma_dsb + tma_mite)))",
664        "MetricGroup": "DSB;FetchBW;tma_issueFB",
665        "MetricName": "tma_info_botlnk_l2_dsb_bandwidth",
666        "MetricThreshold": "tma_info_botlnk_l2_dsb_bandwidth > 10",
667        "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"
668    },
669    {
670        "BriefDescription": "Total pipeline cost of DSB (uop cache) misses - subset of the Instruction_Fetch_BW Bottleneck",
671        "MetricConstraint": "NO_GROUP_EVENTS",
672        "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))",
673        "MetricGroup": "DSBmiss;Fed;tma_issueFB",
674        "MetricName": "tma_info_botlnk_l2_dsb_misses",
675        "MetricThreshold": "tma_info_botlnk_l2_dsb_misses > 10",
676        "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"
677    },
678    {
679        "BriefDescription": "Total pipeline cost of Instruction Cache misses - subset of the Big_Code Bottleneck",
680        "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))",
681        "MetricGroup": "Fed;FetchLat;IcMiss;tma_issueFL",
682        "MetricName": "tma_info_botlnk_l2_ic_misses",
683        "MetricThreshold": "tma_info_botlnk_l2_ic_misses > 5",
684        "PublicDescription": "Total pipeline cost of Instruction Cache misses - subset of the Big_Code Bottleneck. Related metrics: "
685    },
686    {
687        "BriefDescription": "Total pipeline cost of instruction fetch related bottlenecks by large code footprint programs (i-side cache; TLB and BTB misses)",
688        "MetricConstraint": "NO_GROUP_EVENTS",
689        "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)",
690        "MetricGroup": "BigFootprint;BvBC;Fed;Frontend;IcMiss;MemoryTLB",
691        "MetricName": "tma_info_bottleneck_big_code",
692        "MetricThreshold": "tma_info_bottleneck_big_code > 20"
693    },
694    {
695        "BriefDescription": "Total pipeline cost of instructions used for program control-flow - a subset of the Retiring category in TMA",
696        "MetricExpr": "100 * ((BR_INST_RETIRED.ALL_BRANCHES + 2 * BR_INST_RETIRED.NEAR_CALL + INST_RETIRED.NOP) / tma_info_thread_slots)",
697        "MetricGroup": "BvBO;Ret",
698        "MetricName": "tma_info_bottleneck_branching_overhead",
699        "MetricThreshold": "tma_info_bottleneck_branching_overhead > 5",
700        "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)"
701    },
702    {
703        "BriefDescription": "Total pipeline cost of external Memory- or Cache-Bandwidth related bottlenecks",
704        "MetricExpr": "100 * (tma_memory_bound * (tma_dram_bound / (tma_dram_bound + tma_l1_bound + tma_l2_bound + tma_l3_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_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_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)))",
705        "MetricGroup": "BvMB;Mem;MemoryBW;Offcore;tma_issueBW",
706        "MetricName": "tma_info_bottleneck_cache_memory_bandwidth",
707        "MetricThreshold": "tma_info_bottleneck_cache_memory_bandwidth > 20",
708        "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"
709    },
710    {
711        "BriefDescription": "Total pipeline cost of external Memory- or Cache-Latency related bottlenecks",
712        "MetricExpr": "100 * (tma_memory_bound * (tma_dram_bound / (tma_dram_bound + tma_l1_bound + tma_l2_bound + tma_l3_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_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_store_bound) + tma_memory_bound * (tma_store_bound / (tma_dram_bound + tma_l1_bound + tma_l2_bound + tma_l3_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_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)))",
713        "MetricGroup": "BvML;Mem;MemoryLat;Offcore;tma_issueLat",
714        "MetricName": "tma_info_bottleneck_cache_memory_latency",
715        "MetricThreshold": "tma_info_bottleneck_cache_memory_latency > 20",
716        "PublicDescription": "Total pipeline cost of external Memory- or Cache-Latency related bottlenecks. Related metrics: tma_l3_hit_latency, tma_mem_latency"
717    },
718    {
719        "BriefDescription": "Total pipeline cost when the execution is compute-bound - an estimation",
720        "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)))",
721        "MetricGroup": "BvCB;Cor;tma_issueComp",
722        "MetricName": "tma_info_bottleneck_compute_bound_est",
723        "MetricThreshold": "tma_info_bottleneck_compute_bound_est > 20",
724        "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: "
725    },
726    {
727        "BriefDescription": "Total pipeline cost of instruction fetch bandwidth related bottlenecks (when the front-end could not sustain operations delivery to the back-end)",
728        "MetricConstraint": "NO_GROUP_EVENTS",
729        "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",
730        "MetricGroup": "BvFB;Fed;FetchBW;Frontend",
731        "MetricName": "tma_info_bottleneck_instruction_fetch_bw",
732        "MetricThreshold": "tma_info_bottleneck_instruction_fetch_bw > 20"
733    },
734    {
735        "BriefDescription": "Total pipeline cost of irregular execution (e.g",
736        "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)",
737        "MetricGroup": "Bad;BvIO;Cor;Ret;tma_issueMS",
738        "MetricName": "tma_info_bottleneck_irregular_overhead",
739        "MetricThreshold": "tma_info_bottleneck_irregular_overhead > 10",
740        "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"
741    },
742    {
743        "BriefDescription": "Total pipeline cost of Memory Address Translation related bottlenecks (data-side TLBs)",
744        "MetricConstraint": "NO_GROUP_EVENTS",
745        "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_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_store_bound)) * (tma_dtlb_store / (tma_dtlb_store + tma_false_sharing + tma_split_stores + tma_store_latency)))",
746        "MetricGroup": "BvMT;Mem;MemoryTLB;Offcore;tma_issueTLB",
747        "MetricName": "tma_info_bottleneck_memory_data_tlbs",
748        "MetricThreshold": "tma_info_bottleneck_memory_data_tlbs > 20",
749        "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"
750    },
751    {
752        "BriefDescription": "Total pipeline cost of Memory Synchronization related bottlenecks (data transfers and coherency updates across processors)",
753        "MetricExpr": "100 * (tma_memory_bound * (tma_dram_bound / (tma_dram_bound + tma_l1_bound + tma_l2_bound + tma_l3_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_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_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))",
754        "MetricGroup": "BvMS;Mem;Offcore;tma_issueTLB",
755        "MetricName": "tma_info_bottleneck_memory_synchronization",
756        "MetricThreshold": "tma_info_bottleneck_memory_synchronization > 10",
757        "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"
758    },
759    {
760        "BriefDescription": "Total pipeline cost of Branch Misprediction related bottlenecks",
761        "MetricConstraint": "NO_GROUP_EVENTS",
762        "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))",
763        "MetricGroup": "Bad;BadSpec;BrMispredicts;BvMP;tma_issueBM",
764        "MetricName": "tma_info_bottleneck_mispredictions",
765        "MetricThreshold": "tma_info_bottleneck_mispredictions > 20",
766        "PublicDescription": "Total pipeline cost of Branch Misprediction related bottlenecks. Related metrics: tma_branch_mispredicts, tma_info_bad_spec_branch_misprediction_cost, tma_mispredicts_resteers"
767    },
768    {
769        "BriefDescription": "Total pipeline cost of remaining bottlenecks in the back-end",
770        "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)",
771        "MetricGroup": "BvOB;Cor;Offcore",
772        "MetricName": "tma_info_bottleneck_other_bottlenecks",
773        "MetricThreshold": "tma_info_bottleneck_other_bottlenecks > 20",
774        "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."
775    },
776    {
777        "BriefDescription": "Total pipeline cost of \"useful operations\" - the portion of Retiring category not covered by Branching_Overhead nor Irregular_Overhead.",
778        "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)",
779        "MetricGroup": "BvUW;Ret",
780        "MetricName": "tma_info_bottleneck_useful_work",
781        "MetricThreshold": "tma_info_bottleneck_useful_work > 20"
782    },
783    {
784        "BriefDescription": "Fraction of branches that are CALL or RET",
785        "MetricExpr": "(BR_INST_RETIRED.NEAR_CALL + BR_INST_RETIRED.NEAR_RETURN) / BR_INST_RETIRED.ALL_BRANCHES",
786        "MetricGroup": "Bad;Branches",
787        "MetricName": "tma_info_branches_callret"
788    },
789    {
790        "BriefDescription": "Fraction of branches that are non-taken conditionals",
791        "MetricExpr": "BR_INST_RETIRED.NOT_TAKEN / BR_INST_RETIRED.ALL_BRANCHES",
792        "MetricGroup": "Bad;Branches;CodeGen;PGO",
793        "MetricName": "tma_info_branches_cond_nt"
794    },
795    {
796        "BriefDescription": "Fraction of branches that are taken conditionals",
797        "MetricExpr": "(BR_INST_RETIRED.CONDITIONAL - BR_INST_RETIRED.NOT_TAKEN) / BR_INST_RETIRED.ALL_BRANCHES",
798        "MetricGroup": "Bad;Branches;CodeGen;PGO",
799        "MetricName": "tma_info_branches_cond_tk"
800    },
801    {
802        "BriefDescription": "Fraction of branches that are unconditional (direct or indirect) jumps",
803        "MetricConstraint": "NO_GROUP_EVENTS",
804        "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",
805        "MetricGroup": "Bad;Branches",
806        "MetricName": "tma_info_branches_jump"
807    },
808    {
809        "BriefDescription": "Core actual clocks when any Logical Processor is active on the Physical Core",
810        "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))",
811        "MetricGroup": "SMT",
812        "MetricName": "tma_info_core_core_clks"
813    },
814    {
815        "BriefDescription": "Instructions Per Cycle across hyper-threads (per physical core)",
816        "MetricExpr": "INST_RETIRED.ANY / tma_info_core_core_clks",
817        "MetricGroup": "Ret;SMT;TmaL1;tma_L1_group",
818        "MetricName": "tma_info_core_coreipc"
819    },
820    {
821        "BriefDescription": "uops Executed per Cycle",
822        "MetricExpr": "UOPS_EXECUTED.THREAD / tma_info_thread_clks",
823        "MetricGroup": "Power",
824        "MetricName": "tma_info_core_epc"
825    },
826    {
827        "BriefDescription": "Floating Point Operations Per Cycle",
828        "MetricConstraint": "NO_GROUP_EVENTS",
829        "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",
830        "MetricGroup": "Flops;Ret",
831        "MetricName": "tma_info_core_flopc"
832    },
833    {
834        "BriefDescription": "Actual per-core usage of the Floating Point non-X87 execution units (regardless of precision or vector-width)",
835        "MetricExpr": "(FP_ARITH_INST_RETIRED.SCALAR + cpu@FP_ARITH_INST_RETIRED.128B_PACKED_DOUBLE\\,umask\\=0xfc@) / (2 * tma_info_core_core_clks)",
836        "MetricGroup": "Cor;Flops;HPC",
837        "MetricName": "tma_info_core_fp_arith_utilization",
838        "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)."
839    },
840    {
841        "BriefDescription": "Instruction-Level-Parallelism (average number of uops executed when there is execution) per thread (logical-processor)",
842        "MetricExpr": "UOPS_EXECUTED.THREAD / cpu@UOPS_EXECUTED.THREAD\\,cmask\\=1@",
843        "MetricGroup": "Backend;Cor;Pipeline;PortsUtil",
844        "MetricName": "tma_info_core_ilp"
845    },
846    {
847        "BriefDescription": "Fraction of Uops delivered by the DSB (aka Decoded ICache; or Uop Cache)",
848        "MetricExpr": "IDQ.DSB_UOPS / (IDQ.DSB_UOPS + IDQ.MITE_UOPS + IDQ.MS_UOPS)",
849        "MetricGroup": "DSB;Fed;FetchBW;tma_issueFB",
850        "MetricName": "tma_info_frontend_dsb_coverage",
851        "MetricThreshold": "tma_info_frontend_dsb_coverage < 0.7 & tma_info_thread_ipc / 4 > 0.35",
852        "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"
853    },
854    {
855        "BriefDescription": "Average number of cycles of a switch from the DSB fetch-unit to MITE fetch unit - see DSB_Switches tree node for details.",
856        "MetricExpr": "DSB2MITE_SWITCHES.PENALTY_CYCLES / DSB2MITE_SWITCHES.COUNT",
857        "MetricGroup": "DSBmiss",
858        "MetricName": "tma_info_frontend_dsb_switch_cost"
859    },
860    {
861        "BriefDescription": "Average number of Uops issued by front-end when it issued something",
862        "MetricExpr": "UOPS_ISSUED.ANY / cpu@UOPS_ISSUED.ANY\\,cmask\\=1@",
863        "MetricGroup": "Fed;FetchBW",
864        "MetricName": "tma_info_frontend_fetch_upc"
865    },
866    {
867        "BriefDescription": "Average Latency for L1 instruction cache misses",
868        "MetricExpr": "ICACHE_16B.IFDATA_STALL / cpu@ICACHE_16B.IFDATA_STALL\\,cmask\\=1\\,edge@ + 2",
869        "MetricGroup": "Fed;FetchLat;IcMiss",
870        "MetricName": "tma_info_frontend_icache_miss_latency"
871    },
872    {
873        "BriefDescription": "Instructions per non-speculative DSB miss (lower number means higher occurrence rate)",
874        "MetricExpr": "INST_RETIRED.ANY / FRONTEND_RETIRED.ANY_DSB_MISS",
875        "MetricGroup": "DSBmiss;Fed",
876        "MetricName": "tma_info_frontend_ipdsb_miss_ret",
877        "MetricThreshold": "tma_info_frontend_ipdsb_miss_ret < 50"
878    },
879    {
880        "BriefDescription": "Instructions per speculative Unknown Branch Misprediction (BAClear) (lower number means higher occurrence rate)",
881        "MetricExpr": "tma_info_inst_mix_instructions / BACLEARS.ANY",
882        "MetricGroup": "Fed",
883        "MetricName": "tma_info_frontend_ipunknown_branch"
884    },
885    {
886        "BriefDescription": "L2 cache true code cacheline misses per kilo instruction",
887        "MetricExpr": "1e3 * FRONTEND_RETIRED.L2_MISS / INST_RETIRED.ANY",
888        "MetricGroup": "IcMiss",
889        "MetricName": "tma_info_frontend_l2mpki_code"
890    },
891    {
892        "BriefDescription": "L2 cache speculative code cacheline misses per kilo instruction",
893        "MetricExpr": "1e3 * L2_RQSTS.CODE_RD_MISS / INST_RETIRED.ANY",
894        "MetricGroup": "IcMiss",
895        "MetricName": "tma_info_frontend_l2mpki_code_all"
896    },
897    {
898        "BriefDescription": "Branch instructions per taken branch.",
899        "MetricExpr": "BR_INST_RETIRED.ALL_BRANCHES / BR_INST_RETIRED.NEAR_TAKEN",
900        "MetricGroup": "Branches;Fed;PGO",
901        "MetricName": "tma_info_inst_mix_bptkbranch"
902    },
903    {
904        "BriefDescription": "Total number of retired Instructions",
905        "MetricExpr": "INST_RETIRED.ANY",
906        "MetricGroup": "Summary;TmaL1;tma_L1_group",
907        "MetricName": "tma_info_inst_mix_instructions",
908        "PublicDescription": "Total number of retired Instructions. Sample with: INST_RETIRED.PREC_DIST"
909    },
910    {
911        "BriefDescription": "Instructions per FP Arithmetic instruction (lower number means higher occurrence rate)",
912        "MetricConstraint": "NO_GROUP_EVENTS",
913        "MetricExpr": "INST_RETIRED.ANY / (FP_ARITH_INST_RETIRED.SCALAR + cpu@FP_ARITH_INST_RETIRED.128B_PACKED_DOUBLE\\,umask\\=0xfc@)",
914        "MetricGroup": "Flops;InsType",
915        "MetricName": "tma_info_inst_mix_iparith",
916        "MetricThreshold": "tma_info_inst_mix_iparith < 10",
917        "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."
918    },
919    {
920        "BriefDescription": "Instructions per FP Arithmetic AVX/SSE 128-bit instruction (lower number means higher occurrence rate)",
921        "MetricExpr": "INST_RETIRED.ANY / (FP_ARITH_INST_RETIRED.128B_PACKED_DOUBLE + FP_ARITH_INST_RETIRED.128B_PACKED_SINGLE)",
922        "MetricGroup": "Flops;FpVector;InsType",
923        "MetricName": "tma_info_inst_mix_iparith_avx128",
924        "MetricThreshold": "tma_info_inst_mix_iparith_avx128 < 10",
925        "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."
926    },
927    {
928        "BriefDescription": "Instructions per FP Arithmetic AVX* 256-bit instruction (lower number means higher occurrence rate)",
929        "MetricExpr": "INST_RETIRED.ANY / (FP_ARITH_INST_RETIRED.256B_PACKED_DOUBLE + FP_ARITH_INST_RETIRED.256B_PACKED_SINGLE)",
930        "MetricGroup": "Flops;FpVector;InsType",
931        "MetricName": "tma_info_inst_mix_iparith_avx256",
932        "MetricThreshold": "tma_info_inst_mix_iparith_avx256 < 10",
933        "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."
934    },
935    {
936        "BriefDescription": "Instructions per FP Arithmetic AVX 512-bit instruction (lower number means higher occurrence rate)",
937        "MetricExpr": "INST_RETIRED.ANY / (FP_ARITH_INST_RETIRED.512B_PACKED_DOUBLE + FP_ARITH_INST_RETIRED.512B_PACKED_SINGLE)",
938        "MetricGroup": "Flops;FpVector;InsType",
939        "MetricName": "tma_info_inst_mix_iparith_avx512",
940        "MetricThreshold": "tma_info_inst_mix_iparith_avx512 < 10",
941        "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."
942    },
943    {
944        "BriefDescription": "Instructions per FP Arithmetic Scalar Double-Precision instruction (lower number means higher occurrence rate)",
945        "MetricExpr": "INST_RETIRED.ANY / FP_ARITH_INST_RETIRED.SCALAR_DOUBLE",
946        "MetricGroup": "Flops;FpScalar;InsType",
947        "MetricName": "tma_info_inst_mix_iparith_scalar_dp",
948        "MetricThreshold": "tma_info_inst_mix_iparith_scalar_dp < 10",
949        "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."
950    },
951    {
952        "BriefDescription": "Instructions per FP Arithmetic Scalar Single-Precision instruction (lower number means higher occurrence rate)",
953        "MetricExpr": "INST_RETIRED.ANY / FP_ARITH_INST_RETIRED.SCALAR_SINGLE",
954        "MetricGroup": "Flops;FpScalar;InsType",
955        "MetricName": "tma_info_inst_mix_iparith_scalar_sp",
956        "MetricThreshold": "tma_info_inst_mix_iparith_scalar_sp < 10",
957        "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."
958    },
959    {
960        "BriefDescription": "Instructions per Branch (lower number means higher occurrence rate)",
961        "MetricExpr": "INST_RETIRED.ANY / BR_INST_RETIRED.ALL_BRANCHES",
962        "MetricGroup": "Branches;Fed;InsType",
963        "MetricName": "tma_info_inst_mix_ipbranch",
964        "MetricThreshold": "tma_info_inst_mix_ipbranch < 8"
965    },
966    {
967        "BriefDescription": "Instructions per (near) call (lower number means higher occurrence rate)",
968        "MetricExpr": "INST_RETIRED.ANY / BR_INST_RETIRED.NEAR_CALL",
969        "MetricGroup": "Branches;Fed;PGO",
970        "MetricName": "tma_info_inst_mix_ipcall",
971        "MetricThreshold": "tma_info_inst_mix_ipcall < 200"
972    },
973    {
974        "BriefDescription": "Instructions per Floating Point (FP) Operation (lower number means higher occurrence rate)",
975        "MetricConstraint": "NO_GROUP_EVENTS",
976        "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)",
977        "MetricGroup": "Flops;InsType",
978        "MetricName": "tma_info_inst_mix_ipflop",
979        "MetricThreshold": "tma_info_inst_mix_ipflop < 10"
980    },
981    {
982        "BriefDescription": "Instructions per Load (lower number means higher occurrence rate)",
983        "MetricExpr": "INST_RETIRED.ANY / MEM_INST_RETIRED.ALL_LOADS",
984        "MetricGroup": "InsType",
985        "MetricName": "tma_info_inst_mix_ipload",
986        "MetricThreshold": "tma_info_inst_mix_ipload < 3"
987    },
988    {
989        "BriefDescription": "Instructions per Store (lower number means higher occurrence rate)",
990        "MetricExpr": "INST_RETIRED.ANY / MEM_INST_RETIRED.ALL_STORES",
991        "MetricGroup": "InsType",
992        "MetricName": "tma_info_inst_mix_ipstore",
993        "MetricThreshold": "tma_info_inst_mix_ipstore < 8"
994    },
995    {
996        "BriefDescription": "Instructions per Software prefetch instruction (of any type: NTA/T0/T1/T2/Prefetch) (lower number means higher occurrence rate)",
997        "MetricExpr": "INST_RETIRED.ANY / cpu@SW_PREFETCH_ACCESS.T0\\,umask\\=0xF@",
998        "MetricGroup": "Prefetches",
999        "MetricName": "tma_info_inst_mix_ipswpf",
1000        "MetricThreshold": "tma_info_inst_mix_ipswpf < 100"
1001    },
1002    {
1003        "BriefDescription": "Instructions per taken branch",
1004        "MetricExpr": "INST_RETIRED.ANY / BR_INST_RETIRED.NEAR_TAKEN",
1005        "MetricGroup": "Branches;Fed;FetchBW;Frontend;PGO;tma_issueFB",
1006        "MetricName": "tma_info_inst_mix_iptb",
1007        "MetricThreshold": "tma_info_inst_mix_iptb < 9",
1008        "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"
1009    },
1010    {
1011        "BriefDescription": "Average per-core data fill bandwidth to the L1 data cache [GB / sec]",
1012        "MetricExpr": "tma_info_memory_l1d_cache_fill_bw",
1013        "MetricGroup": "Mem;MemoryBW",
1014        "MetricName": "tma_info_memory_core_l1d_cache_fill_bw_2t"
1015    },
1016    {
1017        "BriefDescription": "Average per-core data fill bandwidth to the L2 cache [GB / sec]",
1018        "MetricExpr": "tma_info_memory_l2_cache_fill_bw",
1019        "MetricGroup": "Mem;MemoryBW",
1020        "MetricName": "tma_info_memory_core_l2_cache_fill_bw_2t"
1021    },
1022    {
1023        "BriefDescription": "Rate of non silent evictions from the L2 cache per Kilo instruction",
1024        "MetricExpr": "1e3 * L2_LINES_OUT.NON_SILENT / tma_info_inst_mix_instructions",
1025        "MetricGroup": "L2Evicts;Mem;Server",
1026        "MetricName": "tma_info_memory_core_l2_evictions_nonsilent_pki"
1027    },
1028    {
1029        "BriefDescription": "Rate of silent evictions from the L2 cache per Kilo instruction where the evicted lines are dropped (no writeback to L3 or memory)",
1030        "MetricExpr": "1e3 * L2_LINES_OUT.SILENT / tma_info_inst_mix_instructions",
1031        "MetricGroup": "L2Evicts;Mem;Server",
1032        "MetricName": "tma_info_memory_core_l2_evictions_silent_pki"
1033    },
1034    {
1035        "BriefDescription": "Average per-core data access bandwidth to the L3 cache [GB / sec]",
1036        "MetricExpr": "tma_info_memory_l3_cache_access_bw",
1037        "MetricGroup": "Mem;MemoryBW;Offcore",
1038        "MetricName": "tma_info_memory_core_l3_cache_access_bw_2t"
1039    },
1040    {
1041        "BriefDescription": "Average per-core data fill bandwidth to the L3 cache [GB / sec]",
1042        "MetricExpr": "tma_info_memory_l3_cache_fill_bw",
1043        "MetricGroup": "Mem;MemoryBW",
1044        "MetricName": "tma_info_memory_core_l3_cache_fill_bw_2t"
1045    },
1046    {
1047        "BriefDescription": "Fill Buffer (FB) hits per kilo instructions for retired demand loads (L1D misses that merge into ongoing miss-handling entries)",
1048        "MetricExpr": "1e3 * MEM_LOAD_RETIRED.FB_HIT / INST_RETIRED.ANY",
1049        "MetricGroup": "CacheHits;Mem",
1050        "MetricName": "tma_info_memory_fb_hpki"
1051    },
1052    {
1053        "BriefDescription": "Average per-thread data fill bandwidth to the L1 data cache [GB / sec]",
1054        "MetricExpr": "64 * L1D.REPLACEMENT / 1e9 / duration_time",
1055        "MetricGroup": "Mem;MemoryBW",
1056        "MetricName": "tma_info_memory_l1d_cache_fill_bw"
1057    },
1058    {
1059        "BriefDescription": "L1 cache true misses per kilo instruction for retired demand loads",
1060        "MetricExpr": "1e3 * MEM_LOAD_RETIRED.L1_MISS / INST_RETIRED.ANY",
1061        "MetricGroup": "CacheHits;Mem",
1062        "MetricName": "tma_info_memory_l1mpki"
1063    },
1064    {
1065        "BriefDescription": "L1 cache true misses per kilo instruction for all demand loads (including speculative)",
1066        "MetricExpr": "1e3 * L2_RQSTS.ALL_DEMAND_DATA_RD / INST_RETIRED.ANY",
1067        "MetricGroup": "CacheHits;Mem",
1068        "MetricName": "tma_info_memory_l1mpki_load"
1069    },
1070    {
1071        "BriefDescription": "Average per-thread data fill bandwidth to the L2 cache [GB / sec]",
1072        "MetricExpr": "64 * L2_LINES_IN.ALL / 1e9 / duration_time",
1073        "MetricGroup": "Mem;MemoryBW",
1074        "MetricName": "tma_info_memory_l2_cache_fill_bw"
1075    },
1076    {
1077        "BriefDescription": "L2 cache hits per kilo instruction for all request types (including speculative)",
1078        "MetricExpr": "1e3 * (L2_RQSTS.REFERENCES - L2_RQSTS.MISS) / INST_RETIRED.ANY",
1079        "MetricGroup": "CacheHits;Mem",
1080        "MetricName": "tma_info_memory_l2hpki_all"
1081    },
1082    {
1083        "BriefDescription": "L2 cache hits per kilo instruction for all demand loads  (including speculative)",
1084        "MetricExpr": "1e3 * L2_RQSTS.DEMAND_DATA_RD_HIT / INST_RETIRED.ANY",
1085        "MetricGroup": "CacheHits;Mem",
1086        "MetricName": "tma_info_memory_l2hpki_load"
1087    },
1088    {
1089        "BriefDescription": "L2 cache true misses per kilo instruction for retired demand loads",
1090        "MetricExpr": "1e3 * MEM_LOAD_RETIRED.L2_MISS / INST_RETIRED.ANY",
1091        "MetricGroup": "Backend;CacheHits;Mem",
1092        "MetricName": "tma_info_memory_l2mpki"
1093    },
1094    {
1095        "BriefDescription": "L2 cache ([RKL+] true) misses per kilo instruction for all request types (including speculative)",
1096        "MetricExpr": "1e3 * L2_RQSTS.MISS / INST_RETIRED.ANY",
1097        "MetricGroup": "CacheHits;Mem;Offcore",
1098        "MetricName": "tma_info_memory_l2mpki_all"
1099    },
1100    {
1101        "BriefDescription": "L2 cache ([RKL+] true) misses per kilo instruction for all demand loads  (including speculative)",
1102        "MetricExpr": "1e3 * L2_RQSTS.DEMAND_DATA_RD_MISS / INST_RETIRED.ANY",
1103        "MetricGroup": "CacheHits;Mem",
1104        "MetricName": "tma_info_memory_l2mpki_load"
1105    },
1106    {
1107        "BriefDescription": "Offcore requests (L2 cache miss) per kilo instruction for demand RFOs",
1108        "MetricExpr": "1e3 * OFFCORE_REQUESTS.DEMAND_RFO / INST_RETIRED.ANY",
1109        "MetricGroup": "CacheMisses;Offcore",
1110        "MetricName": "tma_info_memory_l2mpki_rfo"
1111    },
1112    {
1113        "BriefDescription": "Average per-thread data access bandwidth to the L3 cache [GB / sec]",
1114        "MetricExpr": "64 * OFFCORE_REQUESTS.ALL_REQUESTS / 1e9 / duration_time",
1115        "MetricGroup": "Mem;MemoryBW;Offcore",
1116        "MetricName": "tma_info_memory_l3_cache_access_bw"
1117    },
1118    {
1119        "BriefDescription": "Average per-thread data fill bandwidth to the L3 cache [GB / sec]",
1120        "MetricExpr": "64 * LONGEST_LAT_CACHE.MISS / 1e9 / duration_time",
1121        "MetricGroup": "Mem;MemoryBW",
1122        "MetricName": "tma_info_memory_l3_cache_fill_bw"
1123    },
1124    {
1125        "BriefDescription": "L3 cache true misses per kilo instruction for retired demand loads",
1126        "MetricExpr": "1e3 * MEM_LOAD_RETIRED.L3_MISS / INST_RETIRED.ANY",
1127        "MetricGroup": "Mem",
1128        "MetricName": "tma_info_memory_l3mpki"
1129    },
1130    {
1131        "BriefDescription": "Average Parallel L2 cache miss data reads",
1132        "MetricExpr": "OFFCORE_REQUESTS_OUTSTANDING.ALL_DATA_RD / OFFCORE_REQUESTS_OUTSTANDING.CYCLES_WITH_DATA_RD",
1133        "MetricGroup": "Memory_BW;Offcore",
1134        "MetricName": "tma_info_memory_latency_data_l2_mlp"
1135    },
1136    {
1137        "BriefDescription": "Average Latency for L2 cache miss demand Loads",
1138        "MetricExpr": "OFFCORE_REQUESTS_OUTSTANDING.DEMAND_DATA_RD / OFFCORE_REQUESTS.DEMAND_DATA_RD",
1139        "MetricGroup": "Memory_Lat;Offcore",
1140        "MetricName": "tma_info_memory_latency_load_l2_miss_latency"
1141    },
1142    {
1143        "BriefDescription": "Average Parallel L2 cache miss demand Loads",
1144        "MetricExpr": "OFFCORE_REQUESTS_OUTSTANDING.DEMAND_DATA_RD / OFFCORE_REQUESTS_OUTSTANDING.CYCLES_WITH_DEMAND_DATA_RD",
1145        "MetricGroup": "Memory_BW;Offcore",
1146        "MetricName": "tma_info_memory_latency_load_l2_mlp"
1147    },
1148    {
1149        "BriefDescription": "Actual Average Latency for L1 data-cache miss demand load operations (in core cycles)",
1150        "MetricExpr": "L1D_PEND_MISS.PENDING / (MEM_LOAD_RETIRED.L1_MISS + MEM_LOAD_RETIRED.FB_HIT)",
1151        "MetricGroup": "Mem;MemoryBound;MemoryLat",
1152        "MetricName": "tma_info_memory_load_miss_real_latency"
1153    },
1154    {
1155        "BriefDescription": "Un-cacheable retired load per kilo instruction",
1156        "MetricExpr": "1e3 * MEM_LOAD_MISC_RETIRED.UC / INST_RETIRED.ANY",
1157        "MetricGroup": "Mem",
1158        "MetricName": "tma_info_memory_mix_uc_load_pki"
1159    },
1160    {
1161        "BriefDescription": "Memory-Level-Parallelism (average number of L1 miss demand load when there is at least one such miss",
1162        "MetricExpr": "L1D_PEND_MISS.PENDING / L1D_PEND_MISS.PENDING_CYCLES",
1163        "MetricGroup": "Mem;MemoryBW;MemoryBound",
1164        "MetricName": "tma_info_memory_mlp",
1165        "PublicDescription": "Memory-Level-Parallelism (average number of L1 miss demand load when there is at least one such miss. Per-Logical Processor)"
1166    },
1167    {
1168        "BriefDescription": "STLB (2nd level TLB) code speculative misses per kilo instruction (misses of any page-size that complete the page walk)",
1169        "MetricExpr": "1e3 * ITLB_MISSES.WALK_COMPLETED / INST_RETIRED.ANY",
1170        "MetricGroup": "Fed;MemoryTLB",
1171        "MetricName": "tma_info_memory_tlb_code_stlb_mpki"
1172    },
1173    {
1174        "BriefDescription": "STLB (2nd level TLB) data load speculative misses per kilo instruction (misses of any page-size that complete the page walk)",
1175        "MetricExpr": "1e3 * DTLB_LOAD_MISSES.WALK_COMPLETED / INST_RETIRED.ANY",
1176        "MetricGroup": "Mem;MemoryTLB",
1177        "MetricName": "tma_info_memory_tlb_load_stlb_mpki"
1178    },
1179    {
1180        "BriefDescription": "Utilization of the core's Page Walker(s) serving STLB misses triggered by instruction/Load/Store accesses",
1181        "MetricConstraint": "NO_GROUP_EVENTS_NMI",
1182        "MetricExpr": "(ITLB_MISSES.WALK_PENDING + DTLB_LOAD_MISSES.WALK_PENDING + DTLB_STORE_MISSES.WALK_PENDING + EPT.WALK_PENDING) / (2 * tma_info_core_core_clks)",
1183        "MetricGroup": "Mem;MemoryTLB",
1184        "MetricName": "tma_info_memory_tlb_page_walks_utilization",
1185        "MetricThreshold": "tma_info_memory_tlb_page_walks_utilization > 0.5"
1186    },
1187    {
1188        "BriefDescription": "STLB (2nd level TLB) data store speculative misses per kilo instruction (misses of any page-size that complete the page walk)",
1189        "MetricExpr": "1e3 * DTLB_STORE_MISSES.WALK_COMPLETED / INST_RETIRED.ANY",
1190        "MetricGroup": "Mem;MemoryTLB",
1191        "MetricName": "tma_info_memory_tlb_store_stlb_mpki"
1192    },
1193    {
1194        "BriefDescription": "Instruction-Level-Parallelism (average number of uops executed when there is execution) per core",
1195        "MetricExpr": "UOPS_EXECUTED.THREAD / (UOPS_EXECUTED.CORE_CYCLES_GE_1 / 2 if #SMT_on else cpu@UOPS_EXECUTED.THREAD\\,cmask\\=1@)",
1196        "MetricGroup": "Cor;Pipeline;PortsUtil;SMT",
1197        "MetricName": "tma_info_pipeline_execute"
1198    },
1199    {
1200        "BriefDescription": "Average number of uops fetched from DSB per cycle",
1201        "MetricExpr": "IDQ.DSB_UOPS / IDQ.DSB_CYCLES_ANY",
1202        "MetricGroup": "Fed;FetchBW",
1203        "MetricName": "tma_info_pipeline_fetch_dsb"
1204    },
1205    {
1206        "BriefDescription": "Average number of uops fetched from MITE per cycle",
1207        "MetricExpr": "IDQ.MITE_UOPS / IDQ.MITE_CYCLES",
1208        "MetricGroup": "Fed;FetchBW",
1209        "MetricName": "tma_info_pipeline_fetch_mite"
1210    },
1211    {
1212        "BriefDescription": "Instructions per a microcode Assist invocation",
1213        "MetricExpr": "INST_RETIRED.ANY / (FP_ASSIST.ANY + OTHER_ASSISTS.ANY)",
1214        "MetricGroup": "MicroSeq;Pipeline;Ret;Retire",
1215        "MetricName": "tma_info_pipeline_ipassist",
1216        "MetricThreshold": "tma_info_pipeline_ipassist < 100e3",
1217        "PublicDescription": "Instructions per a microcode Assist invocation. See Assists tree node for details (lower number means higher occurrence rate)"
1218    },
1219    {
1220        "BriefDescription": "Average number of Uops retired in cycles where at least one uop has retired.",
1221        "MetricExpr": "UOPS_RETIRED.RETIRE_SLOTS / cpu@UOPS_RETIRED.RETIRE_SLOTS\\,cmask\\=1@",
1222        "MetricGroup": "Pipeline;Ret",
1223        "MetricName": "tma_info_pipeline_retire"
1224    },
1225    {
1226        "BriefDescription": "Measured Average Core Frequency for unhalted processors [GHz]",
1227        "MetricExpr": "tma_info_system_turbo_utilization * TSC / 1e9 / duration_time",
1228        "MetricGroup": "Power;Summary",
1229        "MetricName": "tma_info_system_core_frequency"
1230    },
1231    {
1232        "BriefDescription": "Average CPU Utilization (percentage)",
1233        "MetricExpr": "tma_info_system_cpus_utilized / #num_cpus_online",
1234        "MetricGroup": "HPC;Summary",
1235        "MetricName": "tma_info_system_cpu_utilization"
1236    },
1237    {
1238        "BriefDescription": "Average number of utilized CPUs",
1239        "MetricExpr": "CPU_CLK_UNHALTED.REF_TSC / TSC",
1240        "MetricGroup": "Summary",
1241        "MetricName": "tma_info_system_cpus_utilized"
1242    },
1243    {
1244        "BriefDescription": "Average external Memory Bandwidth Use for reads and writes [GB / sec]",
1245        "MetricExpr": "64 * (UNC_M_CAS_COUNT.RD + UNC_M_CAS_COUNT.WR) / 1e9 / duration_time",
1246        "MetricGroup": "HPC;MemOffcore;MemoryBW;SoC;tma_issueBW",
1247        "MetricName": "tma_info_system_dram_bw_use",
1248        "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"
1249    },
1250    {
1251        "BriefDescription": "Giga Floating Point Operations Per Second",
1252        "MetricConstraint": "NO_GROUP_EVENTS",
1253        "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",
1254        "MetricGroup": "Cor;Flops;HPC",
1255        "MetricName": "tma_info_system_gflops",
1256        "PublicDescription": "Giga Floating Point Operations Per Second. Aggregate across all supported options of: FP precisions, scalar and vector instructions, vector-width"
1257    },
1258    {
1259        "BriefDescription": "Average IO (network or disk) Bandwidth Use for Reads [GB / sec]",
1260        "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",
1261        "MetricGroup": "IoBW;MemOffcore;Server;SoC",
1262        "MetricName": "tma_info_system_io_read_bw",
1263        "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"
1264    },
1265    {
1266        "BriefDescription": "Average IO (network or disk) Bandwidth Use for Writes [GB / sec]",
1267        "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",
1268        "MetricGroup": "IoBW;MemOffcore;Server;SoC",
1269        "MetricName": "tma_info_system_io_write_bw",
1270        "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"
1271    },
1272    {
1273        "BriefDescription": "Instructions per Far Branch ( Far Branches apply upon transition from application to operating system, handling interrupts, exceptions) [lower number means higher occurrence rate]",
1274        "MetricExpr": "INST_RETIRED.ANY / BR_INST_RETIRED.FAR_BRANCH:u",
1275        "MetricGroup": "Branches;OS",
1276        "MetricName": "tma_info_system_ipfarbranch",
1277        "MetricThreshold": "tma_info_system_ipfarbranch < 1e6"
1278    },
1279    {
1280        "BriefDescription": "Cycles Per Instruction for the Operating System (OS) Kernel mode",
1281        "MetricExpr": "CPU_CLK_UNHALTED.THREAD_P:k / INST_RETIRED.ANY_P:k",
1282        "MetricGroup": "OS",
1283        "MetricName": "tma_info_system_kernel_cpi"
1284    },
1285    {
1286        "BriefDescription": "Fraction of cycles spent in the Operating System (OS) Kernel mode",
1287        "MetricExpr": "CPU_CLK_UNHALTED.THREAD_P:k / CPU_CLK_UNHALTED.THREAD",
1288        "MetricGroup": "OS",
1289        "MetricName": "tma_info_system_kernel_utilization",
1290        "MetricThreshold": "tma_info_system_kernel_utilization > 0.05"
1291    },
1292    {
1293        "BriefDescription": "Average latency of data read request to external DRAM memory [in nanoseconds]",
1294        "MetricExpr": "1e9 * (UNC_M_RPQ_OCCUPANCY / UNC_M_RPQ_INSERTS) / imc_0@event\\=0x0@",
1295        "MetricGroup": "MemOffcore;MemoryLat;Server;SoC",
1296        "MetricName": "tma_info_system_mem_dram_read_latency",
1297        "PublicDescription": "Average latency of data read request to external DRAM memory [in nanoseconds]. Accounts for demand loads and L1/L2 data-read prefetches"
1298    },
1299    {
1300        "BriefDescription": "Average number of parallel data read requests to external memory",
1301        "MetricExpr": "UNC_CHA_TOR_OCCUPANCY.IA_MISS_DRD / UNC_CHA_TOR_OCCUPANCY.IA_MISS_DRD@thresh\\=1@",
1302        "MetricGroup": "Mem;MemoryBW;SoC",
1303        "MetricName": "tma_info_system_mem_parallel_reads",
1304        "PublicDescription": "Average number of parallel data read requests to external memory. Accounts for demand loads and L1/L2 prefetches"
1305    },
1306    {
1307        "BriefDescription": "Average latency of data read request to external memory (in nanoseconds)",
1308        "MetricExpr": "1e9 * (UNC_CHA_TOR_OCCUPANCY.IA_MISS_DRD / UNC_CHA_TOR_INSERTS.IA_MISS_DRD) / (tma_info_system_socket_clks / duration_time)",
1309        "MetricGroup": "Mem;MemoryLat;SoC",
1310        "MetricName": "tma_info_system_mem_read_latency",
1311        "PublicDescription": "Average latency of data read request to external memory (in nanoseconds). Accounts for demand loads and L1/L2 prefetches. ([RKL+]memory-controller only)"
1312    },
1313    {
1314        "BriefDescription": "Fraction of Core cycles where the core was running with power-delivery for baseline license level 0",
1315        "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)",
1316        "MetricGroup": "Power",
1317        "MetricName": "tma_info_system_power_license0_utilization",
1318        "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."
1319    },
1320    {
1321        "BriefDescription": "Fraction of Core cycles where the core was running with power-delivery for license level 1",
1322        "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)",
1323        "MetricGroup": "Power",
1324        "MetricName": "tma_info_system_power_license1_utilization",
1325        "MetricThreshold": "tma_info_system_power_license1_utilization > 0.5",
1326        "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."
1327    },
1328    {
1329        "BriefDescription": "Fraction of Core cycles where the core was running with power-delivery for license level 2 (introduced in SKX)",
1330        "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)",
1331        "MetricGroup": "Power",
1332        "MetricName": "tma_info_system_power_license2_utilization",
1333        "MetricThreshold": "tma_info_system_power_license2_utilization > 0.5",
1334        "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."
1335    },
1336    {
1337        "BriefDescription": "Fraction of cycles where both hardware Logical Processors were active",
1338        "MetricExpr": "(1 - CPU_CLK_UNHALTED.ONE_THREAD_ACTIVE / (CPU_CLK_UNHALTED.REF_XCLK_ANY / 2) if #SMT_on else 0)",
1339        "MetricGroup": "SMT",
1340        "MetricName": "tma_info_system_smt_2t_utilization"
1341    },
1342    {
1343        "BriefDescription": "Socket actual clocks when any core is active on that socket",
1344        "MetricExpr": "cha_0@event\\=0x0@",
1345        "MetricGroup": "SoC",
1346        "MetricName": "tma_info_system_socket_clks"
1347    },
1348    {
1349        "BriefDescription": "Average Frequency Utilization relative nominal frequency",
1350        "MetricExpr": "tma_info_thread_clks / CPU_CLK_UNHALTED.REF_TSC",
1351        "MetricGroup": "Power",
1352        "MetricName": "tma_info_system_turbo_utilization"
1353    },
1354    {
1355        "BriefDescription": "Measured Average Uncore Frequency for the SoC [GHz]",
1356        "MetricExpr": "tma_info_system_socket_clks / 1e9 / duration_time",
1357        "MetricGroup": "SoC",
1358        "MetricName": "tma_info_system_uncore_frequency"
1359    },
1360    {
1361        "BriefDescription": "Per-Logical Processor actual clocks when the Logical Processor is active.",
1362        "MetricExpr": "CPU_CLK_UNHALTED.THREAD",
1363        "MetricGroup": "Pipeline",
1364        "MetricName": "tma_info_thread_clks"
1365    },
1366    {
1367        "BriefDescription": "Cycles Per Instruction (per Logical Processor)",
1368        "MetricExpr": "1 / tma_info_thread_ipc",
1369        "MetricGroup": "Mem;Pipeline",
1370        "MetricName": "tma_info_thread_cpi"
1371    },
1372    {
1373        "BriefDescription": "The ratio of Executed- by Issued-Uops",
1374        "MetricExpr": "UOPS_EXECUTED.THREAD / UOPS_ISSUED.ANY",
1375        "MetricGroup": "Cor;Pipeline",
1376        "MetricName": "tma_info_thread_execute_per_issue",
1377        "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."
1378    },
1379    {
1380        "BriefDescription": "Instructions Per Cycle (per Logical Processor)",
1381        "MetricExpr": "INST_RETIRED.ANY / tma_info_thread_clks",
1382        "MetricGroup": "Ret;Summary",
1383        "MetricName": "tma_info_thread_ipc"
1384    },
1385    {
1386        "BriefDescription": "Total issue-pipeline slots (per-Physical Core till ICL; per-Logical Processor ICL onward)",
1387        "MetricExpr": "4 * tma_info_core_core_clks",
1388        "MetricGroup": "TmaL1;tma_L1_group",
1389        "MetricName": "tma_info_thread_slots"
1390    },
1391    {
1392        "BriefDescription": "Uops Per Instruction",
1393        "MetricExpr": "UOPS_RETIRED.RETIRE_SLOTS / INST_RETIRED.ANY",
1394        "MetricGroup": "Pipeline;Ret;Retire",
1395        "MetricName": "tma_info_thread_uoppi",
1396        "MetricThreshold": "tma_info_thread_uoppi > 1.05"
1397    },
1398    {
1399        "BriefDescription": "Uops per taken branch",
1400        "MetricExpr": "UOPS_RETIRED.RETIRE_SLOTS / BR_INST_RETIRED.NEAR_TAKEN",
1401        "MetricGroup": "Branches;Fed;FetchBW",
1402        "MetricName": "tma_info_thread_uptb",
1403        "MetricThreshold": "tma_info_thread_uptb < 6"
1404    },
1405    {
1406        "BriefDescription": "This metric represents fraction of cycles the CPU was stalled due to Instruction TLB (ITLB) misses",
1407        "MetricExpr": "ICACHE_TAG.STALLS / tma_info_thread_clks",
1408        "MetricGroup": "BigFootprint;BvBC;FetchLat;MemoryTLB;TopdownL3;tma_L3_group;tma_fetch_latency_group",
1409        "MetricName": "tma_itlb_misses",
1410        "MetricThreshold": "tma_itlb_misses > 0.05 & (tma_fetch_latency > 0.1 & tma_frontend_bound > 0.15)",
1411        "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",
1412        "ScaleUnit": "100%"
1413    },
1414    {
1415        "BriefDescription": "This metric estimates how often the CPU was stalled without loads missing the L1 data cache",
1416        "MetricExpr": "max((CYCLE_ACTIVITY.STALLS_MEM_ANY - CYCLE_ACTIVITY.STALLS_L1D_MISS) / tma_info_thread_clks, 0)",
1417        "MetricGroup": "CacheHits;MemoryBound;TmaL3mem;TopdownL3;tma_L3_group;tma_issueL1;tma_issueMC;tma_memory_bound_group",
1418        "MetricName": "tma_l1_bound",
1419        "MetricThreshold": "tma_l1_bound > 0.1 & (tma_memory_bound > 0.2 & tma_backend_bound > 0.2)",
1420        "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",
1421        "ScaleUnit": "100%"
1422    },
1423    {
1424        "BriefDescription": "This metric roughly estimates fraction of cycles with demand load accesses that hit the L1 cache",
1425        "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",
1426        "MetricGroup": "BvML;MemoryLat;TopdownL4;tma_L4_group;tma_l1_bound_group",
1427        "MetricName": "tma_l1_hit_latency",
1428        "MetricThreshold": "tma_l1_hit_latency > 0.1 & (tma_l1_bound > 0.1 & (tma_memory_bound > 0.2 & tma_backend_bound > 0.2))",
1429        "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",
1430        "ScaleUnit": "100%"
1431    },
1432    {
1433        "BriefDescription": "This metric estimates how often the CPU was stalled due to L2 cache accesses by loads",
1434        "MetricConstraint": "NO_GROUP_EVENTS",
1435        "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)",
1436        "MetricGroup": "BvML;CacheHits;MemoryBound;TmaL3mem;TopdownL3;tma_L3_group;tma_memory_bound_group",
1437        "MetricName": "tma_l2_bound",
1438        "MetricThreshold": "tma_l2_bound > 0.05 & (tma_memory_bound > 0.2 & tma_backend_bound > 0.2)",
1439        "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",
1440        "ScaleUnit": "100%"
1441    },
1442    {
1443        "BriefDescription": "This metric estimates how often the CPU was stalled due to loads accesses to L3 cache or contended with a sibling Core",
1444        "MetricExpr": "(CYCLE_ACTIVITY.STALLS_L2_MISS - CYCLE_ACTIVITY.STALLS_L3_MISS) / tma_info_thread_clks",
1445        "MetricGroup": "CacheHits;MemoryBound;TmaL3mem;TopdownL3;tma_L3_group;tma_memory_bound_group",
1446        "MetricName": "tma_l3_bound",
1447        "MetricThreshold": "tma_l3_bound > 0.05 & (tma_memory_bound > 0.2 & tma_backend_bound > 0.2)",
1448        "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",
1449        "ScaleUnit": "100%"
1450    },
1451    {
1452        "BriefDescription": "This metric estimates fraction of cycles with demand load accesses that hit the L3 cache under unloaded scenarios (possibly L3 latency limited)",
1453        "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",
1454        "MetricGroup": "BvML;MemoryLat;TopdownL4;tma_L4_group;tma_issueLat;tma_l3_bound_group",
1455        "MetricName": "tma_l3_hit_latency",
1456        "MetricThreshold": "tma_l3_hit_latency > 0.1 & (tma_l3_bound > 0.05 & (tma_memory_bound > 0.2 & tma_backend_bound > 0.2))",
1457        "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",
1458        "ScaleUnit": "100%"
1459    },
1460    {
1461        "BriefDescription": "This metric represents fraction of cycles CPU was stalled due to Length Changing Prefixes (LCPs)",
1462        "MetricExpr": "DECODE.LCP / tma_info_thread_clks",
1463        "MetricGroup": "FetchLat;TopdownL3;tma_L3_group;tma_fetch_latency_group;tma_issueFB",
1464        "MetricName": "tma_lcp",
1465        "MetricThreshold": "tma_lcp > 0.05 & (tma_fetch_latency > 0.1 & tma_frontend_bound > 0.15)",
1466        "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",
1467        "ScaleUnit": "100%"
1468    },
1469    {
1470        "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)",
1471        "MetricExpr": "tma_retiring - tma_heavy_operations",
1472        "MetricGroup": "Retire;TmaL2;TopdownL2;tma_L2_group;tma_retiring_group",
1473        "MetricName": "tma_light_operations",
1474        "MetricThreshold": "tma_light_operations > 0.6",
1475        "MetricgroupNoGroup": "TopdownL2",
1476        "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",
1477        "ScaleUnit": "100%"
1478    },
1479    {
1480        "BriefDescription": "This metric represents Core fraction of cycles CPU dispatched uops on execution port for Load operations",
1481        "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)",
1482        "MetricGroup": "TopdownL5;tma_L5_group;tma_ports_utilized_3m_group",
1483        "MetricName": "tma_load_op_utilization",
1484        "MetricThreshold": "tma_load_op_utilization > 0.6",
1485        "PublicDescription": "This metric represents Core fraction of cycles CPU dispatched uops on execution port for Load operations. Sample with: UOPS_DISPATCHED.PORT_2_3",
1486        "ScaleUnit": "100%"
1487    },
1488    {
1489        "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)",
1490        "MetricConstraint": "NO_GROUP_EVENTS_NMI",
1491        "MetricExpr": "tma_dtlb_load - tma_load_stlb_miss",
1492        "MetricGroup": "MemoryTLB;TopdownL5;tma_L5_group;tma_dtlb_load_group",
1493        "MetricName": "tma_load_stlb_hit",
1494        "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)))",
1495        "ScaleUnit": "100%"
1496    },
1497    {
1498        "BriefDescription": "This metric estimates the fraction of cycles where the Second-level TLB (STLB) was missed by load accesses, performing a hardware page walk",
1499        "MetricExpr": "DTLB_LOAD_MISSES.WALK_ACTIVE / tma_info_thread_clks",
1500        "MetricGroup": "MemoryTLB;TopdownL5;tma_L5_group;tma_dtlb_load_group",
1501        "MetricName": "tma_load_stlb_miss",
1502        "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)))",
1503        "ScaleUnit": "100%"
1504    },
1505    {
1506        "BriefDescription": "This metric estimates fraction of cycles while the memory subsystem was handling loads from local memory",
1507        "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",
1508        "MetricGroup": "Server;TopdownL5;tma_L5_group;tma_mem_latency_group",
1509        "MetricName": "tma_local_mem",
1510        "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)))",
1511        "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",
1512        "ScaleUnit": "100%"
1513    },
1514    {
1515        "BriefDescription": "This metric represents fraction of cycles the CPU spent handling cache misses due to lock operations",
1516        "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",
1517        "MetricGroup": "Offcore;TopdownL4;tma_L4_group;tma_issueRFO;tma_l1_bound_group",
1518        "MetricName": "tma_lock_latency",
1519        "MetricThreshold": "tma_lock_latency > 0.2 & (tma_l1_bound > 0.1 & (tma_memory_bound > 0.2 & tma_backend_bound > 0.2))",
1520        "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",
1521        "ScaleUnit": "100%"
1522    },
1523    {
1524        "BriefDescription": "This metric represents fraction of slots the CPU has wasted due to Machine Clears",
1525        "MetricConstraint": "NO_GROUP_EVENTS",
1526        "MetricExpr": "tma_bad_speculation - tma_branch_mispredicts",
1527        "MetricGroup": "BadSpec;BvMS;MachineClears;TmaL2;TopdownL2;tma_L2_group;tma_bad_speculation_group;tma_issueMC;tma_issueSyncxn",
1528        "MetricName": "tma_machine_clears",
1529        "MetricThreshold": "tma_machine_clears > 0.1 & tma_bad_speculation > 0.15",
1530        "MetricgroupNoGroup": "TopdownL2",
1531        "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",
1532        "ScaleUnit": "100%"
1533    },
1534    {
1535        "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)",
1536        "MetricExpr": "min(CPU_CLK_UNHALTED.THREAD, cpu@OFFCORE_REQUESTS_OUTSTANDING.ALL_DATA_RD\\,cmask\\=4@) / tma_info_thread_clks",
1537        "MetricGroup": "BvMS;MemoryBW;Offcore;TopdownL4;tma_L4_group;tma_dram_bound_group;tma_issueBW",
1538        "MetricName": "tma_mem_bandwidth",
1539        "MetricThreshold": "tma_mem_bandwidth > 0.2 & (tma_dram_bound > 0.1 & (tma_memory_bound > 0.2 & tma_backend_bound > 0.2))",
1540        "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",
1541        "ScaleUnit": "100%"
1542    },
1543    {
1544        "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)",
1545        "MetricExpr": "min(CPU_CLK_UNHALTED.THREAD, OFFCORE_REQUESTS_OUTSTANDING.CYCLES_WITH_DATA_RD) / tma_info_thread_clks - tma_mem_bandwidth",
1546        "MetricGroup": "BvML;MemoryLat;Offcore;TopdownL4;tma_L4_group;tma_dram_bound_group;tma_issueLat",
1547        "MetricName": "tma_mem_latency",
1548        "MetricThreshold": "tma_mem_latency > 0.1 & (tma_dram_bound > 0.1 & (tma_memory_bound > 0.2 & tma_backend_bound > 0.2))",
1549        "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",
1550        "ScaleUnit": "100%"
1551    },
1552    {
1553        "BriefDescription": "This metric represents fraction of slots the Memory subsystem within the Backend was a bottleneck",
1554        "MetricConstraint": "NO_GROUP_EVENTS",
1555        "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",
1556        "MetricGroup": "Backend;TmaL2;TopdownL2;tma_L2_group;tma_backend_bound_group",
1557        "MetricName": "tma_memory_bound",
1558        "MetricThreshold": "tma_memory_bound > 0.2 & tma_backend_bound > 0.2",
1559        "MetricgroupNoGroup": "TopdownL2",
1560        "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).",
1561        "ScaleUnit": "100%"
1562    },
1563    {
1564        "BriefDescription": "This metric represents fraction of slots where the CPU was retiring memory operations -- uops for memory load or store accesses.",
1565        "MetricExpr": "tma_light_operations * MEM_INST_RETIRED.ANY / INST_RETIRED.ANY",
1566        "MetricGroup": "Pipeline;TopdownL3;tma_L3_group;tma_light_operations_group",
1567        "MetricName": "tma_memory_operations",
1568        "MetricThreshold": "tma_memory_operations > 0.1 & tma_light_operations > 0.6",
1569        "ScaleUnit": "100%"
1570    },
1571    {
1572        "BriefDescription": "This metric represents fraction of slots the CPU was retiring uops fetched by the Microcode Sequencer (MS) unit",
1573        "MetricConstraint": "NO_GROUP_EVENTS_NMI",
1574        "MetricExpr": "UOPS_RETIRED.RETIRE_SLOTS / UOPS_ISSUED.ANY * IDQ.MS_UOPS / tma_info_thread_slots",
1575        "MetricGroup": "MicroSeq;TopdownL3;tma_L3_group;tma_heavy_operations_group;tma_issueMC;tma_issueMS",
1576        "MetricName": "tma_microcode_sequencer",
1577        "MetricThreshold": "tma_microcode_sequencer > 0.05 & tma_heavy_operations > 0.1",
1578        "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",
1579        "ScaleUnit": "100%"
1580    },
1581    {
1582        "BriefDescription": "This metric represents fraction of cycles the CPU was stalled due to Branch Resteers as a result of Branch Misprediction at execution stage",
1583        "MetricExpr": "BR_MISP_RETIRED.ALL_BRANCHES / (BR_MISP_RETIRED.ALL_BRANCHES + MACHINE_CLEARS.COUNT) * INT_MISC.CLEAR_RESTEER_CYCLES / tma_info_thread_clks",
1584        "MetricGroup": "BadSpec;BrMispredicts;BvMP;TopdownL4;tma_L4_group;tma_branch_resteers_group;tma_issueBM",
1585        "MetricName": "tma_mispredicts_resteers",
1586        "MetricThreshold": "tma_mispredicts_resteers > 0.05 & (tma_branch_resteers > 0.05 & (tma_fetch_latency > 0.1 & tma_frontend_bound > 0.15))",
1587        "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",
1588        "ScaleUnit": "100%"
1589    },
1590    {
1591        "BriefDescription": "This metric represents Core fraction of cycles in which CPU was likely limited due to the MITE pipeline (the legacy decode pipeline)",
1592        "MetricExpr": "(IDQ.ALL_MITE_CYCLES_ANY_UOPS - IDQ.ALL_MITE_CYCLES_4_UOPS) / tma_info_core_core_clks / 2",
1593        "MetricGroup": "DSBmiss;FetchBW;TopdownL3;tma_L3_group;tma_fetch_bandwidth_group",
1594        "MetricName": "tma_mite",
1595        "MetricThreshold": "tma_mite > 0.1 & tma_fetch_bandwidth > 0.2",
1596        "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",
1597        "ScaleUnit": "100%"
1598    },
1599    {
1600        "BriefDescription": "This metric estimates penalty in terms of percentage of([SKL+] injected blend uops out of all Uops Issued -- the Count Domain; [ADL+] cycles)",
1601        "MetricExpr": "UOPS_ISSUED.VECTOR_WIDTH_MISMATCH / UOPS_ISSUED.ANY",
1602        "MetricGroup": "TopdownL5;tma_L5_group;tma_issueMV;tma_ports_utilized_0_group",
1603        "MetricName": "tma_mixing_vectors",
1604        "MetricThreshold": "tma_mixing_vectors > 0.05",
1605        "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",
1606        "ScaleUnit": "100%"
1607    },
1608    {
1609        "BriefDescription": "This metric estimates the fraction of cycles when the CPU was stalled due to switches of uop delivery to the Microcode Sequencer (MS)",
1610        "MetricExpr": "2 * IDQ.MS_SWITCHES / tma_info_thread_clks",
1611        "MetricGroup": "FetchLat;MicroSeq;TopdownL3;tma_L3_group;tma_fetch_latency_group;tma_issueMC;tma_issueMS;tma_issueMV;tma_issueSO",
1612        "MetricName": "tma_ms_switches",
1613        "MetricThreshold": "tma_ms_switches > 0.05 & (tma_fetch_latency > 0.1 & tma_frontend_bound > 0.15)",
1614        "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",
1615        "ScaleUnit": "100%"
1616    },
1617    {
1618        "BriefDescription": "This metric represents fraction of slots where the CPU was retiring branch instructions that were not fused",
1619        "MetricExpr": "tma_light_operations * (BR_INST_RETIRED.ALL_BRANCHES - UOPS_RETIRED.MACRO_FUSED) / UOPS_RETIRED.RETIRE_SLOTS",
1620        "MetricGroup": "Branches;BvBO;Pipeline;TopdownL3;tma_L3_group;tma_light_operations_group",
1621        "MetricName": "tma_non_fused_branches",
1622        "MetricThreshold": "tma_non_fused_branches > 0.1 & tma_light_operations > 0.6",
1623        "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.",
1624        "ScaleUnit": "100%"
1625    },
1626    {
1627        "BriefDescription": "This metric represents fraction of slots where the CPU was retiring NOP (no op) instructions",
1628        "MetricExpr": "tma_light_operations * INST_RETIRED.NOP / UOPS_RETIRED.RETIRE_SLOTS",
1629        "MetricGroup": "BvBO;Pipeline;TopdownL4;tma_L4_group;tma_other_light_ops_group",
1630        "MetricName": "tma_nop_instructions",
1631        "MetricThreshold": "tma_nop_instructions > 0.1 & (tma_other_light_ops > 0.3 & tma_light_operations > 0.6)",
1632        "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",
1633        "ScaleUnit": "100%"
1634    },
1635    {
1636        "BriefDescription": "This metric represents the remaining light uops fraction the CPU has executed - remaining means not covered by other sibling nodes",
1637        "MetricExpr": "max(0, tma_light_operations - (tma_fp_arith + tma_memory_operations + tma_fused_instructions + tma_non_fused_branches))",
1638        "MetricGroup": "Pipeline;TopdownL3;tma_L3_group;tma_light_operations_group",
1639        "MetricName": "tma_other_light_ops",
1640        "MetricThreshold": "tma_other_light_ops > 0.3 & tma_light_operations > 0.6",
1641        "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",
1642        "ScaleUnit": "100%"
1643    },
1644    {
1645        "BriefDescription": "This metric estimates fraction of slots the CPU was stalled due to other cases of misprediction (non-retired x86 branches or other types).",
1646        "MetricExpr": "max(tma_branch_mispredicts * (1 - BR_MISP_RETIRED.ALL_BRANCHES / (INT_MISC.CLEARS_COUNT - MACHINE_CLEARS.COUNT)), 0.0001)",
1647        "MetricGroup": "BrMispredicts;BvIO;TopdownL3;tma_L3_group;tma_branch_mispredicts_group",
1648        "MetricName": "tma_other_mispredicts",
1649        "MetricThreshold": "tma_other_mispredicts > 0.05 & (tma_branch_mispredicts > 0.1 & tma_bad_speculation > 0.15)",
1650        "ScaleUnit": "100%"
1651    },
1652    {
1653        "BriefDescription": "This metric represents fraction of slots the CPU has wasted due to Nukes (Machine Clears) not related to memory ordering.",
1654        "MetricExpr": "max(tma_machine_clears * (1 - MACHINE_CLEARS.MEMORY_ORDERING / MACHINE_CLEARS.COUNT), 0.0001)",
1655        "MetricGroup": "BvIO;Machine_Clears;TopdownL3;tma_L3_group;tma_machine_clears_group",
1656        "MetricName": "tma_other_nukes",
1657        "MetricThreshold": "tma_other_nukes > 0.05 & (tma_machine_clears > 0.1 & tma_bad_speculation > 0.15)",
1658        "ScaleUnit": "100%"
1659    },
1660    {
1661        "BriefDescription": "This metric represents Core fraction of cycles CPU dispatched uops on execution port 0 ([SNB+] ALU; [HSW+] ALU and 2nd branch)",
1662        "MetricExpr": "UOPS_DISPATCHED_PORT.PORT_0 / tma_info_core_core_clks",
1663        "MetricGroup": "Compute;TopdownL6;tma_L6_group;tma_alu_op_utilization_group;tma_issue2P",
1664        "MetricName": "tma_port_0",
1665        "MetricThreshold": "tma_port_0 > 0.6",
1666        "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",
1667        "ScaleUnit": "100%"
1668    },
1669    {
1670        "BriefDescription": "This metric represents Core fraction of cycles CPU dispatched uops on execution port 1 (ALU)",
1671        "MetricExpr": "UOPS_DISPATCHED_PORT.PORT_1 / tma_info_core_core_clks",
1672        "MetricGroup": "TopdownL6;tma_L6_group;tma_alu_op_utilization_group;tma_issue2P",
1673        "MetricName": "tma_port_1",
1674        "MetricThreshold": "tma_port_1 > 0.6",
1675        "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",
1676        "ScaleUnit": "100%"
1677    },
1678    {
1679        "BriefDescription": "This metric represents Core fraction of cycles CPU dispatched uops on execution port 2 ([SNB+]Loads and Store-address; [ICL+] Loads)",
1680        "MetricExpr": "UOPS_DISPATCHED_PORT.PORT_2 / tma_info_core_core_clks",
1681        "MetricGroup": "TopdownL6;tma_L6_group;tma_load_op_utilization_group",
1682        "MetricName": "tma_port_2",
1683        "MetricThreshold": "tma_port_2 > 0.6",
1684        "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",
1685        "ScaleUnit": "100%"
1686    },
1687    {
1688        "BriefDescription": "This metric represents Core fraction of cycles CPU dispatched uops on execution port 3 ([SNB+]Loads and Store-address; [ICL+] Loads)",
1689        "MetricExpr": "UOPS_DISPATCHED_PORT.PORT_3 / tma_info_core_core_clks",
1690        "MetricGroup": "TopdownL6;tma_L6_group;tma_load_op_utilization_group",
1691        "MetricName": "tma_port_3",
1692        "MetricThreshold": "tma_port_3 > 0.6",
1693        "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",
1694        "ScaleUnit": "100%"
1695    },
1696    {
1697        "BriefDescription": "This metric represents Core fraction of cycles CPU dispatched uops on execution port 4 (Store-data)",
1698        "MetricExpr": "tma_store_op_utilization",
1699        "MetricGroup": "TopdownL6;tma_L6_group;tma_issueSpSt;tma_store_op_utilization_group",
1700        "MetricName": "tma_port_4",
1701        "MetricThreshold": "tma_port_4 > 0.6",
1702        "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",
1703        "ScaleUnit": "100%"
1704    },
1705    {
1706        "BriefDescription": "This metric represents Core fraction of cycles CPU dispatched uops on execution port 5 ([SNB+] Branches and ALU; [HSW+] ALU)",
1707        "MetricExpr": "UOPS_DISPATCHED_PORT.PORT_5 / tma_info_core_core_clks",
1708        "MetricGroup": "TopdownL6;tma_L6_group;tma_alu_op_utilization_group;tma_issue2P",
1709        "MetricName": "tma_port_5",
1710        "MetricThreshold": "tma_port_5 > 0.6",
1711        "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",
1712        "ScaleUnit": "100%"
1713    },
1714    {
1715        "BriefDescription": "This metric represents Core fraction of cycles CPU dispatched uops on execution port 6 ([HSW+] Primary Branch and simple ALU)",
1716        "MetricExpr": "UOPS_DISPATCHED_PORT.PORT_6 / tma_info_core_core_clks",
1717        "MetricGroup": "TopdownL6;tma_L6_group;tma_alu_op_utilization_group;tma_issue2P",
1718        "MetricName": "tma_port_6",
1719        "MetricThreshold": "tma_port_6 > 0.6",
1720        "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",
1721        "ScaleUnit": "100%"
1722    },
1723    {
1724        "BriefDescription": "This metric represents Core fraction of cycles CPU dispatched uops on execution port 7 ([HSW+]simple Store-address)",
1725        "MetricExpr": "UOPS_DISPATCHED_PORT.PORT_7 / tma_info_core_core_clks",
1726        "MetricGroup": "TopdownL6;tma_L6_group;tma_store_op_utilization_group",
1727        "MetricName": "tma_port_7",
1728        "MetricThreshold": "tma_port_7 > 0.6",
1729        "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",
1730        "ScaleUnit": "100%"
1731    },
1732    {
1733        "BriefDescription": "This metric estimates fraction of cycles the CPU performance was potentially limited due to Core computation issues (non divider-related)",
1734        "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)",
1735        "MetricGroup": "PortsUtil;TopdownL3;tma_L3_group;tma_core_bound_group",
1736        "MetricName": "tma_ports_utilization",
1737        "MetricThreshold": "tma_ports_utilization > 0.15 & (tma_core_bound > 0.1 & tma_backend_bound > 0.2)",
1738        "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.",
1739        "ScaleUnit": "100%"
1740    },
1741    {
1742        "BriefDescription": "This metric represents fraction of cycles CPU executed no uops on any execution port (Logical Processor cycles since ICL, Physical Core cycles otherwise)",
1743        "MetricExpr": "EXE_ACTIVITY.EXE_BOUND_0_PORTS / tma_info_thread_clks",
1744        "MetricGroup": "PortsUtil;TopdownL4;tma_L4_group;tma_ports_utilization_group",
1745        "MetricName": "tma_ports_utilized_0",
1746        "MetricThreshold": "tma_ports_utilized_0 > 0.2 & (tma_ports_utilization > 0.15 & (tma_core_bound > 0.1 & tma_backend_bound > 0.2))",
1747        "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.",
1748        "ScaleUnit": "100%"
1749    },
1750    {
1751        "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)",
1752        "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",
1753        "MetricGroup": "PortsUtil;TopdownL4;tma_L4_group;tma_issueL1;tma_ports_utilization_group",
1754        "MetricName": "tma_ports_utilized_1",
1755        "MetricThreshold": "tma_ports_utilized_1 > 0.2 & (tma_ports_utilization > 0.15 & (tma_core_bound > 0.1 & tma_backend_bound > 0.2))",
1756        "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",
1757        "ScaleUnit": "100%"
1758    },
1759    {
1760        "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)",
1761        "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",
1762        "MetricGroup": "PortsUtil;TopdownL4;tma_L4_group;tma_issue2P;tma_ports_utilization_group",
1763        "MetricName": "tma_ports_utilized_2",
1764        "MetricThreshold": "tma_ports_utilized_2 > 0.15 & (tma_ports_utilization > 0.15 & (tma_core_bound > 0.1 & tma_backend_bound > 0.2))",
1765        "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",
1766        "ScaleUnit": "100%"
1767    },
1768    {
1769        "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).",
1770        "MetricExpr": "(UOPS_EXECUTED.CORE_CYCLES_GE_3 / 2 if #SMT_on else UOPS_EXECUTED.CORE_CYCLES_GE_3) / tma_info_core_core_clks",
1771        "MetricGroup": "BvCB;PortsUtil;TopdownL4;tma_L4_group;tma_ports_utilization_group",
1772        "MetricName": "tma_ports_utilized_3m",
1773        "MetricThreshold": "tma_ports_utilized_3m > 0.4 & (tma_ports_utilization > 0.15 & (tma_core_bound > 0.1 & tma_backend_bound > 0.2))",
1774        "ScaleUnit": "100%"
1775    },
1776    {
1777        "BriefDescription": "This metric estimates fraction of cycles while the memory subsystem was handling loads from remote cache in other sockets including synchronizations issues",
1778        "MetricConstraint": "NO_GROUP_EVENTS_NMI",
1779        "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",
1780        "MetricGroup": "Offcore;Server;Snoop;TopdownL5;tma_L5_group;tma_issueSyncxn;tma_mem_latency_group",
1781        "MetricName": "tma_remote_cache",
1782        "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)))",
1783        "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",
1784        "ScaleUnit": "100%"
1785    },
1786    {
1787        "BriefDescription": "This metric estimates fraction of cycles while the memory subsystem was handling loads from remote memory",
1788        "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",
1789        "MetricGroup": "Server;Snoop;TopdownL5;tma_L5_group;tma_mem_latency_group",
1790        "MetricName": "tma_remote_mem",
1791        "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)))",
1792        "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",
1793        "ScaleUnit": "100%"
1794    },
1795    {
1796        "BriefDescription": "This category represents fraction of slots utilized by useful work i.e. issued uops that eventually get retired",
1797        "MetricExpr": "UOPS_RETIRED.RETIRE_SLOTS / tma_info_thread_slots",
1798        "MetricGroup": "BvUW;TmaL1;TopdownL1;tma_L1_group",
1799        "MetricName": "tma_retiring",
1800        "MetricThreshold": "tma_retiring > 0.7 | tma_heavy_operations > 0.1",
1801        "MetricgroupNoGroup": "TopdownL1",
1802        "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",
1803        "ScaleUnit": "100%"
1804    },
1805    {
1806        "BriefDescription": "This metric represents fraction of cycles the CPU issue-pipeline was stalled due to serializing operations",
1807        "MetricExpr": "PARTIAL_RAT_STALLS.SCOREBOARD / tma_info_thread_clks",
1808        "MetricGroup": "BvIO;PortsUtil;TopdownL3;tma_L3_group;tma_core_bound_group;tma_issueSO",
1809        "MetricName": "tma_serializing_operation",
1810        "MetricThreshold": "tma_serializing_operation > 0.1 & (tma_core_bound > 0.1 & tma_backend_bound > 0.2)",
1811        "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",
1812        "ScaleUnit": "100%"
1813    },
1814    {
1815        "BriefDescription": "This metric estimates fraction of cycles handling memory load split accesses - load that cross 64-byte cache line boundary",
1816        "MetricConstraint": "NO_GROUP_EVENTS_NMI",
1817        "MetricExpr": "tma_info_memory_load_miss_real_latency * LD_BLOCKS.NO_SR / tma_info_thread_clks",
1818        "MetricGroup": "TopdownL4;tma_L4_group;tma_l1_bound_group",
1819        "MetricName": "tma_split_loads",
1820        "MetricThreshold": "tma_split_loads > 0.2 & (tma_l1_bound > 0.1 & (tma_memory_bound > 0.2 & tma_backend_bound > 0.2))",
1821        "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",
1822        "ScaleUnit": "100%"
1823    },
1824    {
1825        "BriefDescription": "This metric represents rate of split store accesses",
1826        "MetricExpr": "MEM_INST_RETIRED.SPLIT_STORES / tma_info_core_core_clks",
1827        "MetricGroup": "TopdownL4;tma_L4_group;tma_issueSpSt;tma_store_bound_group",
1828        "MetricName": "tma_split_stores",
1829        "MetricThreshold": "tma_split_stores > 0.2 & (tma_store_bound > 0.2 & (tma_memory_bound > 0.2 & tma_backend_bound > 0.2))",
1830        "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",
1831        "ScaleUnit": "100%"
1832    },
1833    {
1834        "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)",
1835        "MetricExpr": "(OFFCORE_REQUESTS_BUFFER.SQ_FULL / 2 if #SMT_on else OFFCORE_REQUESTS_BUFFER.SQ_FULL) / tma_info_core_core_clks",
1836        "MetricGroup": "BvMS;MemoryBW;Offcore;TopdownL4;tma_L4_group;tma_issueBW;tma_l3_bound_group",
1837        "MetricName": "tma_sq_full",
1838        "MetricThreshold": "tma_sq_full > 0.3 & (tma_l3_bound > 0.05 & (tma_memory_bound > 0.2 & tma_backend_bound > 0.2))",
1839        "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",
1840        "ScaleUnit": "100%"
1841    },
1842    {
1843        "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",
1844        "MetricExpr": "EXE_ACTIVITY.BOUND_ON_STORES / tma_info_thread_clks",
1845        "MetricGroup": "MemoryBound;TmaL3mem;TopdownL3;tma_L3_group;tma_memory_bound_group",
1846        "MetricName": "tma_store_bound",
1847        "MetricThreshold": "tma_store_bound > 0.2 & (tma_memory_bound > 0.2 & tma_backend_bound > 0.2)",
1848        "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",
1849        "ScaleUnit": "100%"
1850    },
1851    {
1852        "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",
1853        "MetricExpr": "13 * LD_BLOCKS.STORE_FORWARD / tma_info_thread_clks",
1854        "MetricGroup": "TopdownL4;tma_L4_group;tma_l1_bound_group",
1855        "MetricName": "tma_store_fwd_blk",
1856        "MetricThreshold": "tma_store_fwd_blk > 0.1 & (tma_l1_bound > 0.1 & (tma_memory_bound > 0.2 & tma_backend_bound > 0.2))",
1857        "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.",
1858        "ScaleUnit": "100%"
1859    },
1860    {
1861        "BriefDescription": "This metric estimates fraction of cycles the CPU spent handling L1D store misses",
1862        "MetricConstraint": "NO_GROUP_EVENTS_NMI",
1863        "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",
1864        "MetricGroup": "BvML;MemoryLat;Offcore;TopdownL4;tma_L4_group;tma_issueRFO;tma_issueSL;tma_store_bound_group",
1865        "MetricName": "tma_store_latency",
1866        "MetricThreshold": "tma_store_latency > 0.1 & (tma_store_bound > 0.2 & (tma_memory_bound > 0.2 & tma_backend_bound > 0.2))",
1867        "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",
1868        "ScaleUnit": "100%"
1869    },
1870    {
1871        "BriefDescription": "This metric represents Core fraction of cycles CPU dispatched uops on execution port for Store operations",
1872        "MetricExpr": "UOPS_DISPATCHED_PORT.PORT_4 / tma_info_core_core_clks",
1873        "MetricGroup": "TopdownL5;tma_L5_group;tma_ports_utilized_3m_group",
1874        "MetricName": "tma_store_op_utilization",
1875        "MetricThreshold": "tma_store_op_utilization > 0.6",
1876        "ScaleUnit": "100%"
1877    },
1878    {
1879        "BriefDescription": "This metric roughly estimates the fraction of cycles where the TLB was missed by store accesses, hitting in the second-level TLB (STLB)",
1880        "MetricExpr": "tma_dtlb_store - tma_store_stlb_miss",
1881        "MetricGroup": "MemoryTLB;TopdownL5;tma_L5_group;tma_dtlb_store_group",
1882        "MetricName": "tma_store_stlb_hit",
1883        "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)))",
1884        "ScaleUnit": "100%"
1885    },
1886    {
1887        "BriefDescription": "This metric estimates the fraction of cycles where the STLB was missed by store accesses, performing a hardware page walk",
1888        "MetricExpr": "DTLB_STORE_MISSES.WALK_ACTIVE / tma_info_core_core_clks",
1889        "MetricGroup": "MemoryTLB;TopdownL5;tma_L5_group;tma_dtlb_store_group",
1890        "MetricName": "tma_store_stlb_miss",
1891        "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)))",
1892        "ScaleUnit": "100%"
1893    },
1894    {
1895        "BriefDescription": "This metric represents fraction of cycles the CPU was stalled due to new branch address clears",
1896        "MetricExpr": "9 * BACLEARS.ANY / tma_info_thread_clks",
1897        "MetricGroup": "BigFootprint;BvBC;FetchLat;TopdownL4;tma_L4_group;tma_branch_resteers_group",
1898        "MetricName": "tma_unknown_branches",
1899        "MetricThreshold": "tma_unknown_branches > 0.05 & (tma_branch_resteers > 0.05 & (tma_fetch_latency > 0.1 & tma_frontend_bound > 0.15))",
1900        "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",
1901        "ScaleUnit": "100%"
1902    },
1903    {
1904        "BriefDescription": "This metric serves as an approximation of legacy x87 usage",
1905        "MetricExpr": "tma_retiring * UOPS_EXECUTED.X87 / UOPS_EXECUTED.THREAD",
1906        "MetricGroup": "Compute;TopdownL4;tma_L4_group;tma_fp_arith_group",
1907        "MetricName": "tma_x87_use",
1908        "MetricThreshold": "tma_x87_use > 0.1 & (tma_fp_arith > 0.2 & tma_light_operations > 0.6)",
1909        "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.",
1910        "ScaleUnit": "100%"
1911    },
1912    {
1913        "BriefDescription": "Percentage of cycles in aborted transactions.",
1914        "MetricExpr": "(max(cycles\\-t - cycles\\-ct, 0) / cycles if has_event(cycles\\-t) else 0)",
1915        "MetricGroup": "transaction",
1916        "MetricName": "tsx_aborted_cycles",
1917        "ScaleUnit": "100%"
1918    },
1919    {
1920        "BriefDescription": "Number of cycles within a transaction divided by the number of elisions.",
1921        "MetricExpr": "(cycles\\-t / el\\-start if has_event(el\\-start) else 0)",
1922        "MetricGroup": "transaction",
1923        "MetricName": "tsx_cycles_per_elision",
1924        "ScaleUnit": "1cycles / elision"
1925    },
1926    {
1927        "BriefDescription": "Number of cycles within a transaction divided by the number of transactions.",
1928        "MetricExpr": "(cycles\\-t / tx\\-start if has_event(cycles\\-t) else 0)",
1929        "MetricGroup": "transaction",
1930        "MetricName": "tsx_cycles_per_transaction",
1931        "ScaleUnit": "1cycles / transaction"
1932    },
1933    {
1934        "BriefDescription": "Percentage of cycles within a transaction region.",
1935        "MetricExpr": "(cycles\\-t / cycles if has_event(cycles\\-t) else 0)",
1936        "MetricGroup": "transaction",
1937        "MetricName": "tsx_transactional_cycles",
1938        "ScaleUnit": "100%"
1939    },
1940    {
1941        "BriefDescription": "Uncore operating frequency in GHz",
1942        "MetricExpr": "UNC_CHA_CLOCKTICKS / (#num_cores / #num_packages * #num_packages) / 1e9 / duration_time",
1943        "MetricName": "uncore_frequency",
1944        "ScaleUnit": "1GHz"
1945    },
1946    {
1947        "BriefDescription": "Intel(R) Ultra Path Interconnect (UPI) data receive bandwidth (MB/sec)",
1948        "MetricExpr": "UNC_UPI_RxL_FLITS.ALL_DATA * 7.111111111111111 / 1e6 / duration_time",
1949        "MetricName": "upi_data_receive_bw",
1950        "ScaleUnit": "1MB/s"
1951    },
1952    {
1953        "BriefDescription": "Intel(R) Ultra Path Interconnect (UPI) data transmit bandwidth (MB/sec)",
1954        "MetricExpr": "UNC_UPI_TxL_FLITS.ALL_DATA * 7.111111111111111 / 1e6 / duration_time",
1955        "MetricName": "upi_data_transmit_bw",
1956        "ScaleUnit": "1MB/s"
1957    }
1958]
1959