12bb3fbadSZhengjun Xing[
22bb3fbadSZhengjun Xing    {
3*fa607370SIan Rogers        "BriefDescription": "C10 residency percent per package",
4*fa607370SIan Rogers        "MetricExpr": "cstate_pkg@c10\\-residency@ / TSC",
5*fa607370SIan Rogers        "MetricGroup": "Power",
6*fa607370SIan Rogers        "MetricName": "C10_Pkg_Residency",
72bb3fbadSZhengjun Xing        "ScaleUnit": "100%"
82bb3fbadSZhengjun Xing    },
92bb3fbadSZhengjun Xing    {
102bb3fbadSZhengjun Xing        "BriefDescription": "C1 residency percent per core",
112bb3fbadSZhengjun Xing        "MetricExpr": "cstate_core@c1\\-residency@ / TSC",
122bb3fbadSZhengjun Xing        "MetricGroup": "Power",
132bb3fbadSZhengjun Xing        "MetricName": "C1_Core_Residency",
142bb3fbadSZhengjun Xing        "ScaleUnit": "100%"
152bb3fbadSZhengjun Xing    },
162bb3fbadSZhengjun Xing    {
172bb3fbadSZhengjun Xing        "BriefDescription": "C2 residency percent per package",
182bb3fbadSZhengjun Xing        "MetricExpr": "cstate_pkg@c2\\-residency@ / TSC",
192bb3fbadSZhengjun Xing        "MetricGroup": "Power",
202bb3fbadSZhengjun Xing        "MetricName": "C2_Pkg_Residency",
212bb3fbadSZhengjun Xing        "ScaleUnit": "100%"
222bb3fbadSZhengjun Xing    },
232bb3fbadSZhengjun Xing    {
242bb3fbadSZhengjun Xing        "BriefDescription": "C3 residency percent per package",
252bb3fbadSZhengjun Xing        "MetricExpr": "cstate_pkg@c3\\-residency@ / TSC",
262bb3fbadSZhengjun Xing        "MetricGroup": "Power",
272bb3fbadSZhengjun Xing        "MetricName": "C3_Pkg_Residency",
282bb3fbadSZhengjun Xing        "ScaleUnit": "100%"
292bb3fbadSZhengjun Xing    },
302bb3fbadSZhengjun Xing    {
31*fa607370SIan Rogers        "BriefDescription": "C6 residency percent per core",
32*fa607370SIan Rogers        "MetricExpr": "cstate_core@c6\\-residency@ / TSC",
33*fa607370SIan Rogers        "MetricGroup": "Power",
34*fa607370SIan Rogers        "MetricName": "C6_Core_Residency",
35*fa607370SIan Rogers        "ScaleUnit": "100%"
36*fa607370SIan Rogers    },
37*fa607370SIan Rogers    {
382bb3fbadSZhengjun Xing        "BriefDescription": "C6 residency percent per package",
392bb3fbadSZhengjun Xing        "MetricExpr": "cstate_pkg@c6\\-residency@ / TSC",
402bb3fbadSZhengjun Xing        "MetricGroup": "Power",
412bb3fbadSZhengjun Xing        "MetricName": "C6_Pkg_Residency",
422bb3fbadSZhengjun Xing        "ScaleUnit": "100%"
432bb3fbadSZhengjun Xing    },
442bb3fbadSZhengjun Xing    {
45*fa607370SIan Rogers        "BriefDescription": "C7 residency percent per core",
46*fa607370SIan Rogers        "MetricExpr": "cstate_core@c7\\-residency@ / TSC",
47*fa607370SIan Rogers        "MetricGroup": "Power",
48*fa607370SIan Rogers        "MetricName": "C7_Core_Residency",
49*fa607370SIan Rogers        "ScaleUnit": "100%"
50*fa607370SIan Rogers    },
51*fa607370SIan Rogers    {
522bb3fbadSZhengjun Xing        "BriefDescription": "C7 residency percent per package",
532bb3fbadSZhengjun Xing        "MetricExpr": "cstate_pkg@c7\\-residency@ / TSC",
542bb3fbadSZhengjun Xing        "MetricGroup": "Power",
552bb3fbadSZhengjun Xing        "MetricName": "C7_Pkg_Residency",
562bb3fbadSZhengjun Xing        "ScaleUnit": "100%"
572bb3fbadSZhengjun Xing    },
582bb3fbadSZhengjun Xing    {
592bb3fbadSZhengjun Xing        "BriefDescription": "C8 residency percent per package",
602bb3fbadSZhengjun Xing        "MetricExpr": "cstate_pkg@c8\\-residency@ / TSC",
612bb3fbadSZhengjun Xing        "MetricGroup": "Power",
622bb3fbadSZhengjun Xing        "MetricName": "C8_Pkg_Residency",
632bb3fbadSZhengjun Xing        "ScaleUnit": "100%"
642bb3fbadSZhengjun Xing    },
652bb3fbadSZhengjun Xing    {
662bb3fbadSZhengjun Xing        "BriefDescription": "C9 residency percent per package",
672bb3fbadSZhengjun Xing        "MetricExpr": "cstate_pkg@c9\\-residency@ / TSC",
682bb3fbadSZhengjun Xing        "MetricGroup": "Power",
692bb3fbadSZhengjun Xing        "MetricName": "C9_Pkg_Residency",
702bb3fbadSZhengjun Xing        "ScaleUnit": "100%"
712bb3fbadSZhengjun Xing    },
722bb3fbadSZhengjun Xing    {
73*fa607370SIan Rogers        "BriefDescription": "Percentage of cycles spent in System Management Interrupts.",
74*fa607370SIan Rogers        "MetricExpr": "((msr@aperf@ - cycles) / msr@aperf@ if msr@smi@ > 0 else 0)",
75*fa607370SIan Rogers        "MetricGroup": "smi",
76*fa607370SIan Rogers        "MetricName": "smi_cycles",
77*fa607370SIan Rogers        "MetricThreshold": "smi_cycles > 0.1",
78*fa607370SIan Rogers        "ScaleUnit": "100%"
79*fa607370SIan Rogers    },
80*fa607370SIan Rogers    {
81*fa607370SIan Rogers        "BriefDescription": "Number of SMI interrupts.",
82*fa607370SIan Rogers        "MetricExpr": "msr@smi@",
83*fa607370SIan Rogers        "MetricGroup": "smi",
84*fa607370SIan Rogers        "MetricName": "smi_num",
85*fa607370SIan Rogers        "ScaleUnit": "1SMI#"
86*fa607370SIan Rogers    },
87*fa607370SIan Rogers    {
88*fa607370SIan Rogers        "BriefDescription": "Counts the number of issue slots  that were not consumed by the backend due to certain allocation restrictions.",
89*fa607370SIan Rogers        "MetricExpr": "TOPDOWN_BE_BOUND.ALLOC_RESTRICTIONS / tma_info_slots",
90*fa607370SIan Rogers        "MetricGroup": "TopdownL3;tma_L3_group;tma_resource_bound_group",
91*fa607370SIan Rogers        "MetricName": "tma_alloc_restriction",
92*fa607370SIan Rogers        "MetricThreshold": "tma_alloc_restriction > 0.1",
93*fa607370SIan Rogers        "ScaleUnit": "100%"
94*fa607370SIan Rogers    },
95*fa607370SIan Rogers    {
96*fa607370SIan Rogers        "BriefDescription": "Counts the total number of issue slots  that were not consumed by the backend due to backend stalls",
97*fa607370SIan Rogers        "MetricExpr": "TOPDOWN_BE_BOUND.ALL / tma_info_slots",
98*fa607370SIan Rogers        "MetricGroup": "TopdownL1;tma_L1_group",
99*fa607370SIan Rogers        "MetricName": "tma_backend_bound",
100*fa607370SIan Rogers        "MetricThreshold": "tma_backend_bound > 0.1",
101*fa607370SIan Rogers        "PublicDescription": "Counts the total number of issue slots  that were not consumed by the backend due to backend stalls.  Note that uops must be available for consumption in order for this event to count.  If a uop is not available (IQ is empty), this event will not count.   The rest of these subevents count backend stalls, in cycles, due to an outstanding request which is memory bound vs core bound.   The subevents are not slot based events and therefore can not be precisely added or subtracted from the Backend_Bound_Aux subevents which are slot based.",
102*fa607370SIan Rogers        "ScaleUnit": "100%"
103*fa607370SIan Rogers    },
104*fa607370SIan Rogers    {
105*fa607370SIan Rogers        "BriefDescription": "Counts the total number of issue slots  that were not consumed by the backend due to backend stalls",
106*fa607370SIan Rogers        "MetricExpr": "tma_backend_bound",
107*fa607370SIan Rogers        "MetricGroup": "TopdownL1;tma_L1_group",
108*fa607370SIan Rogers        "MetricName": "tma_backend_bound_aux",
109*fa607370SIan Rogers        "MetricThreshold": "tma_backend_bound_aux > 0.2",
110*fa607370SIan Rogers        "PublicDescription": "Counts the total number of issue slots  that were not consumed by the backend due to backend stalls.  Note that UOPS must be available for consumption in order for this event to count.  If a uop is not available (IQ is empty), this event will not count.  All of these subevents count backend stalls, in slots, due to a resource limitation.   These are not cycle based events and therefore can not be precisely added or subtracted from the Backend_Bound subevents which are cycle based.  These subevents are supplementary to Backend_Bound and can be used to analyze results from a resource perspective at allocation.",
111*fa607370SIan Rogers        "ScaleUnit": "100%"
112*fa607370SIan Rogers    },
113*fa607370SIan Rogers    {
114*fa607370SIan Rogers        "BriefDescription": "Counts the total number of issue slots that were not consumed by the backend because allocation is stalled due to a mispredicted jump or a machine clear",
115*fa607370SIan Rogers        "MetricExpr": "(tma_info_slots - (TOPDOWN_FE_BOUND.ALL + TOPDOWN_BE_BOUND.ALL + TOPDOWN_RETIRING.ALL)) / tma_info_slots",
116*fa607370SIan Rogers        "MetricGroup": "TopdownL1;tma_L1_group",
117*fa607370SIan Rogers        "MetricName": "tma_bad_speculation",
118*fa607370SIan Rogers        "MetricThreshold": "tma_bad_speculation > 0.15",
119*fa607370SIan Rogers        "PublicDescription": "Counts the total number of issue slots that were not consumed by the backend because allocation is stalled due to a mispredicted jump or a machine clear. Only issue slots wasted due to fast nukes such as memory ordering nukes are counted. Other nukes are not accounted for. Counts all issue slots blocked during this recovery window including relevant microcode flows and while uops are not yet available in the instruction queue (IQ). Also includes the issue slots that were consumed by the backend but were thrown away because they were younger than the mispredict or machine clear.",
120*fa607370SIan Rogers        "ScaleUnit": "100%"
121*fa607370SIan Rogers    },
122*fa607370SIan Rogers    {
123*fa607370SIan Rogers        "BriefDescription": "Counts the number of uops that are not from the microsequencer.",
124*fa607370SIan Rogers        "MetricExpr": "(TOPDOWN_RETIRING.ALL - UOPS_RETIRED.MS) / tma_info_slots",
125*fa607370SIan Rogers        "MetricGroup": "TopdownL2;tma_L2_group;tma_retiring_group",
126*fa607370SIan Rogers        "MetricName": "tma_base",
127*fa607370SIan Rogers        "MetricThreshold": "tma_base > 0.6",
128*fa607370SIan Rogers        "ScaleUnit": "100%"
129*fa607370SIan Rogers    },
130*fa607370SIan Rogers    {
131*fa607370SIan Rogers        "BriefDescription": "Counts the number of issue slots  that were not delivered by the frontend due to BACLEARS, which occurs when the Branch Target Buffer (BTB) prediction or lack thereof, was corrected by a later branch predictor in the frontend",
132*fa607370SIan Rogers        "MetricExpr": "TOPDOWN_FE_BOUND.BRANCH_DETECT / tma_info_slots",
133*fa607370SIan Rogers        "MetricGroup": "TopdownL3;tma_L3_group;tma_frontend_latency_group",
134*fa607370SIan Rogers        "MetricName": "tma_branch_detect",
135*fa607370SIan Rogers        "MetricThreshold": "tma_branch_detect > 0.05",
136*fa607370SIan Rogers        "PublicDescription": "Counts the number of issue slots  that were not delivered by the frontend due to BACLEARS, which occurs when the Branch Target Buffer (BTB) prediction or lack thereof, was corrected by a later branch predictor in the frontend. Includes BACLEARS due to all branch types including conditional and unconditional jumps, returns, and indirect branches.",
137*fa607370SIan Rogers        "ScaleUnit": "100%"
138*fa607370SIan Rogers    },
139*fa607370SIan Rogers    {
140*fa607370SIan Rogers        "BriefDescription": "Counts the number of issue slots  that were not consumed by the backend due to branch mispredicts.",
141*fa607370SIan Rogers        "MetricExpr": "TOPDOWN_BAD_SPECULATION.MISPREDICT / tma_info_slots",
142*fa607370SIan Rogers        "MetricGroup": "TopdownL2;tma_L2_group;tma_bad_speculation_group",
143*fa607370SIan Rogers        "MetricName": "tma_branch_mispredicts",
144*fa607370SIan Rogers        "MetricThreshold": "tma_branch_mispredicts > 0.05",
145*fa607370SIan Rogers        "ScaleUnit": "100%"
146*fa607370SIan Rogers    },
147*fa607370SIan Rogers    {
148*fa607370SIan Rogers        "BriefDescription": "Counts the number of issue slots  that were not delivered by the frontend due to BTCLEARS, which occurs when the Branch Target Buffer (BTB) predicts a taken branch.",
149*fa607370SIan Rogers        "MetricExpr": "TOPDOWN_FE_BOUND.BRANCH_RESTEER / tma_info_slots",
150*fa607370SIan Rogers        "MetricGroup": "TopdownL3;tma_L3_group;tma_frontend_latency_group",
151*fa607370SIan Rogers        "MetricName": "tma_branch_resteer",
152*fa607370SIan Rogers        "MetricThreshold": "tma_branch_resteer > 0.05",
153*fa607370SIan Rogers        "ScaleUnit": "100%"
154*fa607370SIan Rogers    },
155*fa607370SIan Rogers    {
156*fa607370SIan Rogers        "BriefDescription": "Counts the number of issue slots  that were not delivered by the frontend due to the microcode sequencer (MS).",
157*fa607370SIan Rogers        "MetricExpr": "TOPDOWN_FE_BOUND.CISC / tma_info_slots",
158*fa607370SIan Rogers        "MetricGroup": "TopdownL3;tma_L3_group;tma_frontend_bandwidth_group",
159*fa607370SIan Rogers        "MetricName": "tma_cisc",
160*fa607370SIan Rogers        "MetricThreshold": "tma_cisc > 0.05",
161*fa607370SIan Rogers        "ScaleUnit": "100%"
162*fa607370SIan Rogers    },
163*fa607370SIan Rogers    {
164*fa607370SIan Rogers        "BriefDescription": "Counts the number of cycles due to backend bound stalls that are core execution bound and not attributed to outstanding demand load or store stalls.",
165*fa607370SIan Rogers        "MetricExpr": "max(0, tma_backend_bound - tma_load_store_bound)",
166*fa607370SIan Rogers        "MetricGroup": "TopdownL2;tma_L2_group;tma_backend_bound_group",
167*fa607370SIan Rogers        "MetricName": "tma_core_bound",
168*fa607370SIan Rogers        "MetricThreshold": "tma_core_bound > 0.1",
169*fa607370SIan Rogers        "ScaleUnit": "100%"
170*fa607370SIan Rogers    },
171*fa607370SIan Rogers    {
172*fa607370SIan Rogers        "BriefDescription": "Counts the number of issue slots  that were not delivered by the frontend due to decode stalls.",
173*fa607370SIan Rogers        "MetricExpr": "TOPDOWN_FE_BOUND.DECODE / tma_info_slots",
174*fa607370SIan Rogers        "MetricGroup": "TopdownL3;tma_L3_group;tma_frontend_bandwidth_group",
175*fa607370SIan Rogers        "MetricName": "tma_decode",
176*fa607370SIan Rogers        "MetricThreshold": "tma_decode > 0.05",
177*fa607370SIan Rogers        "ScaleUnit": "100%"
178*fa607370SIan Rogers    },
179*fa607370SIan Rogers    {
180*fa607370SIan Rogers        "BriefDescription": "Counts the number of machine clears relative to the number of nuke slots due to memory disambiguation.",
181*fa607370SIan Rogers        "MetricExpr": "tma_nuke * (MACHINE_CLEARS.DISAMBIGUATION / MACHINE_CLEARS.SLOW)",
182*fa607370SIan Rogers        "MetricGroup": "TopdownL4;tma_L4_group;tma_nuke_group",
183*fa607370SIan Rogers        "MetricName": "tma_disambiguation",
184*fa607370SIan Rogers        "MetricThreshold": "tma_disambiguation > 0.02",
185*fa607370SIan Rogers        "ScaleUnit": "100%"
186*fa607370SIan Rogers    },
187*fa607370SIan Rogers    {
188*fa607370SIan Rogers        "BriefDescription": "Counts the number of cycles the core is stalled due to a demand load miss which hit in DRAM or MMIO (Non-DRAM).",
189*fa607370SIan Rogers        "MetricConstraint": "NO_GROUP_EVENTS",
190*fa607370SIan Rogers        "MetricExpr": "MEM_BOUND_STALLS.LOAD_DRAM_HIT / tma_info_clks - MEM_BOUND_STALLS_AT_RET_CORRECTION * MEM_BOUND_STALLS.LOAD_DRAM_HIT / MEM_BOUND_STALLS.LOAD",
191*fa607370SIan Rogers        "MetricGroup": "TopdownL3;tma_L3_group;tma_load_store_bound_group",
192*fa607370SIan Rogers        "MetricName": "tma_dram_bound",
193*fa607370SIan Rogers        "MetricThreshold": "tma_dram_bound > 0.1",
194*fa607370SIan Rogers        "ScaleUnit": "100%"
195*fa607370SIan Rogers    },
196*fa607370SIan Rogers    {
197*fa607370SIan Rogers        "BriefDescription": "Counts the number of issue slots  that were not consumed by the backend due to a machine clear classified as a fast nuke due to memory ordering, memory disambiguation and memory renaming.",
198*fa607370SIan Rogers        "MetricExpr": "TOPDOWN_BAD_SPECULATION.FASTNUKE / tma_info_slots",
199*fa607370SIan Rogers        "MetricGroup": "TopdownL3;tma_L3_group;tma_machine_clears_group",
200*fa607370SIan Rogers        "MetricName": "tma_fast_nuke",
201*fa607370SIan Rogers        "MetricThreshold": "tma_fast_nuke > 0.05",
202*fa607370SIan Rogers        "ScaleUnit": "100%"
203*fa607370SIan Rogers    },
204*fa607370SIan Rogers    {
205*fa607370SIan Rogers        "BriefDescription": "Counts the number of machine clears relative to the number of nuke slots due to FP assists.",
206*fa607370SIan Rogers        "MetricExpr": "tma_nuke * (MACHINE_CLEARS.FP_ASSIST / MACHINE_CLEARS.SLOW)",
207*fa607370SIan Rogers        "MetricGroup": "TopdownL4;tma_L4_group;tma_nuke_group",
208*fa607370SIan Rogers        "MetricName": "tma_fp_assist",
209*fa607370SIan Rogers        "MetricThreshold": "tma_fp_assist > 0.02",
210*fa607370SIan Rogers        "ScaleUnit": "100%"
211*fa607370SIan Rogers    },
212*fa607370SIan Rogers    {
213*fa607370SIan Rogers        "BriefDescription": "Counts the number of floating point operations per uop with all default weighting.",
214*fa607370SIan Rogers        "MetricExpr": "UOPS_RETIRED.FPDIV / tma_info_slots",
215*fa607370SIan Rogers        "MetricGroup": "TopdownL3;tma_L3_group;tma_base_group",
216*fa607370SIan Rogers        "MetricName": "tma_fp_uops",
217*fa607370SIan Rogers        "MetricThreshold": "tma_fp_uops > 0.2",
218*fa607370SIan Rogers        "ScaleUnit": "100%"
219*fa607370SIan Rogers    },
220*fa607370SIan Rogers    {
221*fa607370SIan Rogers        "BriefDescription": "Counts the number of issue slots  that were not delivered by the frontend due to frontend bandwidth restrictions due to decode, predecode, cisc, and other limitations.",
222*fa607370SIan Rogers        "MetricExpr": "TOPDOWN_FE_BOUND.FRONTEND_BANDWIDTH / tma_info_slots",
223*fa607370SIan Rogers        "MetricGroup": "TopdownL2;tma_L2_group;tma_frontend_bound_group",
224*fa607370SIan Rogers        "MetricName": "tma_frontend_bandwidth",
225*fa607370SIan Rogers        "MetricThreshold": "tma_frontend_bandwidth > 0.1",
226*fa607370SIan Rogers        "ScaleUnit": "100%"
227*fa607370SIan Rogers    },
228*fa607370SIan Rogers    {
229*fa607370SIan Rogers        "BriefDescription": "Counts the number of issue slots  that were not consumed by the backend due to frontend stalls.",
230*fa607370SIan Rogers        "MetricExpr": "TOPDOWN_FE_BOUND.ALL / tma_info_slots",
231*fa607370SIan Rogers        "MetricGroup": "TopdownL1;tma_L1_group",
232*fa607370SIan Rogers        "MetricName": "tma_frontend_bound",
233*fa607370SIan Rogers        "MetricThreshold": "tma_frontend_bound > 0.2",
234*fa607370SIan Rogers        "ScaleUnit": "100%"
235*fa607370SIan Rogers    },
236*fa607370SIan Rogers    {
237*fa607370SIan Rogers        "BriefDescription": "Counts the number of issue slots  that were not delivered by the frontend due to frontend bandwidth restrictions due to decode, predecode, cisc, and other limitations.",
238*fa607370SIan Rogers        "MetricExpr": "TOPDOWN_FE_BOUND.FRONTEND_LATENCY / tma_info_slots",
239*fa607370SIan Rogers        "MetricGroup": "TopdownL2;tma_L2_group;tma_frontend_bound_group",
240*fa607370SIan Rogers        "MetricName": "tma_frontend_latency",
241*fa607370SIan Rogers        "MetricThreshold": "tma_frontend_latency > 0.15",
242*fa607370SIan Rogers        "ScaleUnit": "100%"
243*fa607370SIan Rogers    },
244*fa607370SIan Rogers    {
245*fa607370SIan Rogers        "BriefDescription": "Counts the number of issue slots  that were not delivered by the frontend due to instruction cache misses.",
246*fa607370SIan Rogers        "MetricExpr": "TOPDOWN_FE_BOUND.ICACHE / tma_info_slots",
247*fa607370SIan Rogers        "MetricGroup": "TopdownL3;tma_L3_group;tma_frontend_latency_group",
248*fa607370SIan Rogers        "MetricName": "tma_icache",
249*fa607370SIan Rogers        "MetricThreshold": "tma_icache > 0.05",
250*fa607370SIan Rogers        "ScaleUnit": "100%"
251*fa607370SIan Rogers    },
252*fa607370SIan Rogers    {
253*fa607370SIan Rogers        "BriefDescription": "Percentage of total non-speculative loads with a address aliasing block",
254*fa607370SIan Rogers        "MetricExpr": "100 * LD_BLOCKS.4K_ALIAS / MEM_UOPS_RETIRED.ALL_LOADS",
255*fa607370SIan Rogers        "MetricName": "tma_info_address_alias_blocks"
256*fa607370SIan Rogers    },
257*fa607370SIan Rogers    {
258*fa607370SIan Rogers        "BriefDescription": "Ratio of all branches which mispredict",
259*fa607370SIan Rogers        "MetricExpr": "BR_MISP_RETIRED.ALL_BRANCHES / BR_INST_RETIRED.ALL_BRANCHES",
260*fa607370SIan Rogers        "MetricGroup": " ",
261*fa607370SIan Rogers        "MetricName": "tma_info_branch_mispredict_ratio"
262*fa607370SIan Rogers    },
263*fa607370SIan Rogers    {
264*fa607370SIan Rogers        "BriefDescription": "Ratio between Mispredicted branches and unknown branches",
265*fa607370SIan Rogers        "MetricExpr": "BR_MISP_RETIRED.ALL_BRANCHES / BACLEARS.ANY",
266*fa607370SIan Rogers        "MetricGroup": " ",
267*fa607370SIan Rogers        "MetricName": "tma_info_branch_mispredict_to_unknown_branch_ratio"
268*fa607370SIan Rogers    },
269*fa607370SIan Rogers    {
270*fa607370SIan Rogers        "BriefDescription": "",
271*fa607370SIan Rogers        "MetricExpr": "CPU_CLK_UNHALTED.CORE",
272*fa607370SIan Rogers        "MetricGroup": " ",
273*fa607370SIan Rogers        "MetricName": "tma_info_clks"
274*fa607370SIan Rogers    },
275*fa607370SIan Rogers    {
276*fa607370SIan Rogers        "BriefDescription": "",
277*fa607370SIan Rogers        "MetricExpr": "CPU_CLK_UNHALTED.CORE_P",
278*fa607370SIan Rogers        "MetricGroup": " ",
279*fa607370SIan Rogers        "MetricName": "tma_info_clks_p"
280*fa607370SIan Rogers    },
281*fa607370SIan Rogers    {
282*fa607370SIan Rogers        "BriefDescription": "Cycles Per Instruction",
283*fa607370SIan Rogers        "MetricExpr": "tma_info_clks / INST_RETIRED.ANY",
284*fa607370SIan Rogers        "MetricGroup": " ",
285*fa607370SIan Rogers        "MetricName": "tma_info_cpi"
286*fa607370SIan Rogers    },
287*fa607370SIan Rogers    {
288*fa607370SIan Rogers        "BriefDescription": "Average CPU Utilization",
289*fa607370SIan Rogers        "MetricExpr": "CPU_CLK_UNHALTED.REF_TSC / TSC",
290*fa607370SIan Rogers        "MetricGroup": " ",
291*fa607370SIan Rogers        "MetricName": "tma_info_cpu_utilization"
292*fa607370SIan Rogers    },
293*fa607370SIan Rogers    {
294*fa607370SIan Rogers        "BriefDescription": "Cycle cost per DRAM hit",
295*fa607370SIan Rogers        "MetricExpr": "MEM_BOUND_STALLS.LOAD_DRAM_HIT / MEM_LOAD_UOPS_RETIRED.DRAM_HIT",
296*fa607370SIan Rogers        "MetricGroup": " ",
297*fa607370SIan Rogers        "MetricName": "tma_info_cycles_per_demand_load_dram_hit"
298*fa607370SIan Rogers    },
299*fa607370SIan Rogers    {
300*fa607370SIan Rogers        "BriefDescription": "Cycle cost per L2 hit",
301*fa607370SIan Rogers        "MetricExpr": "MEM_BOUND_STALLS.LOAD_L2_HIT / MEM_LOAD_UOPS_RETIRED.L2_HIT",
302*fa607370SIan Rogers        "MetricGroup": " ",
303*fa607370SIan Rogers        "MetricName": "tma_info_cycles_per_demand_load_l2_hit"
304*fa607370SIan Rogers    },
305*fa607370SIan Rogers    {
306*fa607370SIan Rogers        "BriefDescription": "Cycle cost per LLC hit",
307*fa607370SIan Rogers        "MetricExpr": "MEM_BOUND_STALLS.LOAD_LLC_HIT / MEM_LOAD_UOPS_RETIRED.L3_HIT",
308*fa607370SIan Rogers        "MetricGroup": " ",
309*fa607370SIan Rogers        "MetricName": "tma_info_cycles_per_demand_load_l3_hit"
310*fa607370SIan Rogers    },
311*fa607370SIan Rogers    {
312*fa607370SIan Rogers        "BriefDescription": "Percentage of all uops which are FPDiv uops",
313*fa607370SIan Rogers        "MetricExpr": "100 * UOPS_RETIRED.FPDIV / UOPS_RETIRED.ALL",
314*fa607370SIan Rogers        "MetricGroup": " ",
315*fa607370SIan Rogers        "MetricName": "tma_info_fpdiv_uop_ratio"
316*fa607370SIan Rogers    },
317*fa607370SIan Rogers    {
318*fa607370SIan Rogers        "BriefDescription": "Percentage of all uops which are IDiv uops",
319*fa607370SIan Rogers        "MetricExpr": "100 * UOPS_RETIRED.IDIV / UOPS_RETIRED.ALL",
320*fa607370SIan Rogers        "MetricGroup": " ",
321*fa607370SIan Rogers        "MetricName": "tma_info_idiv_uop_ratio"
322*fa607370SIan Rogers    },
323*fa607370SIan Rogers    {
324*fa607370SIan Rogers        "BriefDescription": "Percent of instruction miss cost that hit in DRAM",
325*fa607370SIan Rogers        "MetricExpr": "100 * MEM_BOUND_STALLS.IFETCH_DRAM_HIT / MEM_BOUND_STALLS.IFETCH",
326*fa607370SIan Rogers        "MetricGroup": " ",
327*fa607370SIan Rogers        "MetricName": "tma_info_inst_miss_cost_dramhit_percent"
328*fa607370SIan Rogers    },
329*fa607370SIan Rogers    {
330*fa607370SIan Rogers        "BriefDescription": "Percent of instruction miss cost that hit in the L2",
331*fa607370SIan Rogers        "MetricExpr": "100 * MEM_BOUND_STALLS.IFETCH_L2_HIT / MEM_BOUND_STALLS.IFETCH",
332*fa607370SIan Rogers        "MetricGroup": " ",
333*fa607370SIan Rogers        "MetricName": "tma_info_inst_miss_cost_l2hit_percent"
334*fa607370SIan Rogers    },
335*fa607370SIan Rogers    {
336*fa607370SIan Rogers        "BriefDescription": "Percent of instruction miss cost that hit in the L3",
337*fa607370SIan Rogers        "MetricExpr": "100 * MEM_BOUND_STALLS.IFETCH_LLC_HIT / MEM_BOUND_STALLS.IFETCH",
338*fa607370SIan Rogers        "MetricGroup": " ",
339*fa607370SIan Rogers        "MetricName": "tma_info_inst_miss_cost_l3hit_percent"
340*fa607370SIan Rogers    },
341*fa607370SIan Rogers    {
342*fa607370SIan Rogers        "BriefDescription": "Instructions per Branch (lower number means higher occurance rate)",
343*fa607370SIan Rogers        "MetricExpr": "INST_RETIRED.ANY / BR_INST_RETIRED.ALL_BRANCHES",
344*fa607370SIan Rogers        "MetricGroup": " ",
345*fa607370SIan Rogers        "MetricName": "tma_info_ipbranch"
346*fa607370SIan Rogers    },
347*fa607370SIan Rogers    {
348*fa607370SIan Rogers        "BriefDescription": "Instructions Per Cycle",
349*fa607370SIan Rogers        "MetricExpr": "INST_RETIRED.ANY / tma_info_clks",
350*fa607370SIan Rogers        "MetricGroup": " ",
351*fa607370SIan Rogers        "MetricName": "tma_info_ipc"
352*fa607370SIan Rogers    },
353*fa607370SIan Rogers    {
354*fa607370SIan Rogers        "BriefDescription": "Instruction per (near) call (lower number means higher occurance rate)",
355*fa607370SIan Rogers        "MetricExpr": "INST_RETIRED.ANY / BR_INST_RETIRED.CALL",
356*fa607370SIan Rogers        "MetricGroup": " ",
357*fa607370SIan Rogers        "MetricName": "tma_info_ipcall"
358*fa607370SIan Rogers    },
359*fa607370SIan Rogers    {
360*fa607370SIan Rogers        "BriefDescription": "Instructions per Far Branch",
361*fa607370SIan Rogers        "MetricExpr": "INST_RETIRED.ANY / (BR_INST_RETIRED.FAR_BRANCH / 2)",
362*fa607370SIan Rogers        "MetricGroup": " ",
363*fa607370SIan Rogers        "MetricName": "tma_info_ipfarbranch"
364*fa607370SIan Rogers    },
365*fa607370SIan Rogers    {
366*fa607370SIan Rogers        "BriefDescription": "Instructions per Load",
367*fa607370SIan Rogers        "MetricExpr": "INST_RETIRED.ANY / MEM_UOPS_RETIRED.ALL_LOADS",
368*fa607370SIan Rogers        "MetricGroup": " ",
369*fa607370SIan Rogers        "MetricName": "tma_info_ipload"
370*fa607370SIan Rogers    },
371*fa607370SIan Rogers    {
372*fa607370SIan Rogers        "BriefDescription": "Number of Instructions per non-speculative Branch Misprediction",
373*fa607370SIan Rogers        "MetricExpr": "INST_RETIRED.ANY / BR_MISP_RETIRED.ALL_BRANCHES",
374*fa607370SIan Rogers        "MetricGroup": " ",
375*fa607370SIan Rogers        "MetricName": "tma_info_ipmispredict"
376*fa607370SIan Rogers    },
377*fa607370SIan Rogers    {
378*fa607370SIan Rogers        "BriefDescription": "Instructions per Store",
379*fa607370SIan Rogers        "MetricExpr": "INST_RETIRED.ANY / MEM_UOPS_RETIRED.ALL_STORES",
380*fa607370SIan Rogers        "MetricGroup": " ",
381*fa607370SIan Rogers        "MetricName": "tma_info_ipstore"
382*fa607370SIan Rogers    },
383*fa607370SIan Rogers    {
384*fa607370SIan Rogers        "BriefDescription": "Fraction of cycles spent in Kernel mode",
385*fa607370SIan Rogers        "MetricExpr": "cpu@CPU_CLK_UNHALTED.CORE@k / CPU_CLK_UNHALTED.CORE",
386*fa607370SIan Rogers        "MetricGroup": " ",
387*fa607370SIan Rogers        "MetricName": "tma_info_kernel_utilization"
388*fa607370SIan Rogers    },
389*fa607370SIan Rogers    {
390*fa607370SIan Rogers        "BriefDescription": "Percentage of total non-speculative loads that are splits",
391*fa607370SIan Rogers        "MetricExpr": "100 * MEM_UOPS_RETIRED.SPLIT_LOADS / MEM_UOPS_RETIRED.ALL_LOADS",
392*fa607370SIan Rogers        "MetricName": "tma_info_load_splits"
393*fa607370SIan Rogers    },
394*fa607370SIan Rogers    {
395*fa607370SIan Rogers        "BriefDescription": "load ops retired per 1000 instruction",
396*fa607370SIan Rogers        "MetricExpr": "1e3 * MEM_UOPS_RETIRED.ALL_LOADS / INST_RETIRED.ANY",
397*fa607370SIan Rogers        "MetricGroup": " ",
398*fa607370SIan Rogers        "MetricName": "tma_info_memloadpki"
399*fa607370SIan Rogers    },
400*fa607370SIan Rogers    {
401*fa607370SIan Rogers        "BriefDescription": "Percentage of all uops which are ucode ops",
402*fa607370SIan Rogers        "MetricExpr": "100 * UOPS_RETIRED.MS / UOPS_RETIRED.ALL",
403*fa607370SIan Rogers        "MetricGroup": " ",
404*fa607370SIan Rogers        "MetricName": "tma_info_microcode_uop_ratio"
405*fa607370SIan Rogers    },
406*fa607370SIan Rogers    {
407*fa607370SIan Rogers        "BriefDescription": "",
408*fa607370SIan Rogers        "MetricExpr": "5 * tma_info_clks",
409*fa607370SIan Rogers        "MetricGroup": " ",
410*fa607370SIan Rogers        "MetricName": "tma_info_slots"
411*fa607370SIan Rogers    },
412*fa607370SIan Rogers    {
413*fa607370SIan Rogers        "BriefDescription": "Percentage of total non-speculative loads with a store forward or unknown store address block",
414*fa607370SIan Rogers        "MetricExpr": "100 * LD_BLOCKS.DATA_UNKNOWN / MEM_UOPS_RETIRED.ALL_LOADS",
415*fa607370SIan Rogers        "MetricName": "tma_info_store_fwd_blocks"
416*fa607370SIan Rogers    },
417*fa607370SIan Rogers    {
418*fa607370SIan Rogers        "BriefDescription": "Average Frequency Utilization relative nominal frequency",
419*fa607370SIan Rogers        "MetricExpr": "tma_info_clks / CPU_CLK_UNHALTED.REF_TSC",
420*fa607370SIan Rogers        "MetricGroup": " ",
421*fa607370SIan Rogers        "MetricName": "tma_info_turbo_utilization"
422*fa607370SIan Rogers    },
423*fa607370SIan Rogers    {
424*fa607370SIan Rogers        "BriefDescription": "Uops Per Instruction",
425*fa607370SIan Rogers        "MetricExpr": "UOPS_RETIRED.ALL / INST_RETIRED.ANY",
426*fa607370SIan Rogers        "MetricGroup": " ",
427*fa607370SIan Rogers        "MetricName": "tma_info_upi"
428*fa607370SIan Rogers    },
429*fa607370SIan Rogers    {
430*fa607370SIan Rogers        "BriefDescription": "Percentage of all uops which are x87 uops",
431*fa607370SIan Rogers        "MetricExpr": "100 * UOPS_RETIRED.X87 / UOPS_RETIRED.ALL",
432*fa607370SIan Rogers        "MetricGroup": " ",
433*fa607370SIan Rogers        "MetricName": "tma_info_x87_uop_ratio"
434*fa607370SIan Rogers    },
435*fa607370SIan Rogers    {
436*fa607370SIan Rogers        "BriefDescription": "Counts the number of issue slots  that were not delivered by the frontend due to Instruction Table Lookaside Buffer (ITLB) misses.",
437*fa607370SIan Rogers        "MetricExpr": "TOPDOWN_FE_BOUND.ITLB / tma_info_slots",
438*fa607370SIan Rogers        "MetricGroup": "TopdownL3;tma_L3_group;tma_frontend_latency_group",
439*fa607370SIan Rogers        "MetricName": "tma_itlb",
440*fa607370SIan Rogers        "MetricThreshold": "tma_itlb > 0.05",
441*fa607370SIan Rogers        "ScaleUnit": "100%"
442*fa607370SIan Rogers    },
443*fa607370SIan Rogers    {
444*fa607370SIan Rogers        "BriefDescription": "Counts the number of cycles that the oldest load of the load buffer is stalled at retirement due to a load block.",
445*fa607370SIan Rogers        "MetricExpr": "LD_HEAD.L1_BOUND_AT_RET / tma_info_clks",
446*fa607370SIan Rogers        "MetricGroup": "TopdownL3;tma_L3_group;tma_load_store_bound_group",
447*fa607370SIan Rogers        "MetricName": "tma_l1_bound",
448*fa607370SIan Rogers        "MetricThreshold": "tma_l1_bound > 0.1",
449*fa607370SIan Rogers        "ScaleUnit": "100%"
450*fa607370SIan Rogers    },
451*fa607370SIan Rogers    {
452*fa607370SIan Rogers        "BriefDescription": "Counts the number of cycles a core is stalled due to a demand load which hit in the L2 Cache.",
453*fa607370SIan Rogers        "MetricConstraint": "NO_GROUP_EVENTS",
454*fa607370SIan Rogers        "MetricExpr": "MEM_BOUND_STALLS.LOAD_L2_HIT / tma_info_clks - MEM_BOUND_STALLS_AT_RET_CORRECTION * MEM_BOUND_STALLS.LOAD_L2_HIT / MEM_BOUND_STALLS.LOAD",
455*fa607370SIan Rogers        "MetricGroup": "TopdownL3;tma_L3_group;tma_load_store_bound_group",
456*fa607370SIan Rogers        "MetricName": "tma_l2_bound",
457*fa607370SIan Rogers        "MetricThreshold": "tma_l2_bound > 0.1",
458*fa607370SIan Rogers        "ScaleUnit": "100%"
459*fa607370SIan Rogers    },
460*fa607370SIan Rogers    {
461*fa607370SIan Rogers        "BriefDescription": "Counts the number of cycles a core is stalled due to a demand load which hit in the Last Level Cache (LLC) or other core with HITE/F/M.",
462*fa607370SIan Rogers        "MetricExpr": "MEM_BOUND_STALLS.LOAD_LLC_HIT / tma_info_clks - MEM_BOUND_STALLS_AT_RET_CORRECTION * MEM_BOUND_STALLS.LOAD_LLC_HIT / MEM_BOUND_STALLS.LOAD",
463*fa607370SIan Rogers        "MetricGroup": "TopdownL3;tma_L3_group;tma_load_store_bound_group",
464*fa607370SIan Rogers        "MetricName": "tma_l3_bound",
465*fa607370SIan Rogers        "MetricThreshold": "tma_l3_bound > 0.1",
466*fa607370SIan Rogers        "ScaleUnit": "100%"
467*fa607370SIan Rogers    },
468*fa607370SIan Rogers    {
469*fa607370SIan Rogers        "BriefDescription": "Counts the number of cycles, relative to the number of mem_scheduler slots, in which uops are blocked due to load buffer full",
470*fa607370SIan Rogers        "MetricExpr": "tma_mem_scheduler * MEM_SCHEDULER_BLOCK.LD_BUF / MEM_SCHEDULER_BLOCK.ALL",
471*fa607370SIan Rogers        "MetricGroup": "TopdownL4;tma_L4_group;tma_mem_scheduler_group",
472*fa607370SIan Rogers        "MetricName": "tma_ld_buffer",
473*fa607370SIan Rogers        "MetricThreshold": "tma_ld_buffer > 0.05",
474*fa607370SIan Rogers        "ScaleUnit": "100%"
475*fa607370SIan Rogers    },
476*fa607370SIan Rogers    {
477*fa607370SIan Rogers        "BriefDescription": "Counts the number of cycles the core is stalled due to stores or loads.",
478*fa607370SIan Rogers        "MetricExpr": "min(tma_backend_bound, LD_HEAD.ANY_AT_RET / tma_info_clks + tma_store_bound)",
479*fa607370SIan Rogers        "MetricGroup": "TopdownL2;tma_L2_group;tma_backend_bound_group",
480*fa607370SIan Rogers        "MetricName": "tma_load_store_bound",
481*fa607370SIan Rogers        "MetricThreshold": "tma_load_store_bound > 0.2",
482*fa607370SIan Rogers        "ScaleUnit": "100%"
483*fa607370SIan Rogers    },
484*fa607370SIan Rogers    {
485*fa607370SIan Rogers        "BriefDescription": "Counts the total number of issue slots that were not consumed by the backend because allocation is stalled due to a machine clear (nuke) of any kind including memory ordering and memory disambiguation.",
486*fa607370SIan Rogers        "MetricExpr": "TOPDOWN_BAD_SPECULATION.MACHINE_CLEARS / tma_info_slots",
487*fa607370SIan Rogers        "MetricGroup": "TopdownL2;tma_L2_group;tma_bad_speculation_group",
488*fa607370SIan Rogers        "MetricName": "tma_machine_clears",
489*fa607370SIan Rogers        "MetricThreshold": "tma_machine_clears > 0.05",
490*fa607370SIan Rogers        "ScaleUnit": "100%"
491*fa607370SIan Rogers    },
492*fa607370SIan Rogers    {
493*fa607370SIan Rogers        "BriefDescription": "Counts the number of issue slots  that were not consumed by the backend due to memory reservation stalls in which a scheduler is not able to accept uops.",
494*fa607370SIan Rogers        "MetricExpr": "TOPDOWN_BE_BOUND.MEM_SCHEDULER / tma_info_slots",
495*fa607370SIan Rogers        "MetricGroup": "TopdownL3;tma_L3_group;tma_resource_bound_group",
496*fa607370SIan Rogers        "MetricName": "tma_mem_scheduler",
497*fa607370SIan Rogers        "MetricThreshold": "tma_mem_scheduler > 0.1",
498*fa607370SIan Rogers        "ScaleUnit": "100%"
499*fa607370SIan Rogers    },
500*fa607370SIan Rogers    {
501*fa607370SIan Rogers        "BriefDescription": "Counts the number of machine clears relative to the number of nuke slots due to memory ordering.",
502*fa607370SIan Rogers        "MetricExpr": "tma_nuke * (MACHINE_CLEARS.MEMORY_ORDERING / MACHINE_CLEARS.SLOW)",
503*fa607370SIan Rogers        "MetricGroup": "TopdownL4;tma_L4_group;tma_nuke_group",
504*fa607370SIan Rogers        "MetricName": "tma_memory_ordering",
505*fa607370SIan Rogers        "MetricThreshold": "tma_memory_ordering > 0.02",
506*fa607370SIan Rogers        "ScaleUnit": "100%"
507*fa607370SIan Rogers    },
508*fa607370SIan Rogers    {
509*fa607370SIan Rogers        "BriefDescription": "Counts the number of uops that are from the complex flows issued by the micro-sequencer (MS)",
510*fa607370SIan Rogers        "MetricExpr": "UOPS_RETIRED.MS / tma_info_slots",
511*fa607370SIan Rogers        "MetricGroup": "TopdownL2;tma_L2_group;tma_retiring_group",
512*fa607370SIan Rogers        "MetricName": "tma_ms_uops",
513*fa607370SIan Rogers        "MetricThreshold": "tma_ms_uops > 0.05",
514*fa607370SIan Rogers        "PublicDescription": "Counts the number of uops that are from the complex flows issued by the micro-sequencer (MS).  This includes uops from flows due to complex instructions, faults, assists, and inserted flows.",
515*fa607370SIan Rogers        "ScaleUnit": "100%"
516*fa607370SIan Rogers    },
517*fa607370SIan Rogers    {
518*fa607370SIan Rogers        "BriefDescription": "Counts the number of issue slots  that were not consumed by the backend due to IEC or FPC RAT stalls, which can be due to FIQ or IEC reservation stalls in which the integer, floating point or SIMD scheduler is not able to accept uops.",
519*fa607370SIan Rogers        "MetricExpr": "TOPDOWN_BE_BOUND.NON_MEM_SCHEDULER / tma_info_slots",
520*fa607370SIan Rogers        "MetricGroup": "TopdownL3;tma_L3_group;tma_resource_bound_group",
521*fa607370SIan Rogers        "MetricName": "tma_non_mem_scheduler",
522*fa607370SIan Rogers        "MetricThreshold": "tma_non_mem_scheduler > 0.1",
523*fa607370SIan Rogers        "ScaleUnit": "100%"
524*fa607370SIan Rogers    },
525*fa607370SIan Rogers    {
526*fa607370SIan Rogers        "BriefDescription": "Counts the number of issue slots  that were not consumed by the backend due to a machine clear (slow nuke).",
527*fa607370SIan Rogers        "MetricExpr": "TOPDOWN_BAD_SPECULATION.NUKE / tma_info_slots",
528*fa607370SIan Rogers        "MetricGroup": "TopdownL3;tma_L3_group;tma_machine_clears_group",
529*fa607370SIan Rogers        "MetricName": "tma_nuke",
530*fa607370SIan Rogers        "MetricThreshold": "tma_nuke > 0.05",
531*fa607370SIan Rogers        "ScaleUnit": "100%"
532*fa607370SIan Rogers    },
533*fa607370SIan Rogers    {
534*fa607370SIan Rogers        "BriefDescription": "Counts the number of issue slots  that were not delivered by the frontend due to other common frontend stalls not categorized.",
535*fa607370SIan Rogers        "MetricExpr": "TOPDOWN_FE_BOUND.OTHER / tma_info_slots",
536*fa607370SIan Rogers        "MetricGroup": "TopdownL3;tma_L3_group;tma_frontend_bandwidth_group",
537*fa607370SIan Rogers        "MetricName": "tma_other_fb",
538*fa607370SIan Rogers        "MetricThreshold": "tma_other_fb > 0.05",
539*fa607370SIan Rogers        "ScaleUnit": "100%"
540*fa607370SIan Rogers    },
541*fa607370SIan Rogers    {
542*fa607370SIan Rogers        "BriefDescription": "Counts the number of cycles that the oldest load of the load buffer is stalled at retirement due to a number of other load blocks.",
543*fa607370SIan Rogers        "MetricExpr": "LD_HEAD.OTHER_AT_RET / tma_info_clks",
544*fa607370SIan Rogers        "MetricGroup": "TopdownL4;tma_L4_group;tma_l1_bound_group",
545*fa607370SIan Rogers        "MetricName": "tma_other_l1",
546*fa607370SIan Rogers        "MetricThreshold": "tma_other_l1 > 0.05",
547*fa607370SIan Rogers        "ScaleUnit": "100%"
548*fa607370SIan Rogers    },
549*fa607370SIan Rogers    {
550*fa607370SIan Rogers        "BriefDescription": "Counts the number of cycles the core is stalled due to a demand load miss which hits in the L2, LLC, DRAM or MMIO (Non-DRAM) but could not be correctly attributed or cycles in which the load miss is waiting on a request buffer.",
551*fa607370SIan Rogers        "MetricExpr": "max(0, tma_load_store_bound - (tma_store_bound + tma_l1_bound + tma_l2_bound + tma_l3_bound + tma_dram_bound))",
552*fa607370SIan Rogers        "MetricGroup": "TopdownL3;tma_L3_group;tma_load_store_bound_group",
553*fa607370SIan Rogers        "MetricName": "tma_other_load_store",
554*fa607370SIan Rogers        "MetricThreshold": "tma_other_load_store > 0.1",
555*fa607370SIan Rogers        "ScaleUnit": "100%"
556*fa607370SIan Rogers    },
557*fa607370SIan Rogers    {
558*fa607370SIan Rogers        "BriefDescription": "Counts the number of uops retired excluding ms and fp div uops.",
559*fa607370SIan Rogers        "MetricExpr": "(TOPDOWN_RETIRING.ALL - UOPS_RETIRED.MS - UOPS_RETIRED.FPDIV) / tma_info_slots",
560*fa607370SIan Rogers        "MetricGroup": "TopdownL3;tma_L3_group;tma_base_group",
561*fa607370SIan Rogers        "MetricName": "tma_other_ret",
562*fa607370SIan Rogers        "MetricThreshold": "tma_other_ret > 0.3",
563*fa607370SIan Rogers        "ScaleUnit": "100%"
564*fa607370SIan Rogers    },
565*fa607370SIan Rogers    {
566*fa607370SIan Rogers        "BriefDescription": "Counts the number of machine clears relative to the number of nuke slots due to page faults.",
567*fa607370SIan Rogers        "MetricExpr": "tma_nuke * (MACHINE_CLEARS.PAGE_FAULT / MACHINE_CLEARS.SLOW)",
568*fa607370SIan Rogers        "MetricGroup": "TopdownL4;tma_L4_group;tma_nuke_group",
569*fa607370SIan Rogers        "MetricName": "tma_page_fault",
570*fa607370SIan Rogers        "MetricThreshold": "tma_page_fault > 0.02",
571*fa607370SIan Rogers        "ScaleUnit": "100%"
572*fa607370SIan Rogers    },
573*fa607370SIan Rogers    {
574*fa607370SIan Rogers        "BriefDescription": "Counts the number of issue slots  that were not delivered by the frontend due to wrong predecodes.",
575*fa607370SIan Rogers        "MetricExpr": "TOPDOWN_FE_BOUND.PREDECODE / tma_info_slots",
576*fa607370SIan Rogers        "MetricGroup": "TopdownL3;tma_L3_group;tma_frontend_bandwidth_group",
577*fa607370SIan Rogers        "MetricName": "tma_predecode",
578*fa607370SIan Rogers        "MetricThreshold": "tma_predecode > 0.05",
579*fa607370SIan Rogers        "ScaleUnit": "100%"
580*fa607370SIan Rogers    },
581*fa607370SIan Rogers    {
582*fa607370SIan Rogers        "BriefDescription": "Counts the number of issue slots  that were not consumed by the backend due to the physical register file unable to accept an entry (marble stalls).",
583*fa607370SIan Rogers        "MetricExpr": "TOPDOWN_BE_BOUND.REGISTER / tma_info_slots",
584*fa607370SIan Rogers        "MetricGroup": "TopdownL3;tma_L3_group;tma_resource_bound_group",
585*fa607370SIan Rogers        "MetricName": "tma_register",
586*fa607370SIan Rogers        "MetricThreshold": "tma_register > 0.1",
587*fa607370SIan Rogers        "ScaleUnit": "100%"
588*fa607370SIan Rogers    },
589*fa607370SIan Rogers    {
590*fa607370SIan Rogers        "BriefDescription": "Counts the number of issue slots  that were not consumed by the backend due to the reorder buffer being full (ROB stalls).",
591*fa607370SIan Rogers        "MetricExpr": "TOPDOWN_BE_BOUND.REORDER_BUFFER / tma_info_slots",
592*fa607370SIan Rogers        "MetricGroup": "TopdownL3;tma_L3_group;tma_resource_bound_group",
593*fa607370SIan Rogers        "MetricName": "tma_reorder_buffer",
594*fa607370SIan Rogers        "MetricThreshold": "tma_reorder_buffer > 0.1",
595*fa607370SIan Rogers        "ScaleUnit": "100%"
596*fa607370SIan Rogers    },
597*fa607370SIan Rogers    {
598*fa607370SIan Rogers        "BriefDescription": "Counts the total number of issue slots  that were not consumed by the backend due to backend stalls",
599*fa607370SIan Rogers        "MetricExpr": "tma_backend_bound",
600*fa607370SIan Rogers        "MetricGroup": "TopdownL2;tma_L2_group;tma_backend_bound_aux_group",
601*fa607370SIan Rogers        "MetricName": "tma_resource_bound",
602*fa607370SIan Rogers        "MetricThreshold": "tma_resource_bound > 0.2",
603*fa607370SIan Rogers        "PublicDescription": "Counts the total number of issue slots  that were not consumed by the backend due to backend stalls.  Note that uops must be available for consumption in order for this event to count.  If a uop is not available (IQ is empty), this event will not count.",
604*fa607370SIan Rogers        "ScaleUnit": "100%"
605*fa607370SIan Rogers    },
606*fa607370SIan Rogers    {
607*fa607370SIan Rogers        "BriefDescription": "Counts the numer of issue slots  that result in retirement slots.",
608*fa607370SIan Rogers        "MetricExpr": "TOPDOWN_RETIRING.ALL / tma_info_slots",
609*fa607370SIan Rogers        "MetricGroup": "TopdownL1;tma_L1_group",
610*fa607370SIan Rogers        "MetricName": "tma_retiring",
611*fa607370SIan Rogers        "MetricThreshold": "tma_retiring > 0.75",
612*fa607370SIan Rogers        "ScaleUnit": "100%"
613*fa607370SIan Rogers    },
614*fa607370SIan Rogers    {
615*fa607370SIan Rogers        "BriefDescription": "Counts the number of cycles, relative to the number of mem_scheduler slots, in which uops are blocked due to RSV full relative",
616*fa607370SIan Rogers        "MetricExpr": "tma_mem_scheduler * MEM_SCHEDULER_BLOCK.RSV / MEM_SCHEDULER_BLOCK.ALL",
617*fa607370SIan Rogers        "MetricGroup": "TopdownL4;tma_L4_group;tma_mem_scheduler_group",
618*fa607370SIan Rogers        "MetricName": "tma_rsv",
619*fa607370SIan Rogers        "MetricThreshold": "tma_rsv > 0.05",
620*fa607370SIan Rogers        "ScaleUnit": "100%"
621*fa607370SIan Rogers    },
622*fa607370SIan Rogers    {
623*fa607370SIan Rogers        "BriefDescription": "Counts the number of issue slots  that were not consumed by the backend due to scoreboards from the instruction queue (IQ), jump execution unit (JEU), or microcode sequencer (MS).",
624*fa607370SIan Rogers        "MetricExpr": "TOPDOWN_BE_BOUND.SERIALIZATION / tma_info_slots",
625*fa607370SIan Rogers        "MetricGroup": "TopdownL3;tma_L3_group;tma_resource_bound_group",
626*fa607370SIan Rogers        "MetricName": "tma_serialization",
627*fa607370SIan Rogers        "MetricThreshold": "tma_serialization > 0.1",
628*fa607370SIan Rogers        "ScaleUnit": "100%"
629*fa607370SIan Rogers    },
630*fa607370SIan Rogers    {
631*fa607370SIan Rogers        "BriefDescription": "Counts the number of machine clears relative to the number of nuke slots due to SMC.",
632*fa607370SIan Rogers        "MetricExpr": "tma_nuke * (MACHINE_CLEARS.SMC / MACHINE_CLEARS.SLOW)",
633*fa607370SIan Rogers        "MetricGroup": "TopdownL4;tma_L4_group;tma_nuke_group",
634*fa607370SIan Rogers        "MetricName": "tma_smc",
635*fa607370SIan Rogers        "MetricThreshold": "tma_smc > 0.02",
636*fa607370SIan Rogers        "ScaleUnit": "100%"
637*fa607370SIan Rogers    },
638*fa607370SIan Rogers    {
639*fa607370SIan Rogers        "BriefDescription": "Counts the number of cycles, relative to the number of mem_scheduler slots, in which uops are blocked due to store buffer full",
640*fa607370SIan Rogers        "MetricExpr": "tma_store_bound",
641*fa607370SIan Rogers        "MetricGroup": "TopdownL4;tma_L4_group;tma_mem_scheduler_group",
642*fa607370SIan Rogers        "MetricName": "tma_st_buffer",
643*fa607370SIan Rogers        "MetricThreshold": "tma_st_buffer > 0.05",
644*fa607370SIan Rogers        "ScaleUnit": "100%"
645*fa607370SIan Rogers    },
646*fa607370SIan Rogers    {
647*fa607370SIan Rogers        "BriefDescription": "Counts the number of cycles that the oldest load of the load buffer is stalled at retirement due to a first level TLB miss.",
648*fa607370SIan Rogers        "MetricExpr": "LD_HEAD.DTLB_MISS_AT_RET / tma_info_clks",
649*fa607370SIan Rogers        "MetricGroup": "TopdownL4;tma_L4_group;tma_l1_bound_group",
650*fa607370SIan Rogers        "MetricName": "tma_stlb_hit",
651*fa607370SIan Rogers        "MetricThreshold": "tma_stlb_hit > 0.05",
652*fa607370SIan Rogers        "ScaleUnit": "100%"
653*fa607370SIan Rogers    },
654*fa607370SIan Rogers    {
655*fa607370SIan Rogers        "BriefDescription": "Counts the number of cycles that the oldest load of the load buffer is stalled at retirement due to a second level TLB miss requiring a page walk.",
656*fa607370SIan Rogers        "MetricExpr": "LD_HEAD.PGWALK_AT_RET / tma_info_clks",
657*fa607370SIan Rogers        "MetricGroup": "TopdownL4;tma_L4_group;tma_l1_bound_group",
658*fa607370SIan Rogers        "MetricName": "tma_stlb_miss",
659*fa607370SIan Rogers        "MetricThreshold": "tma_stlb_miss > 0.05",
660*fa607370SIan Rogers        "ScaleUnit": "100%"
661*fa607370SIan Rogers    },
662*fa607370SIan Rogers    {
663*fa607370SIan Rogers        "BriefDescription": "Counts the number of cycles the core is stalled due to store buffer full.",
664*fa607370SIan Rogers        "MetricExpr": "tma_mem_scheduler * (MEM_SCHEDULER_BLOCK.ST_BUF / MEM_SCHEDULER_BLOCK.ALL)",
665*fa607370SIan Rogers        "MetricGroup": "TopdownL3;tma_L3_group;tma_load_store_bound_group",
666*fa607370SIan Rogers        "MetricName": "tma_store_bound",
667*fa607370SIan Rogers        "MetricThreshold": "tma_store_bound > 0.1",
668*fa607370SIan Rogers        "ScaleUnit": "100%"
669*fa607370SIan Rogers    },
670*fa607370SIan Rogers    {
671*fa607370SIan Rogers        "BriefDescription": "Counts the number of cycles that the oldest load of the load buffer is stalled at retirement due to a store forward block.",
672*fa607370SIan Rogers        "MetricExpr": "LD_HEAD.ST_ADDR_AT_RET / tma_info_clks",
673*fa607370SIan Rogers        "MetricGroup": "TopdownL4;tma_L4_group;tma_l1_bound_group",
674*fa607370SIan Rogers        "MetricName": "tma_store_fwd",
675*fa607370SIan Rogers        "MetricThreshold": "tma_store_fwd > 0.05",
6762bb3fbadSZhengjun Xing        "ScaleUnit": "100%"
6772bb3fbadSZhengjun Xing    }
6782bb3fbadSZhengjun Xing]
679