summaryrefslogtreecommitdiff
path: root/tools/perf/pmu-events/arch/x86/amdzen5/pipeline.json
blob: d860bf599cf2407ad8d13cc1b0bea39d5b4af636 (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
[
  {
    "MetricName": "total_dispatch_slots",
    "BriefDescription": "Total dispatch slots (up to 8 instructions can be dispatched in each cycle).",
    "MetricExpr": "8 * ls_not_halted_cyc",
    "ScaleUnit": "1slots"
  },
  {
    "MetricName": "frontend_bound",
    "BriefDescription": "Percentage of dispatch slots that remained unused because the frontend did not supply enough instructions/ops.",
    "MetricExpr": "d_ratio(de_no_dispatch_per_slot.no_ops_from_frontend, total_dispatch_slots)",
    "MetricGroup": "PipelineL1",
    "ScaleUnit": "100%slots"
  },
  {
    "MetricName": "bad_speculation",
    "BriefDescription": "Percentage of dispatched ops that did not retire.",
    "MetricExpr": "d_ratio(de_src_op_disp.all - ex_ret_ops, total_dispatch_slots)",
    "MetricGroup": "PipelineL1",
    "ScaleUnit": "100%ops"
  },
  {
    "MetricName": "backend_bound",
    "BriefDescription": "Percentage of dispatch slots that remained unused because of backend stalls.",
    "MetricExpr": "d_ratio(de_no_dispatch_per_slot.backend_stalls, total_dispatch_slots)",
    "MetricGroup": "PipelineL1",
    "ScaleUnit": "100%slots"
  },
  {
    "MetricName": "smt_contention",
    "BriefDescription": "Percentage of dispatch slots that remained unused because the other thread was selected.",
    "MetricExpr": "d_ratio(de_no_dispatch_per_slot.smt_contention, total_dispatch_slots)",
    "MetricGroup": "PipelineL1",
    "ScaleUnit": "100%slots"
  },
  {
    "MetricName": "retiring",
    "BriefDescription": "Percentage of dispatch slots used by ops that retired.",
    "MetricExpr": "d_ratio(ex_ret_ops, total_dispatch_slots)",
    "MetricGroup": "PipelineL1",
    "ScaleUnit": "100%slots"
  },
  {
    "MetricName": "frontend_bound_by_latency",
    "BriefDescription": "Percentage of dispatch slots that remained unused because of a latency bottleneck in the frontend (such as instruction cache or TLB misses).",
    "MetricExpr": "d_ratio((8 * cpu@de_no_dispatch_per_slot.no_ops_from_frontend\\,cmask\\=0x8@), total_dispatch_slots)",
    "MetricGroup": "PipelineL2;frontend_bound_group",
    "ScaleUnit": "100%slots"
  },
  {
    "MetricName": "frontend_bound_by_bandwidth",
    "BriefDescription": "Percentage of dispatch slots that remained unused because of a bandwidth bottleneck in the frontend (such as decode or op cache fetch bandwidth).",
    "MetricExpr": "d_ratio(de_no_dispatch_per_slot.no_ops_from_frontend - (8 * cpu@de_no_dispatch_per_slot.no_ops_from_frontend\\,cmask\\=0x8@), total_dispatch_slots)",
    "MetricGroup": "PipelineL2;frontend_bound_group",
    "ScaleUnit": "100%slots"
  },
  {
    "MetricName": "bad_speculation_from_mispredicts",
    "BriefDescription": "Percentage of dispatched ops that were flushed due to branch mispredicts.",
    "MetricExpr": "d_ratio(bad_speculation * ex_ret_brn_misp, ex_ret_brn_misp + bp_redirects.resync)",
    "MetricGroup": "PipelineL2;bad_speculation_group",
    "ScaleUnit": "100%ops"
  },
  {
    "MetricName": "bad_speculation_from_pipeline_restarts",
    "BriefDescription": "Percentage of dispatched ops that were flushed due to pipeline restarts (resyncs).",
    "MetricExpr": "d_ratio(bad_speculation * bp_redirects.resync, ex_ret_brn_misp + bp_redirects.resync)",
    "MetricGroup": "PipelineL2;bad_speculation_group",
    "ScaleUnit": "100%ops"
  },
  {
    "MetricName": "backend_bound_by_memory",
    "BriefDescription": "Percentage of dispatch slots that remained unused because of stalls due to the memory subsystem.",
    "MetricExpr": "backend_bound * d_ratio(ex_no_retire.load_not_complete, ex_no_retire.not_complete)",
    "MetricGroup": "PipelineL2;backend_bound_group",
    "ScaleUnit": "100%slots"
  },
  {
    "MetricName": "backend_bound_by_cpu",
    "BriefDescription": "Percentage of dispatch slots that remained unused because of stalls not related to the memory subsystem.",
    "MetricExpr": "backend_bound * (1 - d_ratio(ex_no_retire.load_not_complete, ex_no_retire.not_complete))",
    "MetricGroup": "PipelineL2;backend_bound_group",
    "ScaleUnit": "100%slots"
  },
  {
    "MetricName": "retiring_from_fastpath",
    "BriefDescription": "Percentage of dispatch slots used by fastpath ops that retired.",
    "MetricExpr": "retiring * (1 - d_ratio(ex_ret_ucode_ops, ex_ret_ops))",
    "MetricGroup": "PipelineL2;retiring_group",
    "ScaleUnit": "100%slots"
  },
  {
    "MetricName": "retiring_from_microcode",
    "BriefDescription": "Percentage of dispatch slots used by microcode ops that retired.",
    "MetricExpr": "retiring * d_ratio(ex_ret_ucode_ops, ex_ret_ops)",
    "MetricGroup": "PipelineL2;retiring_group",
    "ScaleUnit": "100%slots"
  }
]