1[
2    {
3        "BriefDescription": "C10 residency percent per package",
4        "MetricExpr": "cstate_pkg@c10\\-residency@ / TSC",
5        "MetricGroup": "Power",
6        "MetricName": "C10_Pkg_Residency",
7        "ScaleUnit": "100%"
8    },
9    {
10        "BriefDescription": "C1 residency percent per core",
11        "MetricExpr": "cstate_core@c1\\-residency@ / TSC",
12        "MetricGroup": "Power",
13        "MetricName": "C1_Core_Residency",
14        "ScaleUnit": "100%"
15    },
16    {
17        "BriefDescription": "C2 residency percent per package",
18        "MetricExpr": "cstate_pkg@c2\\-residency@ / TSC",
19        "MetricGroup": "Power",
20        "MetricName": "C2_Pkg_Residency",
21        "ScaleUnit": "100%"
22    },
23    {
24        "BriefDescription": "C3 residency percent per package",
25        "MetricExpr": "cstate_pkg@c3\\-residency@ / TSC",
26        "MetricGroup": "Power",
27        "MetricName": "C3_Pkg_Residency",
28        "ScaleUnit": "100%"
29    },
30    {
31        "BriefDescription": "C6 residency percent per core",
32        "MetricExpr": "cstate_core@c6\\-residency@ / TSC",
33        "MetricGroup": "Power",
34        "MetricName": "C6_Core_Residency",
35        "ScaleUnit": "100%"
36    },
37    {
38        "BriefDescription": "C6 residency percent per package",
39        "MetricExpr": "cstate_pkg@c6\\-residency@ / TSC",
40        "MetricGroup": "Power",
41        "MetricName": "C6_Pkg_Residency",
42        "ScaleUnit": "100%"
43    },
44    {
45        "BriefDescription": "C7 residency percent per core",
46        "MetricExpr": "cstate_core@c7\\-residency@ / TSC",
47        "MetricGroup": "Power",
48        "MetricName": "C7_Core_Residency",
49        "ScaleUnit": "100%"
50    },
51    {
52        "BriefDescription": "C7 residency percent per package",
53        "MetricExpr": "cstate_pkg@c7\\-residency@ / TSC",
54        "MetricGroup": "Power",
55        "MetricName": "C7_Pkg_Residency",
56        "ScaleUnit": "100%"
57    },
58    {
59        "BriefDescription": "C8 residency percent per package",
60        "MetricExpr": "cstate_pkg@c8\\-residency@ / TSC",
61        "MetricGroup": "Power",
62        "MetricName": "C8_Pkg_Residency",
63        "ScaleUnit": "100%"
64    },
65    {
66        "BriefDescription": "C9 residency percent per package",
67        "MetricExpr": "cstate_pkg@c9\\-residency@ / TSC",
68        "MetricGroup": "Power",
69        "MetricName": "C9_Pkg_Residency",
70        "ScaleUnit": "100%"
71    },
72    {
73        "BriefDescription": "Percentage of cycles spent in System Management Interrupts.",
74        "MetricExpr": "((msr@aperf@ - cycles) / msr@aperf@ if msr@smi@ > 0 else 0)",
75        "MetricGroup": "smi",
76        "MetricName": "smi_cycles",
77        "MetricThreshold": "smi_cycles > 0.1",
78        "ScaleUnit": "100%"
79    },
80    {
81        "BriefDescription": "Number of SMI interrupts.",
82        "MetricExpr": "msr@smi@",
83        "MetricGroup": "smi",
84        "MetricName": "smi_num",
85        "ScaleUnit": "1SMI#"
86    },
87    {
88        "BriefDescription": "Counts the number of issue slots  that were not consumed by the backend due to certain allocation restrictions.",
89        "MetricExpr": "TOPDOWN_BE_BOUND.ALLOC_RESTRICTIONS / tma_info_slots",
90        "MetricGroup": "TopdownL3;tma_L3_group;tma_resource_bound_group",
91        "MetricName": "tma_alloc_restriction",
92        "MetricThreshold": "tma_alloc_restriction > 0.1",
93        "ScaleUnit": "100%"
94    },
95    {
96        "BriefDescription": "Counts the total number of issue slots  that were not consumed by the backend due to backend stalls",
97        "MetricExpr": "TOPDOWN_BE_BOUND.ALL / tma_info_slots",
98        "MetricGroup": "TopdownL1;tma_L1_group",
99        "MetricName": "tma_backend_bound",
100        "MetricThreshold": "tma_backend_bound > 0.1",
101        "MetricgroupNoGroup": "TopdownL1",
102        "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.",
103        "ScaleUnit": "100%"
104    },
105    {
106        "BriefDescription": "Counts the total number of issue slots  that were not consumed by the backend due to backend stalls",
107        "MetricExpr": "tma_backend_bound",
108        "MetricGroup": "TopdownL1;tma_L1_group",
109        "MetricName": "tma_backend_bound_aux",
110        "MetricThreshold": "tma_backend_bound_aux > 0.2",
111        "MetricgroupNoGroup": "TopdownL1",
112        "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.",
113        "ScaleUnit": "100%"
114    },
115    {
116        "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",
117        "MetricExpr": "(tma_info_slots - (TOPDOWN_FE_BOUND.ALL + TOPDOWN_BE_BOUND.ALL + TOPDOWN_RETIRING.ALL)) / tma_info_slots",
118        "MetricGroup": "TopdownL1;tma_L1_group",
119        "MetricName": "tma_bad_speculation",
120        "MetricThreshold": "tma_bad_speculation > 0.15",
121        "MetricgroupNoGroup": "TopdownL1",
122        "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.",
123        "ScaleUnit": "100%"
124    },
125    {
126        "BriefDescription": "Counts the number of uops that are not from the microsequencer.",
127        "MetricExpr": "(TOPDOWN_RETIRING.ALL - UOPS_RETIRED.MS) / tma_info_slots",
128        "MetricGroup": "TopdownL2;tma_L2_group;tma_retiring_group",
129        "MetricName": "tma_base",
130        "MetricThreshold": "tma_base > 0.6",
131        "MetricgroupNoGroup": "TopdownL2",
132        "ScaleUnit": "100%"
133    },
134    {
135        "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",
136        "MetricExpr": "TOPDOWN_FE_BOUND.BRANCH_DETECT / tma_info_slots",
137        "MetricGroup": "TopdownL3;tma_L3_group;tma_fetch_latency_group",
138        "MetricName": "tma_branch_detect",
139        "MetricThreshold": "tma_branch_detect > 0.05",
140        "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.",
141        "ScaleUnit": "100%"
142    },
143    {
144        "BriefDescription": "Counts the number of issue slots  that were not consumed by the backend due to branch mispredicts.",
145        "MetricExpr": "TOPDOWN_BAD_SPECULATION.MISPREDICT / tma_info_slots",
146        "MetricGroup": "TopdownL2;tma_L2_group;tma_bad_speculation_group",
147        "MetricName": "tma_branch_mispredicts",
148        "MetricThreshold": "tma_branch_mispredicts > 0.05",
149        "MetricgroupNoGroup": "TopdownL2",
150        "ScaleUnit": "100%"
151    },
152    {
153        "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.",
154        "MetricExpr": "TOPDOWN_FE_BOUND.BRANCH_RESTEER / tma_info_slots",
155        "MetricGroup": "TopdownL3;tma_L3_group;tma_fetch_latency_group",
156        "MetricName": "tma_branch_resteer",
157        "MetricThreshold": "tma_branch_resteer > 0.05",
158        "ScaleUnit": "100%"
159    },
160    {
161        "BriefDescription": "Counts the number of issue slots  that were not delivered by the frontend due to the microcode sequencer (MS).",
162        "MetricExpr": "TOPDOWN_FE_BOUND.CISC / tma_info_slots",
163        "MetricGroup": "TopdownL3;tma_L3_group;tma_fetch_bandwidth_group",
164        "MetricName": "tma_cisc",
165        "MetricThreshold": "tma_cisc > 0.05",
166        "ScaleUnit": "100%"
167    },
168    {
169        "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.",
170        "MetricExpr": "max(0, tma_backend_bound - tma_memory_bound)",
171        "MetricGroup": "TopdownL2;tma_L2_group;tma_backend_bound_group",
172        "MetricName": "tma_core_bound",
173        "MetricThreshold": "tma_core_bound > 0.1",
174        "MetricgroupNoGroup": "TopdownL2",
175        "ScaleUnit": "100%"
176    },
177    {
178        "BriefDescription": "Counts the number of issue slots  that were not delivered by the frontend due to decode stalls.",
179        "MetricExpr": "TOPDOWN_FE_BOUND.DECODE / tma_info_slots",
180        "MetricGroup": "TopdownL3;tma_L3_group;tma_fetch_bandwidth_group",
181        "MetricName": "tma_decode",
182        "MetricThreshold": "tma_decode > 0.05",
183        "ScaleUnit": "100%"
184    },
185    {
186        "BriefDescription": "Counts the number of machine clears relative to the number of nuke slots due to memory disambiguation.",
187        "MetricExpr": "tma_nuke * (MACHINE_CLEARS.DISAMBIGUATION / MACHINE_CLEARS.SLOW)",
188        "MetricGroup": "TopdownL4;tma_L4_group;tma_nuke_group",
189        "MetricName": "tma_disambiguation",
190        "MetricThreshold": "tma_disambiguation > 0.02",
191        "ScaleUnit": "100%"
192    },
193    {
194        "BriefDescription": "Counts the number of cycles the core is stalled due to a demand load miss which hit in DRAM or MMIO (Non-DRAM).",
195        "MetricConstraint": "NO_GROUP_EVENTS",
196        "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",
197        "MetricGroup": "TopdownL3;tma_L3_group;tma_memory_bound_group",
198        "MetricName": "tma_dram_bound",
199        "MetricThreshold": "tma_dram_bound > 0.1",
200        "ScaleUnit": "100%"
201    },
202    {
203        "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.",
204        "MetricExpr": "TOPDOWN_BAD_SPECULATION.FASTNUKE / tma_info_slots",
205        "MetricGroup": "TopdownL3;tma_L3_group;tma_machine_clears_group",
206        "MetricName": "tma_fast_nuke",
207        "MetricThreshold": "tma_fast_nuke > 0.05",
208        "ScaleUnit": "100%"
209    },
210    {
211        "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.",
212        "MetricExpr": "TOPDOWN_FE_BOUND.FRONTEND_BANDWIDTH / tma_info_slots",
213        "MetricGroup": "TopdownL2;tma_L2_group;tma_frontend_bound_group",
214        "MetricName": "tma_fetch_bandwidth",
215        "MetricThreshold": "tma_fetch_bandwidth > 0.1",
216        "MetricgroupNoGroup": "TopdownL2",
217        "ScaleUnit": "100%"
218    },
219    {
220        "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.",
221        "MetricExpr": "TOPDOWN_FE_BOUND.FRONTEND_LATENCY / tma_info_slots",
222        "MetricGroup": "TopdownL2;tma_L2_group;tma_frontend_bound_group",
223        "MetricName": "tma_fetch_latency",
224        "MetricThreshold": "tma_fetch_latency > 0.15",
225        "MetricgroupNoGroup": "TopdownL2",
226        "ScaleUnit": "100%"
227    },
228    {
229        "BriefDescription": "Counts the number of machine clears relative to the number of nuke slots due to FP assists.",
230        "MetricExpr": "tma_nuke * (MACHINE_CLEARS.FP_ASSIST / MACHINE_CLEARS.SLOW)",
231        "MetricGroup": "TopdownL4;tma_L4_group;tma_nuke_group",
232        "MetricName": "tma_fp_assist",
233        "MetricThreshold": "tma_fp_assist > 0.02",
234        "ScaleUnit": "100%"
235    },
236    {
237        "BriefDescription": "Counts the number of floating point divide operations per uop.",
238        "MetricExpr": "UOPS_RETIRED.FPDIV / tma_info_slots",
239        "MetricGroup": "TopdownL3;tma_L3_group;tma_base_group",
240        "MetricName": "tma_fpdiv_uops",
241        "MetricThreshold": "tma_fpdiv_uops > 0.2",
242        "ScaleUnit": "100%"
243    },
244    {
245        "BriefDescription": "Counts the number of issue slots  that were not consumed by the backend due to frontend stalls.",
246        "MetricExpr": "TOPDOWN_FE_BOUND.ALL / tma_info_slots",
247        "MetricGroup": "TopdownL1;tma_L1_group",
248        "MetricName": "tma_frontend_bound",
249        "MetricThreshold": "tma_frontend_bound > 0.2",
250        "MetricgroupNoGroup": "TopdownL1",
251        "ScaleUnit": "100%"
252    },
253    {
254        "BriefDescription": "Counts the number of issue slots  that were not delivered by the frontend due to instruction cache misses.",
255        "MetricExpr": "TOPDOWN_FE_BOUND.ICACHE / tma_info_slots",
256        "MetricGroup": "TopdownL3;tma_L3_group;tma_fetch_latency_group",
257        "MetricName": "tma_icache_misses",
258        "MetricThreshold": "tma_icache_misses > 0.05",
259        "ScaleUnit": "100%"
260    },
261    {
262        "BriefDescription": "Percentage of total non-speculative loads with a address aliasing block",
263        "MetricExpr": "100 * LD_BLOCKS.4K_ALIAS / MEM_UOPS_RETIRED.ALL_LOADS",
264        "MetricName": "tma_info_address_alias_blocks"
265    },
266    {
267        "BriefDescription": "Ratio of all branches which mispredict",
268        "MetricExpr": "BR_MISP_RETIRED.ALL_BRANCHES / BR_INST_RETIRED.ALL_BRANCHES",
269        "MetricGroup": " ",
270        "MetricName": "tma_info_branch_mispredict_ratio"
271    },
272    {
273        "BriefDescription": "Ratio between Mispredicted branches and unknown branches",
274        "MetricExpr": "BR_MISP_RETIRED.ALL_BRANCHES / BACLEARS.ANY",
275        "MetricGroup": " ",
276        "MetricName": "tma_info_branch_mispredict_to_unknown_branch_ratio"
277    },
278    {
279        "BriefDescription": "",
280        "MetricExpr": "CPU_CLK_UNHALTED.CORE",
281        "MetricGroup": " ",
282        "MetricName": "tma_info_clks"
283    },
284    {
285        "BriefDescription": "",
286        "MetricExpr": "CPU_CLK_UNHALTED.CORE_P",
287        "MetricGroup": " ",
288        "MetricName": "tma_info_clks_p"
289    },
290    {
291        "BriefDescription": "Cycles Per Instruction",
292        "MetricExpr": "tma_info_clks / INST_RETIRED.ANY",
293        "MetricGroup": " ",
294        "MetricName": "tma_info_cpi"
295    },
296    {
297        "BriefDescription": "Average CPU Utilization",
298        "MetricExpr": "CPU_CLK_UNHALTED.REF_TSC / TSC",
299        "MetricGroup": " ",
300        "MetricName": "tma_info_cpu_utilization"
301    },
302    {
303        "BriefDescription": "Cycle cost per DRAM hit",
304        "MetricExpr": "MEM_BOUND_STALLS.LOAD_DRAM_HIT / MEM_LOAD_UOPS_RETIRED.DRAM_HIT",
305        "MetricGroup": " ",
306        "MetricName": "tma_info_cycles_per_demand_load_dram_hit"
307    },
308    {
309        "BriefDescription": "Cycle cost per L2 hit",
310        "MetricExpr": "MEM_BOUND_STALLS.LOAD_L2_HIT / MEM_LOAD_UOPS_RETIRED.L2_HIT",
311        "MetricGroup": " ",
312        "MetricName": "tma_info_cycles_per_demand_load_l2_hit"
313    },
314    {
315        "BriefDescription": "Cycle cost per LLC hit",
316        "MetricExpr": "MEM_BOUND_STALLS.LOAD_LLC_HIT / MEM_LOAD_UOPS_RETIRED.L3_HIT",
317        "MetricGroup": " ",
318        "MetricName": "tma_info_cycles_per_demand_load_l3_hit"
319    },
320    {
321        "BriefDescription": "Percentage of all uops which are FPDiv uops",
322        "MetricExpr": "100 * UOPS_RETIRED.FPDIV / UOPS_RETIRED.ALL",
323        "MetricGroup": " ",
324        "MetricName": "tma_info_fpdiv_uop_ratio"
325    },
326    {
327        "BriefDescription": "Percentage of all uops which are IDiv uops",
328        "MetricExpr": "100 * UOPS_RETIRED.IDIV / UOPS_RETIRED.ALL",
329        "MetricGroup": " ",
330        "MetricName": "tma_info_idiv_uop_ratio"
331    },
332    {
333        "BriefDescription": "Percent of instruction miss cost that hit in DRAM",
334        "MetricExpr": "100 * MEM_BOUND_STALLS.IFETCH_DRAM_HIT / MEM_BOUND_STALLS.IFETCH",
335        "MetricGroup": " ",
336        "MetricName": "tma_info_inst_miss_cost_dramhit_percent"
337    },
338    {
339        "BriefDescription": "Percent of instruction miss cost that hit in the L2",
340        "MetricExpr": "100 * MEM_BOUND_STALLS.IFETCH_L2_HIT / MEM_BOUND_STALLS.IFETCH",
341        "MetricGroup": " ",
342        "MetricName": "tma_info_inst_miss_cost_l2hit_percent"
343    },
344    {
345        "BriefDescription": "Percent of instruction miss cost that hit in the L3",
346        "MetricExpr": "100 * MEM_BOUND_STALLS.IFETCH_LLC_HIT / MEM_BOUND_STALLS.IFETCH",
347        "MetricGroup": " ",
348        "MetricName": "tma_info_inst_miss_cost_l3hit_percent"
349    },
350    {
351        "BriefDescription": "Instructions per Branch (lower number means higher occurance rate)",
352        "MetricExpr": "INST_RETIRED.ANY / BR_INST_RETIRED.ALL_BRANCHES",
353        "MetricGroup": " ",
354        "MetricName": "tma_info_ipbranch"
355    },
356    {
357        "BriefDescription": "Instructions Per Cycle",
358        "MetricExpr": "INST_RETIRED.ANY / tma_info_clks",
359        "MetricGroup": " ",
360        "MetricName": "tma_info_ipc"
361    },
362    {
363        "BriefDescription": "Instruction per (near) call (lower number means higher occurance rate)",
364        "MetricExpr": "INST_RETIRED.ANY / BR_INST_RETIRED.CALL",
365        "MetricGroup": " ",
366        "MetricName": "tma_info_ipcall"
367    },
368    {
369        "BriefDescription": "Instructions per Far Branch",
370        "MetricExpr": "INST_RETIRED.ANY / (BR_INST_RETIRED.FAR_BRANCH / 2)",
371        "MetricGroup": " ",
372        "MetricName": "tma_info_ipfarbranch"
373    },
374    {
375        "BriefDescription": "Instructions per Load",
376        "MetricExpr": "INST_RETIRED.ANY / MEM_UOPS_RETIRED.ALL_LOADS",
377        "MetricGroup": " ",
378        "MetricName": "tma_info_ipload"
379    },
380    {
381        "BriefDescription": "Instructions per retired conditional Branch Misprediction where the branch was not taken",
382        "MetricExpr": "INST_RETIRED.ANY / (BR_MISP_RETIRED.COND - BR_MISP_RETIRED.COND_TAKEN)",
383        "MetricName": "tma_info_ipmisp_cond_ntaken"
384    },
385    {
386        "BriefDescription": "Instructions per retired conditional Branch Misprediction where the branch was taken",
387        "MetricExpr": "INST_RETIRED.ANY / BR_MISP_RETIRED.COND_TAKEN",
388        "MetricName": "tma_info_ipmisp_cond_taken"
389    },
390    {
391        "BriefDescription": "Instructions per retired indirect call or jump Branch Misprediction",
392        "MetricExpr": "INST_RETIRED.ANY / BR_MISP_RETIRED.INDIRECT",
393        "MetricName": "tma_info_ipmisp_indirect"
394    },
395    {
396        "BriefDescription": "Instructions per retired return Branch Misprediction",
397        "MetricExpr": "INST_RETIRED.ANY / BR_MISP_RETIRED.RETURN",
398        "MetricName": "tma_info_ipmisp_ret"
399    },
400    {
401        "BriefDescription": "Instructions per retired Branch Misprediction",
402        "MetricExpr": "INST_RETIRED.ANY / BR_MISP_RETIRED.ALL_BRANCHES",
403        "MetricGroup": " ",
404        "MetricName": "tma_info_ipmispredict"
405    },
406    {
407        "BriefDescription": "Instructions per Store",
408        "MetricExpr": "INST_RETIRED.ANY / MEM_UOPS_RETIRED.ALL_STORES",
409        "MetricGroup": " ",
410        "MetricName": "tma_info_ipstore"
411    },
412    {
413        "BriefDescription": "Fraction of cycles spent in Kernel mode",
414        "MetricExpr": "cpu@CPU_CLK_UNHALTED.CORE@k / CPU_CLK_UNHALTED.CORE",
415        "MetricGroup": " ",
416        "MetricName": "tma_info_kernel_utilization"
417    },
418    {
419        "BriefDescription": "Percentage of total non-speculative loads that are splits",
420        "MetricExpr": "100 * MEM_UOPS_RETIRED.SPLIT_LOADS / MEM_UOPS_RETIRED.ALL_LOADS",
421        "MetricName": "tma_info_load_splits"
422    },
423    {
424        "BriefDescription": "load ops retired per 1000 instruction",
425        "MetricExpr": "1e3 * MEM_UOPS_RETIRED.ALL_LOADS / INST_RETIRED.ANY",
426        "MetricGroup": " ",
427        "MetricName": "tma_info_memloadpki"
428    },
429    {
430        "BriefDescription": "Percentage of all uops which are ucode ops",
431        "MetricExpr": "100 * UOPS_RETIRED.MS / UOPS_RETIRED.ALL",
432        "MetricGroup": " ",
433        "MetricName": "tma_info_microcode_uop_ratio"
434    },
435    {
436        "BriefDescription": "",
437        "MetricExpr": "5 * tma_info_clks",
438        "MetricGroup": " ",
439        "MetricName": "tma_info_slots"
440    },
441    {
442        "BriefDescription": "Percentage of total non-speculative loads with a store forward or unknown store address block",
443        "MetricExpr": "100 * LD_BLOCKS.DATA_UNKNOWN / MEM_UOPS_RETIRED.ALL_LOADS",
444        "MetricName": "tma_info_store_fwd_blocks"
445    },
446    {
447        "BriefDescription": "Average Frequency Utilization relative nominal frequency",
448        "MetricExpr": "tma_info_clks / CPU_CLK_UNHALTED.REF_TSC",
449        "MetricGroup": " ",
450        "MetricName": "tma_info_turbo_utilization"
451    },
452    {
453        "BriefDescription": "Uops Per Instruction",
454        "MetricExpr": "UOPS_RETIRED.ALL / INST_RETIRED.ANY",
455        "MetricGroup": " ",
456        "MetricName": "tma_info_upi"
457    },
458    {
459        "BriefDescription": "Percentage of all uops which are x87 uops",
460        "MetricExpr": "100 * UOPS_RETIRED.X87 / UOPS_RETIRED.ALL",
461        "MetricGroup": " ",
462        "MetricName": "tma_info_x87_uop_ratio"
463    },
464    {
465        "BriefDescription": "Counts the number of issue slots  that were not delivered by the frontend due to Instruction Table Lookaside Buffer (ITLB) misses.",
466        "MetricExpr": "TOPDOWN_FE_BOUND.ITLB / tma_info_slots",
467        "MetricGroup": "TopdownL3;tma_L3_group;tma_fetch_latency_group",
468        "MetricName": "tma_itlb_misses",
469        "MetricThreshold": "tma_itlb_misses > 0.05",
470        "ScaleUnit": "100%"
471    },
472    {
473        "BriefDescription": "Counts the number of cycles that the oldest load of the load buffer is stalled at retirement due to a load block.",
474        "MetricExpr": "LD_HEAD.L1_BOUND_AT_RET / tma_info_clks",
475        "MetricGroup": "TopdownL3;tma_L3_group;tma_memory_bound_group",
476        "MetricName": "tma_l1_bound",
477        "MetricThreshold": "tma_l1_bound > 0.1",
478        "ScaleUnit": "100%"
479    },
480    {
481        "BriefDescription": "Counts the number of cycles a core is stalled due to a demand load which hit in the L2 Cache.",
482        "MetricConstraint": "NO_GROUP_EVENTS",
483        "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",
484        "MetricGroup": "TopdownL3;tma_L3_group;tma_memory_bound_group",
485        "MetricName": "tma_l2_bound",
486        "MetricThreshold": "tma_l2_bound > 0.1",
487        "ScaleUnit": "100%"
488    },
489    {
490        "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.",
491        "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",
492        "MetricGroup": "TopdownL3;tma_L3_group;tma_memory_bound_group",
493        "MetricName": "tma_l3_bound",
494        "MetricThreshold": "tma_l3_bound > 0.1",
495        "ScaleUnit": "100%"
496    },
497    {
498        "BriefDescription": "Counts the number of cycles, relative to the number of mem_scheduler slots, in which uops are blocked due to load buffer full",
499        "MetricExpr": "tma_mem_scheduler * MEM_SCHEDULER_BLOCK.LD_BUF / MEM_SCHEDULER_BLOCK.ALL",
500        "MetricGroup": "TopdownL4;tma_L4_group;tma_mem_scheduler_group",
501        "MetricName": "tma_ld_buffer",
502        "MetricThreshold": "tma_ld_buffer > 0.05",
503        "ScaleUnit": "100%"
504    },
505    {
506        "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.",
507        "MetricExpr": "TOPDOWN_BAD_SPECULATION.MACHINE_CLEARS / tma_info_slots",
508        "MetricGroup": "TopdownL2;tma_L2_group;tma_bad_speculation_group",
509        "MetricName": "tma_machine_clears",
510        "MetricThreshold": "tma_machine_clears > 0.05",
511        "MetricgroupNoGroup": "TopdownL2",
512        "ScaleUnit": "100%"
513    },
514    {
515        "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.",
516        "MetricExpr": "TOPDOWN_BE_BOUND.MEM_SCHEDULER / tma_info_slots",
517        "MetricGroup": "TopdownL3;tma_L3_group;tma_resource_bound_group",
518        "MetricName": "tma_mem_scheduler",
519        "MetricThreshold": "tma_mem_scheduler > 0.1",
520        "ScaleUnit": "100%"
521    },
522    {
523        "BriefDescription": "Counts the number of cycles the core is stalled due to stores or loads.",
524        "MetricExpr": "min(tma_backend_bound, LD_HEAD.ANY_AT_RET / tma_info_clks + tma_store_bound)",
525        "MetricGroup": "TopdownL2;tma_L2_group;tma_backend_bound_group",
526        "MetricName": "tma_memory_bound",
527        "MetricThreshold": "tma_memory_bound > 0.2",
528        "MetricgroupNoGroup": "TopdownL2",
529        "ScaleUnit": "100%"
530    },
531    {
532        "BriefDescription": "Counts the number of machine clears relative to the number of nuke slots due to memory ordering.",
533        "MetricExpr": "tma_nuke * (MACHINE_CLEARS.MEMORY_ORDERING / MACHINE_CLEARS.SLOW)",
534        "MetricGroup": "TopdownL4;tma_L4_group;tma_nuke_group",
535        "MetricName": "tma_memory_ordering",
536        "MetricThreshold": "tma_memory_ordering > 0.02",
537        "ScaleUnit": "100%"
538    },
539    {
540        "BriefDescription": "Counts the number of uops that are from the complex flows issued by the micro-sequencer (MS)",
541        "MetricExpr": "UOPS_RETIRED.MS / tma_info_slots",
542        "MetricGroup": "TopdownL2;tma_L2_group;tma_retiring_group",
543        "MetricName": "tma_ms_uops",
544        "MetricThreshold": "tma_ms_uops > 0.05",
545        "MetricgroupNoGroup": "TopdownL2",
546        "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.",
547        "ScaleUnit": "100%"
548    },
549    {
550        "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.",
551        "MetricExpr": "TOPDOWN_BE_BOUND.NON_MEM_SCHEDULER / tma_info_slots",
552        "MetricGroup": "TopdownL3;tma_L3_group;tma_resource_bound_group",
553        "MetricName": "tma_non_mem_scheduler",
554        "MetricThreshold": "tma_non_mem_scheduler > 0.1",
555        "ScaleUnit": "100%"
556    },
557    {
558        "BriefDescription": "Counts the number of issue slots  that were not consumed by the backend due to a machine clear (slow nuke).",
559        "MetricExpr": "TOPDOWN_BAD_SPECULATION.NUKE / tma_info_slots",
560        "MetricGroup": "TopdownL3;tma_L3_group;tma_machine_clears_group",
561        "MetricName": "tma_nuke",
562        "MetricThreshold": "tma_nuke > 0.05",
563        "ScaleUnit": "100%"
564    },
565    {
566        "BriefDescription": "Counts the number of issue slots  that were not delivered by the frontend due to other common frontend stalls not categorized.",
567        "MetricExpr": "TOPDOWN_FE_BOUND.OTHER / tma_info_slots",
568        "MetricGroup": "TopdownL3;tma_L3_group;tma_fetch_bandwidth_group",
569        "MetricName": "tma_other_fb",
570        "MetricThreshold": "tma_other_fb > 0.05",
571        "ScaleUnit": "100%"
572    },
573    {
574        "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.",
575        "MetricExpr": "LD_HEAD.OTHER_AT_RET / tma_info_clks",
576        "MetricGroup": "TopdownL4;tma_L4_group;tma_l1_bound_group",
577        "MetricName": "tma_other_l1",
578        "MetricThreshold": "tma_other_l1 > 0.05",
579        "ScaleUnit": "100%"
580    },
581    {
582        "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.",
583        "MetricExpr": "max(0, tma_memory_bound - (tma_store_bound + tma_l1_bound + tma_l2_bound + tma_l3_bound + tma_dram_bound))",
584        "MetricGroup": "TopdownL3;tma_L3_group;tma_memory_bound_group",
585        "MetricName": "tma_other_load_store",
586        "MetricThreshold": "tma_other_load_store > 0.1",
587        "ScaleUnit": "100%"
588    },
589    {
590        "BriefDescription": "Counts the number of uops retired excluding ms and fp div uops.",
591        "MetricExpr": "(TOPDOWN_RETIRING.ALL - UOPS_RETIRED.MS - UOPS_RETIRED.FPDIV) / tma_info_slots",
592        "MetricGroup": "TopdownL3;tma_L3_group;tma_base_group",
593        "MetricName": "tma_other_ret",
594        "MetricThreshold": "tma_other_ret > 0.3",
595        "ScaleUnit": "100%"
596    },
597    {
598        "BriefDescription": "Counts the number of machine clears relative to the number of nuke slots due to page faults.",
599        "MetricExpr": "tma_nuke * (MACHINE_CLEARS.PAGE_FAULT / MACHINE_CLEARS.SLOW)",
600        "MetricGroup": "TopdownL4;tma_L4_group;tma_nuke_group",
601        "MetricName": "tma_page_fault",
602        "MetricThreshold": "tma_page_fault > 0.02",
603        "ScaleUnit": "100%"
604    },
605    {
606        "BriefDescription": "Counts the number of issue slots  that were not delivered by the frontend due to wrong predecodes.",
607        "MetricExpr": "TOPDOWN_FE_BOUND.PREDECODE / tma_info_slots",
608        "MetricGroup": "TopdownL3;tma_L3_group;tma_fetch_bandwidth_group",
609        "MetricName": "tma_predecode",
610        "MetricThreshold": "tma_predecode > 0.05",
611        "ScaleUnit": "100%"
612    },
613    {
614        "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).",
615        "MetricExpr": "TOPDOWN_BE_BOUND.REGISTER / tma_info_slots",
616        "MetricGroup": "TopdownL3;tma_L3_group;tma_resource_bound_group",
617        "MetricName": "tma_register",
618        "MetricThreshold": "tma_register > 0.1",
619        "ScaleUnit": "100%"
620    },
621    {
622        "BriefDescription": "Counts the number of issue slots  that were not consumed by the backend due to the reorder buffer being full (ROB stalls).",
623        "MetricExpr": "TOPDOWN_BE_BOUND.REORDER_BUFFER / tma_info_slots",
624        "MetricGroup": "TopdownL3;tma_L3_group;tma_resource_bound_group",
625        "MetricName": "tma_reorder_buffer",
626        "MetricThreshold": "tma_reorder_buffer > 0.1",
627        "ScaleUnit": "100%"
628    },
629    {
630        "BriefDescription": "Counts the total number of issue slots  that were not consumed by the backend due to backend stalls",
631        "MetricExpr": "tma_backend_bound",
632        "MetricGroup": "TopdownL2;tma_L2_group;tma_backend_bound_aux_group",
633        "MetricName": "tma_resource_bound",
634        "MetricThreshold": "tma_resource_bound > 0.2",
635        "MetricgroupNoGroup": "TopdownL2",
636        "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.",
637        "ScaleUnit": "100%"
638    },
639    {
640        "BriefDescription": "Counts the numer of issue slots  that result in retirement slots.",
641        "MetricExpr": "TOPDOWN_RETIRING.ALL / tma_info_slots",
642        "MetricGroup": "TopdownL1;tma_L1_group",
643        "MetricName": "tma_retiring",
644        "MetricThreshold": "tma_retiring > 0.75",
645        "MetricgroupNoGroup": "TopdownL1",
646        "ScaleUnit": "100%"
647    },
648    {
649        "BriefDescription": "Counts the number of cycles, relative to the number of mem_scheduler slots, in which uops are blocked due to RSV full relative",
650        "MetricExpr": "tma_mem_scheduler * MEM_SCHEDULER_BLOCK.RSV / MEM_SCHEDULER_BLOCK.ALL",
651        "MetricGroup": "TopdownL4;tma_L4_group;tma_mem_scheduler_group",
652        "MetricName": "tma_rsv",
653        "MetricThreshold": "tma_rsv > 0.05",
654        "ScaleUnit": "100%"
655    },
656    {
657        "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).",
658        "MetricExpr": "TOPDOWN_BE_BOUND.SERIALIZATION / tma_info_slots",
659        "MetricGroup": "TopdownL3;tma_L3_group;tma_resource_bound_group",
660        "MetricName": "tma_serialization",
661        "MetricThreshold": "tma_serialization > 0.1",
662        "ScaleUnit": "100%"
663    },
664    {
665        "BriefDescription": "Counts the number of machine clears relative to the number of nuke slots due to SMC.",
666        "MetricExpr": "tma_nuke * (MACHINE_CLEARS.SMC / MACHINE_CLEARS.SLOW)",
667        "MetricGroup": "TopdownL4;tma_L4_group;tma_nuke_group",
668        "MetricName": "tma_smc",
669        "MetricThreshold": "tma_smc > 0.02",
670        "ScaleUnit": "100%"
671    },
672    {
673        "BriefDescription": "Counts the number of cycles, relative to the number of mem_scheduler slots, in which uops are blocked due to store buffer full",
674        "MetricExpr": "tma_store_bound",
675        "MetricGroup": "TopdownL4;tma_L4_group;tma_mem_scheduler_group",
676        "MetricName": "tma_st_buffer",
677        "MetricThreshold": "tma_st_buffer > 0.05",
678        "ScaleUnit": "100%"
679    },
680    {
681        "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.",
682        "MetricExpr": "LD_HEAD.DTLB_MISS_AT_RET / tma_info_clks",
683        "MetricGroup": "TopdownL4;tma_L4_group;tma_l1_bound_group",
684        "MetricName": "tma_stlb_hit",
685        "MetricThreshold": "tma_stlb_hit > 0.05",
686        "ScaleUnit": "100%"
687    },
688    {
689        "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.",
690        "MetricExpr": "LD_HEAD.PGWALK_AT_RET / tma_info_clks",
691        "MetricGroup": "TopdownL4;tma_L4_group;tma_l1_bound_group",
692        "MetricName": "tma_stlb_miss",
693        "MetricThreshold": "tma_stlb_miss > 0.05",
694        "ScaleUnit": "100%"
695    },
696    {
697        "BriefDescription": "Counts the number of cycles the core is stalled due to store buffer full.",
698        "MetricExpr": "tma_mem_scheduler * (MEM_SCHEDULER_BLOCK.ST_BUF / MEM_SCHEDULER_BLOCK.ALL)",
699        "MetricGroup": "TopdownL3;tma_L3_group;tma_memory_bound_group",
700        "MetricName": "tma_store_bound",
701        "MetricThreshold": "tma_store_bound > 0.1",
702        "ScaleUnit": "100%"
703    },
704    {
705        "BriefDescription": "Counts the number of cycles that the oldest load of the load buffer is stalled at retirement due to a store forward block.",
706        "MetricExpr": "LD_HEAD.ST_ADDR_AT_RET / tma_info_clks",
707        "MetricGroup": "TopdownL4;tma_L4_group;tma_l1_bound_group",
708        "MetricName": "tma_store_fwd_blk",
709        "MetricThreshold": "tma_store_fwd_blk > 0.05",
710        "ScaleUnit": "100%"
711    }
712]
713