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