16d75abd3SAndi Kleen[
26d75abd3SAndi Kleen    {
3*46db21afSIan Rogers        "BriefDescription": "C2 residency percent per package",
4*46db21afSIan Rogers        "MetricExpr": "cstate_pkg@c2\\-residency@ / TSC",
56d75abd3SAndi Kleen        "MetricGroup": "Power",
6*46db21afSIan Rogers        "MetricName": "C2_Pkg_Residency",
75e241aadSIan Rogers        "ScaleUnit": "100%"
85e241aadSIan Rogers    },
95e241aadSIan Rogers    {
105e241aadSIan Rogers        "BriefDescription": "C3 residency percent per core",
115e241aadSIan Rogers        "MetricExpr": "cstate_core@c3\\-residency@ / TSC",
125e241aadSIan Rogers        "MetricGroup": "Power",
135e241aadSIan Rogers        "MetricName": "C3_Core_Residency",
145e241aadSIan Rogers        "ScaleUnit": "100%"
155e241aadSIan Rogers    },
165e241aadSIan Rogers    {
175e241aadSIan Rogers        "BriefDescription": "C3 residency percent per package",
185e241aadSIan Rogers        "MetricExpr": "cstate_pkg@c3\\-residency@ / TSC",
195e241aadSIan Rogers        "MetricGroup": "Power",
205e241aadSIan Rogers        "MetricName": "C3_Pkg_Residency",
215e241aadSIan Rogers        "ScaleUnit": "100%"
225e241aadSIan Rogers    },
235e241aadSIan Rogers    {
24*46db21afSIan Rogers        "BriefDescription": "C6 residency percent per core",
25*46db21afSIan Rogers        "MetricExpr": "cstate_core@c6\\-residency@ / TSC",
26*46db21afSIan Rogers        "MetricGroup": "Power",
27*46db21afSIan Rogers        "MetricName": "C6_Core_Residency",
28*46db21afSIan Rogers        "ScaleUnit": "100%"
29*46db21afSIan Rogers    },
30*46db21afSIan Rogers    {
315e241aadSIan Rogers        "BriefDescription": "C6 residency percent per package",
325e241aadSIan Rogers        "MetricExpr": "cstate_pkg@c6\\-residency@ / TSC",
335e241aadSIan Rogers        "MetricGroup": "Power",
345e241aadSIan Rogers        "MetricName": "C6_Pkg_Residency",
355e241aadSIan Rogers        "ScaleUnit": "100%"
365e241aadSIan Rogers    },
375e241aadSIan Rogers    {
38*46db21afSIan Rogers        "BriefDescription": "C7 residency percent per core",
39*46db21afSIan Rogers        "MetricExpr": "cstate_core@c7\\-residency@ / TSC",
40*46db21afSIan Rogers        "MetricGroup": "Power",
41*46db21afSIan Rogers        "MetricName": "C7_Core_Residency",
42*46db21afSIan Rogers        "ScaleUnit": "100%"
43*46db21afSIan Rogers    },
44*46db21afSIan Rogers    {
455e241aadSIan Rogers        "BriefDescription": "C7 residency percent per package",
465e241aadSIan Rogers        "MetricExpr": "cstate_pkg@c7\\-residency@ / TSC",
475e241aadSIan Rogers        "MetricGroup": "Power",
485e241aadSIan Rogers        "MetricName": "C7_Pkg_Residency",
495e241aadSIan Rogers        "ScaleUnit": "100%"
50*46db21afSIan Rogers    },
51*46db21afSIan Rogers    {
52*46db21afSIan Rogers        "BriefDescription": "Uncore frequency per die [GHZ]",
53*46db21afSIan Rogers        "MetricExpr": "tma_info_socket_clks / #num_dies / duration_time / 1e9",
54*46db21afSIan Rogers        "MetricGroup": "SoC",
55*46db21afSIan Rogers        "MetricName": "UNCORE_FREQ"
56*46db21afSIan Rogers    },
57*46db21afSIan Rogers    {
58*46db21afSIan Rogers        "BriefDescription": "Percentage of cycles spent in System Management Interrupts.",
59*46db21afSIan Rogers        "MetricExpr": "((msr@aperf@ - cycles) / msr@aperf@ if msr@smi@ > 0 else 0)",
60*46db21afSIan Rogers        "MetricGroup": "smi",
61*46db21afSIan Rogers        "MetricName": "smi_cycles",
62*46db21afSIan Rogers        "MetricThreshold": "smi_cycles > 0.1",
63*46db21afSIan Rogers        "ScaleUnit": "100%"
64*46db21afSIan Rogers    },
65*46db21afSIan Rogers    {
66*46db21afSIan Rogers        "BriefDescription": "Number of SMI interrupts.",
67*46db21afSIan Rogers        "MetricExpr": "msr@smi@",
68*46db21afSIan Rogers        "MetricGroup": "smi",
69*46db21afSIan Rogers        "MetricName": "smi_num",
70*46db21afSIan Rogers        "ScaleUnit": "1SMI#"
71*46db21afSIan Rogers    },
72*46db21afSIan Rogers    {
73*46db21afSIan Rogers        "BriefDescription": "This metric estimates how often memory load accesses were aliased by preceding stores (in program order) with a 4K address offset",
74*46db21afSIan Rogers        "MetricExpr": "LD_BLOCKS_PARTIAL.ADDRESS_ALIAS / tma_info_clks",
75*46db21afSIan Rogers        "MetricGroup": "TopdownL4;tma_L4_group;tma_l1_bound_group",
76*46db21afSIan Rogers        "MetricName": "tma_4k_aliasing",
77*46db21afSIan Rogers        "MetricThreshold": "tma_4k_aliasing > 0.2 & (tma_l1_bound > 0.1 & (tma_memory_bound > 0.2 & tma_backend_bound > 0.2))",
78*46db21afSIan 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).",
79*46db21afSIan Rogers        "ScaleUnit": "100%"
80*46db21afSIan Rogers    },
81*46db21afSIan Rogers    {
82*46db21afSIan Rogers        "BriefDescription": "This metric represents Core fraction of cycles CPU dispatched uops on execution ports for ALU operations.",
83*46db21afSIan Rogers        "MetricConstraint": "NO_GROUP_EVENTS_NMI",
84*46db21afSIan Rogers        "MetricExpr": "(UOPS_DISPATCHED_PORT.PORT_0 + UOPS_DISPATCHED_PORT.PORT_1 + UOPS_DISPATCHED_PORT.PORT_5 + UOPS_DISPATCHED_PORT.PORT_6) / tma_info_slots",
85*46db21afSIan Rogers        "MetricGroup": "TopdownL5;tma_L5_group;tma_ports_utilized_3m_group",
86*46db21afSIan Rogers        "MetricName": "tma_alu_op_utilization",
87*46db21afSIan Rogers        "MetricThreshold": "tma_alu_op_utilization > 0.6",
88*46db21afSIan Rogers        "ScaleUnit": "100%"
89*46db21afSIan Rogers    },
90*46db21afSIan Rogers    {
91*46db21afSIan Rogers        "BriefDescription": "This metric estimates fraction of slots the CPU retired uops delivered by the Microcode_Sequencer as a result of Assists",
92*46db21afSIan Rogers        "MetricExpr": "100 * OTHER_ASSISTS.ANY_WB_ASSIST / tma_info_slots",
93*46db21afSIan Rogers        "MetricGroup": "TopdownL4;tma_L4_group;tma_microcode_sequencer_group",
94*46db21afSIan Rogers        "MetricName": "tma_assists",
95*46db21afSIan Rogers        "MetricThreshold": "tma_assists > 0.1 & (tma_microcode_sequencer > 0.05 & tma_heavy_operations > 0.1)",
96*46db21afSIan 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: OTHER_ASSISTS.ANY",
97*46db21afSIan Rogers        "ScaleUnit": "100%"
98*46db21afSIan Rogers    },
99*46db21afSIan Rogers    {
100*46db21afSIan 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",
101*46db21afSIan Rogers        "MetricConstraint": "NO_GROUP_EVENTS_NMI",
102*46db21afSIan Rogers        "MetricExpr": "1 - (tma_frontend_bound + tma_bad_speculation + tma_retiring)",
103*46db21afSIan Rogers        "MetricGroup": "TmaL1;TopdownL1;tma_L1_group",
104*46db21afSIan Rogers        "MetricName": "tma_backend_bound",
105*46db21afSIan Rogers        "MetricThreshold": "tma_backend_bound > 0.2",
106*46db21afSIan 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.",
107*46db21afSIan Rogers        "ScaleUnit": "100%"
108*46db21afSIan Rogers    },
109*46db21afSIan Rogers    {
110*46db21afSIan Rogers        "BriefDescription": "This category represents fraction of slots wasted due to incorrect speculations",
111*46db21afSIan Rogers        "MetricExpr": "(UOPS_ISSUED.ANY - UOPS_RETIRED.RETIRE_SLOTS + 4 * (INT_MISC.RECOVERY_CYCLES_ANY / 2 if #SMT_on else INT_MISC.RECOVERY_CYCLES)) / tma_info_slots",
112*46db21afSIan Rogers        "MetricGroup": "TmaL1;TopdownL1;tma_L1_group",
113*46db21afSIan Rogers        "MetricName": "tma_bad_speculation",
114*46db21afSIan Rogers        "MetricThreshold": "tma_bad_speculation > 0.15",
115*46db21afSIan 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.",
116*46db21afSIan Rogers        "ScaleUnit": "100%"
117*46db21afSIan Rogers    },
118*46db21afSIan Rogers    {
119*46db21afSIan Rogers        "BriefDescription": "This metric represents fraction of slots the CPU has wasted due to Branch Misprediction",
120*46db21afSIan Rogers        "MetricConstraint": "NO_GROUP_EVENTS",
121*46db21afSIan Rogers        "MetricExpr": "BR_MISP_RETIRED.ALL_BRANCHES / (BR_MISP_RETIRED.ALL_BRANCHES + MACHINE_CLEARS.COUNT) * tma_bad_speculation",
122*46db21afSIan Rogers        "MetricGroup": "BadSpec;BrMispredicts;TmaL2;TopdownL2;tma_L2_group;tma_bad_speculation_group;tma_issueBM",
123*46db21afSIan Rogers        "MetricName": "tma_branch_mispredicts",
124*46db21afSIan Rogers        "MetricThreshold": "tma_branch_mispredicts > 0.1 & tma_bad_speculation > 0.15",
125*46db21afSIan 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_mispredicts_resteers",
126*46db21afSIan Rogers        "ScaleUnit": "100%"
127*46db21afSIan Rogers    },
128*46db21afSIan Rogers    {
129*46db21afSIan Rogers        "BriefDescription": "This metric represents fraction of cycles the CPU was stalled due to Branch Resteers",
130*46db21afSIan Rogers        "MetricExpr": "12 * (BR_MISP_RETIRED.ALL_BRANCHES + MACHINE_CLEARS.COUNT + BACLEARS.ANY) / tma_info_clks",
131*46db21afSIan Rogers        "MetricGroup": "FetchLat;TopdownL3;tma_L3_group;tma_fetch_latency_group",
132*46db21afSIan Rogers        "MetricName": "tma_branch_resteers",
133*46db21afSIan Rogers        "MetricThreshold": "tma_branch_resteers > 0.05 & (tma_fetch_latency > 0.1 & tma_frontend_bound > 0.15)",
134*46db21afSIan 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",
135*46db21afSIan Rogers        "ScaleUnit": "100%"
136*46db21afSIan Rogers    },
137*46db21afSIan Rogers    {
138*46db21afSIan Rogers        "BriefDescription": "This metric estimates fraction of cycles the CPU retired uops originated from CISC (complex instruction set computer) instruction",
139*46db21afSIan Rogers        "MetricConstraint": "NO_GROUP_EVENTS_NMI",
140*46db21afSIan Rogers        "MetricExpr": "max(0, tma_microcode_sequencer - tma_assists)",
141*46db21afSIan Rogers        "MetricGroup": "TopdownL4;tma_L4_group;tma_microcode_sequencer_group",
142*46db21afSIan Rogers        "MetricName": "tma_cisc",
143*46db21afSIan Rogers        "MetricThreshold": "tma_cisc > 0.1 & (tma_microcode_sequencer > 0.05 & tma_heavy_operations > 0.1)",
144*46db21afSIan 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.",
145*46db21afSIan Rogers        "ScaleUnit": "100%"
146*46db21afSIan Rogers    },
147*46db21afSIan Rogers    {
148*46db21afSIan Rogers        "BriefDescription": "This metric represents fraction of cycles the CPU was stalled due to Branch Resteers as a result of Machine Clears",
149*46db21afSIan Rogers        "MetricExpr": "MACHINE_CLEARS.COUNT * tma_branch_resteers / (BR_MISP_RETIRED.ALL_BRANCHES + MACHINE_CLEARS.COUNT + BACLEARS.ANY)",
150*46db21afSIan Rogers        "MetricGroup": "BadSpec;MachineClears;TopdownL4;tma_L4_group;tma_branch_resteers_group;tma_issueMC",
151*46db21afSIan Rogers        "MetricName": "tma_clears_resteers",
152*46db21afSIan Rogers        "MetricThreshold": "tma_clears_resteers > 0.05 & (tma_branch_resteers > 0.05 & (tma_fetch_latency > 0.1 & tma_frontend_bound > 0.15))",
153*46db21afSIan Rogers        "PublicDescription": "This metric represents fraction of cycles the CPU was stalled due to Branch Resteers as a result of Machine Clears. Related metrics: tma_l1_bound, tma_machine_clears, tma_microcode_sequencer, tma_ms_switches",
154*46db21afSIan Rogers        "ScaleUnit": "100%"
155*46db21afSIan Rogers    },
156*46db21afSIan Rogers    {
157*46db21afSIan Rogers        "BriefDescription": "This metric estimates fraction of cycles while the memory subsystem was handling synchronizations due to contested accesses",
158*46db21afSIan Rogers        "MetricConstraint": "NO_GROUP_EVENTS",
159*46db21afSIan Rogers        "MetricExpr": "(60 * (MEM_LOAD_UOPS_L3_HIT_RETIRED.XSNP_HITM * (1 + MEM_LOAD_UOPS_RETIRED.HIT_LFB / (MEM_LOAD_UOPS_RETIRED.L2_HIT + MEM_LOAD_UOPS_RETIRED.L3_HIT + MEM_LOAD_UOPS_L3_HIT_RETIRED.XSNP_HIT + MEM_LOAD_UOPS_L3_HIT_RETIRED.XSNP_HITM + MEM_LOAD_UOPS_L3_HIT_RETIRED.XSNP_MISS + MEM_LOAD_UOPS_L3_MISS_RETIRED.LOCAL_DRAM + MEM_LOAD_UOPS_L3_MISS_RETIRED.REMOTE_DRAM + MEM_LOAD_UOPS_L3_MISS_RETIRED.REMOTE_HITM + MEM_LOAD_UOPS_L3_MISS_RETIRED.REMOTE_FWD))) + 43 * (MEM_LOAD_UOPS_L3_HIT_RETIRED.XSNP_MISS * (1 + MEM_LOAD_UOPS_RETIRED.HIT_LFB / (MEM_LOAD_UOPS_RETIRED.L2_HIT + MEM_LOAD_UOPS_RETIRED.L3_HIT + MEM_LOAD_UOPS_L3_HIT_RETIRED.XSNP_HIT + MEM_LOAD_UOPS_L3_HIT_RETIRED.XSNP_HITM + MEM_LOAD_UOPS_L3_HIT_RETIRED.XSNP_MISS + MEM_LOAD_UOPS_L3_MISS_RETIRED.LOCAL_DRAM + MEM_LOAD_UOPS_L3_MISS_RETIRED.REMOTE_DRAM + MEM_LOAD_UOPS_L3_MISS_RETIRED.REMOTE_HITM + MEM_LOAD_UOPS_L3_MISS_RETIRED.REMOTE_FWD)))) / tma_info_clks",
160*46db21afSIan Rogers        "MetricGroup": "DataSharing;Offcore;Snoop;TopdownL4;tma_L4_group;tma_issueSyncxn;tma_l3_bound_group",
161*46db21afSIan Rogers        "MetricName": "tma_contested_accesses",
162*46db21afSIan Rogers        "MetricThreshold": "tma_contested_accesses > 0.05 & (tma_l3_bound > 0.05 & (tma_memory_bound > 0.2 & tma_backend_bound > 0.2))",
163*46db21afSIan Rogers        "PublicDescription": "This metric estimates fraction of cycles while the memory subsystem was handling synchronizations due to contested accesses. Contested accesses occur when data written by one Logical Processor are read by another Logical Processor on a different Physical Core. Examples of contested accesses include synchronizations such as locks; true data sharing such as modified locked variables; and false sharing. Sample with: MEM_LOAD_L3_HIT_RETIRED.XSNP_HITM_PS;MEM_LOAD_L3_HIT_RETIRED.XSNP_MISS_PS. Related metrics: tma_data_sharing, tma_false_sharing, tma_machine_clears, tma_remote_cache",
164*46db21afSIan Rogers        "ScaleUnit": "100%"
165*46db21afSIan Rogers    },
166*46db21afSIan Rogers    {
167*46db21afSIan Rogers        "BriefDescription": "This metric represents fraction of slots where Core non-memory issues were of a bottleneck",
168*46db21afSIan Rogers        "MetricConstraint": "NO_GROUP_EVENTS",
169*46db21afSIan Rogers        "MetricExpr": "tma_backend_bound - tma_memory_bound",
170*46db21afSIan Rogers        "MetricGroup": "Backend;Compute;TmaL2;TopdownL2;tma_L2_group;tma_backend_bound_group",
171*46db21afSIan Rogers        "MetricName": "tma_core_bound",
172*46db21afSIan Rogers        "MetricThreshold": "tma_core_bound > 0.1 & tma_backend_bound > 0.2",
173*46db21afSIan 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).",
174*46db21afSIan Rogers        "ScaleUnit": "100%"
175*46db21afSIan Rogers    },
176*46db21afSIan Rogers    {
177*46db21afSIan Rogers        "BriefDescription": "This metric estimates fraction of cycles while the memory subsystem was handling synchronizations due to data-sharing accesses",
178*46db21afSIan Rogers        "MetricConstraint": "NO_GROUP_EVENTS",
179*46db21afSIan Rogers        "MetricExpr": "43 * (MEM_LOAD_UOPS_L3_HIT_RETIRED.XSNP_HIT * (1 + MEM_LOAD_UOPS_RETIRED.HIT_LFB / (MEM_LOAD_UOPS_RETIRED.L2_HIT + MEM_LOAD_UOPS_RETIRED.L3_HIT + MEM_LOAD_UOPS_L3_HIT_RETIRED.XSNP_HIT + MEM_LOAD_UOPS_L3_HIT_RETIRED.XSNP_HITM + MEM_LOAD_UOPS_L3_HIT_RETIRED.XSNP_MISS + MEM_LOAD_UOPS_L3_MISS_RETIRED.LOCAL_DRAM + MEM_LOAD_UOPS_L3_MISS_RETIRED.REMOTE_DRAM + MEM_LOAD_UOPS_L3_MISS_RETIRED.REMOTE_HITM + MEM_LOAD_UOPS_L3_MISS_RETIRED.REMOTE_FWD))) / tma_info_clks",
180*46db21afSIan Rogers        "MetricGroup": "Offcore;Snoop;TopdownL4;tma_L4_group;tma_issueSyncxn;tma_l3_bound_group",
181*46db21afSIan Rogers        "MetricName": "tma_data_sharing",
182*46db21afSIan Rogers        "MetricThreshold": "tma_data_sharing > 0.05 & (tma_l3_bound > 0.05 & (tma_memory_bound > 0.2 & tma_backend_bound > 0.2))",
183*46db21afSIan Rogers        "PublicDescription": "This metric estimates fraction of cycles while the memory subsystem was handling synchronizations due to data-sharing accesses. Data shared by multiple Logical Processors (even just read shared) may cause increased access latency due to cache coherency. Excessive data sharing can drastically harm multithreaded performance. Sample with: MEM_LOAD_L3_HIT_RETIRED.XSNP_HIT_PS. Related metrics: tma_contested_accesses, tma_false_sharing, tma_machine_clears, tma_remote_cache",
184*46db21afSIan Rogers        "ScaleUnit": "100%"
185*46db21afSIan Rogers    },
186*46db21afSIan Rogers    {
187*46db21afSIan Rogers        "BriefDescription": "This metric represents fraction of cycles where the Divider unit was active",
188*46db21afSIan Rogers        "MetricExpr": "ARITH.FPU_DIV_ACTIVE / tma_info_core_clks",
189*46db21afSIan Rogers        "MetricGroup": "TopdownL3;tma_L3_group;tma_core_bound_group",
190*46db21afSIan Rogers        "MetricName": "tma_divider",
191*46db21afSIan Rogers        "MetricThreshold": "tma_divider > 0.2 & (tma_core_bound > 0.1 & tma_backend_bound > 0.2)",
192*46db21afSIan 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_UOPS",
193*46db21afSIan Rogers        "ScaleUnit": "100%"
194*46db21afSIan Rogers    },
195*46db21afSIan Rogers    {
196*46db21afSIan Rogers        "BriefDescription": "This metric estimates how often the CPU was stalled on accesses to external memory (DRAM) by loads",
197*46db21afSIan Rogers        "MetricConstraint": "NO_GROUP_EVENTS_SMT",
198*46db21afSIan Rogers        "MetricExpr": "(1 - MEM_LOAD_UOPS_RETIRED.L3_HIT / (MEM_LOAD_UOPS_RETIRED.L3_HIT + 7 * MEM_LOAD_UOPS_RETIRED.L3_MISS)) * CYCLE_ACTIVITY.STALLS_L2_MISS / tma_info_clks",
199*46db21afSIan Rogers        "MetricGroup": "MemoryBound;TmaL3mem;TopdownL3;tma_L3_group;tma_memory_bound_group",
200*46db21afSIan Rogers        "MetricName": "tma_dram_bound",
201*46db21afSIan Rogers        "MetricThreshold": "tma_dram_bound > 0.1 & (tma_memory_bound > 0.2 & tma_backend_bound > 0.2)",
202*46db21afSIan 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_UOPS_RETIRED.L3_MISS_PS",
203*46db21afSIan Rogers        "ScaleUnit": "100%"
204*46db21afSIan Rogers    },
205*46db21afSIan Rogers    {
206*46db21afSIan Rogers        "BriefDescription": "This metric represents Core fraction of cycles in which CPU was likely limited due to DSB (decoded uop cache) fetch pipeline",
207*46db21afSIan Rogers        "MetricExpr": "(IDQ.ALL_DSB_CYCLES_ANY_UOPS - IDQ.ALL_DSB_CYCLES_4_UOPS) / tma_info_core_clks / 2",
208*46db21afSIan Rogers        "MetricGroup": "DSB;FetchBW;TopdownL3;tma_L3_group;tma_fetch_bandwidth_group",
209*46db21afSIan Rogers        "MetricName": "tma_dsb",
210*46db21afSIan Rogers        "MetricThreshold": "tma_dsb > 0.15 & (tma_fetch_bandwidth > 0.1 & tma_frontend_bound > 0.15 & tma_info_ipc / 4 > 0.35)",
211*46db21afSIan 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.",
212*46db21afSIan Rogers        "ScaleUnit": "100%"
213*46db21afSIan Rogers    },
214*46db21afSIan Rogers    {
215*46db21afSIan Rogers        "BriefDescription": "This metric represents fraction of cycles the CPU was stalled due to switches from DSB to MITE pipelines",
216*46db21afSIan Rogers        "MetricExpr": "DSB2MITE_SWITCHES.PENALTY_CYCLES / tma_info_clks",
217*46db21afSIan Rogers        "MetricGroup": "DSBmiss;FetchLat;TopdownL3;tma_L3_group;tma_fetch_latency_group;tma_issueFB",
218*46db21afSIan Rogers        "MetricName": "tma_dsb_switches",
219*46db21afSIan Rogers        "MetricThreshold": "tma_dsb_switches > 0.05 & (tma_fetch_latency > 0.1 & tma_frontend_bound > 0.15)",
220*46db21afSIan 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. Related metrics: tma_fetch_bandwidth, tma_info_dsb_coverage, tma_info_iptb, tma_lcp",
221*46db21afSIan Rogers        "ScaleUnit": "100%"
222*46db21afSIan Rogers    },
223*46db21afSIan Rogers    {
224*46db21afSIan Rogers        "BriefDescription": "This metric roughly estimates the fraction of cycles where the Data TLB (DTLB) was missed by load accesses",
225*46db21afSIan Rogers        "MetricExpr": "(8 * DTLB_LOAD_MISSES.STLB_HIT + cpu@DTLB_LOAD_MISSES.WALK_DURATION\\,cmask\\=1@ + 7 * DTLB_LOAD_MISSES.WALK_COMPLETED) / tma_info_clks",
226*46db21afSIan Rogers        "MetricGroup": "MemoryTLB;TopdownL4;tma_L4_group;tma_issueTLB;tma_l1_bound_group",
227*46db21afSIan Rogers        "MetricName": "tma_dtlb_load",
228*46db21afSIan Rogers        "MetricThreshold": "tma_dtlb_load > 0.1 & (tma_l1_bound > 0.1 & (tma_memory_bound > 0.2 & tma_backend_bound > 0.2))",
229*46db21afSIan 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_UOPS_RETIRED.STLB_MISS_LOADS_PS. Related metrics: tma_dtlb_store",
230*46db21afSIan Rogers        "ScaleUnit": "100%"
231*46db21afSIan Rogers    },
232*46db21afSIan Rogers    {
233*46db21afSIan Rogers        "BriefDescription": "This metric roughly estimates the fraction of cycles spent handling first-level data TLB store misses",
234*46db21afSIan Rogers        "MetricExpr": "(8 * DTLB_STORE_MISSES.STLB_HIT + cpu@DTLB_STORE_MISSES.WALK_DURATION\\,cmask\\=1@ + 7 * DTLB_STORE_MISSES.WALK_COMPLETED) / tma_info_clks",
235*46db21afSIan Rogers        "MetricGroup": "MemoryTLB;TopdownL4;tma_L4_group;tma_issueTLB;tma_store_bound_group",
236*46db21afSIan Rogers        "MetricName": "tma_dtlb_store",
237*46db21afSIan Rogers        "MetricThreshold": "tma_dtlb_store > 0.05 & (tma_store_bound > 0.2 & (tma_memory_bound > 0.2 & tma_backend_bound > 0.2))",
238*46db21afSIan 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_UOPS_RETIRED.STLB_MISS_STORES_PS. Related metrics: tma_dtlb_load",
239*46db21afSIan Rogers        "ScaleUnit": "100%"
240*46db21afSIan Rogers    },
241*46db21afSIan Rogers    {
242*46db21afSIan Rogers        "BriefDescription": "This metric roughly estimates how often CPU was handling synchronizations due to False Sharing",
243*46db21afSIan Rogers        "MetricExpr": "(200 * OFFCORE_RESPONSE.DEMAND_RFO.LLC_MISS.REMOTE_HITM + 60 * OFFCORE_RESPONSE.DEMAND_RFO.LLC_HIT.HITM_OTHER_CORE) / tma_info_clks",
244*46db21afSIan Rogers        "MetricGroup": "DataSharing;Offcore;Snoop;TopdownL4;tma_L4_group;tma_issueSyncxn;tma_store_bound_group",
245*46db21afSIan Rogers        "MetricName": "tma_false_sharing",
246*46db21afSIan Rogers        "MetricThreshold": "tma_false_sharing > 0.05 & (tma_store_bound > 0.2 & (tma_memory_bound > 0.2 & tma_backend_bound > 0.2))",
247*46db21afSIan 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: MEM_LOAD_L3_HIT_RETIRED.XSNP_HITM_PS;OFFCORE_RESPONSE.DEMAND_RFO.L3_HIT.SNOOP_HITM. Related metrics: tma_contested_accesses, tma_data_sharing, tma_machine_clears, tma_remote_cache",
248*46db21afSIan Rogers        "ScaleUnit": "100%"
249*46db21afSIan Rogers    },
250*46db21afSIan Rogers    {
251*46db21afSIan Rogers        "BriefDescription": "This metric does a *rough estimation* of how often L1D Fill Buffer unavailability limited additional L1D miss memory access requests to proceed",
252*46db21afSIan Rogers        "MetricConstraint": "NO_GROUP_EVENTS",
253*46db21afSIan Rogers        "MetricExpr": "tma_info_load_miss_real_latency * cpu@L1D_PEND_MISS.FB_FULL\\,cmask\\=1@ / tma_info_clks",
254*46db21afSIan Rogers        "MetricGroup": "MemoryBW;TopdownL4;tma_L4_group;tma_issueBW;tma_issueSL;tma_issueSmSt;tma_l1_bound_group",
255*46db21afSIan Rogers        "MetricName": "tma_fb_full",
256*46db21afSIan Rogers        "MetricThreshold": "tma_fb_full > 0.3",
257*46db21afSIan 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_mem_bandwidth, tma_sq_full, tma_store_latency, tma_streaming_stores",
258*46db21afSIan Rogers        "ScaleUnit": "100%"
259*46db21afSIan Rogers    },
260*46db21afSIan Rogers    {
261*46db21afSIan Rogers        "BriefDescription": "This metric represents fraction of slots the CPU was stalled due to Frontend bandwidth issues",
262*46db21afSIan Rogers        "MetricExpr": "tma_frontend_bound - tma_fetch_latency",
263*46db21afSIan Rogers        "MetricGroup": "FetchBW;Frontend;TmaL2;TopdownL2;tma_L2_group;tma_frontend_bound_group;tma_issueFB",
264*46db21afSIan Rogers        "MetricName": "tma_fetch_bandwidth",
265*46db21afSIan Rogers        "MetricThreshold": "tma_fetch_bandwidth > 0.1 & tma_frontend_bound > 0.15 & tma_info_ipc / 4 > 0.35",
266*46db21afSIan 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. Related metrics: tma_dsb_switches, tma_info_dsb_coverage, tma_info_iptb, tma_lcp",
267*46db21afSIan Rogers        "ScaleUnit": "100%"
268*46db21afSIan Rogers    },
269*46db21afSIan Rogers    {
270*46db21afSIan Rogers        "BriefDescription": "This metric represents fraction of slots the CPU was stalled due to Frontend latency issues",
271*46db21afSIan Rogers        "MetricExpr": "4 * IDQ_UOPS_NOT_DELIVERED.CYCLES_0_UOPS_DELIV.CORE / tma_info_slots",
272*46db21afSIan Rogers        "MetricGroup": "Frontend;TmaL2;TopdownL2;tma_L2_group;tma_frontend_bound_group",
273*46db21afSIan Rogers        "MetricName": "tma_fetch_latency",
274*46db21afSIan Rogers        "MetricThreshold": "tma_fetch_latency > 0.1 & tma_frontend_bound > 0.15",
275*46db21afSIan 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: RS_EVENTS.EMPTY_END",
276*46db21afSIan Rogers        "ScaleUnit": "100%"
277*46db21afSIan Rogers    },
278*46db21afSIan Rogers    {
279*46db21afSIan Rogers        "BriefDescription": "This metric represents overall arithmetic floating-point (FP) operations fraction the CPU has executed (retired)",
280*46db21afSIan Rogers        "MetricExpr": "tma_x87_use + tma_fp_scalar + tma_fp_vector",
281*46db21afSIan Rogers        "MetricGroup": "HPC;TopdownL3;tma_L3_group;tma_light_operations_group",
282*46db21afSIan Rogers        "MetricName": "tma_fp_arith",
283*46db21afSIan Rogers        "MetricThreshold": "tma_fp_arith > 0.2 & tma_light_operations > 0.6",
284*46db21afSIan 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.",
285*46db21afSIan Rogers        "ScaleUnit": "100%"
286*46db21afSIan Rogers    },
287*46db21afSIan Rogers    {
288*46db21afSIan Rogers        "BriefDescription": "This metric approximates arithmetic floating-point (FP) scalar uops fraction the CPU has retired",
289*46db21afSIan Rogers        "MetricExpr": "cpu@FP_ARITH_INST_RETIRED.SCALAR_SINGLE\\,umask\\=0x03@ / UOPS_RETIRED.RETIRE_SLOTS",
290*46db21afSIan Rogers        "MetricGroup": "Compute;Flops;TopdownL4;tma_L4_group;tma_fp_arith_group;tma_issue2P",
291*46db21afSIan Rogers        "MetricName": "tma_fp_scalar",
292*46db21afSIan Rogers        "MetricThreshold": "tma_fp_scalar > 0.1 & (tma_fp_arith > 0.2 & tma_light_operations > 0.6)",
293*46db21afSIan 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",
294*46db21afSIan Rogers        "ScaleUnit": "100%"
295*46db21afSIan Rogers    },
296*46db21afSIan Rogers    {
297*46db21afSIan Rogers        "BriefDescription": "This metric approximates arithmetic floating-point (FP) vector uops fraction the CPU has retired aggregated across all vector widths",
298*46db21afSIan Rogers        "MetricExpr": "cpu@FP_ARITH_INST_RETIRED.128B_PACKED_DOUBLE\\,umask\\=0x3c@ / UOPS_RETIRED.RETIRE_SLOTS",
299*46db21afSIan Rogers        "MetricGroup": "Compute;Flops;TopdownL4;tma_L4_group;tma_fp_arith_group;tma_issue2P",
300*46db21afSIan Rogers        "MetricName": "tma_fp_vector",
301*46db21afSIan Rogers        "MetricThreshold": "tma_fp_vector > 0.1 & (tma_fp_arith > 0.2 & tma_light_operations > 0.6)",
302*46db21afSIan 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",
303*46db21afSIan Rogers        "ScaleUnit": "100%"
304*46db21afSIan Rogers    },
305*46db21afSIan Rogers    {
306*46db21afSIan Rogers        "BriefDescription": "This metric approximates arithmetic FP vector uops fraction the CPU has retired for 128-bit wide vectors",
307*46db21afSIan Rogers        "MetricExpr": "(FP_ARITH_INST_RETIRED.128B_PACKED_DOUBLE + FP_ARITH_INST_RETIRED.128B_PACKED_SINGLE) / UOPS_RETIRED.RETIRE_SLOTS",
308*46db21afSIan Rogers        "MetricGroup": "Compute;Flops;TopdownL5;tma_L5_group;tma_fp_vector_group;tma_issue2P",
309*46db21afSIan Rogers        "MetricName": "tma_fp_vector_128b",
310*46db21afSIan Rogers        "MetricThreshold": "tma_fp_vector_128b > 0.1 & (tma_fp_vector > 0.1 & (tma_fp_arith > 0.2 & tma_light_operations > 0.6))",
311*46db21afSIan 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",
312*46db21afSIan Rogers        "ScaleUnit": "100%"
313*46db21afSIan Rogers    },
314*46db21afSIan Rogers    {
315*46db21afSIan Rogers        "BriefDescription": "This metric approximates arithmetic FP vector uops fraction the CPU has retired for 256-bit wide vectors",
316*46db21afSIan Rogers        "MetricExpr": "(FP_ARITH_INST_RETIRED.256B_PACKED_DOUBLE + FP_ARITH_INST_RETIRED.256B_PACKED_SINGLE) / UOPS_RETIRED.RETIRE_SLOTS",
317*46db21afSIan Rogers        "MetricGroup": "Compute;Flops;TopdownL5;tma_L5_group;tma_fp_vector_group;tma_issue2P",
318*46db21afSIan Rogers        "MetricName": "tma_fp_vector_256b",
319*46db21afSIan Rogers        "MetricThreshold": "tma_fp_vector_256b > 0.1 & (tma_fp_vector > 0.1 & (tma_fp_arith > 0.2 & tma_light_operations > 0.6))",
320*46db21afSIan 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",
321*46db21afSIan Rogers        "ScaleUnit": "100%"
322*46db21afSIan Rogers    },
323*46db21afSIan Rogers    {
324*46db21afSIan Rogers        "BriefDescription": "This category represents fraction of slots where the processor's Frontend undersupplies its Backend",
325*46db21afSIan Rogers        "MetricExpr": "IDQ_UOPS_NOT_DELIVERED.CORE / tma_info_slots",
326*46db21afSIan Rogers        "MetricGroup": "PGO;TmaL1;TopdownL1;tma_L1_group",
327*46db21afSIan Rogers        "MetricName": "tma_frontend_bound",
328*46db21afSIan Rogers        "MetricThreshold": "tma_frontend_bound > 0.15",
329*46db21afSIan 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.",
330*46db21afSIan Rogers        "ScaleUnit": "100%"
331*46db21afSIan Rogers    },
332*46db21afSIan Rogers    {
333*46db21afSIan 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",
334*46db21afSIan Rogers        "MetricExpr": "tma_microcode_sequencer",
335*46db21afSIan Rogers        "MetricGroup": "Retire;TmaL2;TopdownL2;tma_L2_group;tma_retiring_group",
336*46db21afSIan Rogers        "MetricName": "tma_heavy_operations",
337*46db21afSIan Rogers        "MetricThreshold": "tma_heavy_operations > 0.1",
338*46db21afSIan 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.",
339*46db21afSIan Rogers        "ScaleUnit": "100%"
340*46db21afSIan Rogers    },
341*46db21afSIan Rogers    {
342*46db21afSIan Rogers        "BriefDescription": "This metric represents fraction of cycles the CPU was stalled due to instruction cache misses.",
343*46db21afSIan Rogers        "MetricExpr": "ICACHE.IFDATA_STALL / tma_info_clks",
344*46db21afSIan Rogers        "MetricGroup": "BigFoot;FetchLat;IcMiss;TopdownL3;tma_L3_group;tma_fetch_latency_group",
345*46db21afSIan Rogers        "MetricName": "tma_icache_misses",
346*46db21afSIan Rogers        "MetricThreshold": "tma_icache_misses > 0.05 & (tma_fetch_latency > 0.1 & tma_frontend_bound > 0.15)",
347*46db21afSIan Rogers        "ScaleUnit": "100%"
348*46db21afSIan Rogers    },
349*46db21afSIan Rogers    {
350*46db21afSIan Rogers        "BriefDescription": "Measured Average Frequency for unhalted processors [GHz]",
351*46db21afSIan Rogers        "MetricExpr": "tma_info_turbo_utilization * TSC / 1e9 / duration_time",
352*46db21afSIan Rogers        "MetricGroup": "Power;Summary",
353*46db21afSIan Rogers        "MetricName": "tma_info_average_frequency"
354*46db21afSIan Rogers    },
355*46db21afSIan Rogers    {
356*46db21afSIan Rogers        "BriefDescription": "Branch instructions per taken branch.",
357*46db21afSIan Rogers        "MetricExpr": "BR_INST_RETIRED.ALL_BRANCHES / BR_INST_RETIRED.NEAR_TAKEN",
358*46db21afSIan Rogers        "MetricGroup": "Branches;Fed;PGO",
359*46db21afSIan Rogers        "MetricName": "tma_info_bptkbranch"
360*46db21afSIan Rogers    },
361*46db21afSIan Rogers    {
362*46db21afSIan Rogers        "BriefDescription": "Branch Misprediction Cost: Fraction of TMA slots wasted per non-speculative branch misprediction (retired JEClear)",
363*46db21afSIan 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",
364*46db21afSIan Rogers        "MetricGroup": "Bad;BrMispredicts;tma_issueBM",
365*46db21afSIan Rogers        "MetricName": "tma_info_branch_misprediction_cost",
366*46db21afSIan Rogers        "PublicDescription": "Branch Misprediction Cost: Fraction of TMA slots wasted per non-speculative branch misprediction (retired JEClear). Related metrics: tma_branch_mispredicts, tma_mispredicts_resteers"
367*46db21afSIan Rogers    },
368*46db21afSIan Rogers    {
369*46db21afSIan Rogers        "BriefDescription": "Per-Logical Processor actual clocks when the Logical Processor is active.",
370*46db21afSIan Rogers        "MetricExpr": "CPU_CLK_UNHALTED.THREAD",
371*46db21afSIan Rogers        "MetricGroup": "Pipeline",
372*46db21afSIan Rogers        "MetricName": "tma_info_clks"
373*46db21afSIan Rogers    },
374*46db21afSIan Rogers    {
375*46db21afSIan Rogers        "BriefDescription": "Core actual clocks when any Logical Processor is active on the Physical Core",
376*46db21afSIan Rogers        "MetricExpr": "(CPU_CLK_UNHALTED.THREAD / 2 * (1 + CPU_CLK_UNHALTED.ONE_THREAD_ACTIVE / CPU_CLK_UNHALTED.REF_XCLK) if #core_wide < 1 else (CPU_CLK_UNHALTED.THREAD_ANY / 2 if #SMT_on else tma_info_clks))",
377*46db21afSIan Rogers        "MetricGroup": "SMT",
378*46db21afSIan Rogers        "MetricName": "tma_info_core_clks"
379*46db21afSIan Rogers    },
380*46db21afSIan Rogers    {
381*46db21afSIan Rogers        "BriefDescription": "Instructions Per Cycle across hyper-threads (per physical core)",
382*46db21afSIan Rogers        "MetricExpr": "INST_RETIRED.ANY / tma_info_core_clks",
383*46db21afSIan Rogers        "MetricGroup": "Ret;SMT;TmaL1;tma_L1_group",
384*46db21afSIan Rogers        "MetricName": "tma_info_coreipc"
385*46db21afSIan Rogers    },
386*46db21afSIan Rogers    {
387*46db21afSIan Rogers        "BriefDescription": "Cycles Per Instruction (per Logical Processor)",
388*46db21afSIan Rogers        "MetricExpr": "1 / tma_info_ipc",
389*46db21afSIan Rogers        "MetricGroup": "Mem;Pipeline",
390*46db21afSIan Rogers        "MetricName": "tma_info_cpi"
391*46db21afSIan Rogers    },
392*46db21afSIan Rogers    {
393*46db21afSIan Rogers        "BriefDescription": "Average CPU Utilization",
394*46db21afSIan Rogers        "MetricExpr": "CPU_CLK_UNHALTED.REF_TSC / TSC",
395*46db21afSIan Rogers        "MetricGroup": "HPC;Summary",
396*46db21afSIan Rogers        "MetricName": "tma_info_cpu_utilization"
397*46db21afSIan Rogers    },
398*46db21afSIan Rogers    {
399*46db21afSIan Rogers        "BriefDescription": "Average Parallel L2 cache miss data reads",
400*46db21afSIan Rogers        "MetricExpr": "OFFCORE_REQUESTS_OUTSTANDING.ALL_DATA_RD / OFFCORE_REQUESTS_OUTSTANDING.CYCLES_WITH_DATA_RD",
401*46db21afSIan Rogers        "MetricGroup": "Memory_BW;Offcore",
402*46db21afSIan Rogers        "MetricName": "tma_info_data_l2_mlp"
403*46db21afSIan Rogers    },
404*46db21afSIan Rogers    {
405*46db21afSIan Rogers        "BriefDescription": "Average external Memory Bandwidth Use for reads and writes [GB / sec]",
406*46db21afSIan Rogers        "MetricExpr": "64 * (UNC_M_CAS_COUNT.RD + UNC_M_CAS_COUNT.WR) / 1e9 / duration_time",
407*46db21afSIan Rogers        "MetricGroup": "HPC;Mem;MemoryBW;SoC;tma_issueBW",
408*46db21afSIan Rogers        "MetricName": "tma_info_dram_bw_use",
409*46db21afSIan Rogers        "PublicDescription": "Average external Memory Bandwidth Use for reads and writes [GB / sec]. Related metrics: tma_fb_full, tma_mem_bandwidth, tma_sq_full"
410*46db21afSIan Rogers    },
411*46db21afSIan Rogers    {
412*46db21afSIan Rogers        "BriefDescription": "Fraction of Uops delivered by the DSB (aka Decoded ICache; or Uop Cache)",
413*46db21afSIan Rogers        "MetricExpr": "IDQ.DSB_UOPS / (IDQ.DSB_UOPS + LSD.UOPS + IDQ.MITE_UOPS + IDQ.MS_UOPS)",
414*46db21afSIan Rogers        "MetricGroup": "DSB;Fed;FetchBW;tma_issueFB",
415*46db21afSIan Rogers        "MetricName": "tma_info_dsb_coverage",
416*46db21afSIan Rogers        "MetricThreshold": "tma_info_dsb_coverage < 0.7 & tma_info_ipc / 4 > 0.35",
417*46db21afSIan 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_iptb, tma_lcp"
418*46db21afSIan Rogers    },
419*46db21afSIan Rogers    {
420*46db21afSIan Rogers        "BriefDescription": "Instruction-Level-Parallelism (average number of uops executed when there is execution) per-thread",
421*46db21afSIan Rogers        "MetricExpr": "UOPS_EXECUTED.THREAD / cpu@UOPS_EXECUTED.THREAD\\,cmask\\=1@",
422*46db21afSIan Rogers        "MetricGroup": "Cor;Pipeline;PortsUtil;SMT",
423*46db21afSIan Rogers        "MetricName": "tma_info_execute"
424*46db21afSIan Rogers    },
425*46db21afSIan Rogers    {
426*46db21afSIan Rogers        "BriefDescription": "The ratio of Executed- by Issued-Uops",
427*46db21afSIan Rogers        "MetricExpr": "UOPS_EXECUTED.THREAD / UOPS_ISSUED.ANY",
428*46db21afSIan Rogers        "MetricGroup": "Cor;Pipeline",
429*46db21afSIan Rogers        "MetricName": "tma_info_execute_per_issue",
430*46db21afSIan 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."
431*46db21afSIan Rogers    },
432*46db21afSIan Rogers    {
433*46db21afSIan Rogers        "BriefDescription": "Floating Point Operations Per Cycle",
434*46db21afSIan Rogers        "MetricExpr": "(FP_ARITH_INST_RETIRED.SCALAR_SINGLE + FP_ARITH_INST_RETIRED.SCALAR_DOUBLE + 2 * FP_ARITH_INST_RETIRED.128B_PACKED_DOUBLE + 4 * (FP_ARITH_INST_RETIRED.128B_PACKED_SINGLE + FP_ARITH_INST_RETIRED.256B_PACKED_DOUBLE) + 8 * FP_ARITH_INST_RETIRED.256B_PACKED_SINGLE) / tma_info_core_clks",
435*46db21afSIan Rogers        "MetricGroup": "Flops;Ret",
436*46db21afSIan Rogers        "MetricName": "tma_info_flopc"
437*46db21afSIan Rogers    },
438*46db21afSIan Rogers    {
439*46db21afSIan Rogers        "BriefDescription": "Actual per-core usage of the Floating Point non-X87 execution units (regardless of precision or vector-width)",
440*46db21afSIan Rogers        "MetricExpr": "(cpu@FP_ARITH_INST_RETIRED.SCALAR_SINGLE\\,umask\\=0x03@ + cpu@FP_ARITH_INST_RETIRED.128B_PACKED_DOUBLE\\,umask\\=0x3c@) / (2 * tma_info_core_clks)",
441*46db21afSIan Rogers        "MetricGroup": "Cor;Flops;HPC",
442*46db21afSIan Rogers        "MetricName": "tma_info_fp_arith_utilization",
443*46db21afSIan 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)."
444*46db21afSIan Rogers    },
445*46db21afSIan Rogers    {
446*46db21afSIan Rogers        "BriefDescription": "Giga Floating Point Operations Per Second",
447*46db21afSIan Rogers        "MetricExpr": "(FP_ARITH_INST_RETIRED.SCALAR_SINGLE + FP_ARITH_INST_RETIRED.SCALAR_DOUBLE + 2 * FP_ARITH_INST_RETIRED.128B_PACKED_DOUBLE + 4 * (FP_ARITH_INST_RETIRED.128B_PACKED_SINGLE + FP_ARITH_INST_RETIRED.256B_PACKED_DOUBLE) + 8 * FP_ARITH_INST_RETIRED.256B_PACKED_SINGLE) / 1e9 / duration_time",
448*46db21afSIan Rogers        "MetricGroup": "Cor;Flops;HPC",
449*46db21afSIan Rogers        "MetricName": "tma_info_gflops",
450*46db21afSIan 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."
451*46db21afSIan Rogers    },
452*46db21afSIan Rogers    {
453*46db21afSIan Rogers        "BriefDescription": "Instruction-Level-Parallelism (average number of uops executed when there is execution) per-core",
454*46db21afSIan Rogers        "MetricExpr": "UOPS_EXECUTED.THREAD / (cpu@UOPS_EXECUTED.CORE\\,cmask\\=1@ / 2 if #SMT_on else UOPS_EXECUTED.CYCLES_GE_1_UOP_EXEC)",
455*46db21afSIan Rogers        "MetricGroup": "Backend;Cor;Pipeline;PortsUtil",
456*46db21afSIan Rogers        "MetricName": "tma_info_ilp"
457*46db21afSIan Rogers    },
458*46db21afSIan Rogers    {
459*46db21afSIan Rogers        "BriefDescription": "Total number of retired Instructions",
460*46db21afSIan Rogers        "MetricExpr": "INST_RETIRED.ANY",
461*46db21afSIan Rogers        "MetricGroup": "Summary;TmaL1;tma_L1_group",
462*46db21afSIan Rogers        "MetricName": "tma_info_instructions",
463*46db21afSIan Rogers        "PublicDescription": "Total number of retired Instructions. Sample with: INST_RETIRED.PREC_DIST"
464*46db21afSIan Rogers    },
465*46db21afSIan Rogers    {
466*46db21afSIan Rogers        "BriefDescription": "Instructions per FP Arithmetic instruction (lower number means higher occurrence rate)",
467*46db21afSIan Rogers        "MetricExpr": "INST_RETIRED.ANY / (cpu@FP_ARITH_INST_RETIRED.SCALAR_SINGLE\\,umask\\=0x03@ + cpu@FP_ARITH_INST_RETIRED.128B_PACKED_DOUBLE\\,umask\\=0x3c@)",
468*46db21afSIan Rogers        "MetricGroup": "Flops;InsType",
469*46db21afSIan Rogers        "MetricName": "tma_info_iparith",
470*46db21afSIan Rogers        "MetricThreshold": "tma_info_iparith < 10",
471*46db21afSIan Rogers        "PublicDescription": "Instructions per FP Arithmetic instruction (lower number means higher occurrence rate). May undercount due to FMA double counting. Approximated prior to BDW."
472*46db21afSIan Rogers    },
473*46db21afSIan Rogers    {
474*46db21afSIan Rogers        "BriefDescription": "Instructions per FP Arithmetic AVX/SSE 128-bit instruction (lower number means higher occurrence rate)",
475*46db21afSIan Rogers        "MetricExpr": "INST_RETIRED.ANY / (FP_ARITH_INST_RETIRED.128B_PACKED_DOUBLE + FP_ARITH_INST_RETIRED.128B_PACKED_SINGLE)",
476*46db21afSIan Rogers        "MetricGroup": "Flops;FpVector;InsType",
477*46db21afSIan Rogers        "MetricName": "tma_info_iparith_avx128",
478*46db21afSIan Rogers        "MetricThreshold": "tma_info_iparith_avx128 < 10",
479*46db21afSIan Rogers        "PublicDescription": "Instructions per FP Arithmetic AVX/SSE 128-bit instruction (lower number means higher occurrence rate). May undercount due to FMA double counting."
480*46db21afSIan Rogers    },
481*46db21afSIan Rogers    {
482*46db21afSIan Rogers        "BriefDescription": "Instructions per FP Arithmetic AVX* 256-bit instruction (lower number means higher occurrence rate)",
483*46db21afSIan Rogers        "MetricExpr": "INST_RETIRED.ANY / (FP_ARITH_INST_RETIRED.256B_PACKED_DOUBLE + FP_ARITH_INST_RETIRED.256B_PACKED_SINGLE)",
484*46db21afSIan Rogers        "MetricGroup": "Flops;FpVector;InsType",
485*46db21afSIan Rogers        "MetricName": "tma_info_iparith_avx256",
486*46db21afSIan Rogers        "MetricThreshold": "tma_info_iparith_avx256 < 10",
487*46db21afSIan Rogers        "PublicDescription": "Instructions per FP Arithmetic AVX* 256-bit instruction (lower number means higher occurrence rate). May undercount due to FMA double counting."
488*46db21afSIan Rogers    },
489*46db21afSIan Rogers    {
490*46db21afSIan Rogers        "BriefDescription": "Instructions per FP Arithmetic Scalar Double-Precision instruction (lower number means higher occurrence rate)",
491*46db21afSIan Rogers        "MetricExpr": "INST_RETIRED.ANY / FP_ARITH_INST_RETIRED.SCALAR_DOUBLE",
492*46db21afSIan Rogers        "MetricGroup": "Flops;FpScalar;InsType",
493*46db21afSIan Rogers        "MetricName": "tma_info_iparith_scalar_dp",
494*46db21afSIan Rogers        "MetricThreshold": "tma_info_iparith_scalar_dp < 10",
495*46db21afSIan Rogers        "PublicDescription": "Instructions per FP Arithmetic Scalar Double-Precision instruction (lower number means higher occurrence rate). May undercount due to FMA double counting."
496*46db21afSIan Rogers    },
497*46db21afSIan Rogers    {
498*46db21afSIan Rogers        "BriefDescription": "Instructions per FP Arithmetic Scalar Single-Precision instruction (lower number means higher occurrence rate)",
499*46db21afSIan Rogers        "MetricExpr": "INST_RETIRED.ANY / FP_ARITH_INST_RETIRED.SCALAR_SINGLE",
500*46db21afSIan Rogers        "MetricGroup": "Flops;FpScalar;InsType",
501*46db21afSIan Rogers        "MetricName": "tma_info_iparith_scalar_sp",
502*46db21afSIan Rogers        "MetricThreshold": "tma_info_iparith_scalar_sp < 10",
503*46db21afSIan Rogers        "PublicDescription": "Instructions per FP Arithmetic Scalar Single-Precision instruction (lower number means higher occurrence rate). May undercount due to FMA double counting."
504*46db21afSIan Rogers    },
505*46db21afSIan Rogers    {
506*46db21afSIan Rogers        "BriefDescription": "Instructions per Branch (lower number means higher occurrence rate)",
507*46db21afSIan Rogers        "MetricExpr": "INST_RETIRED.ANY / BR_INST_RETIRED.ALL_BRANCHES",
508*46db21afSIan Rogers        "MetricGroup": "Branches;Fed;InsType",
509*46db21afSIan Rogers        "MetricName": "tma_info_ipbranch",
510*46db21afSIan Rogers        "MetricThreshold": "tma_info_ipbranch < 8"
511*46db21afSIan Rogers    },
512*46db21afSIan Rogers    {
513*46db21afSIan Rogers        "BriefDescription": "Instructions Per Cycle (per Logical Processor)",
514*46db21afSIan Rogers        "MetricExpr": "INST_RETIRED.ANY / tma_info_clks",
515*46db21afSIan Rogers        "MetricGroup": "Ret;Summary",
516*46db21afSIan Rogers        "MetricName": "tma_info_ipc"
517*46db21afSIan Rogers    },
518*46db21afSIan Rogers    {
519*46db21afSIan Rogers        "BriefDescription": "Instructions per (near) call (lower number means higher occurrence rate)",
520*46db21afSIan Rogers        "MetricExpr": "INST_RETIRED.ANY / BR_INST_RETIRED.NEAR_CALL",
521*46db21afSIan Rogers        "MetricGroup": "Branches;Fed;PGO",
522*46db21afSIan Rogers        "MetricName": "tma_info_ipcall",
523*46db21afSIan Rogers        "MetricThreshold": "tma_info_ipcall < 200"
524*46db21afSIan Rogers    },
525*46db21afSIan Rogers    {
526*46db21afSIan 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]",
527*46db21afSIan Rogers        "MetricExpr": "INST_RETIRED.ANY / BR_INST_RETIRED.FAR_BRANCH:u",
528*46db21afSIan Rogers        "MetricGroup": "Branches;OS",
529*46db21afSIan Rogers        "MetricName": "tma_info_ipfarbranch",
530*46db21afSIan Rogers        "MetricThreshold": "tma_info_ipfarbranch < 1e6"
531*46db21afSIan Rogers    },
532*46db21afSIan Rogers    {
533*46db21afSIan Rogers        "BriefDescription": "Instructions per Floating Point (FP) Operation (lower number means higher occurrence rate)",
534*46db21afSIan Rogers        "MetricExpr": "INST_RETIRED.ANY / (FP_ARITH_INST_RETIRED.SCALAR_SINGLE + FP_ARITH_INST_RETIRED.SCALAR_DOUBLE + 2 * FP_ARITH_INST_RETIRED.128B_PACKED_DOUBLE + 4 * (FP_ARITH_INST_RETIRED.128B_PACKED_SINGLE + FP_ARITH_INST_RETIRED.256B_PACKED_DOUBLE) + 8 * FP_ARITH_INST_RETIRED.256B_PACKED_SINGLE)",
535*46db21afSIan Rogers        "MetricGroup": "Flops;InsType",
536*46db21afSIan Rogers        "MetricName": "tma_info_ipflop",
537*46db21afSIan Rogers        "MetricThreshold": "tma_info_ipflop < 10"
538*46db21afSIan Rogers    },
539*46db21afSIan Rogers    {
540*46db21afSIan Rogers        "BriefDescription": "Instructions per Load (lower number means higher occurrence rate)",
541*46db21afSIan Rogers        "MetricExpr": "INST_RETIRED.ANY / MEM_UOPS_RETIRED.ALL_LOADS",
542*46db21afSIan Rogers        "MetricGroup": "InsType",
543*46db21afSIan Rogers        "MetricName": "tma_info_ipload",
544*46db21afSIan Rogers        "MetricThreshold": "tma_info_ipload < 3"
545*46db21afSIan Rogers    },
546*46db21afSIan Rogers    {
547*46db21afSIan Rogers        "BriefDescription": "Instructions per retired mispredicts for indirect CALL or JMP branches (lower number means higher occurrence rate).",
548*46db21afSIan Rogers        "MetricExpr": "tma_info_instructions / (UOPS_RETIRED.RETIRE_SLOTS / UOPS_ISSUED.ANY * cpu@BR_MISP_EXEC.ALL_BRANCHES\\,umask\\=0xE4@)",
549*46db21afSIan Rogers        "MetricGroup": "Bad;BrMispredicts",
550*46db21afSIan Rogers        "MetricName": "tma_info_ipmisp_indirect",
551*46db21afSIan Rogers        "MetricThreshold": "tma_info_ipmisp_indirect < 1e3"
552*46db21afSIan Rogers    },
553*46db21afSIan Rogers    {
554*46db21afSIan Rogers        "BriefDescription": "Number of Instructions per non-speculative Branch Misprediction (JEClear) (lower number means higher occurrence rate)",
555*46db21afSIan Rogers        "MetricExpr": "INST_RETIRED.ANY / BR_MISP_RETIRED.ALL_BRANCHES",
556*46db21afSIan Rogers        "MetricGroup": "Bad;BadSpec;BrMispredicts",
557*46db21afSIan Rogers        "MetricName": "tma_info_ipmispredict",
558*46db21afSIan Rogers        "MetricThreshold": "tma_info_ipmispredict < 200"
559*46db21afSIan Rogers    },
560*46db21afSIan Rogers    {
561*46db21afSIan Rogers        "BriefDescription": "Instructions per Store (lower number means higher occurrence rate)",
562*46db21afSIan Rogers        "MetricExpr": "INST_RETIRED.ANY / MEM_UOPS_RETIRED.ALL_STORES",
563*46db21afSIan Rogers        "MetricGroup": "InsType",
564*46db21afSIan Rogers        "MetricName": "tma_info_ipstore",
565*46db21afSIan Rogers        "MetricThreshold": "tma_info_ipstore < 8"
566*46db21afSIan Rogers    },
567*46db21afSIan Rogers    {
568*46db21afSIan Rogers        "BriefDescription": "Instruction per taken branch",
569*46db21afSIan Rogers        "MetricExpr": "INST_RETIRED.ANY / BR_INST_RETIRED.NEAR_TAKEN",
570*46db21afSIan Rogers        "MetricGroup": "Branches;Fed;FetchBW;Frontend;PGO;tma_issueFB",
571*46db21afSIan Rogers        "MetricName": "tma_info_iptb",
572*46db21afSIan Rogers        "MetricThreshold": "tma_info_iptb < 9",
573*46db21afSIan Rogers        "PublicDescription": "Instruction per taken branch. Related metrics: tma_dsb_switches, tma_fetch_bandwidth, tma_info_dsb_coverage, tma_lcp"
574*46db21afSIan Rogers    },
575*46db21afSIan Rogers    {
576*46db21afSIan Rogers        "BriefDescription": "Instructions per speculative Unknown Branch Misprediction (BAClear) (lower number means higher occurrence rate)",
577*46db21afSIan Rogers        "MetricExpr": "tma_info_instructions / BACLEARS.ANY",
578*46db21afSIan Rogers        "MetricGroup": "Fed",
579*46db21afSIan Rogers        "MetricName": "tma_info_ipunknown_branch"
580*46db21afSIan Rogers    },
581*46db21afSIan Rogers    {
582*46db21afSIan Rogers        "BriefDescription": "Cycles Per Instruction for the Operating System (OS) Kernel mode",
583*46db21afSIan Rogers        "MetricExpr": "CPU_CLK_UNHALTED.THREAD_P:k / INST_RETIRED.ANY_P:k",
584*46db21afSIan Rogers        "MetricGroup": "OS",
585*46db21afSIan Rogers        "MetricName": "tma_info_kernel_cpi"
586*46db21afSIan Rogers    },
587*46db21afSIan Rogers    {
588*46db21afSIan Rogers        "BriefDescription": "Fraction of cycles spent in the Operating System (OS) Kernel mode",
589*46db21afSIan Rogers        "MetricExpr": "CPU_CLK_UNHALTED.THREAD_P:k / CPU_CLK_UNHALTED.THREAD",
590*46db21afSIan Rogers        "MetricGroup": "OS",
591*46db21afSIan Rogers        "MetricName": "tma_info_kernel_utilization",
592*46db21afSIan Rogers        "MetricThreshold": "tma_info_kernel_utilization > 0.05"
593*46db21afSIan Rogers    },
594*46db21afSIan Rogers    {
595*46db21afSIan Rogers        "BriefDescription": "Average per-core data fill bandwidth to the L1 data cache [GB / sec]",
596*46db21afSIan Rogers        "MetricExpr": "64 * L1D.REPLACEMENT / 1e9 / duration_time",
597*46db21afSIan Rogers        "MetricGroup": "Mem;MemoryBW",
598*46db21afSIan Rogers        "MetricName": "tma_info_l1d_cache_fill_bw"
599*46db21afSIan Rogers    },
600*46db21afSIan Rogers    {
601*46db21afSIan Rogers        "BriefDescription": "Average per-thread data fill bandwidth to the L1 data cache [GB / sec]",
602*46db21afSIan Rogers        "MetricExpr": "tma_info_l1d_cache_fill_bw",
603*46db21afSIan Rogers        "MetricGroup": "Mem;MemoryBW",
604*46db21afSIan Rogers        "MetricName": "tma_info_l1d_cache_fill_bw_1t"
605*46db21afSIan Rogers    },
606*46db21afSIan Rogers    {
607*46db21afSIan Rogers        "BriefDescription": "L1 cache true misses per kilo instruction for retired demand loads",
608*46db21afSIan Rogers        "MetricExpr": "1e3 * MEM_LOAD_UOPS_RETIRED.L1_MISS / INST_RETIRED.ANY",
609*46db21afSIan Rogers        "MetricGroup": "CacheMisses;Mem",
610*46db21afSIan Rogers        "MetricName": "tma_info_l1mpki"
611*46db21afSIan Rogers    },
612*46db21afSIan Rogers    {
613*46db21afSIan Rogers        "BriefDescription": "Average per-core data fill bandwidth to the L2 cache [GB / sec]",
614*46db21afSIan Rogers        "MetricExpr": "64 * L2_LINES_IN.ALL / 1e9 / duration_time",
615*46db21afSIan Rogers        "MetricGroup": "Mem;MemoryBW",
616*46db21afSIan Rogers        "MetricName": "tma_info_l2_cache_fill_bw"
617*46db21afSIan Rogers    },
618*46db21afSIan Rogers    {
619*46db21afSIan Rogers        "BriefDescription": "Average per-thread data fill bandwidth to the L2 cache [GB / sec]",
620*46db21afSIan Rogers        "MetricExpr": "tma_info_l2_cache_fill_bw",
621*46db21afSIan Rogers        "MetricGroup": "Mem;MemoryBW",
622*46db21afSIan Rogers        "MetricName": "tma_info_l2_cache_fill_bw_1t"
623*46db21afSIan Rogers    },
624*46db21afSIan Rogers    {
625*46db21afSIan Rogers        "BriefDescription": "L2 cache hits per kilo instruction for all request types (including speculative)",
626*46db21afSIan Rogers        "MetricExpr": "1e3 * (L2_RQSTS.REFERENCES - L2_RQSTS.MISS) / INST_RETIRED.ANY",
627*46db21afSIan Rogers        "MetricGroup": "CacheMisses;Mem",
628*46db21afSIan Rogers        "MetricName": "tma_info_l2hpki_all"
629*46db21afSIan Rogers    },
630*46db21afSIan Rogers    {
631*46db21afSIan Rogers        "BriefDescription": "L2 cache hits per kilo instruction for all demand loads  (including speculative)",
632*46db21afSIan Rogers        "MetricExpr": "1e3 * L2_RQSTS.DEMAND_DATA_RD_HIT / INST_RETIRED.ANY",
633*46db21afSIan Rogers        "MetricGroup": "CacheMisses;Mem",
634*46db21afSIan Rogers        "MetricName": "tma_info_l2hpki_load"
635*46db21afSIan Rogers    },
636*46db21afSIan Rogers    {
637*46db21afSIan Rogers        "BriefDescription": "L2 cache true misses per kilo instruction for retired demand loads",
638*46db21afSIan Rogers        "MetricExpr": "1e3 * MEM_LOAD_UOPS_RETIRED.L2_MISS / INST_RETIRED.ANY",
639*46db21afSIan Rogers        "MetricGroup": "Backend;CacheMisses;Mem",
640*46db21afSIan Rogers        "MetricName": "tma_info_l2mpki"
641*46db21afSIan Rogers    },
642*46db21afSIan Rogers    {
643*46db21afSIan Rogers        "BriefDescription": "L2 cache ([RKL+] true) misses per kilo instruction for all request types (including speculative)",
644*46db21afSIan Rogers        "MetricExpr": "1e3 * L2_RQSTS.MISS / INST_RETIRED.ANY",
645*46db21afSIan Rogers        "MetricGroup": "CacheMisses;Mem;Offcore",
646*46db21afSIan Rogers        "MetricName": "tma_info_l2mpki_all"
647*46db21afSIan Rogers    },
648*46db21afSIan Rogers    {
649*46db21afSIan Rogers        "BriefDescription": "L2 cache ([RKL+] true) misses per kilo instruction for all demand loads  (including speculative)",
650*46db21afSIan Rogers        "MetricExpr": "1e3 * L2_RQSTS.DEMAND_DATA_RD_MISS / INST_RETIRED.ANY",
651*46db21afSIan Rogers        "MetricGroup": "CacheMisses;Mem",
652*46db21afSIan Rogers        "MetricName": "tma_info_l2mpki_load"
653*46db21afSIan Rogers    },
654*46db21afSIan Rogers    {
655*46db21afSIan Rogers        "BriefDescription": "Average per-thread data access bandwidth to the L3 cache [GB / sec]",
656*46db21afSIan Rogers        "MetricExpr": "0",
657*46db21afSIan Rogers        "MetricGroup": "Mem;MemoryBW;Offcore",
658*46db21afSIan Rogers        "MetricName": "tma_info_l3_cache_access_bw_1t"
659*46db21afSIan Rogers    },
660*46db21afSIan Rogers    {
661*46db21afSIan Rogers        "BriefDescription": "Average per-core data fill bandwidth to the L3 cache [GB / sec]",
662*46db21afSIan Rogers        "MetricExpr": "64 * LONGEST_LAT_CACHE.MISS / 1e9 / duration_time",
663*46db21afSIan Rogers        "MetricGroup": "Mem;MemoryBW",
664*46db21afSIan Rogers        "MetricName": "tma_info_l3_cache_fill_bw"
665*46db21afSIan Rogers    },
666*46db21afSIan Rogers    {
667*46db21afSIan Rogers        "BriefDescription": "Average per-thread data fill bandwidth to the L3 cache [GB / sec]",
668*46db21afSIan Rogers        "MetricExpr": "tma_info_l3_cache_fill_bw",
669*46db21afSIan Rogers        "MetricGroup": "Mem;MemoryBW",
670*46db21afSIan Rogers        "MetricName": "tma_info_l3_cache_fill_bw_1t"
671*46db21afSIan Rogers    },
672*46db21afSIan Rogers    {
673*46db21afSIan Rogers        "BriefDescription": "L3 cache true misses per kilo instruction for retired demand loads",
674*46db21afSIan Rogers        "MetricExpr": "1e3 * MEM_LOAD_UOPS_RETIRED.L3_MISS / INST_RETIRED.ANY",
675*46db21afSIan Rogers        "MetricGroup": "CacheMisses;Mem",
676*46db21afSIan Rogers        "MetricName": "tma_info_l3mpki"
677*46db21afSIan Rogers    },
678*46db21afSIan Rogers    {
679*46db21afSIan Rogers        "BriefDescription": "Average Latency for L2 cache miss demand Loads",
680*46db21afSIan Rogers        "MetricExpr": "OFFCORE_REQUESTS_OUTSTANDING.DEMAND_DATA_RD / OFFCORE_REQUESTS.DEMAND_DATA_RD",
681*46db21afSIan Rogers        "MetricGroup": "Memory_Lat;Offcore",
682*46db21afSIan Rogers        "MetricName": "tma_info_load_l2_miss_latency"
683*46db21afSIan Rogers    },
684*46db21afSIan Rogers    {
685*46db21afSIan Rogers        "BriefDescription": "Average Parallel L2 cache miss demand Loads",
686*46db21afSIan Rogers        "MetricExpr": "OFFCORE_REQUESTS_OUTSTANDING.DEMAND_DATA_RD / OFFCORE_REQUESTS_OUTSTANDING.CYCLES_WITH_DEMAND_DATA_RD",
687*46db21afSIan Rogers        "MetricGroup": "Memory_BW;Offcore",
688*46db21afSIan Rogers        "MetricName": "tma_info_load_l2_mlp"
689*46db21afSIan Rogers    },
690*46db21afSIan Rogers    {
691*46db21afSIan Rogers        "BriefDescription": "Actual Average Latency for L1 data-cache miss demand load operations (in core cycles)",
692*46db21afSIan Rogers        "MetricConstraint": "NO_GROUP_EVENTS",
693*46db21afSIan Rogers        "MetricExpr": "L1D_PEND_MISS.PENDING / (MEM_LOAD_UOPS_RETIRED.L1_MISS + MEM_LOAD_UOPS_RETIRED.HIT_LFB)",
694*46db21afSIan Rogers        "MetricGroup": "Mem;MemoryBound;MemoryLat",
695*46db21afSIan Rogers        "MetricName": "tma_info_load_miss_real_latency"
696*46db21afSIan Rogers    },
697*46db21afSIan Rogers    {
698*46db21afSIan Rogers        "BriefDescription": "Average number of parallel data read requests to external memory",
699*46db21afSIan Rogers        "MetricExpr": "UNC_C_TOR_OCCUPANCY.MISS_OPCODE@filter_opc\\=0x182@ / UNC_C_TOR_OCCUPANCY.MISS_OPCODE@filter_opc\\=0x182\\,thresh\\=1@",
700*46db21afSIan Rogers        "MetricGroup": "Mem;MemoryBW;SoC",
701*46db21afSIan Rogers        "MetricName": "tma_info_mem_parallel_reads",
702*46db21afSIan Rogers        "PublicDescription": "Average number of parallel data read requests to external memory. Accounts for demand loads and L1/L2 prefetches"
703*46db21afSIan Rogers    },
704*46db21afSIan Rogers    {
705*46db21afSIan Rogers        "BriefDescription": "Average latency of data read request to external memory (in nanoseconds)",
706*46db21afSIan Rogers        "MetricExpr": "1e9 * (UNC_C_TOR_OCCUPANCY.MISS_OPCODE@filter_opc\\=0x182@ / UNC_C_TOR_INSERTS.MISS_OPCODE@filter_opc\\=0x182@) / (tma_info_socket_clks / duration_time)",
707*46db21afSIan Rogers        "MetricGroup": "Mem;MemoryLat;SoC",
708*46db21afSIan Rogers        "MetricName": "tma_info_mem_read_latency",
709*46db21afSIan 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)"
710*46db21afSIan Rogers    },
711*46db21afSIan Rogers    {
712*46db21afSIan Rogers        "BriefDescription": "Memory-Level-Parallelism (average number of L1 miss demand load when there is at least one such miss",
713*46db21afSIan Rogers        "MetricConstraint": "NO_GROUP_EVENTS",
714*46db21afSIan Rogers        "MetricExpr": "L1D_PEND_MISS.PENDING / L1D_PEND_MISS.PENDING_CYCLES",
715*46db21afSIan Rogers        "MetricGroup": "Mem;MemoryBW;MemoryBound",
716*46db21afSIan Rogers        "MetricName": "tma_info_mlp",
717*46db21afSIan Rogers        "PublicDescription": "Memory-Level-Parallelism (average number of L1 miss demand load when there is at least one such miss. Per-Logical Processor)"
718*46db21afSIan Rogers    },
719*46db21afSIan Rogers    {
720*46db21afSIan Rogers        "BriefDescription": "Utilization of the core's Page Walker(s) serving STLB misses triggered by instruction/Load/Store accesses",
721*46db21afSIan Rogers        "MetricExpr": "(ITLB_MISSES.WALK_DURATION + DTLB_LOAD_MISSES.WALK_DURATION + DTLB_STORE_MISSES.WALK_DURATION + 7 * (DTLB_STORE_MISSES.WALK_COMPLETED + DTLB_LOAD_MISSES.WALK_COMPLETED + ITLB_MISSES.WALK_COMPLETED)) / (2 * tma_info_core_clks)",
722*46db21afSIan Rogers        "MetricGroup": "Mem;MemoryTLB",
723*46db21afSIan Rogers        "MetricName": "tma_info_page_walks_utilization",
724*46db21afSIan Rogers        "MetricThreshold": "tma_info_page_walks_utilization > 0.5"
725*46db21afSIan Rogers    },
726*46db21afSIan Rogers    {
727*46db21afSIan Rogers        "BriefDescription": "Average number of Uops retired in cycles where at least one uop has retired.",
728*46db21afSIan Rogers        "MetricExpr": "UOPS_RETIRED.RETIRE_SLOTS / cpu@UOPS_RETIRED.RETIRE_SLOTS\\,cmask\\=1@",
729*46db21afSIan Rogers        "MetricGroup": "Pipeline;Ret",
730*46db21afSIan Rogers        "MetricName": "tma_info_retire"
731*46db21afSIan Rogers    },
732*46db21afSIan Rogers    {
733*46db21afSIan Rogers        "BriefDescription": "Total issue-pipeline slots (per-Physical Core till ICL; per-Logical Processor ICL onward)",
734*46db21afSIan Rogers        "MetricExpr": "4 * tma_info_core_clks",
735*46db21afSIan Rogers        "MetricGroup": "TmaL1;tma_L1_group",
736*46db21afSIan Rogers        "MetricName": "tma_info_slots"
737*46db21afSIan Rogers    },
738*46db21afSIan Rogers    {
739*46db21afSIan Rogers        "BriefDescription": "Fraction of cycles where both hardware Logical Processors were active",
740*46db21afSIan Rogers        "MetricExpr": "(1 - CPU_CLK_UNHALTED.ONE_THREAD_ACTIVE / (CPU_CLK_UNHALTED.REF_XCLK_ANY / 2) if #SMT_on else 0)",
741*46db21afSIan Rogers        "MetricGroup": "SMT",
742*46db21afSIan Rogers        "MetricName": "tma_info_smt_2t_utilization"
743*46db21afSIan Rogers    },
744*46db21afSIan Rogers    {
745*46db21afSIan Rogers        "BriefDescription": "Socket actual clocks when any core is active on that socket",
746*46db21afSIan Rogers        "MetricExpr": "cbox_0@event\\=0x0@",
747*46db21afSIan Rogers        "MetricGroup": "SoC",
748*46db21afSIan Rogers        "MetricName": "tma_info_socket_clks"
749*46db21afSIan Rogers    },
750*46db21afSIan Rogers    {
751*46db21afSIan Rogers        "BriefDescription": "Average Frequency Utilization relative nominal frequency",
752*46db21afSIan Rogers        "MetricExpr": "tma_info_clks / CPU_CLK_UNHALTED.REF_TSC",
753*46db21afSIan Rogers        "MetricGroup": "Power",
754*46db21afSIan Rogers        "MetricName": "tma_info_turbo_utilization"
755*46db21afSIan Rogers    },
756*46db21afSIan Rogers    {
757*46db21afSIan Rogers        "BriefDescription": "Uops Per Instruction",
758*46db21afSIan Rogers        "MetricExpr": "UOPS_RETIRED.RETIRE_SLOTS / INST_RETIRED.ANY",
759*46db21afSIan Rogers        "MetricGroup": "Pipeline;Ret;Retire",
760*46db21afSIan Rogers        "MetricName": "tma_info_uoppi",
761*46db21afSIan Rogers        "MetricThreshold": "tma_info_uoppi > 1.05"
762*46db21afSIan Rogers    },
763*46db21afSIan Rogers    {
764*46db21afSIan Rogers        "BriefDescription": "Instruction per taken branch",
765*46db21afSIan Rogers        "MetricExpr": "UOPS_RETIRED.RETIRE_SLOTS / BR_INST_RETIRED.NEAR_TAKEN",
766*46db21afSIan Rogers        "MetricGroup": "Branches;Fed;FetchBW",
767*46db21afSIan Rogers        "MetricName": "tma_info_uptb",
768*46db21afSIan Rogers        "MetricThreshold": "tma_info_uptb < 6"
769*46db21afSIan Rogers    },
770*46db21afSIan Rogers    {
771*46db21afSIan Rogers        "BriefDescription": "This metric represents fraction of cycles the CPU was stalled due to Instruction TLB (ITLB) misses",
772*46db21afSIan Rogers        "MetricExpr": "(14 * ITLB_MISSES.STLB_HIT + cpu@ITLB_MISSES.WALK_DURATION\\,cmask\\=1@ + 7 * ITLB_MISSES.WALK_COMPLETED) / tma_info_clks",
773*46db21afSIan Rogers        "MetricGroup": "BigFoot;FetchLat;MemoryTLB;TopdownL3;tma_L3_group;tma_fetch_latency_group",
774*46db21afSIan Rogers        "MetricName": "tma_itlb_misses",
775*46db21afSIan Rogers        "MetricThreshold": "tma_itlb_misses > 0.05 & (tma_fetch_latency > 0.1 & tma_frontend_bound > 0.15)",
776*46db21afSIan Rogers        "PublicDescription": "This metric represents fraction of cycles the CPU was stalled due to Instruction TLB (ITLB) misses. Sample with: ITLB_MISSES.WALK_COMPLETED",
777*46db21afSIan Rogers        "ScaleUnit": "100%"
778*46db21afSIan Rogers    },
779*46db21afSIan Rogers    {
780*46db21afSIan Rogers        "BriefDescription": "This metric estimates how often the CPU was stalled without loads missing the L1 data cache",
781*46db21afSIan Rogers        "MetricExpr": "max((CYCLE_ACTIVITY.STALLS_MEM_ANY - CYCLE_ACTIVITY.STALLS_L1D_MISS) / tma_info_clks, 0)",
782*46db21afSIan Rogers        "MetricGroup": "CacheMisses;MemoryBound;TmaL3mem;TopdownL3;tma_L3_group;tma_issueL1;tma_issueMC;tma_memory_bound_group",
783*46db21afSIan Rogers        "MetricName": "tma_l1_bound",
784*46db21afSIan Rogers        "MetricThreshold": "tma_l1_bound > 0.1 & (tma_memory_bound > 0.2 & tma_backend_bound > 0.2)",
785*46db21afSIan 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_UOPS_RETIRED.L1_HIT_PS;MEM_LOAD_UOPS_RETIRED.HIT_LFB_PS. Related metrics: tma_clears_resteers, tma_machine_clears, tma_microcode_sequencer, tma_ms_switches, tma_ports_utilized_1",
786*46db21afSIan Rogers        "ScaleUnit": "100%"
787*46db21afSIan Rogers    },
788*46db21afSIan Rogers    {
789*46db21afSIan Rogers        "BriefDescription": "This metric estimates how often the CPU was stalled due to L2 cache accesses by loads",
790*46db21afSIan Rogers        "MetricExpr": "(CYCLE_ACTIVITY.STALLS_L1D_MISS - CYCLE_ACTIVITY.STALLS_L2_MISS) / tma_info_clks",
791*46db21afSIan Rogers        "MetricGroup": "CacheMisses;MemoryBound;TmaL3mem;TopdownL3;tma_L3_group;tma_memory_bound_group",
792*46db21afSIan Rogers        "MetricName": "tma_l2_bound",
793*46db21afSIan Rogers        "MetricThreshold": "tma_l2_bound > 0.05 & (tma_memory_bound > 0.2 & tma_backend_bound > 0.2)",
794*46db21afSIan 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_UOPS_RETIRED.L2_HIT_PS",
795*46db21afSIan Rogers        "ScaleUnit": "100%"
796*46db21afSIan Rogers    },
797*46db21afSIan Rogers    {
798*46db21afSIan Rogers        "BriefDescription": "This metric estimates how often the CPU was stalled due to loads accesses to L3 cache or contended with a sibling Core",
799*46db21afSIan Rogers        "MetricConstraint": "NO_GROUP_EVENTS_SMT",
800*46db21afSIan Rogers        "MetricExpr": "MEM_LOAD_UOPS_RETIRED.L3_HIT / (MEM_LOAD_UOPS_RETIRED.L3_HIT + 7 * MEM_LOAD_UOPS_RETIRED.L3_MISS) * CYCLE_ACTIVITY.STALLS_L2_MISS / tma_info_clks",
801*46db21afSIan Rogers        "MetricGroup": "CacheMisses;MemoryBound;TmaL3mem;TopdownL3;tma_L3_group;tma_memory_bound_group",
802*46db21afSIan Rogers        "MetricName": "tma_l3_bound",
803*46db21afSIan Rogers        "MetricThreshold": "tma_l3_bound > 0.05 & (tma_memory_bound > 0.2 & tma_backend_bound > 0.2)",
804*46db21afSIan 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_UOPS_RETIRED.L3_HIT_PS",
805*46db21afSIan Rogers        "ScaleUnit": "100%"
806*46db21afSIan Rogers    },
807*46db21afSIan Rogers    {
808*46db21afSIan Rogers        "BriefDescription": "This metric represents fraction of cycles with demand load accesses that hit the L3 cache under unloaded scenarios (possibly L3 latency limited)",
809*46db21afSIan Rogers        "MetricConstraint": "NO_GROUP_EVENTS",
810*46db21afSIan Rogers        "MetricExpr": "41 * (MEM_LOAD_UOPS_RETIRED.L3_HIT * (1 + MEM_LOAD_UOPS_RETIRED.HIT_LFB / (MEM_LOAD_UOPS_RETIRED.L2_HIT + MEM_LOAD_UOPS_RETIRED.L3_HIT + MEM_LOAD_UOPS_L3_HIT_RETIRED.XSNP_HIT + MEM_LOAD_UOPS_L3_HIT_RETIRED.XSNP_HITM + MEM_LOAD_UOPS_L3_HIT_RETIRED.XSNP_MISS + MEM_LOAD_UOPS_L3_MISS_RETIRED.LOCAL_DRAM + MEM_LOAD_UOPS_L3_MISS_RETIRED.REMOTE_DRAM + MEM_LOAD_UOPS_L3_MISS_RETIRED.REMOTE_HITM + MEM_LOAD_UOPS_L3_MISS_RETIRED.REMOTE_FWD))) / tma_info_clks",
811*46db21afSIan Rogers        "MetricGroup": "MemoryLat;TopdownL4;tma_L4_group;tma_issueLat;tma_l3_bound_group",
812*46db21afSIan Rogers        "MetricName": "tma_l3_hit_latency",
813*46db21afSIan Rogers        "MetricThreshold": "tma_l3_hit_latency > 0.1 & (tma_l3_bound > 0.05 & (tma_memory_bound > 0.2 & tma_backend_bound > 0.2))",
814*46db21afSIan 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_UOPS_RETIRED.L3_HIT_PS. Related metrics: tma_mem_latency",
815*46db21afSIan Rogers        "ScaleUnit": "100%"
816*46db21afSIan Rogers    },
817*46db21afSIan Rogers    {
818*46db21afSIan Rogers        "BriefDescription": "This metric represents fraction of cycles CPU was stalled due to Length Changing Prefixes (LCPs)",
819*46db21afSIan Rogers        "MetricExpr": "ILD_STALL.LCP / tma_info_clks",
820*46db21afSIan Rogers        "MetricGroup": "FetchLat;TopdownL3;tma_L3_group;tma_fetch_latency_group;tma_issueFB",
821*46db21afSIan Rogers        "MetricName": "tma_lcp",
822*46db21afSIan Rogers        "MetricThreshold": "tma_lcp > 0.05 & (tma_fetch_latency > 0.1 & tma_frontend_bound > 0.15)",
823*46db21afSIan 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_iptb",
824*46db21afSIan Rogers        "ScaleUnit": "100%"
825*46db21afSIan Rogers    },
826*46db21afSIan Rogers    {
827*46db21afSIan 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)",
828*46db21afSIan Rogers        "MetricExpr": "tma_retiring - tma_heavy_operations",
829*46db21afSIan Rogers        "MetricGroup": "Retire;TmaL2;TopdownL2;tma_L2_group;tma_retiring_group",
830*46db21afSIan Rogers        "MetricName": "tma_light_operations",
831*46db21afSIan Rogers        "MetricThreshold": "tma_light_operations > 0.6",
832*46db21afSIan 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",
833*46db21afSIan Rogers        "ScaleUnit": "100%"
834*46db21afSIan Rogers    },
835*46db21afSIan Rogers    {
836*46db21afSIan Rogers        "BriefDescription": "This metric represents Core fraction of cycles CPU dispatched uops on execution port for Load operations",
837*46db21afSIan Rogers        "MetricConstraint": "NO_GROUP_EVENTS_NMI",
838*46db21afSIan Rogers        "MetricExpr": "(UOPS_DISPATCHED_PORT.PORT_2 + UOPS_DISPATCHED_PORT.PORT_3 + UOPS_DISPATCHED_PORT.PORT_7 - UOPS_DISPATCHED_PORT.PORT_4) / (2 * tma_info_core_clks)",
839*46db21afSIan Rogers        "MetricGroup": "TopdownL5;tma_L5_group;tma_ports_utilized_3m_group",
840*46db21afSIan Rogers        "MetricName": "tma_load_op_utilization",
841*46db21afSIan Rogers        "MetricThreshold": "tma_load_op_utilization > 0.6",
842*46db21afSIan 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",
843*46db21afSIan Rogers        "ScaleUnit": "100%"
844*46db21afSIan Rogers    },
845*46db21afSIan Rogers    {
846*46db21afSIan Rogers        "BriefDescription": "This metric estimates fraction of cycles while the memory subsystem was handling loads from local memory",
847*46db21afSIan Rogers        "MetricConstraint": "NO_GROUP_EVENTS",
848*46db21afSIan Rogers        "MetricExpr": "200 * (MEM_LOAD_UOPS_L3_MISS_RETIRED.LOCAL_DRAM * (1 + MEM_LOAD_UOPS_RETIRED.HIT_LFB / (MEM_LOAD_UOPS_RETIRED.L2_HIT + MEM_LOAD_UOPS_RETIRED.L3_HIT + MEM_LOAD_UOPS_L3_HIT_RETIRED.XSNP_HIT + MEM_LOAD_UOPS_L3_HIT_RETIRED.XSNP_HITM + MEM_LOAD_UOPS_L3_HIT_RETIRED.XSNP_MISS + MEM_LOAD_UOPS_L3_MISS_RETIRED.LOCAL_DRAM + MEM_LOAD_UOPS_L3_MISS_RETIRED.REMOTE_DRAM + MEM_LOAD_UOPS_L3_MISS_RETIRED.REMOTE_HITM + MEM_LOAD_UOPS_L3_MISS_RETIRED.REMOTE_FWD))) / tma_info_clks",
849*46db21afSIan Rogers        "MetricGroup": "Server;TopdownL5;tma_L5_group;tma_mem_latency_group",
850*46db21afSIan Rogers        "MetricName": "tma_local_dram",
851*46db21afSIan Rogers        "MetricThreshold": "tma_local_dram > 0.1 & (tma_mem_latency > 0.1 & (tma_dram_bound > 0.1 & (tma_memory_bound > 0.2 & tma_backend_bound > 0.2)))",
852*46db21afSIan Rogers        "PublicDescription": "This metric estimates fraction of cycles while the memory subsystem was handling loads from local memory. Caching will improve the latency and increase performance. Sample with: MEM_LOAD_UOPS_L3_MISS_RETIRED.LOCAL_DRAM_PS",
853*46db21afSIan Rogers        "ScaleUnit": "100%"
854*46db21afSIan Rogers    },
855*46db21afSIan Rogers    {
856*46db21afSIan Rogers        "BriefDescription": "This metric represents fraction of cycles the CPU spent handling cache misses due to lock operations",
857*46db21afSIan Rogers        "MetricConstraint": "NO_GROUP_EVENTS",
858*46db21afSIan Rogers        "MetricExpr": "MEM_UOPS_RETIRED.LOCK_LOADS / MEM_UOPS_RETIRED.ALL_STORES * min(CPU_CLK_UNHALTED.THREAD, OFFCORE_REQUESTS_OUTSTANDING.CYCLES_WITH_DEMAND_RFO) / tma_info_clks",
859*46db21afSIan Rogers        "MetricGroup": "Offcore;TopdownL4;tma_L4_group;tma_issueRFO;tma_l1_bound_group",
860*46db21afSIan Rogers        "MetricName": "tma_lock_latency",
861*46db21afSIan Rogers        "MetricThreshold": "tma_lock_latency > 0.2 & (tma_l1_bound > 0.1 & (tma_memory_bound > 0.2 & tma_backend_bound > 0.2))",
862*46db21afSIan 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_UOPS_RETIRED.LOCK_LOADS_PS. Related metrics: tma_store_latency",
863*46db21afSIan Rogers        "ScaleUnit": "100%"
864*46db21afSIan Rogers    },
865*46db21afSIan Rogers    {
866*46db21afSIan Rogers        "BriefDescription": "This metric represents fraction of slots the CPU has wasted due to Machine Clears",
867*46db21afSIan Rogers        "MetricConstraint": "NO_GROUP_EVENTS",
868*46db21afSIan Rogers        "MetricExpr": "tma_bad_speculation - tma_branch_mispredicts",
869*46db21afSIan Rogers        "MetricGroup": "BadSpec;MachineClears;TmaL2;TopdownL2;tma_L2_group;tma_bad_speculation_group;tma_issueMC;tma_issueSyncxn",
870*46db21afSIan Rogers        "MetricName": "tma_machine_clears",
871*46db21afSIan Rogers        "MetricThreshold": "tma_machine_clears > 0.1 & tma_bad_speculation > 0.15",
872*46db21afSIan 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",
873*46db21afSIan Rogers        "ScaleUnit": "100%"
874*46db21afSIan Rogers    },
875*46db21afSIan Rogers    {
876*46db21afSIan 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)",
877*46db21afSIan Rogers        "MetricExpr": "min(CPU_CLK_UNHALTED.THREAD, cpu@OFFCORE_REQUESTS_OUTSTANDING.ALL_DATA_RD\\,cmask\\=4@) / tma_info_clks",
878*46db21afSIan Rogers        "MetricGroup": "MemoryBW;Offcore;TopdownL4;tma_L4_group;tma_dram_bound_group;tma_issueBW",
879*46db21afSIan Rogers        "MetricName": "tma_mem_bandwidth",
880*46db21afSIan Rogers        "MetricThreshold": "tma_mem_bandwidth > 0.2 & (tma_dram_bound > 0.1 & (tma_memory_bound > 0.2 & tma_backend_bound > 0.2))",
881*46db21afSIan 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_sq_full",
882*46db21afSIan Rogers        "ScaleUnit": "100%"
883*46db21afSIan Rogers    },
884*46db21afSIan Rogers    {
885*46db21afSIan Rogers        "BriefDescription": "This metric estimates fraction of cycles where the performance was likely hurt due to latency from external memory (DRAM)",
886*46db21afSIan Rogers        "MetricExpr": "min(CPU_CLK_UNHALTED.THREAD, OFFCORE_REQUESTS_OUTSTANDING.CYCLES_WITH_DATA_RD) / tma_info_clks - tma_mem_bandwidth",
887*46db21afSIan Rogers        "MetricGroup": "MemoryLat;Offcore;TopdownL4;tma_L4_group;tma_dram_bound_group;tma_issueLat",
888*46db21afSIan Rogers        "MetricName": "tma_mem_latency",
889*46db21afSIan Rogers        "MetricThreshold": "tma_mem_latency > 0.1 & (tma_dram_bound > 0.1 & (tma_memory_bound > 0.2 & tma_backend_bound > 0.2))",
890*46db21afSIan 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_l3_hit_latency",
891*46db21afSIan Rogers        "ScaleUnit": "100%"
892*46db21afSIan Rogers    },
893*46db21afSIan Rogers    {
894*46db21afSIan Rogers        "BriefDescription": "This metric represents fraction of slots the Memory subsystem within the Backend was a bottleneck",
895*46db21afSIan Rogers        "MetricConstraint": "NO_GROUP_EVENTS",
896*46db21afSIan Rogers        "MetricExpr": "(CYCLE_ACTIVITY.STALLS_MEM_ANY + RESOURCE_STALLS.SB) / (CYCLE_ACTIVITY.STALLS_TOTAL + UOPS_EXECUTED.CYCLES_GE_1_UOP_EXEC - (UOPS_EXECUTED.CYCLES_GE_3_UOPS_EXEC if tma_info_ipc > 1.8 else UOPS_EXECUTED.CYCLES_GE_2_UOPS_EXEC) - (RS_EVENTS.EMPTY_CYCLES if tma_fetch_latency > 0.1 else 0) + RESOURCE_STALLS.SB) * tma_backend_bound",
897*46db21afSIan Rogers        "MetricGroup": "Backend;TmaL2;TopdownL2;tma_L2_group;tma_backend_bound_group",
898*46db21afSIan Rogers        "MetricName": "tma_memory_bound",
899*46db21afSIan Rogers        "MetricThreshold": "tma_memory_bound > 0.2 & tma_backend_bound > 0.2",
900*46db21afSIan 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).",
901*46db21afSIan Rogers        "ScaleUnit": "100%"
902*46db21afSIan Rogers    },
903*46db21afSIan Rogers    {
904*46db21afSIan Rogers        "BriefDescription": "This metric represents fraction of slots the CPU was retiring uops fetched by the Microcode Sequencer (MS) unit",
905*46db21afSIan Rogers        "MetricExpr": "UOPS_RETIRED.RETIRE_SLOTS / UOPS_ISSUED.ANY * IDQ.MS_UOPS / tma_info_slots",
906*46db21afSIan Rogers        "MetricGroup": "MicroSeq;TopdownL3;tma_L3_group;tma_heavy_operations_group;tma_issueMC;tma_issueMS",
907*46db21afSIan Rogers        "MetricName": "tma_microcode_sequencer",
908*46db21afSIan Rogers        "MetricThreshold": "tma_microcode_sequencer > 0.05 & tma_heavy_operations > 0.1",
909*46db21afSIan 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",
910*46db21afSIan Rogers        "ScaleUnit": "100%"
911*46db21afSIan Rogers    },
912*46db21afSIan Rogers    {
913*46db21afSIan 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",
914*46db21afSIan Rogers        "MetricExpr": "BR_MISP_RETIRED.ALL_BRANCHES * tma_branch_resteers / (BR_MISP_RETIRED.ALL_BRANCHES + MACHINE_CLEARS.COUNT + BACLEARS.ANY)",
915*46db21afSIan Rogers        "MetricGroup": "BadSpec;BrMispredicts;TopdownL4;tma_L4_group;tma_branch_resteers_group;tma_issueBM",
916*46db21afSIan Rogers        "MetricName": "tma_mispredicts_resteers",
917*46db21afSIan Rogers        "MetricThreshold": "tma_mispredicts_resteers > 0.05 & (tma_branch_resteers > 0.05 & (tma_fetch_latency > 0.1 & tma_frontend_bound > 0.15))",
918*46db21afSIan 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. Related metrics: tma_branch_mispredicts, tma_info_branch_misprediction_cost",
919*46db21afSIan Rogers        "ScaleUnit": "100%"
920*46db21afSIan Rogers    },
921*46db21afSIan Rogers    {
922*46db21afSIan Rogers        "BriefDescription": "This metric represents Core fraction of cycles in which CPU was likely limited due to the MITE pipeline (the legacy decode pipeline)",
923*46db21afSIan Rogers        "MetricExpr": "(IDQ.ALL_MITE_CYCLES_ANY_UOPS - IDQ.ALL_MITE_CYCLES_4_UOPS) / tma_info_core_clks / 2",
924*46db21afSIan Rogers        "MetricGroup": "DSBmiss;FetchBW;TopdownL3;tma_L3_group;tma_fetch_bandwidth_group",
925*46db21afSIan Rogers        "MetricName": "tma_mite",
926*46db21afSIan Rogers        "MetricThreshold": "tma_mite > 0.1 & (tma_fetch_bandwidth > 0.1 & tma_frontend_bound > 0.15 & tma_info_ipc / 4 > 0.35)",
927*46db21afSIan 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.",
928*46db21afSIan Rogers        "ScaleUnit": "100%"
929*46db21afSIan Rogers    },
930*46db21afSIan Rogers    {
931*46db21afSIan 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)",
932*46db21afSIan Rogers        "MetricExpr": "2 * IDQ.MS_SWITCHES / tma_info_clks",
933*46db21afSIan Rogers        "MetricGroup": "FetchLat;MicroSeq;TopdownL3;tma_L3_group;tma_fetch_latency_group;tma_issueMC;tma_issueMS;tma_issueMV;tma_issueSO",
934*46db21afSIan Rogers        "MetricName": "tma_ms_switches",
935*46db21afSIan Rogers        "MetricThreshold": "tma_ms_switches > 0.05 & (tma_fetch_latency > 0.1 & tma_frontend_bound > 0.15)",
936*46db21afSIan 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",
937*46db21afSIan Rogers        "ScaleUnit": "100%"
938*46db21afSIan Rogers    },
939*46db21afSIan Rogers    {
940*46db21afSIan Rogers        "BriefDescription": "This metric represents Core fraction of cycles CPU dispatched uops on execution port 0 ([SNB+] ALU; [HSW+] ALU and 2nd branch)",
941*46db21afSIan Rogers        "MetricExpr": "UOPS_DISPATCHED_PORT.PORT_0 / tma_info_core_clks",
942*46db21afSIan Rogers        "MetricGroup": "Compute;TopdownL6;tma_L6_group;tma_alu_op_utilization_group;tma_issue2P",
943*46db21afSIan Rogers        "MetricName": "tma_port_0",
944*46db21afSIan Rogers        "MetricThreshold": "tma_port_0 > 0.6",
945*46db21afSIan 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.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",
946*46db21afSIan Rogers        "ScaleUnit": "100%"
947*46db21afSIan Rogers    },
948*46db21afSIan Rogers    {
949*46db21afSIan Rogers        "BriefDescription": "This metric represents Core fraction of cycles CPU dispatched uops on execution port 1 (ALU)",
950*46db21afSIan Rogers        "MetricExpr": "UOPS_DISPATCHED_PORT.PORT_1 / tma_info_core_clks",
951*46db21afSIan Rogers        "MetricGroup": "TopdownL6;tma_L6_group;tma_alu_op_utilization_group;tma_issue2P",
952*46db21afSIan Rogers        "MetricName": "tma_port_1",
953*46db21afSIan Rogers        "MetricThreshold": "tma_port_1 > 0.6",
954*46db21afSIan Rogers        "PublicDescription": "This metric represents Core fraction of cycles CPU dispatched uops on execution port 1 (ALU). Sample with: UOPS_DISPATCHED_PORT.PORT_1. Related metrics: tma_fp_scalar, tma_fp_vector, tma_fp_vector_128b, tma_fp_vector_256b, tma_fp_vector_512b, tma_port_0, tma_port_5, tma_port_6, tma_ports_utilized_2",
955*46db21afSIan Rogers        "ScaleUnit": "100%"
956*46db21afSIan Rogers    },
957*46db21afSIan Rogers    {
958*46db21afSIan Rogers        "BriefDescription": "This metric represents Core fraction of cycles CPU dispatched uops on execution port 2 ([SNB+]Loads and Store-address; [ICL+] Loads)",
959*46db21afSIan Rogers        "MetricExpr": "UOPS_DISPATCHED_PORT.PORT_2 / tma_info_core_clks",
960*46db21afSIan Rogers        "MetricGroup": "TopdownL6;tma_L6_group;tma_load_op_utilization_group",
961*46db21afSIan Rogers        "MetricName": "tma_port_2",
962*46db21afSIan Rogers        "MetricThreshold": "tma_port_2 > 0.6",
963*46db21afSIan Rogers        "PublicDescription": "This metric represents Core fraction of cycles CPU dispatched uops on execution port 2 ([SNB+]Loads and Store-address; [ICL+] Loads). Sample with: UOPS_DISPATCHED_PORT.PORT_2",
964*46db21afSIan Rogers        "ScaleUnit": "100%"
965*46db21afSIan Rogers    },
966*46db21afSIan Rogers    {
967*46db21afSIan Rogers        "BriefDescription": "This metric represents Core fraction of cycles CPU dispatched uops on execution port 3 ([SNB+]Loads and Store-address; [ICL+] Loads)",
968*46db21afSIan Rogers        "MetricExpr": "UOPS_DISPATCHED_PORT.PORT_3 / tma_info_core_clks",
969*46db21afSIan Rogers        "MetricGroup": "TopdownL6;tma_L6_group;tma_load_op_utilization_group",
970*46db21afSIan Rogers        "MetricName": "tma_port_3",
971*46db21afSIan Rogers        "MetricThreshold": "tma_port_3 > 0.6",
972*46db21afSIan Rogers        "PublicDescription": "This metric represents Core fraction of cycles CPU dispatched uops on execution port 3 ([SNB+]Loads and Store-address; [ICL+] Loads). Sample with: UOPS_DISPATCHED_PORT.PORT_3",
973*46db21afSIan Rogers        "ScaleUnit": "100%"
974*46db21afSIan Rogers    },
975*46db21afSIan Rogers    {
976*46db21afSIan Rogers        "BriefDescription": "This metric represents Core fraction of cycles CPU dispatched uops on execution port 4 (Store-data)",
977*46db21afSIan Rogers        "MetricExpr": "tma_store_op_utilization",
978*46db21afSIan Rogers        "MetricGroup": "TopdownL6;tma_L6_group;tma_issueSpSt;tma_store_op_utilization_group",
979*46db21afSIan Rogers        "MetricName": "tma_port_4",
980*46db21afSIan Rogers        "MetricThreshold": "tma_port_4 > 0.6",
981*46db21afSIan Rogers        "PublicDescription": "This metric represents Core fraction of cycles CPU dispatched uops on execution port 4 (Store-data). Sample with: UOPS_DISPATCHED_PORT.PORT_4. Related metrics: tma_split_stores",
982*46db21afSIan Rogers        "ScaleUnit": "100%"
983*46db21afSIan Rogers    },
984*46db21afSIan Rogers    {
985*46db21afSIan Rogers        "BriefDescription": "This metric represents Core fraction of cycles CPU dispatched uops on execution port 5 ([SNB+] Branches and ALU; [HSW+] ALU)",
986*46db21afSIan Rogers        "MetricExpr": "UOPS_DISPATCHED_PORT.PORT_5 / tma_info_core_clks",
987*46db21afSIan Rogers        "MetricGroup": "TopdownL6;tma_L6_group;tma_alu_op_utilization_group;tma_issue2P",
988*46db21afSIan Rogers        "MetricName": "tma_port_5",
989*46db21afSIan Rogers        "MetricThreshold": "tma_port_5 > 0.6",
990*46db21afSIan 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",
991*46db21afSIan Rogers        "ScaleUnit": "100%"
992*46db21afSIan Rogers    },
993*46db21afSIan Rogers    {
994*46db21afSIan Rogers        "BriefDescription": "This metric represents Core fraction of cycles CPU dispatched uops on execution port 6 ([HSW+]Primary Branch and simple ALU)",
995*46db21afSIan Rogers        "MetricExpr": "UOPS_DISPATCHED_PORT.PORT_6 / tma_info_core_clks",
996*46db21afSIan Rogers        "MetricGroup": "TopdownL6;tma_L6_group;tma_alu_op_utilization_group;tma_issue2P",
997*46db21afSIan Rogers        "MetricName": "tma_port_6",
998*46db21afSIan Rogers        "MetricThreshold": "tma_port_6 > 0.6",
999*46db21afSIan 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.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",
1000*46db21afSIan Rogers        "ScaleUnit": "100%"
1001*46db21afSIan Rogers    },
1002*46db21afSIan Rogers    {
1003*46db21afSIan Rogers        "BriefDescription": "This metric represents Core fraction of cycles CPU dispatched uops on execution port 7 ([HSW+]simple Store-address)",
1004*46db21afSIan Rogers        "MetricExpr": "UOPS_DISPATCHED_PORT.PORT_7 / tma_info_core_clks",
1005*46db21afSIan Rogers        "MetricGroup": "TopdownL6;tma_L6_group;tma_store_op_utilization_group",
1006*46db21afSIan Rogers        "MetricName": "tma_port_7",
1007*46db21afSIan Rogers        "MetricThreshold": "tma_port_7 > 0.6",
1008*46db21afSIan Rogers        "PublicDescription": "This metric represents Core fraction of cycles CPU dispatched uops on execution port 7 ([HSW+]simple Store-address). Sample with: UOPS_DISPATCHED_PORT.PORT_7",
1009*46db21afSIan Rogers        "ScaleUnit": "100%"
1010*46db21afSIan Rogers    },
1011*46db21afSIan Rogers    {
1012*46db21afSIan Rogers        "BriefDescription": "This metric estimates fraction of cycles the CPU performance was potentially limited due to Core computation issues (non divider-related)",
1013*46db21afSIan Rogers        "MetricConstraint": "NO_GROUP_EVENTS",
1014*46db21afSIan Rogers        "MetricExpr": "(CYCLE_ACTIVITY.STALLS_TOTAL + UOPS_EXECUTED.CYCLES_GE_1_UOP_EXEC - (UOPS_EXECUTED.CYCLES_GE_3_UOPS_EXEC if tma_info_ipc > 1.8 else UOPS_EXECUTED.CYCLES_GE_2_UOPS_EXEC) - (RS_EVENTS.EMPTY_CYCLES if tma_fetch_latency > 0.1 else 0) + RESOURCE_STALLS.SB - RESOURCE_STALLS.SB - CYCLE_ACTIVITY.STALLS_MEM_ANY) / tma_info_clks",
1015*46db21afSIan Rogers        "MetricGroup": "PortsUtil;TopdownL3;tma_L3_group;tma_core_bound_group",
1016*46db21afSIan Rogers        "MetricName": "tma_ports_utilization",
1017*46db21afSIan Rogers        "MetricThreshold": "tma_ports_utilization > 0.15 & (tma_core_bound > 0.1 & tma_backend_bound > 0.2)",
1018*46db21afSIan 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.",
1019*46db21afSIan Rogers        "ScaleUnit": "100%"
1020*46db21afSIan Rogers    },
1021*46db21afSIan Rogers    {
1022*46db21afSIan 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)",
1023*46db21afSIan Rogers        "MetricExpr": "(cpu@UOPS_EXECUTED.CORE\\,inv\\,cmask\\=1@ / 2 if #SMT_on else (CYCLE_ACTIVITY.STALLS_TOTAL - (RS_EVENTS.EMPTY_CYCLES if tma_fetch_latency > 0.1 else 0)) / tma_info_core_clks)",
1024*46db21afSIan Rogers        "MetricGroup": "PortsUtil;TopdownL4;tma_L4_group;tma_ports_utilization_group",
1025*46db21afSIan Rogers        "MetricName": "tma_ports_utilized_0",
1026*46db21afSIan Rogers        "MetricThreshold": "tma_ports_utilized_0 > 0.2 & (tma_ports_utilization > 0.15 & (tma_core_bound > 0.1 & tma_backend_bound > 0.2))",
1027*46db21afSIan 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.",
1028*46db21afSIan Rogers        "ScaleUnit": "100%"
1029*46db21afSIan Rogers    },
1030*46db21afSIan Rogers    {
1031*46db21afSIan 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)",
1032*46db21afSIan Rogers        "MetricExpr": "((cpu@UOPS_EXECUTED.CORE\\,cmask\\=1@ - cpu@UOPS_EXECUTED.CORE\\,cmask\\=2@) / 2 if #SMT_on else (UOPS_EXECUTED.CYCLES_GE_1_UOP_EXEC - UOPS_EXECUTED.CYCLES_GE_2_UOPS_EXEC) / tma_info_core_clks)",
1033*46db21afSIan Rogers        "MetricGroup": "PortsUtil;TopdownL4;tma_L4_group;tma_issueL1;tma_ports_utilization_group",
1034*46db21afSIan Rogers        "MetricName": "tma_ports_utilized_1",
1035*46db21afSIan Rogers        "MetricThreshold": "tma_ports_utilized_1 > 0.2 & (tma_ports_utilization > 0.15 & (tma_core_bound > 0.1 & tma_backend_bound > 0.2))",
1036*46db21afSIan 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. Related metrics: tma_l1_bound",
1037*46db21afSIan Rogers        "ScaleUnit": "100%"
1038*46db21afSIan Rogers    },
1039*46db21afSIan Rogers    {
1040*46db21afSIan 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)",
1041*46db21afSIan Rogers        "MetricExpr": "((cpu@UOPS_EXECUTED.CORE\\,cmask\\=2@ - cpu@UOPS_EXECUTED.CORE\\,cmask\\=3@) / 2 if #SMT_on else (UOPS_EXECUTED.CYCLES_GE_2_UOPS_EXEC - UOPS_EXECUTED.CYCLES_GE_3_UOPS_EXEC) / tma_info_core_clks)",
1042*46db21afSIan Rogers        "MetricGroup": "PortsUtil;TopdownL4;tma_L4_group;tma_issue2P;tma_ports_utilization_group",
1043*46db21afSIan Rogers        "MetricName": "tma_ports_utilized_2",
1044*46db21afSIan Rogers        "MetricThreshold": "tma_ports_utilized_2 > 0.15 & (tma_ports_utilization > 0.15 & (tma_core_bound > 0.1 & tma_backend_bound > 0.2))",
1045*46db21afSIan 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. 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",
1046*46db21afSIan Rogers        "ScaleUnit": "100%"
1047*46db21afSIan Rogers    },
1048*46db21afSIan Rogers    {
1049*46db21afSIan 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).",
1050*46db21afSIan Rogers        "MetricExpr": "(cpu@UOPS_EXECUTED.CORE\\,cmask\\=3@ / 2 if #SMT_on else UOPS_EXECUTED.CYCLES_GE_3_UOPS_EXEC) / tma_info_core_clks",
1051*46db21afSIan Rogers        "MetricGroup": "PortsUtil;TopdownL4;tma_L4_group;tma_ports_utilization_group",
1052*46db21afSIan Rogers        "MetricName": "tma_ports_utilized_3m",
1053*46db21afSIan Rogers        "MetricThreshold": "tma_ports_utilized_3m > 0.7 & (tma_ports_utilization > 0.15 & (tma_core_bound > 0.1 & tma_backend_bound > 0.2))",
1054*46db21afSIan Rogers        "ScaleUnit": "100%"
1055*46db21afSIan Rogers    },
1056*46db21afSIan Rogers    {
1057*46db21afSIan Rogers        "BriefDescription": "This metric estimates fraction of cycles while the memory subsystem was handling loads from remote cache in other sockets including synchronizations issues",
1058*46db21afSIan Rogers        "MetricConstraint": "NO_GROUP_EVENTS",
1059*46db21afSIan Rogers        "MetricExpr": "(200 * (MEM_LOAD_UOPS_L3_MISS_RETIRED.REMOTE_HITM * (1 + MEM_LOAD_UOPS_RETIRED.HIT_LFB / (MEM_LOAD_UOPS_RETIRED.L2_HIT + MEM_LOAD_UOPS_RETIRED.L3_HIT + MEM_LOAD_UOPS_L3_HIT_RETIRED.XSNP_HIT + MEM_LOAD_UOPS_L3_HIT_RETIRED.XSNP_HITM + MEM_LOAD_UOPS_L3_HIT_RETIRED.XSNP_MISS + MEM_LOAD_UOPS_L3_MISS_RETIRED.LOCAL_DRAM + MEM_LOAD_UOPS_L3_MISS_RETIRED.REMOTE_DRAM + MEM_LOAD_UOPS_L3_MISS_RETIRED.REMOTE_HITM + MEM_LOAD_UOPS_L3_MISS_RETIRED.REMOTE_FWD))) + 180 * (MEM_LOAD_UOPS_L3_MISS_RETIRED.REMOTE_FWD * (1 + MEM_LOAD_UOPS_RETIRED.HIT_LFB / (MEM_LOAD_UOPS_RETIRED.L2_HIT + MEM_LOAD_UOPS_RETIRED.L3_HIT + MEM_LOAD_UOPS_L3_HIT_RETIRED.XSNP_HIT + MEM_LOAD_UOPS_L3_HIT_RETIRED.XSNP_HITM + MEM_LOAD_UOPS_L3_HIT_RETIRED.XSNP_MISS + MEM_LOAD_UOPS_L3_MISS_RETIRED.LOCAL_DRAM + MEM_LOAD_UOPS_L3_MISS_RETIRED.REMOTE_DRAM + MEM_LOAD_UOPS_L3_MISS_RETIRED.REMOTE_HITM + MEM_LOAD_UOPS_L3_MISS_RETIRED.REMOTE_FWD)))) / tma_info_clks",
1060*46db21afSIan Rogers        "MetricGroup": "Offcore;Server;Snoop;TopdownL5;tma_L5_group;tma_issueSyncxn;tma_mem_latency_group",
1061*46db21afSIan Rogers        "MetricName": "tma_remote_cache",
1062*46db21afSIan Rogers        "MetricThreshold": "tma_remote_cache > 0.05 & (tma_mem_latency > 0.1 & (tma_dram_bound > 0.1 & (tma_memory_bound > 0.2 & tma_backend_bound > 0.2)))",
1063*46db21afSIan Rogers        "PublicDescription": "This metric estimates fraction of cycles while the memory subsystem was handling loads from remote cache in other sockets including synchronizations issues. This is caused often due to non-optimal NUMA allocations. #link to NUMA article. Sample with: MEM_LOAD_UOPS_L3_MISS_RETIRED.REMOTE_HITM_PS;MEM_LOAD_UOPS_L3_MISS_RETIRED.REMOTE_FWD_PS. Related metrics: tma_contested_accesses, tma_data_sharing, tma_false_sharing, tma_machine_clears",
1064*46db21afSIan Rogers        "ScaleUnit": "100%"
1065*46db21afSIan Rogers    },
1066*46db21afSIan Rogers    {
1067*46db21afSIan Rogers        "BriefDescription": "This metric estimates fraction of cycles while the memory subsystem was handling loads from remote memory",
1068*46db21afSIan Rogers        "MetricConstraint": "NO_GROUP_EVENTS",
1069*46db21afSIan Rogers        "MetricExpr": "310 * (MEM_LOAD_UOPS_L3_MISS_RETIRED.REMOTE_DRAM * (1 + MEM_LOAD_UOPS_RETIRED.HIT_LFB / (MEM_LOAD_UOPS_RETIRED.L2_HIT + MEM_LOAD_UOPS_RETIRED.L3_HIT + MEM_LOAD_UOPS_L3_HIT_RETIRED.XSNP_HIT + MEM_LOAD_UOPS_L3_HIT_RETIRED.XSNP_HITM + MEM_LOAD_UOPS_L3_HIT_RETIRED.XSNP_MISS + MEM_LOAD_UOPS_L3_MISS_RETIRED.LOCAL_DRAM + MEM_LOAD_UOPS_L3_MISS_RETIRED.REMOTE_DRAM + MEM_LOAD_UOPS_L3_MISS_RETIRED.REMOTE_HITM + MEM_LOAD_UOPS_L3_MISS_RETIRED.REMOTE_FWD))) / tma_info_clks",
1070*46db21afSIan Rogers        "MetricGroup": "Server;Snoop;TopdownL5;tma_L5_group;tma_mem_latency_group",
1071*46db21afSIan Rogers        "MetricName": "tma_remote_dram",
1072*46db21afSIan Rogers        "MetricThreshold": "tma_remote_dram > 0.1 & (tma_mem_latency > 0.1 & (tma_dram_bound > 0.1 & (tma_memory_bound > 0.2 & tma_backend_bound > 0.2)))",
1073*46db21afSIan Rogers        "PublicDescription": "This metric estimates fraction of cycles while the memory subsystem was handling loads from remote memory. This is caused often due to non-optimal NUMA allocations. #link to NUMA article. Sample with: MEM_LOAD_UOPS_L3_MISS_RETIRED.REMOTE_DRAM_PS",
1074*46db21afSIan Rogers        "ScaleUnit": "100%"
1075*46db21afSIan Rogers    },
1076*46db21afSIan Rogers    {
1077*46db21afSIan Rogers        "BriefDescription": "This category represents fraction of slots utilized by useful work i.e. issued uops that eventually get retired",
1078*46db21afSIan Rogers        "MetricExpr": "UOPS_RETIRED.RETIRE_SLOTS / tma_info_slots",
1079*46db21afSIan Rogers        "MetricGroup": "TmaL1;TopdownL1;tma_L1_group",
1080*46db21afSIan Rogers        "MetricName": "tma_retiring",
1081*46db21afSIan Rogers        "MetricThreshold": "tma_retiring > 0.7 | tma_heavy_operations > 0.1",
1082*46db21afSIan 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.RETIRE_SLOTS",
1083*46db21afSIan Rogers        "ScaleUnit": "100%"
1084*46db21afSIan Rogers    },
1085*46db21afSIan Rogers    {
1086*46db21afSIan Rogers        "BriefDescription": "This metric estimates fraction of cycles handling memory load split accesses - load that cross 64-byte cache line boundary",
1087*46db21afSIan Rogers        "MetricConstraint": "NO_GROUP_EVENTS",
1088*46db21afSIan Rogers        "MetricExpr": "tma_info_load_miss_real_latency * LD_BLOCKS.NO_SR / tma_info_clks",
1089*46db21afSIan Rogers        "MetricGroup": "TopdownL4;tma_L4_group;tma_l1_bound_group",
1090*46db21afSIan Rogers        "MetricName": "tma_split_loads",
1091*46db21afSIan Rogers        "MetricThreshold": "tma_split_loads > 0.2 & (tma_l1_bound > 0.1 & (tma_memory_bound > 0.2 & tma_backend_bound > 0.2))",
1092*46db21afSIan Rogers        "PublicDescription": "This metric estimates fraction of cycles handling memory load split accesses - load that cross 64-byte cache line boundary. Sample with: MEM_UOPS_RETIRED.SPLIT_LOADS_PS",
1093*46db21afSIan Rogers        "ScaleUnit": "100%"
1094*46db21afSIan Rogers    },
1095*46db21afSIan Rogers    {
1096*46db21afSIan Rogers        "BriefDescription": "This metric represents rate of split store accesses",
1097*46db21afSIan Rogers        "MetricExpr": "2 * MEM_UOPS_RETIRED.SPLIT_STORES / tma_info_core_clks",
1098*46db21afSIan Rogers        "MetricGroup": "TopdownL4;tma_L4_group;tma_issueSpSt;tma_store_bound_group",
1099*46db21afSIan Rogers        "MetricName": "tma_split_stores",
1100*46db21afSIan Rogers        "MetricThreshold": "tma_split_stores > 0.2 & (tma_store_bound > 0.2 & (tma_memory_bound > 0.2 & tma_backend_bound > 0.2))",
1101*46db21afSIan Rogers        "PublicDescription": "This metric represents rate of split store accesses.  Consider aligning your data to the 64-byte cache line granularity. Sample with: MEM_UOPS_RETIRED.SPLIT_STORES_PS. Related metrics: tma_port_4",
1102*46db21afSIan Rogers        "ScaleUnit": "100%"
1103*46db21afSIan Rogers    },
1104*46db21afSIan Rogers    {
1105*46db21afSIan 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)",
1106*46db21afSIan Rogers        "MetricExpr": "(OFFCORE_REQUESTS_BUFFER.SQ_FULL / 2 if #SMT_on else OFFCORE_REQUESTS_BUFFER.SQ_FULL) / tma_info_core_clks",
1107*46db21afSIan Rogers        "MetricGroup": "MemoryBW;Offcore;TopdownL4;tma_L4_group;tma_issueBW;tma_l3_bound_group",
1108*46db21afSIan Rogers        "MetricName": "tma_sq_full",
1109*46db21afSIan Rogers        "MetricThreshold": "tma_sq_full > 0.3 & (tma_l3_bound > 0.05 & (tma_memory_bound > 0.2 & tma_backend_bound > 0.2))",
1110*46db21afSIan 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_mem_bandwidth",
1111*46db21afSIan Rogers        "ScaleUnit": "100%"
1112*46db21afSIan Rogers    },
1113*46db21afSIan Rogers    {
1114*46db21afSIan 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",
1115*46db21afSIan Rogers        "MetricExpr": "RESOURCE_STALLS.SB / tma_info_clks",
1116*46db21afSIan Rogers        "MetricGroup": "MemoryBound;TmaL3mem;TopdownL3;tma_L3_group;tma_memory_bound_group",
1117*46db21afSIan Rogers        "MetricName": "tma_store_bound",
1118*46db21afSIan Rogers        "MetricThreshold": "tma_store_bound > 0.2 & (tma_memory_bound > 0.2 & tma_backend_bound > 0.2)",
1119*46db21afSIan 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_UOPS_RETIRED.ALL_STORES_PS",
1120*46db21afSIan Rogers        "ScaleUnit": "100%"
1121*46db21afSIan Rogers    },
1122*46db21afSIan Rogers    {
1123*46db21afSIan 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",
1124*46db21afSIan Rogers        "MetricExpr": "13 * LD_BLOCKS.STORE_FORWARD / tma_info_clks",
1125*46db21afSIan Rogers        "MetricGroup": "TopdownL4;tma_L4_group;tma_l1_bound_group",
1126*46db21afSIan Rogers        "MetricName": "tma_store_fwd_blk",
1127*46db21afSIan Rogers        "MetricThreshold": "tma_store_fwd_blk > 0.1 & (tma_l1_bound > 0.1 & (tma_memory_bound > 0.2 & tma_backend_bound > 0.2))",
1128*46db21afSIan 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.",
1129*46db21afSIan Rogers        "ScaleUnit": "100%"
1130*46db21afSIan Rogers    },
1131*46db21afSIan Rogers    {
1132*46db21afSIan Rogers        "BriefDescription": "This metric estimates fraction of cycles the CPU spent handling L1D store misses",
1133*46db21afSIan Rogers        "MetricConstraint": "NO_GROUP_EVENTS",
1134*46db21afSIan Rogers        "MetricExpr": "(L2_RQSTS.RFO_HIT * 9 * (1 - MEM_UOPS_RETIRED.LOCK_LOADS / MEM_UOPS_RETIRED.ALL_STORES) + (1 - MEM_UOPS_RETIRED.LOCK_LOADS / MEM_UOPS_RETIRED.ALL_STORES) * min(CPU_CLK_UNHALTED.THREAD, OFFCORE_REQUESTS_OUTSTANDING.CYCLES_WITH_DEMAND_RFO)) / tma_info_clks",
1135*46db21afSIan Rogers        "MetricGroup": "MemoryLat;Offcore;TopdownL4;tma_L4_group;tma_issueRFO;tma_issueSL;tma_store_bound_group",
1136*46db21afSIan Rogers        "MetricName": "tma_store_latency",
1137*46db21afSIan Rogers        "MetricThreshold": "tma_store_latency > 0.1 & (tma_store_bound > 0.2 & (tma_memory_bound > 0.2 & tma_backend_bound > 0.2))",
1138*46db21afSIan 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",
1139*46db21afSIan Rogers        "ScaleUnit": "100%"
1140*46db21afSIan Rogers    },
1141*46db21afSIan Rogers    {
1142*46db21afSIan Rogers        "BriefDescription": "This metric represents Core fraction of cycles CPU dispatched uops on execution port for Store operations",
1143*46db21afSIan Rogers        "MetricExpr": "UOPS_DISPATCHED_PORT.PORT_4 / tma_info_core_clks",
1144*46db21afSIan Rogers        "MetricGroup": "TopdownL5;tma_L5_group;tma_ports_utilized_3m_group",
1145*46db21afSIan Rogers        "MetricName": "tma_store_op_utilization",
1146*46db21afSIan Rogers        "MetricThreshold": "tma_store_op_utilization > 0.6",
1147*46db21afSIan Rogers        "ScaleUnit": "100%"
1148*46db21afSIan Rogers    },
1149*46db21afSIan Rogers    {
1150*46db21afSIan Rogers        "BriefDescription": "This metric represents fraction of cycles the CPU was stalled due to new branch address clears",
1151*46db21afSIan Rogers        "MetricExpr": "tma_branch_resteers - tma_mispredicts_resteers - tma_clears_resteers",
1152*46db21afSIan Rogers        "MetricGroup": "BigFoot;FetchLat;TopdownL4;tma_L4_group;tma_branch_resteers_group",
1153*46db21afSIan Rogers        "MetricName": "tma_unknown_branches",
1154*46db21afSIan Rogers        "MetricThreshold": "tma_unknown_branches > 0.05 & (tma_branch_resteers > 0.05 & (tma_fetch_latency > 0.1 & tma_frontend_bound > 0.15))",
1155*46db21afSIan 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",
1156*46db21afSIan Rogers        "ScaleUnit": "100%"
1157*46db21afSIan Rogers    },
1158*46db21afSIan Rogers    {
1159*46db21afSIan Rogers        "BriefDescription": "This metric serves as an approximation of legacy x87 usage",
1160*46db21afSIan Rogers        "MetricExpr": "INST_RETIRED.X87 * tma_info_uoppi / UOPS_RETIRED.RETIRE_SLOTS",
1161*46db21afSIan Rogers        "MetricGroup": "Compute;TopdownL4;tma_L4_group;tma_fp_arith_group",
1162*46db21afSIan Rogers        "MetricName": "tma_x87_use",
1163*46db21afSIan Rogers        "MetricThreshold": "tma_x87_use > 0.1 & (tma_fp_arith > 0.2 & tma_light_operations > 0.6)",
1164*46db21afSIan 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.",
1165*46db21afSIan Rogers        "ScaleUnit": "100%"
11666d75abd3SAndi Kleen    }
11676d75abd3SAndi Kleen]
1168