1*7e74ece3SIan Rogers[
2*7e74ece3SIan Rogers    {
3*7e74ece3SIan Rogers        "BriefDescription": "C10 residency percent per package",
4*7e74ece3SIan Rogers        "MetricExpr": "cstate_pkg@c10\\-residency@ / TSC",
5*7e74ece3SIan Rogers        "MetricGroup": "Power",
6*7e74ece3SIan Rogers        "MetricName": "C10_Pkg_Residency",
7*7e74ece3SIan Rogers        "ScaleUnit": "100%"
8*7e74ece3SIan Rogers    },
9*7e74ece3SIan Rogers    {
10*7e74ece3SIan Rogers        "BriefDescription": "C2 residency percent per package",
11*7e74ece3SIan Rogers        "MetricExpr": "cstate_pkg@c2\\-residency@ / TSC",
12*7e74ece3SIan Rogers        "MetricGroup": "Power",
13*7e74ece3SIan Rogers        "MetricName": "C2_Pkg_Residency",
14*7e74ece3SIan Rogers        "ScaleUnit": "100%"
15*7e74ece3SIan Rogers    },
16*7e74ece3SIan Rogers    {
17*7e74ece3SIan Rogers        "BriefDescription": "C3 residency percent per package",
18*7e74ece3SIan Rogers        "MetricExpr": "cstate_pkg@c3\\-residency@ / TSC",
19*7e74ece3SIan Rogers        "MetricGroup": "Power",
20*7e74ece3SIan Rogers        "MetricName": "C3_Pkg_Residency",
21*7e74ece3SIan Rogers        "ScaleUnit": "100%"
22*7e74ece3SIan Rogers    },
23*7e74ece3SIan Rogers    {
24*7e74ece3SIan Rogers        "BriefDescription": "C6 residency percent per core",
25*7e74ece3SIan Rogers        "MetricExpr": "cstate_core@c6\\-residency@ / TSC",
26*7e74ece3SIan Rogers        "MetricGroup": "Power",
27*7e74ece3SIan Rogers        "MetricName": "C6_Core_Residency",
28*7e74ece3SIan Rogers        "ScaleUnit": "100%"
29*7e74ece3SIan Rogers    },
30*7e74ece3SIan Rogers    {
31*7e74ece3SIan Rogers        "BriefDescription": "C6 residency percent per package",
32*7e74ece3SIan Rogers        "MetricExpr": "cstate_pkg@c6\\-residency@ / TSC",
33*7e74ece3SIan Rogers        "MetricGroup": "Power",
34*7e74ece3SIan Rogers        "MetricName": "C6_Pkg_Residency",
35*7e74ece3SIan Rogers        "ScaleUnit": "100%"
36*7e74ece3SIan Rogers    },
37*7e74ece3SIan Rogers    {
38*7e74ece3SIan Rogers        "BriefDescription": "C7 residency percent per core",
39*7e74ece3SIan Rogers        "MetricExpr": "cstate_core@c7\\-residency@ / TSC",
40*7e74ece3SIan Rogers        "MetricGroup": "Power",
41*7e74ece3SIan Rogers        "MetricName": "C7_Core_Residency",
42*7e74ece3SIan Rogers        "ScaleUnit": "100%"
43*7e74ece3SIan Rogers    },
44*7e74ece3SIan Rogers    {
45*7e74ece3SIan Rogers        "BriefDescription": "C7 residency percent per package",
46*7e74ece3SIan Rogers        "MetricExpr": "cstate_pkg@c7\\-residency@ / TSC",
47*7e74ece3SIan Rogers        "MetricGroup": "Power",
48*7e74ece3SIan Rogers        "MetricName": "C7_Pkg_Residency",
49*7e74ece3SIan Rogers        "ScaleUnit": "100%"
50*7e74ece3SIan Rogers    },
51*7e74ece3SIan Rogers    {
52*7e74ece3SIan Rogers        "BriefDescription": "C8 residency percent per package",
53*7e74ece3SIan Rogers        "MetricExpr": "cstate_pkg@c8\\-residency@ / TSC",
54*7e74ece3SIan Rogers        "MetricGroup": "Power",
55*7e74ece3SIan Rogers        "MetricName": "C8_Pkg_Residency",
56*7e74ece3SIan Rogers        "ScaleUnit": "100%"
57*7e74ece3SIan Rogers    },
58*7e74ece3SIan Rogers    {
59*7e74ece3SIan Rogers        "BriefDescription": "C9 residency percent per package",
60*7e74ece3SIan Rogers        "MetricExpr": "cstate_pkg@c9\\-residency@ / TSC",
61*7e74ece3SIan Rogers        "MetricGroup": "Power",
62*7e74ece3SIan Rogers        "MetricName": "C9_Pkg_Residency",
63*7e74ece3SIan Rogers        "ScaleUnit": "100%"
64*7e74ece3SIan Rogers    },
65*7e74ece3SIan Rogers    {
66*7e74ece3SIan Rogers        "BriefDescription": "Uncore frequency per die [GHZ]",
67*7e74ece3SIan Rogers        "MetricExpr": "tma_info_system_socket_clks / #num_dies / duration_time / 1e9",
68*7e74ece3SIan Rogers        "MetricGroup": "SoC",
69*7e74ece3SIan Rogers        "MetricName": "UNCORE_FREQ"
70*7e74ece3SIan Rogers    },
71*7e74ece3SIan Rogers    {
72*7e74ece3SIan Rogers        "BriefDescription": "Percentage of cycles spent in System Management Interrupts.",
73*7e74ece3SIan Rogers        "MetricExpr": "((msr@aperf@ - cycles) / msr@aperf@ if msr@smi@ > 0 else 0)",
74*7e74ece3SIan Rogers        "MetricGroup": "smi",
75*7e74ece3SIan Rogers        "MetricName": "smi_cycles",
76*7e74ece3SIan Rogers        "MetricThreshold": "smi_cycles > 0.1",
77*7e74ece3SIan Rogers        "ScaleUnit": "100%"
78*7e74ece3SIan Rogers    },
79*7e74ece3SIan Rogers    {
80*7e74ece3SIan Rogers        "BriefDescription": "Number of SMI interrupts.",
81*7e74ece3SIan Rogers        "MetricExpr": "msr@smi@",
82*7e74ece3SIan Rogers        "MetricGroup": "smi",
83*7e74ece3SIan Rogers        "MetricName": "smi_num",
84*7e74ece3SIan Rogers        "ScaleUnit": "1SMI#"
85*7e74ece3SIan Rogers    },
86*7e74ece3SIan Rogers    {
87*7e74ece3SIan Rogers        "BriefDescription": "This metric estimates how often memory load accesses were aliased by preceding stores (in program order) with a 4K address offset",
88*7e74ece3SIan Rogers        "MetricExpr": "LD_BLOCKS_PARTIAL.ADDRESS_ALIAS / tma_info_thread_clks",
89*7e74ece3SIan Rogers        "MetricGroup": "TopdownL4;tma_L4_group;tma_l1_bound_group",
90*7e74ece3SIan Rogers        "MetricName": "tma_4k_aliasing",
91*7e74ece3SIan Rogers        "MetricThreshold": "tma_4k_aliasing > 0.2 & (tma_l1_bound > 0.1 & (tma_memory_bound > 0.2 & tma_backend_bound > 0.2))",
92*7e74ece3SIan Rogers        "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).",
93*7e74ece3SIan Rogers        "ScaleUnit": "100%"
94*7e74ece3SIan Rogers    },
95*7e74ece3SIan Rogers    {
96*7e74ece3SIan Rogers        "BriefDescription": "This metric represents Core fraction of cycles CPU dispatched uops on execution ports for ALU operations.",
97*7e74ece3SIan Rogers        "MetricExpr": "(UOPS_DISPATCHED.PORT_0 + UOPS_DISPATCHED.PORT_1 + UOPS_DISPATCHED.PORT_5 + UOPS_DISPATCHED.PORT_6) / (4 * tma_info_core_core_clks)",
98*7e74ece3SIan Rogers        "MetricGroup": "TopdownL5;tma_L5_group;tma_ports_utilized_3m_group",
99*7e74ece3SIan Rogers        "MetricName": "tma_alu_op_utilization",
100*7e74ece3SIan Rogers        "MetricThreshold": "tma_alu_op_utilization > 0.6",
101*7e74ece3SIan Rogers        "ScaleUnit": "100%"
102*7e74ece3SIan Rogers    },
103*7e74ece3SIan Rogers    {
104*7e74ece3SIan Rogers        "BriefDescription": "This metric estimates fraction of slots the CPU retired uops delivered by the Microcode_Sequencer as a result of Assists",
105*7e74ece3SIan Rogers        "MetricExpr": "100 * ASSISTS.ANY / tma_info_thread_slots",
106*7e74ece3SIan Rogers        "MetricGroup": "TopdownL4;tma_L4_group;tma_microcode_sequencer_group",
107*7e74ece3SIan Rogers        "MetricName": "tma_assists",
108*7e74ece3SIan Rogers        "MetricThreshold": "tma_assists > 0.1 & (tma_microcode_sequencer > 0.05 & tma_heavy_operations > 0.1)",
109*7e74ece3SIan Rogers        "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: ASSISTS.ANY",
110*7e74ece3SIan Rogers        "ScaleUnit": "100%"
111*7e74ece3SIan Rogers    },
112*7e74ece3SIan Rogers    {
113*7e74ece3SIan Rogers        "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",
114*7e74ece3SIan Rogers        "DefaultMetricgroupName": "TopdownL1",
115*7e74ece3SIan Rogers        "MetricExpr": "topdown\\-be\\-bound / (topdown\\-fe\\-bound + topdown\\-bad\\-spec + topdown\\-retiring + topdown\\-be\\-bound) + 5 * cpu@INT_MISC.RECOVERY_CYCLES\\,cmask\\=1\\,edge@ / tma_info_thread_slots",
116*7e74ece3SIan Rogers        "MetricGroup": "Default;TmaL1;TopdownL1;tma_L1_group",
117*7e74ece3SIan Rogers        "MetricName": "tma_backend_bound",
118*7e74ece3SIan Rogers        "MetricThreshold": "tma_backend_bound > 0.2",
119*7e74ece3SIan Rogers        "MetricgroupNoGroup": "TopdownL1;Default",
120*7e74ece3SIan Rogers        "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. Sample with: TOPDOWN.BACKEND_BOUND_SLOTS",
121*7e74ece3SIan Rogers        "ScaleUnit": "100%"
122*7e74ece3SIan Rogers    },
123*7e74ece3SIan Rogers    {
124*7e74ece3SIan Rogers        "BriefDescription": "This category represents fraction of slots wasted due to incorrect speculations",
125*7e74ece3SIan Rogers        "DefaultMetricgroupName": "TopdownL1",
126*7e74ece3SIan Rogers        "MetricExpr": "max(1 - (tma_frontend_bound + tma_backend_bound + tma_retiring), 0)",
127*7e74ece3SIan Rogers        "MetricGroup": "Default;TmaL1;TopdownL1;tma_L1_group",
128*7e74ece3SIan Rogers        "MetricName": "tma_bad_speculation",
129*7e74ece3SIan Rogers        "MetricThreshold": "tma_bad_speculation > 0.15",
130*7e74ece3SIan Rogers        "MetricgroupNoGroup": "TopdownL1;Default",
131*7e74ece3SIan Rogers        "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.",
132*7e74ece3SIan Rogers        "ScaleUnit": "100%"
133*7e74ece3SIan Rogers    },
134*7e74ece3SIan Rogers    {
135*7e74ece3SIan Rogers        "BriefDescription": "This metric represents fraction of slots where the CPU was retiring branch instructions.",
136*7e74ece3SIan Rogers        "MetricExpr": "tma_light_operations * BR_INST_RETIRED.ALL_BRANCHES / (tma_retiring * tma_info_thread_slots)",
137*7e74ece3SIan Rogers        "MetricGroup": "Pipeline;TopdownL3;tma_L3_group;tma_light_operations_group",
138*7e74ece3SIan Rogers        "MetricName": "tma_branch_instructions",
139*7e74ece3SIan Rogers        "MetricThreshold": "tma_branch_instructions > 0.1 & tma_light_operations > 0.6",
140*7e74ece3SIan Rogers        "ScaleUnit": "100%"
141*7e74ece3SIan Rogers    },
142*7e74ece3SIan Rogers    {
143*7e74ece3SIan Rogers        "BriefDescription": "This metric represents fraction of slots the CPU has wasted due to Branch Misprediction",
144*7e74ece3SIan Rogers        "MetricExpr": "BR_MISP_RETIRED.ALL_BRANCHES / (BR_MISP_RETIRED.ALL_BRANCHES + MACHINE_CLEARS.COUNT) * tma_bad_speculation",
145*7e74ece3SIan Rogers        "MetricGroup": "BadSpec;BrMispredicts;TmaL2;TopdownL2;tma_L2_group;tma_bad_speculation_group;tma_issueBM",
146*7e74ece3SIan Rogers        "MetricName": "tma_branch_mispredicts",
147*7e74ece3SIan Rogers        "MetricThreshold": "tma_branch_mispredicts > 0.1 & tma_bad_speculation > 0.15",
148*7e74ece3SIan Rogers        "MetricgroupNoGroup": "TopdownL2",
149*7e74ece3SIan Rogers        "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",
150*7e74ece3SIan Rogers        "ScaleUnit": "100%"
151*7e74ece3SIan Rogers    },
152*7e74ece3SIan Rogers    {
153*7e74ece3SIan Rogers        "BriefDescription": "This metric represents fraction of cycles the CPU was stalled due to Branch Resteers",
154*7e74ece3SIan Rogers        "MetricExpr": "INT_MISC.CLEAR_RESTEER_CYCLES / tma_info_thread_clks + tma_unknown_branches",
155*7e74ece3SIan Rogers        "MetricGroup": "FetchLat;TopdownL3;tma_L3_group;tma_fetch_latency_group",
156*7e74ece3SIan Rogers        "MetricName": "tma_branch_resteers",
157*7e74ece3SIan Rogers        "MetricThreshold": "tma_branch_resteers > 0.05 & (tma_fetch_latency > 0.1 & tma_frontend_bound > 0.15)",
158*7e74ece3SIan Rogers        "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",
159*7e74ece3SIan Rogers        "ScaleUnit": "100%"
160*7e74ece3SIan Rogers    },
161*7e74ece3SIan Rogers    {
162*7e74ece3SIan Rogers        "BriefDescription": "This metric estimates fraction of cycles the CPU retired uops originated from CISC (complex instruction set computer) instruction",
163*7e74ece3SIan Rogers        "MetricExpr": "max(0, tma_microcode_sequencer - tma_assists)",
164*7e74ece3SIan Rogers        "MetricGroup": "TopdownL4;tma_L4_group;tma_microcode_sequencer_group",
165*7e74ece3SIan Rogers        "MetricName": "tma_cisc",
166*7e74ece3SIan Rogers        "MetricThreshold": "tma_cisc > 0.1 & (tma_microcode_sequencer > 0.05 & tma_heavy_operations > 0.1)",
167*7e74ece3SIan Rogers        "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.",
168*7e74ece3SIan Rogers        "ScaleUnit": "100%"
169*7e74ece3SIan Rogers    },
170*7e74ece3SIan Rogers    {
171*7e74ece3SIan Rogers        "BriefDescription": "This metric represents fraction of cycles the CPU was stalled due to Branch Resteers as a result of Machine Clears",
172*7e74ece3SIan Rogers        "MetricExpr": "(1 - BR_MISP_RETIRED.ALL_BRANCHES / (BR_MISP_RETIRED.ALL_BRANCHES + MACHINE_CLEARS.COUNT)) * INT_MISC.CLEAR_RESTEER_CYCLES / tma_info_thread_clks",
173*7e74ece3SIan Rogers        "MetricGroup": "BadSpec;MachineClears;TopdownL4;tma_L4_group;tma_branch_resteers_group;tma_issueMC",
174*7e74ece3SIan Rogers        "MetricName": "tma_clears_resteers",
175*7e74ece3SIan Rogers        "MetricThreshold": "tma_clears_resteers > 0.05 & (tma_branch_resteers > 0.05 & (tma_fetch_latency > 0.1 & tma_frontend_bound > 0.15))",
176*7e74ece3SIan Rogers        "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",
177*7e74ece3SIan Rogers        "ScaleUnit": "100%"
178*7e74ece3SIan Rogers    },
179*7e74ece3SIan Rogers    {
180*7e74ece3SIan Rogers        "BriefDescription": "This metric estimates fraction of cycles while the memory subsystem was handling synchronizations due to contested accesses",
181*7e74ece3SIan Rogers        "MetricConstraint": "NO_GROUP_EVENTS",
182*7e74ece3SIan Rogers        "MetricExpr": "(29 * tma_info_system_average_frequency * MEM_LOAD_L3_HIT_RETIRED.XSNP_HITM + 23.5 * tma_info_system_average_frequency * MEM_LOAD_L3_HIT_RETIRED.XSNP_MISS) * (1 + MEM_LOAD_RETIRED.FB_HIT / MEM_LOAD_RETIRED.L1_MISS / 2) / tma_info_thread_clks",
183*7e74ece3SIan Rogers        "MetricGroup": "DataSharing;Offcore;Snoop;TopdownL4;tma_L4_group;tma_issueSyncxn;tma_l3_bound_group",
184*7e74ece3SIan Rogers        "MetricName": "tma_contested_accesses",
185*7e74ece3SIan Rogers        "MetricThreshold": "tma_contested_accesses > 0.05 & (tma_l3_bound > 0.05 & (tma_memory_bound > 0.2 & tma_backend_bound > 0.2))",
186*7e74ece3SIan Rogers        "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",
187*7e74ece3SIan Rogers        "ScaleUnit": "100%"
188*7e74ece3SIan Rogers    },
189*7e74ece3SIan Rogers    {
190*7e74ece3SIan Rogers        "BriefDescription": "This metric represents fraction of slots where Core non-memory issues were of a bottleneck",
191*7e74ece3SIan Rogers        "MetricExpr": "max(0, tma_backend_bound - tma_memory_bound)",
192*7e74ece3SIan Rogers        "MetricGroup": "Backend;Compute;TmaL2;TopdownL2;tma_L2_group;tma_backend_bound_group",
193*7e74ece3SIan Rogers        "MetricName": "tma_core_bound",
194*7e74ece3SIan Rogers        "MetricThreshold": "tma_core_bound > 0.1 & tma_backend_bound > 0.2",
195*7e74ece3SIan Rogers        "MetricgroupNoGroup": "TopdownL2",
196*7e74ece3SIan Rogers        "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).",
197*7e74ece3SIan Rogers        "ScaleUnit": "100%"
198*7e74ece3SIan Rogers    },
199*7e74ece3SIan Rogers    {
200*7e74ece3SIan Rogers        "BriefDescription": "This metric estimates fraction of cycles while the memory subsystem was handling synchronizations due to data-sharing accesses",
201*7e74ece3SIan Rogers        "MetricConstraint": "NO_GROUP_EVENTS",
202*7e74ece3SIan Rogers        "MetricExpr": "23.5 * tma_info_system_average_frequency * MEM_LOAD_L3_HIT_RETIRED.XSNP_HIT * (1 + MEM_LOAD_RETIRED.FB_HIT / MEM_LOAD_RETIRED.L1_MISS / 2) / tma_info_thread_clks",
203*7e74ece3SIan Rogers        "MetricGroup": "Offcore;Snoop;TopdownL4;tma_L4_group;tma_issueSyncxn;tma_l3_bound_group",
204*7e74ece3SIan Rogers        "MetricName": "tma_data_sharing",
205*7e74ece3SIan Rogers        "MetricThreshold": "tma_data_sharing > 0.05 & (tma_l3_bound > 0.05 & (tma_memory_bound > 0.2 & tma_backend_bound > 0.2))",
206*7e74ece3SIan Rogers        "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",
207*7e74ece3SIan Rogers        "ScaleUnit": "100%"
208*7e74ece3SIan Rogers    },
209*7e74ece3SIan Rogers    {
210*7e74ece3SIan Rogers        "BriefDescription": "This metric represents fraction of cycles where decoder-0 was the only active decoder",
211*7e74ece3SIan Rogers        "MetricExpr": "(cpu@INST_DECODED.DECODERS\\,cmask\\=1@ - cpu@INST_DECODED.DECODERS\\,cmask\\=2@) / tma_info_core_core_clks / 2",
212*7e74ece3SIan Rogers        "MetricGroup": "DSBmiss;FetchBW;TopdownL4;tma_L4_group;tma_issueD0;tma_mite_group",
213*7e74ece3SIan Rogers        "MetricName": "tma_decoder0_alone",
214*7e74ece3SIan Rogers        "MetricThreshold": "tma_decoder0_alone > 0.1 & (tma_mite > 0.1 & (tma_fetch_bandwidth > 0.1 & tma_frontend_bound > 0.15 & tma_info_thread_ipc / 5 > 0.35))",
215*7e74ece3SIan Rogers        "PublicDescription": "This metric represents fraction of cycles where decoder-0 was the only active decoder. Related metrics: tma_few_uops_instructions",
216*7e74ece3SIan Rogers        "ScaleUnit": "100%"
217*7e74ece3SIan Rogers    },
218*7e74ece3SIan Rogers    {
219*7e74ece3SIan Rogers        "BriefDescription": "This metric represents fraction of cycles where the Divider unit was active",
220*7e74ece3SIan Rogers        "MetricExpr": "ARITH.DIVIDER_ACTIVE / tma_info_thread_clks",
221*7e74ece3SIan Rogers        "MetricGroup": "TopdownL3;tma_L3_group;tma_core_bound_group",
222*7e74ece3SIan Rogers        "MetricName": "tma_divider",
223*7e74ece3SIan Rogers        "MetricThreshold": "tma_divider > 0.2 & (tma_core_bound > 0.1 & tma_backend_bound > 0.2)",
224*7e74ece3SIan Rogers        "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",
225*7e74ece3SIan Rogers        "ScaleUnit": "100%"
226*7e74ece3SIan Rogers    },
227*7e74ece3SIan Rogers    {
228*7e74ece3SIan Rogers        "BriefDescription": "This metric estimates how often the CPU was stalled on accesses to external memory (DRAM) by loads",
229*7e74ece3SIan Rogers        "MetricConstraint": "NO_GROUP_EVENTS",
230*7e74ece3SIan Rogers        "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",
231*7e74ece3SIan Rogers        "MetricGroup": "MemoryBound;TmaL3mem;TopdownL3;tma_L3_group;tma_memory_bound_group",
232*7e74ece3SIan Rogers        "MetricName": "tma_dram_bound",
233*7e74ece3SIan Rogers        "MetricThreshold": "tma_dram_bound > 0.1 & (tma_memory_bound > 0.2 & tma_backend_bound > 0.2)",
234*7e74ece3SIan Rogers        "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",
235*7e74ece3SIan Rogers        "ScaleUnit": "100%"
236*7e74ece3SIan Rogers    },
237*7e74ece3SIan Rogers    {
238*7e74ece3SIan Rogers        "BriefDescription": "This metric represents Core fraction of cycles in which CPU was likely limited due to DSB (decoded uop cache) fetch pipeline",
239*7e74ece3SIan Rogers        "MetricExpr": "(IDQ.DSB_CYCLES_ANY - IDQ.DSB_CYCLES_OK) / tma_info_core_core_clks / 2",
240*7e74ece3SIan Rogers        "MetricGroup": "DSB;FetchBW;TopdownL3;tma_L3_group;tma_fetch_bandwidth_group",
241*7e74ece3SIan Rogers        "MetricName": "tma_dsb",
242*7e74ece3SIan Rogers        "MetricThreshold": "tma_dsb > 0.15 & (tma_fetch_bandwidth > 0.1 & tma_frontend_bound > 0.15 & tma_info_thread_ipc / 5 > 0.35)",
243*7e74ece3SIan Rogers        "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.",
244*7e74ece3SIan Rogers        "ScaleUnit": "100%"
245*7e74ece3SIan Rogers    },
246*7e74ece3SIan Rogers    {
247*7e74ece3SIan Rogers        "BriefDescription": "This metric represents fraction of cycles the CPU was stalled due to switches from DSB to MITE pipelines",
248*7e74ece3SIan Rogers        "MetricExpr": "DSB2MITE_SWITCHES.PENALTY_CYCLES / tma_info_thread_clks",
249*7e74ece3SIan Rogers        "MetricGroup": "DSBmiss;FetchLat;TopdownL3;tma_L3_group;tma_fetch_latency_group;tma_issueFB",
250*7e74ece3SIan Rogers        "MetricName": "tma_dsb_switches",
251*7e74ece3SIan Rogers        "MetricThreshold": "tma_dsb_switches > 0.05 & (tma_fetch_latency > 0.1 & tma_frontend_bound > 0.15)",
252*7e74ece3SIan Rogers        "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_misses, tma_info_frontend_dsb_coverage, tma_info_inst_mix_iptb, tma_lcp",
253*7e74ece3SIan Rogers        "ScaleUnit": "100%"
254*7e74ece3SIan Rogers    },
255*7e74ece3SIan Rogers    {
256*7e74ece3SIan Rogers        "BriefDescription": "This metric roughly estimates the fraction of cycles where the Data TLB (DTLB) was missed by load accesses",
257*7e74ece3SIan Rogers        "MetricExpr": "min(7 * 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",
258*7e74ece3SIan Rogers        "MetricGroup": "MemoryTLB;TopdownL4;tma_L4_group;tma_issueTLB;tma_l1_bound_group",
259*7e74ece3SIan Rogers        "MetricName": "tma_dtlb_load",
260*7e74ece3SIan Rogers        "MetricThreshold": "tma_dtlb_load > 0.1 & (tma_l1_bound > 0.1 & (tma_memory_bound > 0.2 & tma_backend_bound > 0.2))",
261*7e74ece3SIan Rogers        "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",
262*7e74ece3SIan Rogers        "ScaleUnit": "100%"
263*7e74ece3SIan Rogers    },
264*7e74ece3SIan Rogers    {
265*7e74ece3SIan Rogers        "BriefDescription": "This metric roughly estimates the fraction of cycles spent handling first-level data TLB store misses",
266*7e74ece3SIan Rogers        "MetricExpr": "(7 * cpu@DTLB_STORE_MISSES.STLB_HIT\\,cmask\\=1@ + DTLB_STORE_MISSES.WALK_ACTIVE) / tma_info_core_core_clks",
267*7e74ece3SIan Rogers        "MetricGroup": "MemoryTLB;TopdownL4;tma_L4_group;tma_issueTLB;tma_store_bound_group",
268*7e74ece3SIan Rogers        "MetricName": "tma_dtlb_store",
269*7e74ece3SIan Rogers        "MetricThreshold": "tma_dtlb_store > 0.05 & (tma_store_bound > 0.2 & (tma_memory_bound > 0.2 & tma_backend_bound > 0.2))",
270*7e74ece3SIan Rogers        "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",
271*7e74ece3SIan Rogers        "ScaleUnit": "100%"
272*7e74ece3SIan Rogers    },
273*7e74ece3SIan Rogers    {
274*7e74ece3SIan Rogers        "BriefDescription": "This metric roughly estimates how often CPU was handling synchronizations due to False Sharing",
275*7e74ece3SIan Rogers        "MetricExpr": "32.5 * tma_info_system_average_frequency * OCR.DEMAND_RFO.L3_HIT.SNOOP_HITM / tma_info_thread_clks",
276*7e74ece3SIan Rogers        "MetricGroup": "DataSharing;Offcore;Snoop;TopdownL4;tma_L4_group;tma_issueSyncxn;tma_store_bound_group",
277*7e74ece3SIan Rogers        "MetricName": "tma_false_sharing",
278*7e74ece3SIan Rogers        "MetricThreshold": "tma_false_sharing > 0.05 & (tma_store_bound > 0.2 & (tma_memory_bound > 0.2 & tma_backend_bound > 0.2))",
279*7e74ece3SIan Rogers        "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: OCR.DEMAND_RFO.L3_HIT.SNOOP_HITM. Related metrics: tma_contested_accesses, tma_data_sharing, tma_machine_clears, tma_remote_cache",
280*7e74ece3SIan Rogers        "ScaleUnit": "100%"
281*7e74ece3SIan Rogers    },
282*7e74ece3SIan Rogers    {
283*7e74ece3SIan Rogers        "BriefDescription": "This metric does a *rough estimation* of how often L1D Fill Buffer unavailability limited additional L1D miss memory access requests to proceed",
284*7e74ece3SIan Rogers        "MetricExpr": "L1D_PEND_MISS.FB_FULL / tma_info_thread_clks",
285*7e74ece3SIan Rogers        "MetricGroup": "MemoryBW;TopdownL4;tma_L4_group;tma_issueBW;tma_issueSL;tma_issueSmSt;tma_l1_bound_group",
286*7e74ece3SIan Rogers        "MetricName": "tma_fb_full",
287*7e74ece3SIan Rogers        "MetricThreshold": "tma_fb_full > 0.3",
288*7e74ece3SIan Rogers        "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_memory_bandwidth, tma_info_system_dram_bw_use, tma_mem_bandwidth, tma_sq_full, tma_store_latency, tma_streaming_stores",
289*7e74ece3SIan Rogers        "ScaleUnit": "100%"
290*7e74ece3SIan Rogers    },
291*7e74ece3SIan Rogers    {
292*7e74ece3SIan Rogers        "BriefDescription": "This metric represents fraction of slots the CPU was stalled due to Frontend bandwidth issues",
293*7e74ece3SIan Rogers        "MetricExpr": "max(0, tma_frontend_bound - tma_fetch_latency)",
294*7e74ece3SIan Rogers        "MetricGroup": "FetchBW;Frontend;TmaL2;TopdownL2;tma_L2_group;tma_frontend_bound_group;tma_issueFB",
295*7e74ece3SIan Rogers        "MetricName": "tma_fetch_bandwidth",
296*7e74ece3SIan Rogers        "MetricThreshold": "tma_fetch_bandwidth > 0.1 & tma_frontend_bound > 0.15 & tma_info_thread_ipc / 5 > 0.35",
297*7e74ece3SIan Rogers        "MetricgroupNoGroup": "TopdownL2",
298*7e74ece3SIan Rogers        "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_misses, tma_info_frontend_dsb_coverage, tma_info_inst_mix_iptb, tma_lcp",
299*7e74ece3SIan Rogers        "ScaleUnit": "100%"
300*7e74ece3SIan Rogers    },
301*7e74ece3SIan Rogers    {
302*7e74ece3SIan Rogers        "BriefDescription": "This metric represents fraction of slots the CPU was stalled due to Frontend latency issues",
303*7e74ece3SIan Rogers        "MetricExpr": "(5 * IDQ_UOPS_NOT_DELIVERED.CYCLES_0_UOPS_DELIV.CORE - INT_MISC.UOP_DROPPING) / tma_info_thread_slots",
304*7e74ece3SIan Rogers        "MetricGroup": "Frontend;TmaL2;TopdownL2;tma_L2_group;tma_frontend_bound_group",
305*7e74ece3SIan Rogers        "MetricName": "tma_fetch_latency",
306*7e74ece3SIan Rogers        "MetricThreshold": "tma_fetch_latency > 0.1 & tma_frontend_bound > 0.15",
307*7e74ece3SIan Rogers        "MetricgroupNoGroup": "TopdownL2",
308*7e74ece3SIan Rogers        "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",
309*7e74ece3SIan Rogers        "ScaleUnit": "100%"
310*7e74ece3SIan Rogers    },
311*7e74ece3SIan Rogers    {
312*7e74ece3SIan Rogers        "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",
313*7e74ece3SIan Rogers        "MetricExpr": "tma_heavy_operations - tma_microcode_sequencer",
314*7e74ece3SIan Rogers        "MetricGroup": "TopdownL3;tma_L3_group;tma_heavy_operations_group;tma_issueD0",
315*7e74ece3SIan Rogers        "MetricName": "tma_few_uops_instructions",
316*7e74ece3SIan Rogers        "MetricThreshold": "tma_few_uops_instructions > 0.05 & tma_heavy_operations > 0.1",
317*7e74ece3SIan Rogers        "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",
318*7e74ece3SIan Rogers        "ScaleUnit": "100%"
319*7e74ece3SIan Rogers    },
320*7e74ece3SIan Rogers    {
321*7e74ece3SIan Rogers        "BriefDescription": "This metric represents overall arithmetic floating-point (FP) operations fraction the CPU has executed (retired)",
322*7e74ece3SIan Rogers        "MetricConstraint": "NO_GROUP_EVENTS",
323*7e74ece3SIan Rogers        "MetricExpr": "tma_x87_use + tma_fp_scalar + tma_fp_vector",
324*7e74ece3SIan Rogers        "MetricGroup": "HPC;TopdownL3;tma_L3_group;tma_light_operations_group",
325*7e74ece3SIan Rogers        "MetricName": "tma_fp_arith",
326*7e74ece3SIan Rogers        "MetricThreshold": "tma_fp_arith > 0.2 & tma_light_operations > 0.6",
327*7e74ece3SIan Rogers        "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.",
328*7e74ece3SIan Rogers        "ScaleUnit": "100%"
329*7e74ece3SIan Rogers    },
330*7e74ece3SIan Rogers    {
331*7e74ece3SIan Rogers        "BriefDescription": "This metric approximates arithmetic floating-point (FP) scalar uops fraction the CPU has retired",
332*7e74ece3SIan Rogers        "MetricExpr": "cpu@FP_ARITH_INST_RETIRED.SCALAR_SINGLE\\,umask\\=0x03@ / (tma_retiring * tma_info_thread_slots)",
333*7e74ece3SIan Rogers        "MetricGroup": "Compute;Flops;TopdownL4;tma_L4_group;tma_fp_arith_group;tma_issue2P",
334*7e74ece3SIan Rogers        "MetricName": "tma_fp_scalar",
335*7e74ece3SIan Rogers        "MetricThreshold": "tma_fp_scalar > 0.1 & (tma_fp_arith > 0.2 & tma_light_operations > 0.6)",
336*7e74ece3SIan Rogers        "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",
337*7e74ece3SIan Rogers        "ScaleUnit": "100%"
338*7e74ece3SIan Rogers    },
339*7e74ece3SIan Rogers    {
340*7e74ece3SIan Rogers        "BriefDescription": "This metric approximates arithmetic floating-point (FP) vector uops fraction the CPU has retired aggregated across all vector widths",
341*7e74ece3SIan Rogers        "MetricExpr": "cpu@FP_ARITH_INST_RETIRED.128B_PACKED_DOUBLE\\,umask\\=0xfc@ / (tma_retiring * tma_info_thread_slots)",
342*7e74ece3SIan Rogers        "MetricGroup": "Compute;Flops;TopdownL4;tma_L4_group;tma_fp_arith_group;tma_issue2P",
343*7e74ece3SIan Rogers        "MetricName": "tma_fp_vector",
344*7e74ece3SIan Rogers        "MetricThreshold": "tma_fp_vector > 0.1 & (tma_fp_arith > 0.2 & tma_light_operations > 0.6)",
345*7e74ece3SIan Rogers        "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",
346*7e74ece3SIan Rogers        "ScaleUnit": "100%"
347*7e74ece3SIan Rogers    },
348*7e74ece3SIan Rogers    {
349*7e74ece3SIan Rogers        "BriefDescription": "This metric approximates arithmetic FP vector uops fraction the CPU has retired for 128-bit wide vectors",
350*7e74ece3SIan Rogers        "MetricExpr": "(FP_ARITH_INST_RETIRED.128B_PACKED_DOUBLE + FP_ARITH_INST_RETIRED.128B_PACKED_SINGLE) / (tma_retiring * tma_info_thread_slots)",
351*7e74ece3SIan Rogers        "MetricGroup": "Compute;Flops;TopdownL5;tma_L5_group;tma_fp_vector_group;tma_issue2P",
352*7e74ece3SIan Rogers        "MetricName": "tma_fp_vector_128b",
353*7e74ece3SIan Rogers        "MetricThreshold": "tma_fp_vector_128b > 0.1 & (tma_fp_vector > 0.1 & (tma_fp_arith > 0.2 & tma_light_operations > 0.6))",
354*7e74ece3SIan Rogers        "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",
355*7e74ece3SIan Rogers        "ScaleUnit": "100%"
356*7e74ece3SIan Rogers    },
357*7e74ece3SIan Rogers    {
358*7e74ece3SIan Rogers        "BriefDescription": "This metric approximates arithmetic FP vector uops fraction the CPU has retired for 256-bit wide vectors",
359*7e74ece3SIan Rogers        "MetricExpr": "(FP_ARITH_INST_RETIRED.256B_PACKED_DOUBLE + FP_ARITH_INST_RETIRED.256B_PACKED_SINGLE) / (tma_retiring * tma_info_thread_slots)",
360*7e74ece3SIan Rogers        "MetricGroup": "Compute;Flops;TopdownL5;tma_L5_group;tma_fp_vector_group;tma_issue2P",
361*7e74ece3SIan Rogers        "MetricName": "tma_fp_vector_256b",
362*7e74ece3SIan Rogers        "MetricThreshold": "tma_fp_vector_256b > 0.1 & (tma_fp_vector > 0.1 & (tma_fp_arith > 0.2 & tma_light_operations > 0.6))",
363*7e74ece3SIan Rogers        "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",
364*7e74ece3SIan Rogers        "ScaleUnit": "100%"
365*7e74ece3SIan Rogers    },
366*7e74ece3SIan Rogers    {
367*7e74ece3SIan Rogers        "BriefDescription": "This metric approximates arithmetic FP vector uops fraction the CPU has retired for 512-bit wide vectors",
368*7e74ece3SIan Rogers        "MetricExpr": "(FP_ARITH_INST_RETIRED.512B_PACKED_DOUBLE + FP_ARITH_INST_RETIRED.512B_PACKED_SINGLE) / (tma_retiring * tma_info_thread_slots)",
369*7e74ece3SIan Rogers        "MetricGroup": "Compute;Flops;TopdownL5;tma_L5_group;tma_fp_vector_group;tma_issue2P",
370*7e74ece3SIan Rogers        "MetricName": "tma_fp_vector_512b",
371*7e74ece3SIan Rogers        "MetricThreshold": "tma_fp_vector_512b > 0.1 & (tma_fp_vector > 0.1 & (tma_fp_arith > 0.2 & tma_light_operations > 0.6))",
372*7e74ece3SIan Rogers        "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",
373*7e74ece3SIan Rogers        "ScaleUnit": "100%"
374*7e74ece3SIan Rogers    },
375*7e74ece3SIan Rogers    {
376*7e74ece3SIan Rogers        "BriefDescription": "This category represents fraction of slots where the processor's Frontend undersupplies its Backend",
377*7e74ece3SIan Rogers        "DefaultMetricgroupName": "TopdownL1",
378*7e74ece3SIan Rogers        "MetricExpr": "topdown\\-fe\\-bound / (topdown\\-fe\\-bound + topdown\\-bad\\-spec + topdown\\-retiring + topdown\\-be\\-bound) - INT_MISC.UOP_DROPPING / tma_info_thread_slots",
379*7e74ece3SIan Rogers        "MetricGroup": "Default;PGO;TmaL1;TopdownL1;tma_L1_group",
380*7e74ece3SIan Rogers        "MetricName": "tma_frontend_bound",
381*7e74ece3SIan Rogers        "MetricThreshold": "tma_frontend_bound > 0.15",
382*7e74ece3SIan Rogers        "MetricgroupNoGroup": "TopdownL1;Default",
383*7e74ece3SIan Rogers        "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",
384*7e74ece3SIan Rogers        "ScaleUnit": "100%"
385*7e74ece3SIan Rogers    },
386*7e74ece3SIan Rogers    {
387*7e74ece3SIan Rogers        "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",
388*7e74ece3SIan Rogers        "MetricExpr": "tma_microcode_sequencer + tma_retiring * (UOPS_DECODED.DEC0 - cpu@UOPS_DECODED.DEC0\\,cmask\\=1@) / IDQ.MITE_UOPS",
389*7e74ece3SIan Rogers        "MetricGroup": "Retire;TmaL2;TopdownL2;tma_L2_group;tma_retiring_group",
390*7e74ece3SIan Rogers        "MetricName": "tma_heavy_operations",
391*7e74ece3SIan Rogers        "MetricThreshold": "tma_heavy_operations > 0.1",
392*7e74ece3SIan Rogers        "MetricgroupNoGroup": "TopdownL2",
393*7e74ece3SIan Rogers        "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.",
394*7e74ece3SIan Rogers        "ScaleUnit": "100%"
395*7e74ece3SIan Rogers    },
396*7e74ece3SIan Rogers    {
397*7e74ece3SIan Rogers        "BriefDescription": "This metric represents fraction of cycles the CPU was stalled due to instruction cache misses",
398*7e74ece3SIan Rogers        "MetricExpr": "ICACHE_16B.IFDATA_STALL / tma_info_thread_clks",
399*7e74ece3SIan Rogers        "MetricGroup": "BigFoot;FetchLat;IcMiss;TopdownL3;tma_L3_group;tma_fetch_latency_group",
400*7e74ece3SIan Rogers        "MetricName": "tma_icache_misses",
401*7e74ece3SIan Rogers        "MetricThreshold": "tma_icache_misses > 0.05 & (tma_fetch_latency > 0.1 & tma_frontend_bound > 0.15)",
402*7e74ece3SIan Rogers        "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",
403*7e74ece3SIan Rogers        "ScaleUnit": "100%"
404*7e74ece3SIan Rogers    },
405*7e74ece3SIan Rogers    {
406*7e74ece3SIan Rogers        "BriefDescription": "Branch Misprediction Cost: Fraction of TMA slots wasted per non-speculative branch misprediction (retired JEClear)",
407*7e74ece3SIan Rogers        "MetricConstraint": "NO_GROUP_EVENTS",
408*7e74ece3SIan Rogers        "MetricExpr": "(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_info_thread_slots / BR_MISP_RETIRED.ALL_BRANCHES",
409*7e74ece3SIan Rogers        "MetricGroup": "Bad;BrMispredicts;tma_issueBM",
410*7e74ece3SIan Rogers        "MetricName": "tma_info_bad_spec_branch_misprediction_cost",
411*7e74ece3SIan Rogers        "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"
412*7e74ece3SIan Rogers    },
413*7e74ece3SIan Rogers    {
414*7e74ece3SIan Rogers        "BriefDescription": "Instructions per retired mispredicts for conditional non-taken branches (lower number means higher occurrence rate).",
415*7e74ece3SIan Rogers        "MetricExpr": "INST_RETIRED.ANY / BR_MISP_RETIRED.COND_NTAKEN",
416*7e74ece3SIan Rogers        "MetricGroup": "Bad;BrMispredicts",
417*7e74ece3SIan Rogers        "MetricName": "tma_info_bad_spec_ipmisp_cond_ntaken",
418*7e74ece3SIan Rogers        "MetricThreshold": "tma_info_bad_spec_ipmisp_cond_ntaken < 200"
419*7e74ece3SIan Rogers    },
420*7e74ece3SIan Rogers    {
421*7e74ece3SIan Rogers        "BriefDescription": "Instructions per retired mispredicts for conditional taken branches (lower number means higher occurrence rate).",
422*7e74ece3SIan Rogers        "MetricExpr": "INST_RETIRED.ANY / BR_MISP_RETIRED.COND_TAKEN",
423*7e74ece3SIan Rogers        "MetricGroup": "Bad;BrMispredicts",
424*7e74ece3SIan Rogers        "MetricName": "tma_info_bad_spec_ipmisp_cond_taken",
425*7e74ece3SIan Rogers        "MetricThreshold": "tma_info_bad_spec_ipmisp_cond_taken < 200"
426*7e74ece3SIan Rogers    },
427*7e74ece3SIan Rogers    {
428*7e74ece3SIan Rogers        "BriefDescription": "Instructions per retired mispredicts for indirect CALL or JMP branches (lower number means higher occurrence rate).",
429*7e74ece3SIan Rogers        "MetricExpr": "INST_RETIRED.ANY / BR_MISP_RETIRED.INDIRECT",
430*7e74ece3SIan Rogers        "MetricGroup": "Bad;BrMispredicts",
431*7e74ece3SIan Rogers        "MetricName": "tma_info_bad_spec_ipmisp_indirect",
432*7e74ece3SIan Rogers        "MetricThreshold": "tma_info_bad_spec_ipmisp_indirect < 1e3"
433*7e74ece3SIan Rogers    },
434*7e74ece3SIan Rogers    {
435*7e74ece3SIan Rogers        "BriefDescription": "Instructions per retired mispredicts for return branches (lower number means higher occurrence rate).",
436*7e74ece3SIan Rogers        "MetricExpr": "INST_RETIRED.ANY / BR_MISP_RETIRED.RET",
437*7e74ece3SIan Rogers        "MetricGroup": "Bad;BrMispredicts",
438*7e74ece3SIan Rogers        "MetricName": "tma_info_bad_spec_ipmisp_ret",
439*7e74ece3SIan Rogers        "MetricThreshold": "tma_info_bad_spec_ipmisp_ret < 500"
440*7e74ece3SIan Rogers    },
441*7e74ece3SIan Rogers    {
442*7e74ece3SIan Rogers        "BriefDescription": "Number of Instructions per non-speculative Branch Misprediction (JEClear) (lower number means higher occurrence rate)",
443*7e74ece3SIan Rogers        "MetricExpr": "INST_RETIRED.ANY / BR_MISP_RETIRED.ALL_BRANCHES",
444*7e74ece3SIan Rogers        "MetricGroup": "Bad;BadSpec;BrMispredicts",
445*7e74ece3SIan Rogers        "MetricName": "tma_info_bad_spec_ipmispredict",
446*7e74ece3SIan Rogers        "MetricThreshold": "tma_info_bad_spec_ipmispredict < 200"
447*7e74ece3SIan Rogers    },
448*7e74ece3SIan Rogers    {
449*7e74ece3SIan Rogers        "BriefDescription": "Probability of Core Bound bottleneck hidden by SMT-profiling artifacts",
450*7e74ece3SIan Rogers        "MetricConstraint": "NO_GROUP_EVENTS",
451*7e74ece3SIan Rogers        "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)",
452*7e74ece3SIan Rogers        "MetricGroup": "Cor;SMT",
453*7e74ece3SIan Rogers        "MetricName": "tma_info_botlnk_l0_core_bound_likely",
454*7e74ece3SIan Rogers        "MetricThreshold": "tma_info_botlnk_l0_core_bound_likely > 0.5"
455*7e74ece3SIan Rogers    },
456*7e74ece3SIan Rogers    {
457*7e74ece3SIan Rogers        "BriefDescription": "Total pipeline cost of DSB (uop cache) misses - subset of the Instruction_Fetch_BW Bottleneck",
458*7e74ece3SIan Rogers        "MetricConstraint": "NO_GROUP_EVENTS",
459*7e74ece3SIan Rogers        "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_lsd + tma_mite))",
460*7e74ece3SIan Rogers        "MetricGroup": "DSBmiss;Fed;tma_issueFB",
461*7e74ece3SIan Rogers        "MetricName": "tma_info_botlnk_l2_dsb_misses",
462*7e74ece3SIan Rogers        "MetricThreshold": "tma_info_botlnk_l2_dsb_misses > 10",
463*7e74ece3SIan Rogers        "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_frontend_dsb_coverage, tma_info_inst_mix_iptb, tma_lcp"
464*7e74ece3SIan Rogers    },
465*7e74ece3SIan Rogers    {
466*7e74ece3SIan Rogers        "BriefDescription": "Total pipeline cost of Instruction Cache misses - subset of the Big_Code Bottleneck",
467*7e74ece3SIan Rogers        "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))",
468*7e74ece3SIan Rogers        "MetricGroup": "Fed;FetchLat;IcMiss;tma_issueFL",
469*7e74ece3SIan Rogers        "MetricName": "tma_info_botlnk_l2_ic_misses",
470*7e74ece3SIan Rogers        "MetricThreshold": "tma_info_botlnk_l2_ic_misses > 5",
471*7e74ece3SIan Rogers        "PublicDescription": "Total pipeline cost of Instruction Cache misses - subset of the Big_Code Bottleneck. Related metrics: "
472*7e74ece3SIan Rogers    },
473*7e74ece3SIan Rogers    {
474*7e74ece3SIan Rogers        "BriefDescription": "Total pipeline cost of instruction fetch related bottlenecks by large code footprint programs (i-side cache; TLB and BTB misses)",
475*7e74ece3SIan Rogers        "MetricConstraint": "NO_GROUP_EVENTS",
476*7e74ece3SIan Rogers        "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)",
477*7e74ece3SIan Rogers        "MetricGroup": "BigFoot;Fed;Frontend;IcMiss;MemoryTLB;tma_issueBC",
478*7e74ece3SIan Rogers        "MetricName": "tma_info_bottleneck_big_code",
479*7e74ece3SIan Rogers        "MetricThreshold": "tma_info_bottleneck_big_code > 20",
480*7e74ece3SIan Rogers        "PublicDescription": "Total pipeline cost of instruction fetch related bottlenecks by large code footprint programs (i-side cache; TLB and BTB misses). Related metrics: tma_info_bottleneck_branching_overhead"
481*7e74ece3SIan Rogers    },
482*7e74ece3SIan Rogers    {
483*7e74ece3SIan Rogers        "BriefDescription": "Total pipeline cost of branch related instructions (used for program control-flow including function calls)",
484*7e74ece3SIan Rogers        "MetricExpr": "100 * ((BR_INST_RETIRED.COND + 3 * BR_INST_RETIRED.NEAR_CALL + (BR_INST_RETIRED.NEAR_TAKEN - BR_INST_RETIRED.COND_TAKEN - 2 * BR_INST_RETIRED.NEAR_CALL)) / tma_info_thread_slots)",
485*7e74ece3SIan Rogers        "MetricGroup": "Ret;tma_issueBC",
486*7e74ece3SIan Rogers        "MetricName": "tma_info_bottleneck_branching_overhead",
487*7e74ece3SIan Rogers        "MetricThreshold": "tma_info_bottleneck_branching_overhead > 10",
488*7e74ece3SIan Rogers        "PublicDescription": "Total pipeline cost of branch related instructions (used for program control-flow including function calls). Related metrics: tma_info_bottleneck_big_code"
489*7e74ece3SIan Rogers    },
490*7e74ece3SIan Rogers    {
491*7e74ece3SIan Rogers        "BriefDescription": "Total pipeline cost of instruction fetch bandwidth related bottlenecks",
492*7e74ece3SIan Rogers        "MetricConstraint": "NO_GROUP_EVENTS",
493*7e74ece3SIan Rogers        "MetricExpr": "100 * (tma_frontend_bound - tma_fetch_latency * tma_mispredicts_resteers / (tma_branch_resteers + tma_dsb_switches + tma_icache_misses + tma_itlb_misses + tma_lcp + tma_ms_switches)) - tma_info_bottleneck_big_code",
494*7e74ece3SIan Rogers        "MetricGroup": "Fed;FetchBW;Frontend",
495*7e74ece3SIan Rogers        "MetricName": "tma_info_bottleneck_instruction_fetch_bw",
496*7e74ece3SIan Rogers        "MetricThreshold": "tma_info_bottleneck_instruction_fetch_bw > 20"
497*7e74ece3SIan Rogers    },
498*7e74ece3SIan Rogers    {
499*7e74ece3SIan Rogers        "BriefDescription": "Total pipeline cost of (external) Memory Bandwidth related bottlenecks",
500*7e74ece3SIan Rogers        "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_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_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_lock_latency + tma_split_loads + tma_store_fwd_blk))",
501*7e74ece3SIan Rogers        "MetricGroup": "Mem;MemoryBW;Offcore;tma_issueBW",
502*7e74ece3SIan Rogers        "MetricName": "tma_info_bottleneck_memory_bandwidth",
503*7e74ece3SIan Rogers        "MetricThreshold": "tma_info_bottleneck_memory_bandwidth > 20",
504*7e74ece3SIan Rogers        "PublicDescription": "Total pipeline cost of (external) Memory Bandwidth related bottlenecks. Related metrics: tma_fb_full, tma_info_system_dram_bw_use, tma_mem_bandwidth, tma_sq_full"
505*7e74ece3SIan Rogers    },
506*7e74ece3SIan Rogers    {
507*7e74ece3SIan Rogers        "BriefDescription": "Total pipeline cost of Memory Address Translation related bottlenecks (data-side TLBs)",
508*7e74ece3SIan Rogers        "MetricConstraint": "NO_GROUP_EVENTS",
509*7e74ece3SIan Rogers        "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_lock_latency + tma_split_loads + tma_store_fwd_blk)) + 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 + tma_streaming_stores)))",
510*7e74ece3SIan Rogers        "MetricGroup": "Mem;MemoryTLB;Offcore;tma_issueTLB",
511*7e74ece3SIan Rogers        "MetricName": "tma_info_bottleneck_memory_data_tlbs",
512*7e74ece3SIan Rogers        "MetricThreshold": "tma_info_bottleneck_memory_data_tlbs > 20",
513*7e74ece3SIan Rogers        "PublicDescription": "Total pipeline cost of Memory Address Translation related bottlenecks (data-side TLBs). Related metrics: tma_dtlb_load, tma_dtlb_store"
514*7e74ece3SIan Rogers    },
515*7e74ece3SIan Rogers    {
516*7e74ece3SIan Rogers        "BriefDescription": "Total pipeline cost of Memory Latency related bottlenecks (external memory and off-core caches)",
517*7e74ece3SIan Rogers        "MetricConstraint": "NO_GROUP_EVENTS",
518*7e74ece3SIan Rogers        "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_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_l2_bound / (tma_dram_bound + tma_l1_bound + tma_l2_bound + tma_l3_bound + tma_store_bound))",
519*7e74ece3SIan Rogers        "MetricGroup": "Mem;MemoryLat;Offcore;tma_issueLat",
520*7e74ece3SIan Rogers        "MetricName": "tma_info_bottleneck_memory_latency",
521*7e74ece3SIan Rogers        "MetricThreshold": "tma_info_bottleneck_memory_latency > 20",
522*7e74ece3SIan Rogers        "PublicDescription": "Total pipeline cost of Memory Latency related bottlenecks (external memory and off-core caches). Related metrics: tma_l3_hit_latency, tma_mem_latency"
523*7e74ece3SIan Rogers    },
524*7e74ece3SIan Rogers    {
525*7e74ece3SIan Rogers        "BriefDescription": "Total pipeline cost of Branch Misprediction related bottlenecks",
526*7e74ece3SIan Rogers        "MetricConstraint": "NO_GROUP_EVENTS",
527*7e74ece3SIan Rogers        "MetricExpr": "100 * (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))",
528*7e74ece3SIan Rogers        "MetricGroup": "Bad;BadSpec;BrMispredicts;tma_issueBM",
529*7e74ece3SIan Rogers        "MetricName": "tma_info_bottleneck_mispredictions",
530*7e74ece3SIan Rogers        "MetricThreshold": "tma_info_bottleneck_mispredictions > 20",
531*7e74ece3SIan Rogers        "PublicDescription": "Total pipeline cost of Branch Misprediction related bottlenecks. Related metrics: tma_branch_mispredicts, tma_info_bad_spec_branch_misprediction_cost, tma_mispredicts_resteers"
532*7e74ece3SIan Rogers    },
533*7e74ece3SIan Rogers    {
534*7e74ece3SIan Rogers        "BriefDescription": "Fraction of branches that are CALL or RET",
535*7e74ece3SIan Rogers        "MetricExpr": "(BR_INST_RETIRED.NEAR_CALL + BR_INST_RETIRED.NEAR_RETURN) / BR_INST_RETIRED.ALL_BRANCHES",
536*7e74ece3SIan Rogers        "MetricGroup": "Bad;Branches",
537*7e74ece3SIan Rogers        "MetricName": "tma_info_branches_callret"
538*7e74ece3SIan Rogers    },
539*7e74ece3SIan Rogers    {
540*7e74ece3SIan Rogers        "BriefDescription": "Fraction of branches that are non-taken conditionals",
541*7e74ece3SIan Rogers        "MetricExpr": "BR_INST_RETIRED.COND_NTAKEN / BR_INST_RETIRED.ALL_BRANCHES",
542*7e74ece3SIan Rogers        "MetricGroup": "Bad;Branches;CodeGen;PGO",
543*7e74ece3SIan Rogers        "MetricName": "tma_info_branches_cond_nt"
544*7e74ece3SIan Rogers    },
545*7e74ece3SIan Rogers    {
546*7e74ece3SIan Rogers        "BriefDescription": "Fraction of branches that are taken conditionals",
547*7e74ece3SIan Rogers        "MetricExpr": "BR_INST_RETIRED.COND_TAKEN / BR_INST_RETIRED.ALL_BRANCHES",
548*7e74ece3SIan Rogers        "MetricGroup": "Bad;Branches;CodeGen;PGO",
549*7e74ece3SIan Rogers        "MetricName": "tma_info_branches_cond_tk"
550*7e74ece3SIan Rogers    },
551*7e74ece3SIan Rogers    {
552*7e74ece3SIan Rogers        "BriefDescription": "Fraction of branches that are unconditional (direct or indirect) jumps",
553*7e74ece3SIan Rogers        "MetricExpr": "(BR_INST_RETIRED.NEAR_TAKEN - BR_INST_RETIRED.COND_TAKEN - 2 * BR_INST_RETIRED.NEAR_CALL) / BR_INST_RETIRED.ALL_BRANCHES",
554*7e74ece3SIan Rogers        "MetricGroup": "Bad;Branches",
555*7e74ece3SIan Rogers        "MetricName": "tma_info_branches_jump"
556*7e74ece3SIan Rogers    },
557*7e74ece3SIan Rogers    {
558*7e74ece3SIan Rogers        "BriefDescription": "Fraction of branches of other types (not individually covered by other metrics in Info.Branches group)",
559*7e74ece3SIan Rogers        "MetricExpr": "1 - (tma_info_branches_cond_nt + tma_info_branches_cond_tk + tma_info_branches_callret + tma_info_branches_jump)",
560*7e74ece3SIan Rogers        "MetricGroup": "Bad;Branches",
561*7e74ece3SIan Rogers        "MetricName": "tma_info_branches_other_branches"
562*7e74ece3SIan Rogers    },
563*7e74ece3SIan Rogers    {
564*7e74ece3SIan Rogers        "BriefDescription": "Core actual clocks when any Logical Processor is active on the Physical Core",
565*7e74ece3SIan Rogers        "MetricExpr": "CPU_CLK_UNHALTED.DISTRIBUTED",
566*7e74ece3SIan Rogers        "MetricGroup": "SMT",
567*7e74ece3SIan Rogers        "MetricName": "tma_info_core_core_clks"
568*7e74ece3SIan Rogers    },
569*7e74ece3SIan Rogers    {
570*7e74ece3SIan Rogers        "BriefDescription": "Instructions Per Cycle across hyper-threads (per physical core)",
571*7e74ece3SIan Rogers        "MetricExpr": "INST_RETIRED.ANY / tma_info_core_core_clks",
572*7e74ece3SIan Rogers        "MetricGroup": "Ret;SMT;TmaL1;tma_L1_group",
573*7e74ece3SIan Rogers        "MetricName": "tma_info_core_coreipc"
574*7e74ece3SIan Rogers    },
575*7e74ece3SIan Rogers    {
576*7e74ece3SIan Rogers        "BriefDescription": "Floating Point Operations Per Cycle",
577*7e74ece3SIan Rogers        "MetricConstraint": "NO_GROUP_EVENTS",
578*7e74ece3SIan Rogers        "MetricExpr": "(cpu@FP_ARITH_INST_RETIRED.SCALAR_SINGLE\\,umask\\=0x03@ + 2 * FP_ARITH_INST_RETIRED.128B_PACKED_DOUBLE + 4 * cpu@FP_ARITH_INST_RETIRED.128B_PACKED_SINGLE\\,umask\\=0x18@ + 8 * cpu@FP_ARITH_INST_RETIRED.256B_PACKED_SINGLE\\,umask\\=0x60@ + 16 * FP_ARITH_INST_RETIRED.512B_PACKED_SINGLE) / tma_info_core_core_clks",
579*7e74ece3SIan Rogers        "MetricGroup": "Flops;Ret",
580*7e74ece3SIan Rogers        "MetricName": "tma_info_core_flopc"
581*7e74ece3SIan Rogers    },
582*7e74ece3SIan Rogers    {
583*7e74ece3SIan Rogers        "BriefDescription": "Actual per-core usage of the Floating Point non-X87 execution units (regardless of precision or vector-width)",
584*7e74ece3SIan Rogers        "MetricConstraint": "NO_GROUP_EVENTS",
585*7e74ece3SIan Rogers        "MetricExpr": "(cpu@FP_ARITH_INST_RETIRED.SCALAR_SINGLE\\,umask\\=0x03@ + cpu@FP_ARITH_INST_RETIRED.128B_PACKED_DOUBLE\\,umask\\=0xfc@) / (2 * tma_info_core_core_clks)",
586*7e74ece3SIan Rogers        "MetricGroup": "Cor;Flops;HPC",
587*7e74ece3SIan Rogers        "MetricName": "tma_info_core_fp_arith_utilization",
588*7e74ece3SIan Rogers        "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)."
589*7e74ece3SIan Rogers    },
590*7e74ece3SIan Rogers    {
591*7e74ece3SIan Rogers        "BriefDescription": "Instruction-Level-Parallelism (average number of uops executed when there is execution) per-core",
592*7e74ece3SIan Rogers        "MetricExpr": "UOPS_EXECUTED.THREAD / (UOPS_EXECUTED.CORE_CYCLES_GE_1 / 2 if #SMT_on else UOPS_EXECUTED.CORE_CYCLES_GE_1)",
593*7e74ece3SIan Rogers        "MetricGroup": "Backend;Cor;Pipeline;PortsUtil",
594*7e74ece3SIan Rogers        "MetricName": "tma_info_core_ilp"
595*7e74ece3SIan Rogers    },
596*7e74ece3SIan Rogers    {
597*7e74ece3SIan Rogers        "BriefDescription": "Fraction of Uops delivered by the DSB (aka Decoded ICache; or Uop Cache)",
598*7e74ece3SIan Rogers        "MetricExpr": "IDQ.DSB_UOPS / UOPS_ISSUED.ANY",
599*7e74ece3SIan Rogers        "MetricGroup": "DSB;Fed;FetchBW;tma_issueFB",
600*7e74ece3SIan Rogers        "MetricName": "tma_info_frontend_dsb_coverage",
601*7e74ece3SIan Rogers        "MetricThreshold": "tma_info_frontend_dsb_coverage < 0.7 & tma_info_thread_ipc / 5 > 0.35",
602*7e74ece3SIan Rogers        "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_misses, tma_info_inst_mix_iptb, tma_lcp"
603*7e74ece3SIan Rogers    },
604*7e74ece3SIan Rogers    {
605*7e74ece3SIan Rogers        "BriefDescription": "Average number of cycles of a switch from the DSB fetch-unit to MITE fetch unit - see DSB_Switches tree node for details.",
606*7e74ece3SIan Rogers        "MetricExpr": "DSB2MITE_SWITCHES.PENALTY_CYCLES / cpu@DSB2MITE_SWITCHES.PENALTY_CYCLES\\,cmask\\=1\\,edge@",
607*7e74ece3SIan Rogers        "MetricGroup": "DSBmiss",
608*7e74ece3SIan Rogers        "MetricName": "tma_info_frontend_dsb_switch_cost"
609*7e74ece3SIan Rogers    },
610*7e74ece3SIan Rogers    {
611*7e74ece3SIan Rogers        "BriefDescription": "Average number of Uops issued by front-end when it issued something",
612*7e74ece3SIan Rogers        "MetricExpr": "UOPS_ISSUED.ANY / cpu@UOPS_ISSUED.ANY\\,cmask\\=1@",
613*7e74ece3SIan Rogers        "MetricGroup": "Fed;FetchBW",
614*7e74ece3SIan Rogers        "MetricName": "tma_info_frontend_fetch_upc"
615*7e74ece3SIan Rogers    },
616*7e74ece3SIan Rogers    {
617*7e74ece3SIan Rogers        "BriefDescription": "Average Latency for L1 instruction cache misses",
618*7e74ece3SIan Rogers        "MetricExpr": "ICACHE_16B.IFDATA_STALL / cpu@ICACHE_16B.IFDATA_STALL\\,cmask\\=1\\,edge@",
619*7e74ece3SIan Rogers        "MetricGroup": "Fed;FetchLat;IcMiss",
620*7e74ece3SIan Rogers        "MetricName": "tma_info_frontend_icache_miss_latency"
621*7e74ece3SIan Rogers    },
622*7e74ece3SIan Rogers    {
623*7e74ece3SIan Rogers        "BriefDescription": "Instructions per non-speculative DSB miss (lower number means higher occurrence rate)",
624*7e74ece3SIan Rogers        "MetricExpr": "INST_RETIRED.ANY / FRONTEND_RETIRED.ANY_DSB_MISS",
625*7e74ece3SIan Rogers        "MetricGroup": "DSBmiss;Fed",
626*7e74ece3SIan Rogers        "MetricName": "tma_info_frontend_ipdsb_miss_ret",
627*7e74ece3SIan Rogers        "MetricThreshold": "tma_info_frontend_ipdsb_miss_ret < 50"
628*7e74ece3SIan Rogers    },
629*7e74ece3SIan Rogers    {
630*7e74ece3SIan Rogers        "BriefDescription": "Instructions per speculative Unknown Branch Misprediction (BAClear) (lower number means higher occurrence rate)",
631*7e74ece3SIan Rogers        "MetricExpr": "tma_info_inst_mix_instructions / BACLEARS.ANY",
632*7e74ece3SIan Rogers        "MetricGroup": "Fed",
633*7e74ece3SIan Rogers        "MetricName": "tma_info_frontend_ipunknown_branch"
634*7e74ece3SIan Rogers    },
635*7e74ece3SIan Rogers    {
636*7e74ece3SIan Rogers        "BriefDescription": "L2 cache true code cacheline misses per kilo instruction",
637*7e74ece3SIan Rogers        "MetricExpr": "1e3 * FRONTEND_RETIRED.L2_MISS / INST_RETIRED.ANY",
638*7e74ece3SIan Rogers        "MetricGroup": "IcMiss",
639*7e74ece3SIan Rogers        "MetricName": "tma_info_frontend_l2mpki_code"
640*7e74ece3SIan Rogers    },
641*7e74ece3SIan Rogers    {
642*7e74ece3SIan Rogers        "BriefDescription": "L2 cache speculative code cacheline misses per kilo instruction",
643*7e74ece3SIan Rogers        "MetricExpr": "1e3 * L2_RQSTS.CODE_RD_MISS / INST_RETIRED.ANY",
644*7e74ece3SIan Rogers        "MetricGroup": "IcMiss",
645*7e74ece3SIan Rogers        "MetricName": "tma_info_frontend_l2mpki_code_all"
646*7e74ece3SIan Rogers    },
647*7e74ece3SIan Rogers    {
648*7e74ece3SIan Rogers        "BriefDescription": "Fraction of Uops delivered by the LSD (Loop Stream Detector; aka Loop Cache)",
649*7e74ece3SIan Rogers        "MetricExpr": "LSD.UOPS / UOPS_ISSUED.ANY",
650*7e74ece3SIan Rogers        "MetricGroup": "Fed;LSD",
651*7e74ece3SIan Rogers        "MetricName": "tma_info_frontend_lsd_coverage"
652*7e74ece3SIan Rogers    },
653*7e74ece3SIan Rogers    {
654*7e74ece3SIan Rogers        "BriefDescription": "Branch instructions per taken branch.",
655*7e74ece3SIan Rogers        "MetricExpr": "BR_INST_RETIRED.ALL_BRANCHES / BR_INST_RETIRED.NEAR_TAKEN",
656*7e74ece3SIan Rogers        "MetricGroup": "Branches;Fed;PGO",
657*7e74ece3SIan Rogers        "MetricName": "tma_info_inst_mix_bptkbranch"
658*7e74ece3SIan Rogers    },
659*7e74ece3SIan Rogers    {
660*7e74ece3SIan Rogers        "BriefDescription": "Total number of retired Instructions",
661*7e74ece3SIan Rogers        "MetricExpr": "INST_RETIRED.ANY",
662*7e74ece3SIan Rogers        "MetricGroup": "Summary;TmaL1;tma_L1_group",
663*7e74ece3SIan Rogers        "MetricName": "tma_info_inst_mix_instructions",
664*7e74ece3SIan Rogers        "PublicDescription": "Total number of retired Instructions. Sample with: INST_RETIRED.PREC_DIST"
665*7e74ece3SIan Rogers    },
666*7e74ece3SIan Rogers    {
667*7e74ece3SIan Rogers        "BriefDescription": "Instructions per FP Arithmetic instruction (lower number means higher occurrence rate)",
668*7e74ece3SIan Rogers        "MetricExpr": "INST_RETIRED.ANY / (cpu@FP_ARITH_INST_RETIRED.SCALAR_SINGLE\\,umask\\=0x03@ + cpu@FP_ARITH_INST_RETIRED.128B_PACKED_DOUBLE\\,umask\\=0xfc@)",
669*7e74ece3SIan Rogers        "MetricGroup": "Flops;InsType",
670*7e74ece3SIan Rogers        "MetricName": "tma_info_inst_mix_iparith",
671*7e74ece3SIan Rogers        "MetricThreshold": "tma_info_inst_mix_iparith < 10",
672*7e74ece3SIan Rogers        "PublicDescription": "Instructions per FP Arithmetic instruction (lower number means higher occurrence rate). May undercount due to FMA double counting. Approximated prior to BDW."
673*7e74ece3SIan Rogers    },
674*7e74ece3SIan Rogers    {
675*7e74ece3SIan Rogers        "BriefDescription": "Instructions per FP Arithmetic AVX/SSE 128-bit instruction (lower number means higher occurrence rate)",
676*7e74ece3SIan Rogers        "MetricExpr": "INST_RETIRED.ANY / (FP_ARITH_INST_RETIRED.128B_PACKED_DOUBLE + FP_ARITH_INST_RETIRED.128B_PACKED_SINGLE)",
677*7e74ece3SIan Rogers        "MetricGroup": "Flops;FpVector;InsType",
678*7e74ece3SIan Rogers        "MetricName": "tma_info_inst_mix_iparith_avx128",
679*7e74ece3SIan Rogers        "MetricThreshold": "tma_info_inst_mix_iparith_avx128 < 10",
680*7e74ece3SIan Rogers        "PublicDescription": "Instructions per FP Arithmetic AVX/SSE 128-bit instruction (lower number means higher occurrence rate). May undercount due to FMA double counting."
681*7e74ece3SIan Rogers    },
682*7e74ece3SIan Rogers    {
683*7e74ece3SIan Rogers        "BriefDescription": "Instructions per FP Arithmetic AVX* 256-bit instruction (lower number means higher occurrence rate)",
684*7e74ece3SIan Rogers        "MetricExpr": "INST_RETIRED.ANY / (FP_ARITH_INST_RETIRED.256B_PACKED_DOUBLE + FP_ARITH_INST_RETIRED.256B_PACKED_SINGLE)",
685*7e74ece3SIan Rogers        "MetricGroup": "Flops;FpVector;InsType",
686*7e74ece3SIan Rogers        "MetricName": "tma_info_inst_mix_iparith_avx256",
687*7e74ece3SIan Rogers        "MetricThreshold": "tma_info_inst_mix_iparith_avx256 < 10",
688*7e74ece3SIan Rogers        "PublicDescription": "Instructions per FP Arithmetic AVX* 256-bit instruction (lower number means higher occurrence rate). May undercount due to FMA double counting."
689*7e74ece3SIan Rogers    },
690*7e74ece3SIan Rogers    {
691*7e74ece3SIan Rogers        "BriefDescription": "Instructions per FP Arithmetic AVX 512-bit instruction (lower number means higher occurrence rate)",
692*7e74ece3SIan Rogers        "MetricExpr": "INST_RETIRED.ANY / (FP_ARITH_INST_RETIRED.512B_PACKED_DOUBLE + FP_ARITH_INST_RETIRED.512B_PACKED_SINGLE)",
693*7e74ece3SIan Rogers        "MetricGroup": "Flops;FpVector;InsType",
694*7e74ece3SIan Rogers        "MetricName": "tma_info_inst_mix_iparith_avx512",
695*7e74ece3SIan Rogers        "MetricThreshold": "tma_info_inst_mix_iparith_avx512 < 10",
696*7e74ece3SIan Rogers        "PublicDescription": "Instructions per FP Arithmetic AVX 512-bit instruction (lower number means higher occurrence rate). May undercount due to FMA double counting."
697*7e74ece3SIan Rogers    },
698*7e74ece3SIan Rogers    {
699*7e74ece3SIan Rogers        "BriefDescription": "Instructions per FP Arithmetic Scalar Double-Precision instruction (lower number means higher occurrence rate)",
700*7e74ece3SIan Rogers        "MetricExpr": "INST_RETIRED.ANY / FP_ARITH_INST_RETIRED.SCALAR_DOUBLE",
701*7e74ece3SIan Rogers        "MetricGroup": "Flops;FpScalar;InsType",
702*7e74ece3SIan Rogers        "MetricName": "tma_info_inst_mix_iparith_scalar_dp",
703*7e74ece3SIan Rogers        "MetricThreshold": "tma_info_inst_mix_iparith_scalar_dp < 10",
704*7e74ece3SIan Rogers        "PublicDescription": "Instructions per FP Arithmetic Scalar Double-Precision instruction (lower number means higher occurrence rate). May undercount due to FMA double counting."
705*7e74ece3SIan Rogers    },
706*7e74ece3SIan Rogers    {
707*7e74ece3SIan Rogers        "BriefDescription": "Instructions per FP Arithmetic Scalar Single-Precision instruction (lower number means higher occurrence rate)",
708*7e74ece3SIan Rogers        "MetricExpr": "INST_RETIRED.ANY / FP_ARITH_INST_RETIRED.SCALAR_SINGLE",
709*7e74ece3SIan Rogers        "MetricGroup": "Flops;FpScalar;InsType",
710*7e74ece3SIan Rogers        "MetricName": "tma_info_inst_mix_iparith_scalar_sp",
711*7e74ece3SIan Rogers        "MetricThreshold": "tma_info_inst_mix_iparith_scalar_sp < 10",
712*7e74ece3SIan Rogers        "PublicDescription": "Instructions per FP Arithmetic Scalar Single-Precision instruction (lower number means higher occurrence rate). May undercount due to FMA double counting."
713*7e74ece3SIan Rogers    },
714*7e74ece3SIan Rogers    {
715*7e74ece3SIan Rogers        "BriefDescription": "Instructions per Branch (lower number means higher occurrence rate)",
716*7e74ece3SIan Rogers        "MetricExpr": "INST_RETIRED.ANY / BR_INST_RETIRED.ALL_BRANCHES",
717*7e74ece3SIan Rogers        "MetricGroup": "Branches;Fed;InsType",
718*7e74ece3SIan Rogers        "MetricName": "tma_info_inst_mix_ipbranch",
719*7e74ece3SIan Rogers        "MetricThreshold": "tma_info_inst_mix_ipbranch < 8"
720*7e74ece3SIan Rogers    },
721*7e74ece3SIan Rogers    {
722*7e74ece3SIan Rogers        "BriefDescription": "Instructions per (near) call (lower number means higher occurrence rate)",
723*7e74ece3SIan Rogers        "MetricExpr": "INST_RETIRED.ANY / BR_INST_RETIRED.NEAR_CALL",
724*7e74ece3SIan Rogers        "MetricGroup": "Branches;Fed;PGO",
725*7e74ece3SIan Rogers        "MetricName": "tma_info_inst_mix_ipcall",
726*7e74ece3SIan Rogers        "MetricThreshold": "tma_info_inst_mix_ipcall < 200"
727*7e74ece3SIan Rogers    },
728*7e74ece3SIan Rogers    {
729*7e74ece3SIan Rogers        "BriefDescription": "Instructions per Floating Point (FP) Operation (lower number means higher occurrence rate)",
730*7e74ece3SIan Rogers        "MetricExpr": "INST_RETIRED.ANY / (cpu@FP_ARITH_INST_RETIRED.SCALAR_SINGLE\\,umask\\=0x03@ + 2 * FP_ARITH_INST_RETIRED.128B_PACKED_DOUBLE + 4 * cpu@FP_ARITH_INST_RETIRED.128B_PACKED_SINGLE\\,umask\\=0x18@ + 8 * cpu@FP_ARITH_INST_RETIRED.256B_PACKED_SINGLE\\,umask\\=0x60@ + 16 * FP_ARITH_INST_RETIRED.512B_PACKED_SINGLE)",
731*7e74ece3SIan Rogers        "MetricGroup": "Flops;InsType",
732*7e74ece3SIan Rogers        "MetricName": "tma_info_inst_mix_ipflop",
733*7e74ece3SIan Rogers        "MetricThreshold": "tma_info_inst_mix_ipflop < 10"
734*7e74ece3SIan Rogers    },
735*7e74ece3SIan Rogers    {
736*7e74ece3SIan Rogers        "BriefDescription": "Instructions per Load (lower number means higher occurrence rate)",
737*7e74ece3SIan Rogers        "MetricExpr": "INST_RETIRED.ANY / MEM_INST_RETIRED.ALL_LOADS",
738*7e74ece3SIan Rogers        "MetricGroup": "InsType",
739*7e74ece3SIan Rogers        "MetricName": "tma_info_inst_mix_ipload",
740*7e74ece3SIan Rogers        "MetricThreshold": "tma_info_inst_mix_ipload < 3"
741*7e74ece3SIan Rogers    },
742*7e74ece3SIan Rogers    {
743*7e74ece3SIan Rogers        "BriefDescription": "Instructions per Store (lower number means higher occurrence rate)",
744*7e74ece3SIan Rogers        "MetricExpr": "INST_RETIRED.ANY / MEM_INST_RETIRED.ALL_STORES",
745*7e74ece3SIan Rogers        "MetricGroup": "InsType",
746*7e74ece3SIan Rogers        "MetricName": "tma_info_inst_mix_ipstore",
747*7e74ece3SIan Rogers        "MetricThreshold": "tma_info_inst_mix_ipstore < 8"
748*7e74ece3SIan Rogers    },
749*7e74ece3SIan Rogers    {
750*7e74ece3SIan Rogers        "BriefDescription": "Instructions per Software prefetch instruction (of any type: NTA/T0/T1/T2/Prefetch) (lower number means higher occurrence rate)",
751*7e74ece3SIan Rogers        "MetricExpr": "INST_RETIRED.ANY / cpu@SW_PREFETCH_ACCESS.T0\\,umask\\=0xF@",
752*7e74ece3SIan Rogers        "MetricGroup": "Prefetches",
753*7e74ece3SIan Rogers        "MetricName": "tma_info_inst_mix_ipswpf",
754*7e74ece3SIan Rogers        "MetricThreshold": "tma_info_inst_mix_ipswpf < 100"
755*7e74ece3SIan Rogers    },
756*7e74ece3SIan Rogers    {
757*7e74ece3SIan Rogers        "BriefDescription": "Instruction per taken branch",
758*7e74ece3SIan Rogers        "MetricExpr": "INST_RETIRED.ANY / BR_INST_RETIRED.NEAR_TAKEN",
759*7e74ece3SIan Rogers        "MetricGroup": "Branches;Fed;FetchBW;Frontend;PGO;tma_issueFB",
760*7e74ece3SIan Rogers        "MetricName": "tma_info_inst_mix_iptb",
761*7e74ece3SIan Rogers        "MetricThreshold": "tma_info_inst_mix_iptb < 11",
762*7e74ece3SIan Rogers        "PublicDescription": "Instruction per taken branch. Related metrics: tma_dsb_switches, tma_fetch_bandwidth, tma_info_botlnk_l2_dsb_misses, tma_info_frontend_dsb_coverage, tma_lcp"
763*7e74ece3SIan Rogers    },
764*7e74ece3SIan Rogers    {
765*7e74ece3SIan Rogers        "BriefDescription": "Average per-core data fill bandwidth to the L1 data cache [GB / sec]",
766*7e74ece3SIan Rogers        "MetricExpr": "64 * L1D.REPLACEMENT / 1e9 / duration_time",
767*7e74ece3SIan Rogers        "MetricGroup": "Mem;MemoryBW",
768*7e74ece3SIan Rogers        "MetricName": "tma_info_memory_core_l1d_cache_fill_bw"
769*7e74ece3SIan Rogers    },
770*7e74ece3SIan Rogers    {
771*7e74ece3SIan Rogers        "BriefDescription": "Average per-core data fill bandwidth to the L2 cache [GB / sec]",
772*7e74ece3SIan Rogers        "MetricExpr": "64 * L2_LINES_IN.ALL / 1e9 / duration_time",
773*7e74ece3SIan Rogers        "MetricGroup": "Mem;MemoryBW",
774*7e74ece3SIan Rogers        "MetricName": "tma_info_memory_core_l2_cache_fill_bw"
775*7e74ece3SIan Rogers    },
776*7e74ece3SIan Rogers    {
777*7e74ece3SIan Rogers        "BriefDescription": "Average per-core data access bandwidth to the L3 cache [GB / sec]",
778*7e74ece3SIan Rogers        "MetricExpr": "64 * OFFCORE_REQUESTS.ALL_REQUESTS / 1e9 / duration_time",
779*7e74ece3SIan Rogers        "MetricGroup": "Mem;MemoryBW;Offcore",
780*7e74ece3SIan Rogers        "MetricName": "tma_info_memory_core_l3_cache_access_bw"
781*7e74ece3SIan Rogers    },
782*7e74ece3SIan Rogers    {
783*7e74ece3SIan Rogers        "BriefDescription": "Average per-core data fill bandwidth to the L3 cache [GB / sec]",
784*7e74ece3SIan Rogers        "MetricExpr": "64 * LONGEST_LAT_CACHE.MISS / 1e9 / duration_time",
785*7e74ece3SIan Rogers        "MetricGroup": "Mem;MemoryBW",
786*7e74ece3SIan Rogers        "MetricName": "tma_info_memory_core_l3_cache_fill_bw"
787*7e74ece3SIan Rogers    },
788*7e74ece3SIan Rogers    {
789*7e74ece3SIan Rogers        "BriefDescription": "Fill Buffer (FB) hits per kilo instructions for retired demand loads (L1D misses that merge into ongoing miss-handling entries)",
790*7e74ece3SIan Rogers        "MetricExpr": "1e3 * MEM_LOAD_RETIRED.FB_HIT / INST_RETIRED.ANY",
791*7e74ece3SIan Rogers        "MetricGroup": "CacheMisses;Mem",
792*7e74ece3SIan Rogers        "MetricName": "tma_info_memory_fb_hpki"
793*7e74ece3SIan Rogers    },
794*7e74ece3SIan Rogers    {
795*7e74ece3SIan Rogers        "BriefDescription": "L1 cache true misses per kilo instruction for retired demand loads",
796*7e74ece3SIan Rogers        "MetricExpr": "1e3 * MEM_LOAD_RETIRED.L1_MISS / INST_RETIRED.ANY",
797*7e74ece3SIan Rogers        "MetricGroup": "CacheMisses;Mem",
798*7e74ece3SIan Rogers        "MetricName": "tma_info_memory_l1mpki"
799*7e74ece3SIan Rogers    },
800*7e74ece3SIan Rogers    {
801*7e74ece3SIan Rogers        "BriefDescription": "L1 cache true misses per kilo instruction for all demand loads (including speculative)",
802*7e74ece3SIan Rogers        "MetricExpr": "1e3 * L2_RQSTS.ALL_DEMAND_DATA_RD / INST_RETIRED.ANY",
803*7e74ece3SIan Rogers        "MetricGroup": "CacheMisses;Mem",
804*7e74ece3SIan Rogers        "MetricName": "tma_info_memory_l1mpki_load"
805*7e74ece3SIan Rogers    },
806*7e74ece3SIan Rogers    {
807*7e74ece3SIan Rogers        "BriefDescription": "L2 cache hits per kilo instruction for all request types (including speculative)",
808*7e74ece3SIan Rogers        "MetricExpr": "1e3 * (L2_RQSTS.REFERENCES - L2_RQSTS.MISS) / INST_RETIRED.ANY",
809*7e74ece3SIan Rogers        "MetricGroup": "CacheMisses;Mem",
810*7e74ece3SIan Rogers        "MetricName": "tma_info_memory_l2hpki_all"
811*7e74ece3SIan Rogers    },
812*7e74ece3SIan Rogers    {
813*7e74ece3SIan Rogers        "BriefDescription": "L2 cache hits per kilo instruction for all demand loads  (including speculative)",
814*7e74ece3SIan Rogers        "MetricExpr": "1e3 * L2_RQSTS.DEMAND_DATA_RD_HIT / INST_RETIRED.ANY",
815*7e74ece3SIan Rogers        "MetricGroup": "CacheMisses;Mem",
816*7e74ece3SIan Rogers        "MetricName": "tma_info_memory_l2hpki_load"
817*7e74ece3SIan Rogers    },
818*7e74ece3SIan Rogers    {
819*7e74ece3SIan Rogers        "BriefDescription": "L2 cache true misses per kilo instruction for retired demand loads",
820*7e74ece3SIan Rogers        "MetricExpr": "1e3 * MEM_LOAD_RETIRED.L2_MISS / INST_RETIRED.ANY",
821*7e74ece3SIan Rogers        "MetricGroup": "Backend;CacheMisses;Mem",
822*7e74ece3SIan Rogers        "MetricName": "tma_info_memory_l2mpki"
823*7e74ece3SIan Rogers    },
824*7e74ece3SIan Rogers    {
825*7e74ece3SIan Rogers        "BriefDescription": "L2 cache ([RKL+] true) misses per kilo instruction for all request types (including speculative)",
826*7e74ece3SIan Rogers        "MetricExpr": "1e3 * L2_RQSTS.MISS / INST_RETIRED.ANY",
827*7e74ece3SIan Rogers        "MetricGroup": "CacheMisses;Mem;Offcore",
828*7e74ece3SIan Rogers        "MetricName": "tma_info_memory_l2mpki_all"
829*7e74ece3SIan Rogers    },
830*7e74ece3SIan Rogers    {
831*7e74ece3SIan Rogers        "BriefDescription": "L2 cache ([RKL+] true) misses per kilo instruction for all demand loads  (including speculative)",
832*7e74ece3SIan Rogers        "MetricExpr": "1e3 * L2_RQSTS.DEMAND_DATA_RD_MISS / INST_RETIRED.ANY",
833*7e74ece3SIan Rogers        "MetricGroup": "CacheMisses;Mem",
834*7e74ece3SIan Rogers        "MetricName": "tma_info_memory_l2mpki_load"
835*7e74ece3SIan Rogers    },
836*7e74ece3SIan Rogers    {
837*7e74ece3SIan Rogers        "BriefDescription": "L3 cache true misses per kilo instruction for retired demand loads",
838*7e74ece3SIan Rogers        "MetricExpr": "1e3 * MEM_LOAD_RETIRED.L3_MISS / INST_RETIRED.ANY",
839*7e74ece3SIan Rogers        "MetricGroup": "CacheMisses;Mem",
840*7e74ece3SIan Rogers        "MetricName": "tma_info_memory_l3mpki"
841*7e74ece3SIan Rogers    },
842*7e74ece3SIan Rogers    {
843*7e74ece3SIan Rogers        "BriefDescription": "Actual Average Latency for L1 data-cache miss demand load operations (in core cycles)",
844*7e74ece3SIan Rogers        "MetricExpr": "L1D_PEND_MISS.PENDING / (MEM_LOAD_RETIRED.L1_MISS + MEM_LOAD_RETIRED.FB_HIT)",
845*7e74ece3SIan Rogers        "MetricGroup": "Mem;MemoryBound;MemoryLat",
846*7e74ece3SIan Rogers        "MetricName": "tma_info_memory_load_miss_real_latency"
847*7e74ece3SIan Rogers    },
848*7e74ece3SIan Rogers    {
849*7e74ece3SIan Rogers        "BriefDescription": "Memory-Level-Parallelism (average number of L1 miss demand load when there is at least one such miss",
850*7e74ece3SIan Rogers        "MetricExpr": "L1D_PEND_MISS.PENDING / L1D_PEND_MISS.PENDING_CYCLES",
851*7e74ece3SIan Rogers        "MetricGroup": "Mem;MemoryBW;MemoryBound",
852*7e74ece3SIan Rogers        "MetricName": "tma_info_memory_mlp",
853*7e74ece3SIan Rogers        "PublicDescription": "Memory-Level-Parallelism (average number of L1 miss demand load when there is at least one such miss. Per-Logical Processor)"
854*7e74ece3SIan Rogers    },
855*7e74ece3SIan Rogers    {
856*7e74ece3SIan Rogers        "BriefDescription": "Average Parallel L2 cache miss data reads",
857*7e74ece3SIan Rogers        "MetricExpr": "OFFCORE_REQUESTS_OUTSTANDING.ALL_DATA_RD / OFFCORE_REQUESTS_OUTSTANDING.CYCLES_WITH_DATA_RD",
858*7e74ece3SIan Rogers        "MetricGroup": "Memory_BW;Offcore",
859*7e74ece3SIan Rogers        "MetricName": "tma_info_memory_oro_data_l2_mlp"
860*7e74ece3SIan Rogers    },
861*7e74ece3SIan Rogers    {
862*7e74ece3SIan Rogers        "BriefDescription": "Average Latency for L2 cache miss demand Loads",
863*7e74ece3SIan Rogers        "MetricExpr": "OFFCORE_REQUESTS_OUTSTANDING.DEMAND_DATA_RD / OFFCORE_REQUESTS.DEMAND_DATA_RD",
864*7e74ece3SIan Rogers        "MetricGroup": "Memory_Lat;Offcore",
865*7e74ece3SIan Rogers        "MetricName": "tma_info_memory_oro_load_l2_miss_latency"
866*7e74ece3SIan Rogers    },
867*7e74ece3SIan Rogers    {
868*7e74ece3SIan Rogers        "BriefDescription": "Average Parallel L2 cache miss demand Loads",
869*7e74ece3SIan Rogers        "MetricExpr": "OFFCORE_REQUESTS_OUTSTANDING.DEMAND_DATA_RD / cpu@OFFCORE_REQUESTS_OUTSTANDING.DEMAND_DATA_RD\\,cmask\\=1@",
870*7e74ece3SIan Rogers        "MetricGroup": "Memory_BW;Offcore",
871*7e74ece3SIan Rogers        "MetricName": "tma_info_memory_oro_load_l2_mlp"
872*7e74ece3SIan Rogers    },
873*7e74ece3SIan Rogers    {
874*7e74ece3SIan Rogers        "BriefDescription": "Average Latency for L3 cache miss demand Loads",
875*7e74ece3SIan Rogers        "MetricExpr": "cpu@OFFCORE_REQUESTS_OUTSTANDING.DEMAND_DATA_RD\\,umask\\=0x10@ / OFFCORE_REQUESTS.L3_MISS_DEMAND_DATA_RD",
876*7e74ece3SIan Rogers        "MetricGroup": "Memory_Lat;Offcore",
877*7e74ece3SIan Rogers        "MetricName": "tma_info_memory_oro_load_l3_miss_latency"
878*7e74ece3SIan Rogers    },
879*7e74ece3SIan Rogers    {
880*7e74ece3SIan Rogers        "BriefDescription": "Average per-thread data fill bandwidth to the L1 data cache [GB / sec]",
881*7e74ece3SIan Rogers        "MetricExpr": "tma_info_memory_core_l1d_cache_fill_bw",
882*7e74ece3SIan Rogers        "MetricGroup": "Mem;MemoryBW",
883*7e74ece3SIan Rogers        "MetricName": "tma_info_memory_thread_l1d_cache_fill_bw_1t"
884*7e74ece3SIan Rogers    },
885*7e74ece3SIan Rogers    {
886*7e74ece3SIan Rogers        "BriefDescription": "Average per-thread data fill bandwidth to the L2 cache [GB / sec]",
887*7e74ece3SIan Rogers        "MetricExpr": "tma_info_memory_core_l2_cache_fill_bw",
888*7e74ece3SIan Rogers        "MetricGroup": "Mem;MemoryBW",
889*7e74ece3SIan Rogers        "MetricName": "tma_info_memory_thread_l2_cache_fill_bw_1t"
890*7e74ece3SIan Rogers    },
891*7e74ece3SIan Rogers    {
892*7e74ece3SIan Rogers        "BriefDescription": "Average per-thread data access bandwidth to the L3 cache [GB / sec]",
893*7e74ece3SIan Rogers        "MetricExpr": "tma_info_memory_core_l3_cache_access_bw",
894*7e74ece3SIan Rogers        "MetricGroup": "Mem;MemoryBW;Offcore",
895*7e74ece3SIan Rogers        "MetricName": "tma_info_memory_thread_l3_cache_access_bw_1t"
896*7e74ece3SIan Rogers    },
897*7e74ece3SIan Rogers    {
898*7e74ece3SIan Rogers        "BriefDescription": "Average per-thread data fill bandwidth to the L3 cache [GB / sec]",
899*7e74ece3SIan Rogers        "MetricExpr": "tma_info_memory_core_l3_cache_fill_bw",
900*7e74ece3SIan Rogers        "MetricGroup": "Mem;MemoryBW",
901*7e74ece3SIan Rogers        "MetricName": "tma_info_memory_thread_l3_cache_fill_bw_1t"
902*7e74ece3SIan Rogers    },
903*7e74ece3SIan Rogers    {
904*7e74ece3SIan Rogers        "BriefDescription": "STLB (2nd level TLB) code speculative misses per kilo instruction (misses of any page-size that complete the page walk)",
905*7e74ece3SIan Rogers        "MetricExpr": "1e3 * ITLB_MISSES.WALK_COMPLETED / INST_RETIRED.ANY",
906*7e74ece3SIan Rogers        "MetricGroup": "Fed;MemoryTLB",
907*7e74ece3SIan Rogers        "MetricName": "tma_info_memory_tlb_code_stlb_mpki"
908*7e74ece3SIan Rogers    },
909*7e74ece3SIan Rogers    {
910*7e74ece3SIan Rogers        "BriefDescription": "STLB (2nd level TLB) data load speculative misses per kilo instruction (misses of any page-size that complete the page walk)",
911*7e74ece3SIan Rogers        "MetricExpr": "1e3 * DTLB_LOAD_MISSES.WALK_COMPLETED / INST_RETIRED.ANY",
912*7e74ece3SIan Rogers        "MetricGroup": "Mem;MemoryTLB",
913*7e74ece3SIan Rogers        "MetricName": "tma_info_memory_tlb_load_stlb_mpki"
914*7e74ece3SIan Rogers    },
915*7e74ece3SIan Rogers    {
916*7e74ece3SIan Rogers        "BriefDescription": "Utilization of the core's Page Walker(s) serving STLB misses triggered by instruction/Load/Store accesses",
917*7e74ece3SIan Rogers        "MetricExpr": "(ITLB_MISSES.WALK_PENDING + DTLB_LOAD_MISSES.WALK_PENDING + DTLB_STORE_MISSES.WALK_PENDING) / (2 * tma_info_core_core_clks)",
918*7e74ece3SIan Rogers        "MetricGroup": "Mem;MemoryTLB",
919*7e74ece3SIan Rogers        "MetricName": "tma_info_memory_tlb_page_walks_utilization",
920*7e74ece3SIan Rogers        "MetricThreshold": "tma_info_memory_tlb_page_walks_utilization > 0.5"
921*7e74ece3SIan Rogers    },
922*7e74ece3SIan Rogers    {
923*7e74ece3SIan Rogers        "BriefDescription": "STLB (2nd level TLB) data store speculative misses per kilo instruction (misses of any page-size that complete the page walk)",
924*7e74ece3SIan Rogers        "MetricExpr": "1e3 * DTLB_STORE_MISSES.WALK_COMPLETED / INST_RETIRED.ANY",
925*7e74ece3SIan Rogers        "MetricGroup": "Mem;MemoryTLB",
926*7e74ece3SIan Rogers        "MetricName": "tma_info_memory_tlb_store_stlb_mpki"
927*7e74ece3SIan Rogers    },
928*7e74ece3SIan Rogers    {
929*7e74ece3SIan Rogers        "BriefDescription": "Instruction-Level-Parallelism (average number of uops executed when there is execution) per-thread",
930*7e74ece3SIan Rogers        "MetricExpr": "UOPS_EXECUTED.THREAD / cpu@UOPS_EXECUTED.THREAD\\,cmask\\=1@",
931*7e74ece3SIan Rogers        "MetricGroup": "Cor;Pipeline;PortsUtil;SMT",
932*7e74ece3SIan Rogers        "MetricName": "tma_info_pipeline_execute"
933*7e74ece3SIan Rogers    },
934*7e74ece3SIan Rogers    {
935*7e74ece3SIan Rogers        "BriefDescription": "Average number of Uops retired in cycles where at least one uop has retired.",
936*7e74ece3SIan Rogers        "MetricConstraint": "NO_GROUP_EVENTS",
937*7e74ece3SIan Rogers        "MetricExpr": "tma_retiring * tma_info_thread_slots / cpu@UOPS_RETIRED.SLOTS\\,cmask\\=1@",
938*7e74ece3SIan Rogers        "MetricGroup": "Pipeline;Ret",
939*7e74ece3SIan Rogers        "MetricName": "tma_info_pipeline_retire"
940*7e74ece3SIan Rogers    },
941*7e74ece3SIan Rogers    {
942*7e74ece3SIan Rogers        "BriefDescription": "Measured Average Frequency for unhalted processors [GHz]",
943*7e74ece3SIan Rogers        "MetricExpr": "tma_info_system_turbo_utilization * TSC / 1e9 / duration_time",
944*7e74ece3SIan Rogers        "MetricGroup": "Power;Summary",
945*7e74ece3SIan Rogers        "MetricName": "tma_info_system_average_frequency"
946*7e74ece3SIan Rogers    },
947*7e74ece3SIan Rogers    {
948*7e74ece3SIan Rogers        "BriefDescription": "Average CPU Utilization",
949*7e74ece3SIan Rogers        "MetricExpr": "CPU_CLK_UNHALTED.REF_TSC / TSC",
950*7e74ece3SIan Rogers        "MetricGroup": "HPC;Summary",
951*7e74ece3SIan Rogers        "MetricName": "tma_info_system_cpu_utilization"
952*7e74ece3SIan Rogers    },
953*7e74ece3SIan Rogers    {
954*7e74ece3SIan Rogers        "BriefDescription": "Average external Memory Bandwidth Use for reads and writes [GB / sec]",
955*7e74ece3SIan Rogers        "MetricExpr": "64 * (UNC_ARB_TRK_REQUESTS.ALL + UNC_ARB_COH_TRK_REQUESTS.ALL) / 1e6 / duration_time / 1e3",
956*7e74ece3SIan Rogers        "MetricGroup": "HPC;Mem;MemoryBW;SoC;tma_issueBW",
957*7e74ece3SIan Rogers        "MetricName": "tma_info_system_dram_bw_use",
958*7e74ece3SIan Rogers        "PublicDescription": "Average external Memory Bandwidth Use for reads and writes [GB / sec]. Related metrics: tma_fb_full, tma_info_bottleneck_memory_bandwidth, tma_mem_bandwidth, tma_sq_full"
959*7e74ece3SIan Rogers    },
960*7e74ece3SIan Rogers    {
961*7e74ece3SIan Rogers        "BriefDescription": "Giga Floating Point Operations Per Second",
962*7e74ece3SIan Rogers        "MetricExpr": "(cpu@FP_ARITH_INST_RETIRED.SCALAR_SINGLE\\,umask\\=0x03@ + 2 * FP_ARITH_INST_RETIRED.128B_PACKED_DOUBLE + 4 * cpu@FP_ARITH_INST_RETIRED.128B_PACKED_SINGLE\\,umask\\=0x18@ + 8 * cpu@FP_ARITH_INST_RETIRED.256B_PACKED_SINGLE\\,umask\\=0x60@ + 16 * FP_ARITH_INST_RETIRED.512B_PACKED_SINGLE) / 1e9 / duration_time",
963*7e74ece3SIan Rogers        "MetricGroup": "Cor;Flops;HPC",
964*7e74ece3SIan Rogers        "MetricName": "tma_info_system_gflops",
965*7e74ece3SIan Rogers        "PublicDescription": "Giga Floating Point Operations Per Second. Aggregate across all supported options of: FP precisions, scalar and vector instructions, vector-width and AMX engine."
966*7e74ece3SIan Rogers    },
967*7e74ece3SIan Rogers    {
968*7e74ece3SIan Rogers        "BriefDescription": "Instructions per Far Branch ( Far Branches apply upon transition from application to operating system, handling interrupts, exceptions) [lower number means higher occurrence rate]",
969*7e74ece3SIan Rogers        "MetricExpr": "INST_RETIRED.ANY / BR_INST_RETIRED.FAR_BRANCH:u",
970*7e74ece3SIan Rogers        "MetricGroup": "Branches;OS",
971*7e74ece3SIan Rogers        "MetricName": "tma_info_system_ipfarbranch",
972*7e74ece3SIan Rogers        "MetricThreshold": "tma_info_system_ipfarbranch < 1e6"
973*7e74ece3SIan Rogers    },
974*7e74ece3SIan Rogers    {
975*7e74ece3SIan Rogers        "BriefDescription": "Cycles Per Instruction for the Operating System (OS) Kernel mode",
976*7e74ece3SIan Rogers        "MetricExpr": "CPU_CLK_UNHALTED.THREAD_P:k / INST_RETIRED.ANY_P:k",
977*7e74ece3SIan Rogers        "MetricGroup": "OS",
978*7e74ece3SIan Rogers        "MetricName": "tma_info_system_kernel_cpi"
979*7e74ece3SIan Rogers    },
980*7e74ece3SIan Rogers    {
981*7e74ece3SIan Rogers        "BriefDescription": "Fraction of cycles spent in the Operating System (OS) Kernel mode",
982*7e74ece3SIan Rogers        "MetricExpr": "CPU_CLK_UNHALTED.THREAD_P:k / CPU_CLK_UNHALTED.THREAD",
983*7e74ece3SIan Rogers        "MetricGroup": "OS",
984*7e74ece3SIan Rogers        "MetricName": "tma_info_system_kernel_utilization",
985*7e74ece3SIan Rogers        "MetricThreshold": "tma_info_system_kernel_utilization > 0.05"
986*7e74ece3SIan Rogers    },
987*7e74ece3SIan Rogers    {
988*7e74ece3SIan Rogers        "BriefDescription": "Average number of parallel data read requests to external memory",
989*7e74ece3SIan Rogers        "MetricExpr": "UNC_ARB_DAT_OCCUPANCY.RD / cpu@UNC_ARB_DAT_OCCUPANCY.RD\\,cmask\\=1@",
990*7e74ece3SIan Rogers        "MetricGroup": "Mem;MemoryBW;SoC",
991*7e74ece3SIan Rogers        "MetricName": "tma_info_system_mem_parallel_reads",
992*7e74ece3SIan Rogers        "PublicDescription": "Average number of parallel data read requests to external memory. Accounts for demand loads and L1/L2 prefetches"
993*7e74ece3SIan Rogers    },
994*7e74ece3SIan Rogers    {
995*7e74ece3SIan Rogers        "BriefDescription": "Average latency of data read request to external memory (in nanoseconds)",
996*7e74ece3SIan Rogers        "MetricExpr": "(UNC_ARB_TRK_OCCUPANCY.RD + UNC_ARB_DAT_OCCUPANCY.RD) / UNC_ARB_TRK_REQUESTS.RD",
997*7e74ece3SIan Rogers        "MetricGroup": "Mem;MemoryLat;SoC",
998*7e74ece3SIan Rogers        "MetricName": "tma_info_system_mem_read_latency",
999*7e74ece3SIan Rogers        "PublicDescription": "Average latency of data read request to external memory (in nanoseconds). Accounts for demand loads and L1/L2 prefetches. ([RKL+]memory-controller only)"
1000*7e74ece3SIan Rogers    },
1001*7e74ece3SIan Rogers    {
1002*7e74ece3SIan Rogers        "BriefDescription": "Average latency of all requests to external memory (in Uncore cycles)",
1003*7e74ece3SIan Rogers        "MetricExpr": "(UNC_ARB_TRK_OCCUPANCY.ALL + UNC_ARB_DAT_OCCUPANCY.RD) / UNC_ARB_TRK_REQUESTS.ALL",
1004*7e74ece3SIan Rogers        "MetricGroup": "Mem;SoC",
1005*7e74ece3SIan Rogers        "MetricName": "tma_info_system_mem_request_latency"
1006*7e74ece3SIan Rogers    },
1007*7e74ece3SIan Rogers    {
1008*7e74ece3SIan Rogers        "BriefDescription": "Fraction of Core cycles where the core was running with power-delivery for baseline license level 0",
1009*7e74ece3SIan Rogers        "MetricExpr": "CORE_POWER.LVL0_TURBO_LICENSE / tma_info_core_core_clks",
1010*7e74ece3SIan Rogers        "MetricGroup": "Power",
1011*7e74ece3SIan Rogers        "MetricName": "tma_info_system_power_license0_utilization",
1012*7e74ece3SIan Rogers        "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."
1013*7e74ece3SIan Rogers    },
1014*7e74ece3SIan Rogers    {
1015*7e74ece3SIan Rogers        "BriefDescription": "Fraction of Core cycles where the core was running with power-delivery for license level 1",
1016*7e74ece3SIan Rogers        "MetricExpr": "CORE_POWER.LVL1_TURBO_LICENSE / tma_info_core_core_clks",
1017*7e74ece3SIan Rogers        "MetricGroup": "Power",
1018*7e74ece3SIan Rogers        "MetricName": "tma_info_system_power_license1_utilization",
1019*7e74ece3SIan Rogers        "MetricThreshold": "tma_info_system_power_license1_utilization > 0.5",
1020*7e74ece3SIan Rogers        "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."
1021*7e74ece3SIan Rogers    },
1022*7e74ece3SIan Rogers    {
1023*7e74ece3SIan Rogers        "BriefDescription": "Fraction of Core cycles where the core was running with power-delivery for license level 2 (introduced in SKX)",
1024*7e74ece3SIan Rogers        "MetricExpr": "CORE_POWER.LVL2_TURBO_LICENSE / tma_info_core_core_clks",
1025*7e74ece3SIan Rogers        "MetricGroup": "Power",
1026*7e74ece3SIan Rogers        "MetricName": "tma_info_system_power_license2_utilization",
1027*7e74ece3SIan Rogers        "MetricThreshold": "tma_info_system_power_license2_utilization > 0.5",
1028*7e74ece3SIan Rogers        "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."
1029*7e74ece3SIan Rogers    },
1030*7e74ece3SIan Rogers    {
1031*7e74ece3SIan Rogers        "BriefDescription": "Fraction of cycles where both hardware Logical Processors were active",
1032*7e74ece3SIan Rogers        "MetricExpr": "(1 - CPU_CLK_UNHALTED.ONE_THREAD_ACTIVE / CPU_CLK_UNHALTED.REF_DISTRIBUTED if #SMT_on else 0)",
1033*7e74ece3SIan Rogers        "MetricGroup": "SMT",
1034*7e74ece3SIan Rogers        "MetricName": "tma_info_system_smt_2t_utilization"
1035*7e74ece3SIan Rogers    },
1036*7e74ece3SIan Rogers    {
1037*7e74ece3SIan Rogers        "BriefDescription": "Socket actual clocks when any core is active on that socket",
1038*7e74ece3SIan Rogers        "MetricExpr": "UNC_CLOCK.SOCKET",
1039*7e74ece3SIan Rogers        "MetricGroup": "SoC",
1040*7e74ece3SIan Rogers        "MetricName": "tma_info_system_socket_clks"
1041*7e74ece3SIan Rogers    },
1042*7e74ece3SIan Rogers    {
1043*7e74ece3SIan Rogers        "BriefDescription": "Average Frequency Utilization relative nominal frequency",
1044*7e74ece3SIan Rogers        "MetricExpr": "tma_info_thread_clks / CPU_CLK_UNHALTED.REF_TSC",
1045*7e74ece3SIan Rogers        "MetricGroup": "Power",
1046*7e74ece3SIan Rogers        "MetricName": "tma_info_system_turbo_utilization"
1047*7e74ece3SIan Rogers    },
1048*7e74ece3SIan Rogers    {
1049*7e74ece3SIan Rogers        "BriefDescription": "Per-Logical Processor actual clocks when the Logical Processor is active.",
1050*7e74ece3SIan Rogers        "MetricExpr": "CPU_CLK_UNHALTED.THREAD",
1051*7e74ece3SIan Rogers        "MetricGroup": "Pipeline",
1052*7e74ece3SIan Rogers        "MetricName": "tma_info_thread_clks"
1053*7e74ece3SIan Rogers    },
1054*7e74ece3SIan Rogers    {
1055*7e74ece3SIan Rogers        "BriefDescription": "Cycles Per Instruction (per Logical Processor)",
1056*7e74ece3SIan Rogers        "MetricExpr": "1 / tma_info_thread_ipc",
1057*7e74ece3SIan Rogers        "MetricGroup": "Mem;Pipeline",
1058*7e74ece3SIan Rogers        "MetricName": "tma_info_thread_cpi"
1059*7e74ece3SIan Rogers    },
1060*7e74ece3SIan Rogers    {
1061*7e74ece3SIan Rogers        "BriefDescription": "The ratio of Executed- by Issued-Uops",
1062*7e74ece3SIan Rogers        "MetricExpr": "UOPS_EXECUTED.THREAD / UOPS_ISSUED.ANY",
1063*7e74ece3SIan Rogers        "MetricGroup": "Cor;Pipeline",
1064*7e74ece3SIan Rogers        "MetricName": "tma_info_thread_execute_per_issue",
1065*7e74ece3SIan Rogers        "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."
1066*7e74ece3SIan Rogers    },
1067*7e74ece3SIan Rogers    {
1068*7e74ece3SIan Rogers        "BriefDescription": "Instructions Per Cycle (per Logical Processor)",
1069*7e74ece3SIan Rogers        "MetricExpr": "INST_RETIRED.ANY / tma_info_thread_clks",
1070*7e74ece3SIan Rogers        "MetricGroup": "Ret;Summary",
1071*7e74ece3SIan Rogers        "MetricName": "tma_info_thread_ipc"
1072*7e74ece3SIan Rogers    },
1073*7e74ece3SIan Rogers    {
1074*7e74ece3SIan Rogers        "BriefDescription": "Total issue-pipeline slots (per-Physical Core till ICL; per-Logical Processor ICL onward)",
1075*7e74ece3SIan Rogers        "MetricExpr": "TOPDOWN.SLOTS",
1076*7e74ece3SIan Rogers        "MetricGroup": "TmaL1;tma_L1_group",
1077*7e74ece3SIan Rogers        "MetricName": "tma_info_thread_slots"
1078*7e74ece3SIan Rogers    },
1079*7e74ece3SIan Rogers    {
1080*7e74ece3SIan Rogers        "BriefDescription": "Fraction of Physical Core issue-slots utilized by this Logical Processor",
1081*7e74ece3SIan Rogers        "MetricExpr": "(tma_info_thread_slots / (TOPDOWN.SLOTS / 2) if #SMT_on else 1)",
1082*7e74ece3SIan Rogers        "MetricGroup": "SMT;TmaL1;tma_L1_group",
1083*7e74ece3SIan Rogers        "MetricName": "tma_info_thread_slots_utilization"
1084*7e74ece3SIan Rogers    },
1085*7e74ece3SIan Rogers    {
1086*7e74ece3SIan Rogers        "BriefDescription": "Uops Per Instruction",
1087*7e74ece3SIan Rogers        "MetricExpr": "tma_retiring * tma_info_thread_slots / INST_RETIRED.ANY",
1088*7e74ece3SIan Rogers        "MetricGroup": "Pipeline;Ret;Retire",
1089*7e74ece3SIan Rogers        "MetricName": "tma_info_thread_uoppi",
1090*7e74ece3SIan Rogers        "MetricThreshold": "tma_info_thread_uoppi > 1.05"
1091*7e74ece3SIan Rogers    },
1092*7e74ece3SIan Rogers    {
1093*7e74ece3SIan Rogers        "BriefDescription": "Instruction per taken branch",
1094*7e74ece3SIan Rogers        "MetricExpr": "tma_retiring * tma_info_thread_slots / BR_INST_RETIRED.NEAR_TAKEN",
1095*7e74ece3SIan Rogers        "MetricGroup": "Branches;Fed;FetchBW",
1096*7e74ece3SIan Rogers        "MetricName": "tma_info_thread_uptb",
1097*7e74ece3SIan Rogers        "MetricThreshold": "tma_info_thread_uptb < 7.5"
1098*7e74ece3SIan Rogers    },
1099*7e74ece3SIan Rogers    {
1100*7e74ece3SIan Rogers        "BriefDescription": "This metric represents fraction of cycles the CPU was stalled due to Instruction TLB (ITLB) misses",
1101*7e74ece3SIan Rogers        "MetricExpr": "ICACHE_64B.IFTAG_STALL / tma_info_thread_clks",
1102*7e74ece3SIan Rogers        "MetricGroup": "BigFoot;FetchLat;MemoryTLB;TopdownL3;tma_L3_group;tma_fetch_latency_group",
1103*7e74ece3SIan Rogers        "MetricName": "tma_itlb_misses",
1104*7e74ece3SIan Rogers        "MetricThreshold": "tma_itlb_misses > 0.05 & (tma_fetch_latency > 0.1 & tma_frontend_bound > 0.15)",
1105*7e74ece3SIan Rogers        "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",
1106*7e74ece3SIan Rogers        "ScaleUnit": "100%"
1107*7e74ece3SIan Rogers    },
1108*7e74ece3SIan Rogers    {
1109*7e74ece3SIan Rogers        "BriefDescription": "This metric estimates how often the CPU was stalled without loads missing the L1 data cache",
1110*7e74ece3SIan Rogers        "MetricExpr": "max((CYCLE_ACTIVITY.STALLS_MEM_ANY - CYCLE_ACTIVITY.STALLS_L1D_MISS) / tma_info_thread_clks, 0)",
1111*7e74ece3SIan Rogers        "MetricGroup": "CacheMisses;MemoryBound;TmaL3mem;TopdownL3;tma_L3_group;tma_issueL1;tma_issueMC;tma_memory_bound_group",
1112*7e74ece3SIan Rogers        "MetricName": "tma_l1_bound",
1113*7e74ece3SIan Rogers        "MetricThreshold": "tma_l1_bound > 0.1 & (tma_memory_bound > 0.2 & tma_backend_bound > 0.2)",
1114*7e74ece3SIan Rogers        "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",
1115*7e74ece3SIan Rogers        "ScaleUnit": "100%"
1116*7e74ece3SIan Rogers    },
1117*7e74ece3SIan Rogers    {
1118*7e74ece3SIan Rogers        "BriefDescription": "This metric estimates how often the CPU was stalled due to L2 cache accesses by loads",
1119*7e74ece3SIan Rogers        "MetricConstraint": "NO_GROUP_EVENTS",
1120*7e74ece3SIan Rogers        "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) + L1D_PEND_MISS.FB_FULL_PERIODS) * ((CYCLE_ACTIVITY.STALLS_L1D_MISS - CYCLE_ACTIVITY.STALLS_L2_MISS) / tma_info_thread_clks)",
1121*7e74ece3SIan Rogers        "MetricGroup": "CacheMisses;MemoryBound;TmaL3mem;TopdownL3;tma_L3_group;tma_memory_bound_group",
1122*7e74ece3SIan Rogers        "MetricName": "tma_l2_bound",
1123*7e74ece3SIan Rogers        "MetricThreshold": "tma_l2_bound > 0.05 & (tma_memory_bound > 0.2 & tma_backend_bound > 0.2)",
1124*7e74ece3SIan Rogers        "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",
1125*7e74ece3SIan Rogers        "ScaleUnit": "100%"
1126*7e74ece3SIan Rogers    },
1127*7e74ece3SIan Rogers    {
1128*7e74ece3SIan Rogers        "BriefDescription": "This metric estimates how often the CPU was stalled due to loads accesses to L3 cache or contended with a sibling Core",
1129*7e74ece3SIan Rogers        "MetricExpr": "(CYCLE_ACTIVITY.STALLS_L2_MISS - CYCLE_ACTIVITY.STALLS_L3_MISS) / tma_info_thread_clks",
1130*7e74ece3SIan Rogers        "MetricGroup": "CacheMisses;MemoryBound;TmaL3mem;TopdownL3;tma_L3_group;tma_memory_bound_group",
1131*7e74ece3SIan Rogers        "MetricName": "tma_l3_bound",
1132*7e74ece3SIan Rogers        "MetricThreshold": "tma_l3_bound > 0.05 & (tma_memory_bound > 0.2 & tma_backend_bound > 0.2)",
1133*7e74ece3SIan Rogers        "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",
1134*7e74ece3SIan Rogers        "ScaleUnit": "100%"
1135*7e74ece3SIan Rogers    },
1136*7e74ece3SIan Rogers    {
1137*7e74ece3SIan Rogers        "BriefDescription": "This metric represents fraction of cycles with demand load accesses that hit the L3 cache under unloaded scenarios (possibly L3 latency limited)",
1138*7e74ece3SIan Rogers        "MetricExpr": "9 * tma_info_system_average_frequency * MEM_LOAD_RETIRED.L3_HIT * (1 + MEM_LOAD_RETIRED.FB_HIT / MEM_LOAD_RETIRED.L1_MISS / 2) / tma_info_thread_clks",
1139*7e74ece3SIan Rogers        "MetricGroup": "MemoryLat;TopdownL4;tma_L4_group;tma_issueLat;tma_l3_bound_group",
1140*7e74ece3SIan Rogers        "MetricName": "tma_l3_hit_latency",
1141*7e74ece3SIan Rogers        "MetricThreshold": "tma_l3_hit_latency > 0.1 & (tma_l3_bound > 0.05 & (tma_memory_bound > 0.2 & tma_backend_bound > 0.2))",
1142*7e74ece3SIan Rogers        "PublicDescription": "This metric represents 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_memory_latency, tma_mem_latency",
1143*7e74ece3SIan Rogers        "ScaleUnit": "100%"
1144*7e74ece3SIan Rogers    },
1145*7e74ece3SIan Rogers    {
1146*7e74ece3SIan Rogers        "BriefDescription": "This metric represents fraction of cycles CPU was stalled due to Length Changing Prefixes (LCPs)",
1147*7e74ece3SIan Rogers        "MetricExpr": "ILD_STALL.LCP / tma_info_thread_clks",
1148*7e74ece3SIan Rogers        "MetricGroup": "FetchLat;TopdownL3;tma_L3_group;tma_fetch_latency_group;tma_issueFB",
1149*7e74ece3SIan Rogers        "MetricName": "tma_lcp",
1150*7e74ece3SIan Rogers        "MetricThreshold": "tma_lcp > 0.05 & (tma_fetch_latency > 0.1 & tma_frontend_bound > 0.15)",
1151*7e74ece3SIan Rogers        "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_misses, tma_info_frontend_dsb_coverage, tma_info_inst_mix_iptb",
1152*7e74ece3SIan Rogers        "ScaleUnit": "100%"
1153*7e74ece3SIan Rogers    },
1154*7e74ece3SIan Rogers    {
1155*7e74ece3SIan Rogers        "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)",
1156*7e74ece3SIan Rogers        "MetricExpr": "max(0, tma_retiring - tma_heavy_operations)",
1157*7e74ece3SIan Rogers        "MetricGroup": "Retire;TmaL2;TopdownL2;tma_L2_group;tma_retiring_group",
1158*7e74ece3SIan Rogers        "MetricName": "tma_light_operations",
1159*7e74ece3SIan Rogers        "MetricThreshold": "tma_light_operations > 0.6",
1160*7e74ece3SIan Rogers        "MetricgroupNoGroup": "TopdownL2",
1161*7e74ece3SIan Rogers        "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 software 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. Sample with: INST_RETIRED.PREC_DIST",
1162*7e74ece3SIan Rogers        "ScaleUnit": "100%"
1163*7e74ece3SIan Rogers    },
1164*7e74ece3SIan Rogers    {
1165*7e74ece3SIan Rogers        "BriefDescription": "This metric represents Core fraction of cycles CPU dispatched uops on execution port for Load operations",
1166*7e74ece3SIan Rogers        "MetricExpr": "UOPS_DISPATCHED.PORT_2_3 / (2 * tma_info_core_core_clks)",
1167*7e74ece3SIan Rogers        "MetricGroup": "TopdownL5;tma_L5_group;tma_ports_utilized_3m_group",
1168*7e74ece3SIan Rogers        "MetricName": "tma_load_op_utilization",
1169*7e74ece3SIan Rogers        "MetricThreshold": "tma_load_op_utilization > 0.6",
1170*7e74ece3SIan Rogers        "PublicDescription": "This metric represents Core fraction of cycles CPU dispatched uops on execution port for Load operations. Sample with: UOPS_DISPATCHED.PORT_2_3",
1171*7e74ece3SIan Rogers        "ScaleUnit": "100%"
1172*7e74ece3SIan Rogers    },
1173*7e74ece3SIan Rogers    {
1174*7e74ece3SIan Rogers        "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)",
1175*7e74ece3SIan Rogers        "MetricExpr": "tma_dtlb_load - tma_load_stlb_miss",
1176*7e74ece3SIan Rogers        "MetricGroup": "MemoryTLB;TopdownL5;tma_L5_group;tma_dtlb_load_group",
1177*7e74ece3SIan Rogers        "MetricName": "tma_load_stlb_hit",
1178*7e74ece3SIan Rogers        "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)))",
1179*7e74ece3SIan Rogers        "ScaleUnit": "100%"
1180*7e74ece3SIan Rogers    },
1181*7e74ece3SIan Rogers    {
1182*7e74ece3SIan Rogers        "BriefDescription": "This metric estimates the fraction of cycles where the Second-level TLB (STLB) was missed by load accesses, performing a hardware page walk",
1183*7e74ece3SIan Rogers        "MetricExpr": "DTLB_LOAD_MISSES.WALK_ACTIVE / tma_info_thread_clks",
1184*7e74ece3SIan Rogers        "MetricGroup": "MemoryTLB;TopdownL5;tma_L5_group;tma_dtlb_load_group",
1185*7e74ece3SIan Rogers        "MetricName": "tma_load_stlb_miss",
1186*7e74ece3SIan Rogers        "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)))",
1187*7e74ece3SIan Rogers        "ScaleUnit": "100%"
1188*7e74ece3SIan Rogers    },
1189*7e74ece3SIan Rogers    {
1190*7e74ece3SIan Rogers        "BriefDescription": "This metric represents fraction of cycles the CPU spent handling cache misses due to lock operations",
1191*7e74ece3SIan Rogers        "MetricConstraint": "NO_GROUP_EVENTS",
1192*7e74ece3SIan Rogers        "MetricExpr": "(16 * max(0, MEM_INST_RETIRED.LOCK_LOADS - L2_RQSTS.ALL_RFO) + MEM_INST_RETIRED.LOCK_LOADS / MEM_INST_RETIRED.ALL_STORES * (10 * L2_RQSTS.RFO_HIT + min(CPU_CLK_UNHALTED.THREAD, OFFCORE_REQUESTS_OUTSTANDING.CYCLES_WITH_DEMAND_RFO))) / tma_info_thread_clks",
1193*7e74ece3SIan Rogers        "MetricGroup": "Offcore;TopdownL4;tma_L4_group;tma_issueRFO;tma_l1_bound_group",
1194*7e74ece3SIan Rogers        "MetricName": "tma_lock_latency",
1195*7e74ece3SIan Rogers        "MetricThreshold": "tma_lock_latency > 0.2 & (tma_l1_bound > 0.1 & (tma_memory_bound > 0.2 & tma_backend_bound > 0.2))",
1196*7e74ece3SIan Rogers        "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_PS. Related metrics: tma_store_latency",
1197*7e74ece3SIan Rogers        "ScaleUnit": "100%"
1198*7e74ece3SIan Rogers    },
1199*7e74ece3SIan Rogers    {
1200*7e74ece3SIan Rogers        "BriefDescription": "This metric represents Core fraction of cycles in which CPU was likely limited due to LSD (Loop Stream Detector) unit",
1201*7e74ece3SIan Rogers        "MetricExpr": "(LSD.CYCLES_ACTIVE - LSD.CYCLES_OK) / tma_info_core_core_clks / 2",
1202*7e74ece3SIan Rogers        "MetricGroup": "FetchBW;LSD;TopdownL3;tma_L3_group;tma_fetch_bandwidth_group",
1203*7e74ece3SIan Rogers        "MetricName": "tma_lsd",
1204*7e74ece3SIan Rogers        "MetricThreshold": "tma_lsd > 0.15 & (tma_fetch_bandwidth > 0.1 & tma_frontend_bound > 0.15 & tma_info_thread_ipc / 5 > 0.35)",
1205*7e74ece3SIan Rogers        "PublicDescription": "This metric represents Core fraction of cycles in which CPU was likely limited due to LSD (Loop Stream Detector) unit.  LSD typically does well sustaining Uop supply. However; in some rare cases; optimal uop-delivery could not be reached for small loops whose size (in terms of number of uops) does not suit well the LSD structure.",
1206*7e74ece3SIan Rogers        "ScaleUnit": "100%"
1207*7e74ece3SIan Rogers    },
1208*7e74ece3SIan Rogers    {
1209*7e74ece3SIan Rogers        "BriefDescription": "This metric represents fraction of slots the CPU has wasted due to Machine Clears",
1210*7e74ece3SIan Rogers        "MetricExpr": "max(0, tma_bad_speculation - tma_branch_mispredicts)",
1211*7e74ece3SIan Rogers        "MetricGroup": "BadSpec;MachineClears;TmaL2;TopdownL2;tma_L2_group;tma_bad_speculation_group;tma_issueMC;tma_issueSyncxn",
1212*7e74ece3SIan Rogers        "MetricName": "tma_machine_clears",
1213*7e74ece3SIan Rogers        "MetricThreshold": "tma_machine_clears > 0.1 & tma_bad_speculation > 0.15",
1214*7e74ece3SIan Rogers        "MetricgroupNoGroup": "TopdownL2",
1215*7e74ece3SIan Rogers        "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",
1216*7e74ece3SIan Rogers        "ScaleUnit": "100%"
1217*7e74ece3SIan Rogers    },
1218*7e74ece3SIan Rogers    {
1219*7e74ece3SIan Rogers        "BriefDescription": "This metric estimates fraction of cycles where the core's performance was likely hurt due to approaching bandwidth limits of external memory (DRAM)",
1220*7e74ece3SIan Rogers        "MetricExpr": "min(CPU_CLK_UNHALTED.THREAD, cpu@OFFCORE_REQUESTS_OUTSTANDING.ALL_DATA_RD\\,cmask\\=4@) / tma_info_thread_clks",
1221*7e74ece3SIan Rogers        "MetricGroup": "MemoryBW;Offcore;TopdownL4;tma_L4_group;tma_dram_bound_group;tma_issueBW",
1222*7e74ece3SIan Rogers        "MetricName": "tma_mem_bandwidth",
1223*7e74ece3SIan Rogers        "MetricThreshold": "tma_mem_bandwidth > 0.2 & (tma_dram_bound > 0.1 & (tma_memory_bound > 0.2 & tma_backend_bound > 0.2))",
1224*7e74ece3SIan Rogers        "PublicDescription": "This metric estimates fraction of cycles where the core's performance was likely hurt due to approaching bandwidth limits of external memory (DRAM).  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_memory_bandwidth, tma_info_system_dram_bw_use, tma_sq_full",
1225*7e74ece3SIan Rogers        "ScaleUnit": "100%"
1226*7e74ece3SIan Rogers    },
1227*7e74ece3SIan Rogers    {
1228*7e74ece3SIan Rogers        "BriefDescription": "This metric estimates fraction of cycles where the performance was likely hurt due to latency from external memory (DRAM)",
1229*7e74ece3SIan Rogers        "MetricExpr": "min(CPU_CLK_UNHALTED.THREAD, OFFCORE_REQUESTS_OUTSTANDING.CYCLES_WITH_DATA_RD) / tma_info_thread_clks - tma_mem_bandwidth",
1230*7e74ece3SIan Rogers        "MetricGroup": "MemoryLat;Offcore;TopdownL4;tma_L4_group;tma_dram_bound_group;tma_issueLat",
1231*7e74ece3SIan Rogers        "MetricName": "tma_mem_latency",
1232*7e74ece3SIan Rogers        "MetricThreshold": "tma_mem_latency > 0.1 & (tma_dram_bound > 0.1 & (tma_memory_bound > 0.2 & tma_backend_bound > 0.2))",
1233*7e74ece3SIan Rogers        "PublicDescription": "This metric estimates fraction of cycles where the performance was likely hurt due to latency from external memory (DRAM).  This metric does not aggregate requests from other Logical Processors/Physical Cores/sockets (see Uncore counters for that). Related metrics: tma_info_bottleneck_memory_latency, tma_l3_hit_latency",
1234*7e74ece3SIan Rogers        "ScaleUnit": "100%"
1235*7e74ece3SIan Rogers    },
1236*7e74ece3SIan Rogers    {
1237*7e74ece3SIan Rogers        "BriefDescription": "This metric represents fraction of slots the Memory subsystem within the Backend was a bottleneck",
1238*7e74ece3SIan Rogers        "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",
1239*7e74ece3SIan Rogers        "MetricGroup": "Backend;TmaL2;TopdownL2;tma_L2_group;tma_backend_bound_group",
1240*7e74ece3SIan Rogers        "MetricName": "tma_memory_bound",
1241*7e74ece3SIan Rogers        "MetricThreshold": "tma_memory_bound > 0.2 & tma_backend_bound > 0.2",
1242*7e74ece3SIan Rogers        "MetricgroupNoGroup": "TopdownL2",
1243*7e74ece3SIan Rogers        "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).",
1244*7e74ece3SIan Rogers        "ScaleUnit": "100%"
1245*7e74ece3SIan Rogers    },
1246*7e74ece3SIan Rogers    {
1247*7e74ece3SIan Rogers        "BriefDescription": "This metric represents fraction of slots where the CPU was retiring memory operations -- uops for memory load or store accesses.",
1248*7e74ece3SIan Rogers        "MetricConstraint": "NO_GROUP_EVENTS",
1249*7e74ece3SIan Rogers        "MetricExpr": "tma_light_operations * MEM_INST_RETIRED.ANY / INST_RETIRED.ANY",
1250*7e74ece3SIan Rogers        "MetricGroup": "Pipeline;TopdownL3;tma_L3_group;tma_light_operations_group",
1251*7e74ece3SIan Rogers        "MetricName": "tma_memory_operations",
1252*7e74ece3SIan Rogers        "MetricThreshold": "tma_memory_operations > 0.1 & tma_light_operations > 0.6",
1253*7e74ece3SIan Rogers        "ScaleUnit": "100%"
1254*7e74ece3SIan Rogers    },
1255*7e74ece3SIan Rogers    {
1256*7e74ece3SIan Rogers        "BriefDescription": "This metric represents fraction of slots the CPU was retiring uops fetched by the Microcode Sequencer (MS) unit",
1257*7e74ece3SIan Rogers        "MetricExpr": "tma_retiring * tma_info_thread_slots / UOPS_ISSUED.ANY * IDQ.MS_UOPS / tma_info_thread_slots",
1258*7e74ece3SIan Rogers        "MetricGroup": "MicroSeq;TopdownL3;tma_L3_group;tma_heavy_operations_group;tma_issueMC;tma_issueMS",
1259*7e74ece3SIan Rogers        "MetricName": "tma_microcode_sequencer",
1260*7e74ece3SIan Rogers        "MetricThreshold": "tma_microcode_sequencer > 0.05 & tma_heavy_operations > 0.1",
1261*7e74ece3SIan Rogers        "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_l1_bound, tma_machine_clears, tma_ms_switches",
1262*7e74ece3SIan Rogers        "ScaleUnit": "100%"
1263*7e74ece3SIan Rogers    },
1264*7e74ece3SIan Rogers    {
1265*7e74ece3SIan Rogers        "BriefDescription": "This metric represents fraction of cycles the CPU was stalled due to Branch Resteers as a result of Branch Misprediction at execution stage",
1266*7e74ece3SIan Rogers        "MetricExpr": "BR_MISP_RETIRED.ALL_BRANCHES / (BR_MISP_RETIRED.ALL_BRANCHES + MACHINE_CLEARS.COUNT) * INT_MISC.CLEAR_RESTEER_CYCLES / tma_info_thread_clks",
1267*7e74ece3SIan Rogers        "MetricGroup": "BadSpec;BrMispredicts;TopdownL4;tma_L4_group;tma_branch_resteers_group;tma_issueBM",
1268*7e74ece3SIan Rogers        "MetricName": "tma_mispredicts_resteers",
1269*7e74ece3SIan Rogers        "MetricThreshold": "tma_mispredicts_resteers > 0.05 & (tma_branch_resteers > 0.05 & (tma_fetch_latency > 0.1 & tma_frontend_bound > 0.15))",
1270*7e74ece3SIan Rogers        "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",
1271*7e74ece3SIan Rogers        "ScaleUnit": "100%"
1272*7e74ece3SIan Rogers    },
1273*7e74ece3SIan Rogers    {
1274*7e74ece3SIan Rogers        "BriefDescription": "This metric represents Core fraction of cycles in which CPU was likely limited due to the MITE pipeline (the legacy decode pipeline)",
1275*7e74ece3SIan Rogers        "MetricExpr": "(IDQ.MITE_CYCLES_ANY - IDQ.MITE_CYCLES_OK) / tma_info_core_core_clks / 2",
1276*7e74ece3SIan Rogers        "MetricGroup": "DSBmiss;FetchBW;TopdownL3;tma_L3_group;tma_fetch_bandwidth_group",
1277*7e74ece3SIan Rogers        "MetricName": "tma_mite",
1278*7e74ece3SIan Rogers        "MetricThreshold": "tma_mite > 0.1 & (tma_fetch_bandwidth > 0.1 & tma_frontend_bound > 0.15 & tma_info_thread_ipc / 5 > 0.35)",
1279*7e74ece3SIan Rogers        "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",
1280*7e74ece3SIan Rogers        "ScaleUnit": "100%"
1281*7e74ece3SIan Rogers    },
1282*7e74ece3SIan Rogers    {
1283*7e74ece3SIan Rogers        "BriefDescription": "This metric represents fraction of cycles where (only) 4 uops were delivered by the MITE pipeline",
1284*7e74ece3SIan Rogers        "MetricExpr": "(cpu@IDQ.MITE_UOPS\\,cmask\\=4@ - cpu@IDQ.MITE_UOPS\\,cmask\\=5@) / tma_info_thread_clks",
1285*7e74ece3SIan Rogers        "MetricGroup": "DSBmiss;FetchBW;TopdownL4;tma_L4_group;tma_mite_group",
1286*7e74ece3SIan Rogers        "MetricName": "tma_mite_4wide",
1287*7e74ece3SIan Rogers        "MetricThreshold": "tma_mite_4wide > 0.05 & (tma_mite > 0.1 & (tma_fetch_bandwidth > 0.1 & tma_frontend_bound > 0.15 & tma_info_thread_ipc / 5 > 0.35))",
1288*7e74ece3SIan Rogers        "ScaleUnit": "100%"
1289*7e74ece3SIan Rogers    },
1290*7e74ece3SIan Rogers    {
1291*7e74ece3SIan Rogers        "BriefDescription": "The Mixing_Vectors metric gives the percentage of injected blend uops out of all uops issued",
1292*7e74ece3SIan Rogers        "MetricExpr": "UOPS_ISSUED.VECTOR_WIDTH_MISMATCH / UOPS_ISSUED.ANY",
1293*7e74ece3SIan Rogers        "MetricGroup": "TopdownL5;tma_L5_group;tma_issueMV;tma_ports_utilized_0_group",
1294*7e74ece3SIan Rogers        "MetricName": "tma_mixing_vectors",
1295*7e74ece3SIan Rogers        "MetricThreshold": "tma_mixing_vectors > 0.05",
1296*7e74ece3SIan Rogers        "PublicDescription": "The Mixing_Vectors metric gives the percentage of injected blend uops out of all uops issued. 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",
1297*7e74ece3SIan Rogers        "ScaleUnit": "100%"
1298*7e74ece3SIan Rogers    },
1299*7e74ece3SIan Rogers    {
1300*7e74ece3SIan Rogers        "BriefDescription": "This metric estimates the fraction of cycles when the CPU was stalled due to switches of uop delivery to the Microcode Sequencer (MS)",
1301*7e74ece3SIan Rogers        "MetricExpr": "3 * IDQ.MS_SWITCHES / tma_info_thread_clks",
1302*7e74ece3SIan Rogers        "MetricGroup": "FetchLat;MicroSeq;TopdownL3;tma_L3_group;tma_fetch_latency_group;tma_issueMC;tma_issueMS;tma_issueMV;tma_issueSO",
1303*7e74ece3SIan Rogers        "MetricName": "tma_ms_switches",
1304*7e74ece3SIan Rogers        "MetricThreshold": "tma_ms_switches > 0.05 & (tma_fetch_latency > 0.1 & tma_frontend_bound > 0.15)",
1305*7e74ece3SIan Rogers        "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_l1_bound, tma_machine_clears, tma_microcode_sequencer, tma_mixing_vectors, tma_serializing_operation",
1306*7e74ece3SIan Rogers        "ScaleUnit": "100%"
1307*7e74ece3SIan Rogers    },
1308*7e74ece3SIan Rogers    {
1309*7e74ece3SIan Rogers        "BriefDescription": "This metric represents fraction of slots where the CPU was retiring NOP (no op) instructions",
1310*7e74ece3SIan Rogers        "MetricExpr": "tma_light_operations * INST_RETIRED.NOP / (tma_retiring * tma_info_thread_slots)",
1311*7e74ece3SIan Rogers        "MetricGroup": "Pipeline;TopdownL3;tma_L3_group;tma_light_operations_group",
1312*7e74ece3SIan Rogers        "MetricName": "tma_nop_instructions",
1313*7e74ece3SIan Rogers        "MetricThreshold": "tma_nop_instructions > 0.1 & tma_light_operations > 0.6",
1314*7e74ece3SIan Rogers        "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",
1315*7e74ece3SIan Rogers        "ScaleUnit": "100%"
1316*7e74ece3SIan Rogers    },
1317*7e74ece3SIan Rogers    {
1318*7e74ece3SIan Rogers        "BriefDescription": "This metric represents the remaining light uops fraction the CPU has executed - remaining means not covered by other sibling nodes",
1319*7e74ece3SIan Rogers        "MetricConstraint": "NO_GROUP_EVENTS",
1320*7e74ece3SIan Rogers        "MetricExpr": "max(0, tma_light_operations - (tma_fp_arith + tma_memory_operations + tma_branch_instructions + tma_nop_instructions))",
1321*7e74ece3SIan Rogers        "MetricGroup": "Pipeline;TopdownL3;tma_L3_group;tma_light_operations_group",
1322*7e74ece3SIan Rogers        "MetricName": "tma_other_light_ops",
1323*7e74ece3SIan Rogers        "MetricThreshold": "tma_other_light_ops > 0.3 & tma_light_operations > 0.6",
1324*7e74ece3SIan Rogers        "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",
1325*7e74ece3SIan Rogers        "ScaleUnit": "100%"
1326*7e74ece3SIan Rogers    },
1327*7e74ece3SIan Rogers    {
1328*7e74ece3SIan Rogers        "BriefDescription": "This metric represents Core fraction of cycles CPU dispatched uops on execution port 0 ([SNB+] ALU; [HSW+] ALU and 2nd branch)",
1329*7e74ece3SIan Rogers        "MetricExpr": "UOPS_DISPATCHED.PORT_0 / tma_info_core_core_clks",
1330*7e74ece3SIan Rogers        "MetricGroup": "Compute;TopdownL6;tma_L6_group;tma_alu_op_utilization_group;tma_issue2P",
1331*7e74ece3SIan Rogers        "MetricName": "tma_port_0",
1332*7e74ece3SIan Rogers        "MetricThreshold": "tma_port_0 > 0.6",
1333*7e74ece3SIan Rogers        "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_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",
1334*7e74ece3SIan Rogers        "ScaleUnit": "100%"
1335*7e74ece3SIan Rogers    },
1336*7e74ece3SIan Rogers    {
1337*7e74ece3SIan Rogers        "BriefDescription": "This metric represents Core fraction of cycles CPU dispatched uops on execution port 1 (ALU)",
1338*7e74ece3SIan Rogers        "MetricExpr": "UOPS_DISPATCHED.PORT_1 / tma_info_core_core_clks",
1339*7e74ece3SIan Rogers        "MetricGroup": "TopdownL6;tma_L6_group;tma_alu_op_utilization_group;tma_issue2P",
1340*7e74ece3SIan Rogers        "MetricName": "tma_port_1",
1341*7e74ece3SIan Rogers        "MetricThreshold": "tma_port_1 > 0.6",
1342*7e74ece3SIan Rogers        "PublicDescription": "This metric represents Core fraction of cycles CPU dispatched uops on execution port 1 (ALU). Sample with: UOPS_DISPATCHED.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",
1343*7e74ece3SIan Rogers        "ScaleUnit": "100%"
1344*7e74ece3SIan Rogers    },
1345*7e74ece3SIan Rogers    {
1346*7e74ece3SIan Rogers        "BriefDescription": "This metric represents Core fraction of cycles CPU dispatched uops on execution port 5 ([SNB+] Branches and ALU; [HSW+] ALU)",
1347*7e74ece3SIan Rogers        "MetricExpr": "UOPS_DISPATCHED.PORT_5 / tma_info_core_core_clks",
1348*7e74ece3SIan Rogers        "MetricGroup": "TopdownL6;tma_L6_group;tma_alu_op_utilization_group;tma_issue2P",
1349*7e74ece3SIan Rogers        "MetricName": "tma_port_5",
1350*7e74ece3SIan Rogers        "MetricThreshold": "tma_port_5 > 0.6",
1351*7e74ece3SIan Rogers        "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",
1352*7e74ece3SIan Rogers        "ScaleUnit": "100%"
1353*7e74ece3SIan Rogers    },
1354*7e74ece3SIan Rogers    {
1355*7e74ece3SIan Rogers        "BriefDescription": "This metric represents Core fraction of cycles CPU dispatched uops on execution port 6 ([HSW+]Primary Branch and simple ALU)",
1356*7e74ece3SIan Rogers        "MetricExpr": "UOPS_DISPATCHED.PORT_6 / tma_info_core_core_clks",
1357*7e74ece3SIan Rogers        "MetricGroup": "TopdownL6;tma_L6_group;tma_alu_op_utilization_group;tma_issue2P",
1358*7e74ece3SIan Rogers        "MetricName": "tma_port_6",
1359*7e74ece3SIan Rogers        "MetricThreshold": "tma_port_6 > 0.6",
1360*7e74ece3SIan Rogers        "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_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",
1361*7e74ece3SIan Rogers        "ScaleUnit": "100%"
1362*7e74ece3SIan Rogers    },
1363*7e74ece3SIan Rogers    {
1364*7e74ece3SIan Rogers        "BriefDescription": "This metric estimates fraction of cycles the CPU performance was potentially limited due to Core computation issues (non divider-related)",
1365*7e74ece3SIan Rogers        "MetricExpr": "((cpu@EXE_ACTIVITY.3_PORTS_UTIL\\,umask\\=0x80@ + tma_serializing_operation * (CYCLE_ACTIVITY.STALLS_TOTAL - CYCLE_ACTIVITY.STALLS_MEM_ANY) + (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)",
1366*7e74ece3SIan Rogers        "MetricGroup": "PortsUtil;TopdownL3;tma_L3_group;tma_core_bound_group",
1367*7e74ece3SIan Rogers        "MetricName": "tma_ports_utilization",
1368*7e74ece3SIan Rogers        "MetricThreshold": "tma_ports_utilization > 0.15 & (tma_core_bound > 0.1 & tma_backend_bound > 0.2)",
1369*7e74ece3SIan Rogers        "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.",
1370*7e74ece3SIan Rogers        "ScaleUnit": "100%"
1371*7e74ece3SIan Rogers    },
1372*7e74ece3SIan Rogers    {
1373*7e74ece3SIan Rogers        "BriefDescription": "This metric represents fraction of cycles CPU executed no uops on any execution port (Logical Processor cycles since ICL, Physical Core cycles otherwise)",
1374*7e74ece3SIan Rogers        "MetricExpr": "cpu@EXE_ACTIVITY.3_PORTS_UTIL\\,umask\\=0x80@ / tma_info_thread_clks + tma_serializing_operation * (CYCLE_ACTIVITY.STALLS_TOTAL - CYCLE_ACTIVITY.STALLS_MEM_ANY) / tma_info_thread_clks",
1375*7e74ece3SIan Rogers        "MetricGroup": "PortsUtil;TopdownL4;tma_L4_group;tma_ports_utilization_group",
1376*7e74ece3SIan Rogers        "MetricName": "tma_ports_utilized_0",
1377*7e74ece3SIan Rogers        "MetricThreshold": "tma_ports_utilized_0 > 0.2 & (tma_ports_utilization > 0.15 & (tma_core_bound > 0.1 & tma_backend_bound > 0.2))",
1378*7e74ece3SIan Rogers        "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.",
1379*7e74ece3SIan Rogers        "ScaleUnit": "100%"
1380*7e74ece3SIan Rogers    },
1381*7e74ece3SIan Rogers    {
1382*7e74ece3SIan Rogers        "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)",
1383*7e74ece3SIan Rogers        "MetricExpr": "EXE_ACTIVITY.1_PORTS_UTIL / tma_info_thread_clks",
1384*7e74ece3SIan Rogers        "MetricGroup": "PortsUtil;TopdownL4;tma_L4_group;tma_issueL1;tma_ports_utilization_group",
1385*7e74ece3SIan Rogers        "MetricName": "tma_ports_utilized_1",
1386*7e74ece3SIan Rogers        "MetricThreshold": "tma_ports_utilized_1 > 0.2 & (tma_ports_utilization > 0.15 & (tma_core_bound > 0.1 & tma_backend_bound > 0.2))",
1387*7e74ece3SIan Rogers        "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. Sample with: EXE_ACTIVITY.1_PORTS_UTIL. Related metrics: tma_l1_bound",
1388*7e74ece3SIan Rogers        "ScaleUnit": "100%"
1389*7e74ece3SIan Rogers    },
1390*7e74ece3SIan Rogers    {
1391*7e74ece3SIan Rogers        "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)",
1392*7e74ece3SIan Rogers        "MetricExpr": "EXE_ACTIVITY.2_PORTS_UTIL / tma_info_thread_clks",
1393*7e74ece3SIan Rogers        "MetricGroup": "PortsUtil;TopdownL4;tma_L4_group;tma_issue2P;tma_ports_utilization_group",
1394*7e74ece3SIan Rogers        "MetricName": "tma_ports_utilized_2",
1395*7e74ece3SIan Rogers        "MetricThreshold": "tma_ports_utilized_2 > 0.15 & (tma_ports_utilization > 0.15 & (tma_core_bound > 0.1 & tma_backend_bound > 0.2))",
1396*7e74ece3SIan Rogers        "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. Sample with: EXE_ACTIVITY.2_PORTS_UTIL. 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",
1397*7e74ece3SIan Rogers        "ScaleUnit": "100%"
1398*7e74ece3SIan Rogers    },
1399*7e74ece3SIan Rogers    {
1400*7e74ece3SIan Rogers        "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)",
1401*7e74ece3SIan Rogers        "MetricExpr": "UOPS_EXECUTED.CYCLES_GE_3 / tma_info_thread_clks",
1402*7e74ece3SIan Rogers        "MetricGroup": "PortsUtil;TopdownL4;tma_L4_group;tma_ports_utilization_group",
1403*7e74ece3SIan Rogers        "MetricName": "tma_ports_utilized_3m",
1404*7e74ece3SIan Rogers        "MetricThreshold": "tma_ports_utilized_3m > 0.7 & (tma_ports_utilization > 0.15 & (tma_core_bound > 0.1 & tma_backend_bound > 0.2))",
1405*7e74ece3SIan Rogers        "PublicDescription": "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). Sample with: UOPS_EXECUTED.CYCLES_GE_3",
1406*7e74ece3SIan Rogers        "ScaleUnit": "100%"
1407*7e74ece3SIan Rogers    },
1408*7e74ece3SIan Rogers    {
1409*7e74ece3SIan Rogers        "BriefDescription": "This category represents fraction of slots utilized by useful work i.e. issued uops that eventually get retired",
1410*7e74ece3SIan Rogers        "DefaultMetricgroupName": "TopdownL1",
1411*7e74ece3SIan Rogers        "MetricExpr": "topdown\\-retiring / (topdown\\-fe\\-bound + topdown\\-bad\\-spec + topdown\\-retiring + topdown\\-be\\-bound) + 0 * tma_info_thread_slots",
1412*7e74ece3SIan Rogers        "MetricGroup": "Default;TmaL1;TopdownL1;tma_L1_group",
1413*7e74ece3SIan Rogers        "MetricName": "tma_retiring",
1414*7e74ece3SIan Rogers        "MetricThreshold": "tma_retiring > 0.7 | tma_heavy_operations > 0.1",
1415*7e74ece3SIan Rogers        "MetricgroupNoGroup": "TopdownL1;Default",
1416*7e74ece3SIan Rogers        "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.SLOTS",
1417*7e74ece3SIan Rogers        "ScaleUnit": "100%"
1418*7e74ece3SIan Rogers    },
1419*7e74ece3SIan Rogers    {
1420*7e74ece3SIan Rogers        "BriefDescription": "This metric represents fraction of cycles the CPU issue-pipeline was stalled due to serializing operations",
1421*7e74ece3SIan Rogers        "MetricExpr": "RESOURCE_STALLS.SCOREBOARD / tma_info_thread_clks",
1422*7e74ece3SIan Rogers        "MetricGroup": "PortsUtil;TopdownL5;tma_L5_group;tma_issueSO;tma_ports_utilized_0_group",
1423*7e74ece3SIan Rogers        "MetricName": "tma_serializing_operation",
1424*7e74ece3SIan Rogers        "MetricThreshold": "tma_serializing_operation > 0.1 & (tma_ports_utilized_0 > 0.2 & (tma_ports_utilization > 0.15 & (tma_core_bound > 0.1 & tma_backend_bound > 0.2)))",
1425*7e74ece3SIan Rogers        "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: RESOURCE_STALLS.SCOREBOARD. Related metrics: tma_ms_switches",
1426*7e74ece3SIan Rogers        "ScaleUnit": "100%"
1427*7e74ece3SIan Rogers    },
1428*7e74ece3SIan Rogers    {
1429*7e74ece3SIan Rogers        "BriefDescription": "This metric represents fraction of cycles the CPU was stalled due to PAUSE Instructions",
1430*7e74ece3SIan Rogers        "MetricExpr": "140 * MISC_RETIRED.PAUSE_INST / tma_info_thread_clks",
1431*7e74ece3SIan Rogers        "MetricGroup": "TopdownL6;tma_L6_group;tma_serializing_operation_group",
1432*7e74ece3SIan Rogers        "MetricName": "tma_slow_pause",
1433*7e74ece3SIan Rogers        "MetricThreshold": "tma_slow_pause > 0.05 & (tma_serializing_operation > 0.1 & (tma_ports_utilized_0 > 0.2 & (tma_ports_utilization > 0.15 & (tma_core_bound > 0.1 & tma_backend_bound > 0.2))))",
1434*7e74ece3SIan Rogers        "PublicDescription": "This metric represents fraction of cycles the CPU was stalled due to PAUSE Instructions. Sample with: MISC_RETIRED.PAUSE_INST",
1435*7e74ece3SIan Rogers        "ScaleUnit": "100%"
1436*7e74ece3SIan Rogers    },
1437*7e74ece3SIan Rogers    {
1438*7e74ece3SIan Rogers        "BriefDescription": "This metric estimates fraction of cycles handling memory load split accesses - load that cross 64-byte cache line boundary",
1439*7e74ece3SIan Rogers        "MetricExpr": "tma_info_memory_load_miss_real_latency * LD_BLOCKS.NO_SR / tma_info_thread_clks",
1440*7e74ece3SIan Rogers        "MetricGroup": "TopdownL4;tma_L4_group;tma_l1_bound_group",
1441*7e74ece3SIan Rogers        "MetricName": "tma_split_loads",
1442*7e74ece3SIan Rogers        "MetricThreshold": "tma_split_loads > 0.2 & (tma_l1_bound > 0.1 & (tma_memory_bound > 0.2 & tma_backend_bound > 0.2))",
1443*7e74ece3SIan Rogers        "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",
1444*7e74ece3SIan Rogers        "ScaleUnit": "100%"
1445*7e74ece3SIan Rogers    },
1446*7e74ece3SIan Rogers    {
1447*7e74ece3SIan Rogers        "BriefDescription": "This metric represents rate of split store accesses",
1448*7e74ece3SIan Rogers        "MetricExpr": "MEM_INST_RETIRED.SPLIT_STORES / tma_info_core_core_clks",
1449*7e74ece3SIan Rogers        "MetricGroup": "TopdownL4;tma_L4_group;tma_issueSpSt;tma_store_bound_group",
1450*7e74ece3SIan Rogers        "MetricName": "tma_split_stores",
1451*7e74ece3SIan Rogers        "MetricThreshold": "tma_split_stores > 0.2 & (tma_store_bound > 0.2 & (tma_memory_bound > 0.2 & tma_backend_bound > 0.2))",
1452*7e74ece3SIan Rogers        "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",
1453*7e74ece3SIan Rogers        "ScaleUnit": "100%"
1454*7e74ece3SIan Rogers    },
1455*7e74ece3SIan Rogers    {
1456*7e74ece3SIan Rogers        "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)",
1457*7e74ece3SIan Rogers        "MetricExpr": "L1D_PEND_MISS.L2_STALL / tma_info_thread_clks",
1458*7e74ece3SIan Rogers        "MetricGroup": "MemoryBW;Offcore;TopdownL4;tma_L4_group;tma_issueBW;tma_l3_bound_group",
1459*7e74ece3SIan Rogers        "MetricName": "tma_sq_full",
1460*7e74ece3SIan Rogers        "MetricThreshold": "tma_sq_full > 0.3 & (tma_l3_bound > 0.05 & (tma_memory_bound > 0.2 & tma_backend_bound > 0.2))",
1461*7e74ece3SIan Rogers        "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_memory_bandwidth, tma_info_system_dram_bw_use, tma_mem_bandwidth",
1462*7e74ece3SIan Rogers        "ScaleUnit": "100%"
1463*7e74ece3SIan Rogers    },
1464*7e74ece3SIan Rogers    {
1465*7e74ece3SIan Rogers        "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",
1466*7e74ece3SIan Rogers        "MetricExpr": "EXE_ACTIVITY.BOUND_ON_STORES / tma_info_thread_clks",
1467*7e74ece3SIan Rogers        "MetricGroup": "MemoryBound;TmaL3mem;TopdownL3;tma_L3_group;tma_memory_bound_group",
1468*7e74ece3SIan Rogers        "MetricName": "tma_store_bound",
1469*7e74ece3SIan Rogers        "MetricThreshold": "tma_store_bound > 0.2 & (tma_memory_bound > 0.2 & tma_backend_bound > 0.2)",
1470*7e74ece3SIan Rogers        "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",
1471*7e74ece3SIan Rogers        "ScaleUnit": "100%"
1472*7e74ece3SIan Rogers    },
1473*7e74ece3SIan Rogers    {
1474*7e74ece3SIan Rogers        "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",
1475*7e74ece3SIan Rogers        "MetricExpr": "13 * LD_BLOCKS.STORE_FORWARD / tma_info_thread_clks",
1476*7e74ece3SIan Rogers        "MetricGroup": "TopdownL4;tma_L4_group;tma_l1_bound_group",
1477*7e74ece3SIan Rogers        "MetricName": "tma_store_fwd_blk",
1478*7e74ece3SIan Rogers        "MetricThreshold": "tma_store_fwd_blk > 0.1 & (tma_l1_bound > 0.1 & (tma_memory_bound > 0.2 & tma_backend_bound > 0.2))",
1479*7e74ece3SIan Rogers        "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.",
1480*7e74ece3SIan Rogers        "ScaleUnit": "100%"
1481*7e74ece3SIan Rogers    },
1482*7e74ece3SIan Rogers    {
1483*7e74ece3SIan Rogers        "BriefDescription": "This metric estimates fraction of cycles the CPU spent handling L1D store misses",
1484*7e74ece3SIan Rogers        "MetricExpr": "(L2_RQSTS.RFO_HIT * 10 * (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",
1485*7e74ece3SIan Rogers        "MetricGroup": "MemoryLat;Offcore;TopdownL4;tma_L4_group;tma_issueRFO;tma_issueSL;tma_store_bound_group",
1486*7e74ece3SIan Rogers        "MetricName": "tma_store_latency",
1487*7e74ece3SIan Rogers        "MetricThreshold": "tma_store_latency > 0.1 & (tma_store_bound > 0.2 & (tma_memory_bound > 0.2 & tma_backend_bound > 0.2))",
1488*7e74ece3SIan Rogers        "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",
1489*7e74ece3SIan Rogers        "ScaleUnit": "100%"
1490*7e74ece3SIan Rogers    },
1491*7e74ece3SIan Rogers    {
1492*7e74ece3SIan Rogers        "BriefDescription": "This metric represents Core fraction of cycles CPU dispatched uops on execution port for Store operations",
1493*7e74ece3SIan Rogers        "MetricExpr": "(UOPS_DISPATCHED.PORT_4_9 + UOPS_DISPATCHED.PORT_7_8) / (4 * tma_info_core_core_clks)",
1494*7e74ece3SIan Rogers        "MetricGroup": "TopdownL5;tma_L5_group;tma_ports_utilized_3m_group",
1495*7e74ece3SIan Rogers        "MetricName": "tma_store_op_utilization",
1496*7e74ece3SIan Rogers        "MetricThreshold": "tma_store_op_utilization > 0.6",
1497*7e74ece3SIan Rogers        "PublicDescription": "This metric represents Core fraction of cycles CPU dispatched uops on execution port for Store operations. Sample with: UOPS_DISPATCHED.PORT_7_8",
1498*7e74ece3SIan Rogers        "ScaleUnit": "100%"
1499*7e74ece3SIan Rogers    },
1500*7e74ece3SIan Rogers    {
1501*7e74ece3SIan Rogers        "BriefDescription": "This metric roughly estimates the fraction of cycles where the TLB was missed by store accesses, hitting in the second-level TLB (STLB)",
1502*7e74ece3SIan Rogers        "MetricExpr": "tma_dtlb_store - tma_store_stlb_miss",
1503*7e74ece3SIan Rogers        "MetricGroup": "MemoryTLB;TopdownL5;tma_L5_group;tma_dtlb_store_group",
1504*7e74ece3SIan Rogers        "MetricName": "tma_store_stlb_hit",
1505*7e74ece3SIan Rogers        "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)))",
1506*7e74ece3SIan Rogers        "ScaleUnit": "100%"
1507*7e74ece3SIan Rogers    },
1508*7e74ece3SIan Rogers    {
1509*7e74ece3SIan Rogers        "BriefDescription": "This metric estimates the fraction of cycles where the STLB was missed by store accesses, performing a hardware page walk",
1510*7e74ece3SIan Rogers        "MetricExpr": "DTLB_STORE_MISSES.WALK_ACTIVE / tma_info_core_core_clks",
1511*7e74ece3SIan Rogers        "MetricGroup": "MemoryTLB;TopdownL5;tma_L5_group;tma_dtlb_store_group",
1512*7e74ece3SIan Rogers        "MetricName": "tma_store_stlb_miss",
1513*7e74ece3SIan Rogers        "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)))",
1514*7e74ece3SIan Rogers        "ScaleUnit": "100%"
1515*7e74ece3SIan Rogers    },
1516*7e74ece3SIan Rogers    {
1517*7e74ece3SIan Rogers        "BriefDescription": "This metric estimates how often CPU was stalled  due to Streaming store memory accesses; Streaming store optimize out a read request required by RFO stores",
1518*7e74ece3SIan Rogers        "MetricExpr": "9 * OCR.STREAMING_WR.ANY_RESPONSE / tma_info_thread_clks",
1519*7e74ece3SIan Rogers        "MetricGroup": "MemoryBW;Offcore;TopdownL4;tma_L4_group;tma_issueSmSt;tma_store_bound_group",
1520*7e74ece3SIan Rogers        "MetricName": "tma_streaming_stores",
1521*7e74ece3SIan Rogers        "MetricThreshold": "tma_streaming_stores > 0.2 & (tma_store_bound > 0.2 & (tma_memory_bound > 0.2 & tma_backend_bound > 0.2))",
1522*7e74ece3SIan Rogers        "PublicDescription": "This metric estimates how often CPU was stalled  due to Streaming store memory accesses; Streaming store optimize out a read request required by RFO stores. 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 Streaming stores be a bottleneck. Sample with: OCR.STREAMING_WR.ANY_RESPONSE. Related metrics: tma_fb_full",
1523*7e74ece3SIan Rogers        "ScaleUnit": "100%"
1524*7e74ece3SIan Rogers    },
1525*7e74ece3SIan Rogers    {
1526*7e74ece3SIan Rogers        "BriefDescription": "This metric represents fraction of cycles the CPU was stalled due to new branch address clears",
1527*7e74ece3SIan Rogers        "MetricExpr": "10 * BACLEARS.ANY / tma_info_thread_clks",
1528*7e74ece3SIan Rogers        "MetricGroup": "BigFoot;FetchLat;TopdownL4;tma_L4_group;tma_branch_resteers_group",
1529*7e74ece3SIan Rogers        "MetricName": "tma_unknown_branches",
1530*7e74ece3SIan Rogers        "MetricThreshold": "tma_unknown_branches > 0.05 & (tma_branch_resteers > 0.05 & (tma_fetch_latency > 0.1 & tma_frontend_bound > 0.15))",
1531*7e74ece3SIan Rogers        "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). Sample with: BACLEARS.ANY",
1532*7e74ece3SIan Rogers        "ScaleUnit": "100%"
1533*7e74ece3SIan Rogers    },
1534*7e74ece3SIan Rogers    {
1535*7e74ece3SIan Rogers        "BriefDescription": "This metric serves as an approximation of legacy x87 usage",
1536*7e74ece3SIan Rogers        "MetricExpr": "tma_retiring * UOPS_EXECUTED.X87 / UOPS_EXECUTED.THREAD",
1537*7e74ece3SIan Rogers        "MetricGroup": "Compute;TopdownL4;tma_L4_group;tma_fp_arith_group",
1538*7e74ece3SIan Rogers        "MetricName": "tma_x87_use",
1539*7e74ece3SIan Rogers        "MetricThreshold": "tma_x87_use > 0.1 & (tma_fp_arith > 0.2 & tma_light_operations > 0.6)",
1540*7e74ece3SIan Rogers        "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.",
1541*7e74ece3SIan Rogers        "ScaleUnit": "100%"
1542*7e74ece3SIan Rogers    },
1543*7e74ece3SIan Rogers    {
1544*7e74ece3SIan Rogers        "BriefDescription": "Percentage of cycles in aborted transactions.",
1545*7e74ece3SIan Rogers        "MetricExpr": "(max(cycles\\-t - cycles\\-ct, 0) / cycles if has_event(cycles\\-t) else 0)",
1546*7e74ece3SIan Rogers        "MetricGroup": "transaction",
1547*7e74ece3SIan Rogers        "MetricName": "tsx_aborted_cycles",
1548*7e74ece3SIan Rogers        "ScaleUnit": "100%"
1549*7e74ece3SIan Rogers    },
1550*7e74ece3SIan Rogers    {
1551*7e74ece3SIan Rogers        "BriefDescription": "Number of cycles within a transaction divided by the number of elisions.",
1552*7e74ece3SIan Rogers        "MetricExpr": "(cycles\\-t / el\\-start if has_event(cycles\\-t) else 0)",
1553*7e74ece3SIan Rogers        "MetricGroup": "transaction",
1554*7e74ece3SIan Rogers        "MetricName": "tsx_cycles_per_elision",
1555*7e74ece3SIan Rogers        "ScaleUnit": "1cycles / elision"
1556*7e74ece3SIan Rogers    },
1557*7e74ece3SIan Rogers    {
1558*7e74ece3SIan Rogers        "BriefDescription": "Number of cycles within a transaction divided by the number of transactions.",
1559*7e74ece3SIan Rogers        "MetricExpr": "(cycles\\-t / tx\\-start if has_event(cycles\\-t) else 0)",
1560*7e74ece3SIan Rogers        "MetricGroup": "transaction",
1561*7e74ece3SIan Rogers        "MetricName": "tsx_cycles_per_transaction",
1562*7e74ece3SIan Rogers        "ScaleUnit": "1cycles / transaction"
1563*7e74ece3SIan Rogers    },
1564*7e74ece3SIan Rogers    {
1565*7e74ece3SIan Rogers        "BriefDescription": "Percentage of cycles within a transaction region.",
1566*7e74ece3SIan Rogers        "MetricExpr": "(cycles\\-t / cycles if has_event(cycles\\-t) else 0)",
1567*7e74ece3SIan Rogers        "MetricGroup": "transaction",
1568*7e74ece3SIan Rogers        "MetricName": "tsx_transactional_cycles",
1569*7e74ece3SIan Rogers        "ScaleUnit": "100%"
1570*7e74ece3SIan Rogers    }
1571*7e74ece3SIan Rogers]
1572