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