summaryrefslogtreecommitdiffstats
path: root/tools/perf/pmu-events/arch/x86/amdzen5/recommended.json
blob: c97874039c1e79d9fa6f5fe8b0707d2d6ceab9df (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
[
  {
    "MetricName": "branch_misprediction_rate",
    "BriefDescription": "Execution-time branch misprediction rate (non-speculative).",
    "MetricExpr": "d_ratio(ex_ret_brn_misp, ex_ret_brn)",
    "MetricGroup": "branch_prediction",
    "ScaleUnit": "1per_branch"
  },
  {
    "MetricName": "all_data_cache_accesses_pti",
    "BriefDescription": "All data cache accesses per thousand instructions.",
    "MetricExpr": "ls_dispatch.all / instructions",
    "MetricGroup": "l1_dcache",
    "ScaleUnit": "1e3per_1k_instr"
  },
  {
    "MetricName": "all_l2_cache_accesses_pti",
    "BriefDescription": "All L2 cache accesses per thousand instructions.",
    "MetricExpr": "(l2_request_g1.all_no_prefetch + l2_pf_hit_l2.l2_hwpf + l2_pf_miss_l2_hit_l3.l2_hwpf + l2_pf_miss_l2_l3.l2_hwpf) / instructions",
    "MetricGroup": "l2_cache",
    "ScaleUnit": "1e3per_1k_instr"
  },
  {
    "MetricName": "l2_cache_accesses_from_l1_ic_misses_pti",
    "BriefDescription": "L2 cache accesses from L1 instruction cache misses (including prefetch) per thousand instructions.",
    "MetricExpr": "l2_request_g1.cacheable_ic_read / instructions",
    "MetricGroup": "l2_cache",
    "ScaleUnit": "1e3per_1k_instr"
  },
  {
    "MetricName": "l2_cache_accesses_from_l1_dc_misses_pti",
    "BriefDescription": "L2 cache accesses from L1 data cache misses (including prefetch) per thousand instructions.",
    "MetricExpr": "l2_request_g1.all_dc / instructions",
    "MetricGroup": "l2_cache",
    "ScaleUnit": "1e3per_1k_instr"
  },
  {
    "MetricName": "l2_cache_accesses_from_l2_hwpf_pti",
    "BriefDescription": "L2 cache accesses from L2 cache hardware prefetcher per thousand instructions.",
    "MetricExpr": "(l2_pf_hit_l2.l1_dc_l2_hwpf + l2_pf_miss_l2_hit_l3.l1_dc_l2_hwpf + l2_pf_miss_l2_l3.l1_dc_l2_hwpf) / instructions",
    "MetricGroup": "l2_cache",
    "ScaleUnit": "1e3per_1k_instr"
  },
  {
    "MetricName": "all_l2_cache_misses_pti",
    "BriefDescription": "All L2 cache misses per thousand instructions.",
    "MetricExpr": "(l2_cache_req_stat.ic_dc_miss_in_l2 + l2_pf_miss_l2_hit_l3.l2_hwpf + l2_pf_miss_l2_l3.l2_hwpf) / instructions",
    "MetricGroup": "l2_cache",
    "ScaleUnit": "1e3per_1k_instr"
  },
  {
    "MetricName": "l2_cache_misses_from_l1_ic_miss_pti",
    "BriefDescription": "L2 cache misses from L1 instruction cache misses per thousand instructions.",
    "MetricExpr": "l2_cache_req_stat.ic_fill_miss / instructions",
    "MetricGroup": "l2_cache",
    "ScaleUnit": "1e3per_1k_instr"
  },
  {
    "MetricName": "l2_cache_misses_from_l1_dc_miss_pti",
    "BriefDescription": "L2 cache misses from L1 data cache misses per thousand instructions.",
    "MetricExpr": "l2_cache_req_stat.ls_rd_blk_c / instructions",
    "MetricGroup": "l2_cache",
    "ScaleUnit": "1e3per_1k_instr"
  },
  {
    "MetricName": "l2_cache_misses_from_l2_hwpf_pti",
    "BriefDescription": "L2 cache misses from L2 cache hardware prefetcher per thousand instructions.",
    "MetricExpr": "(l2_pf_miss_l2_hit_l3.l1_dc_l2_hwpf + l2_pf_miss_l2_l3.l1_dc_l2_hwpf) / instructions",
    "MetricGroup": "l2_cache",
    "ScaleUnit": "1e3per_1k_instr"
  },
  {
    "MetricName": "all_l2_cache_hits_pti",
    "BriefDescription": "All L2 cache hits per thousand instructions.",
    "MetricExpr": "(l2_cache_req_stat.ic_dc_hit_in_l2 + l2_pf_hit_l2.l2_hwpf) / instructions",
    "MetricGroup": "l2_cache",
    "ScaleUnit": "1e3per_1k_instr"
  },
  {
    "MetricName": "l2_cache_hits_from_l1_ic_miss_pti",
    "BriefDescription": "L2 cache hits from L1 instruction cache misses per thousand instructions.",
    "MetricExpr": "l2_cache_req_stat.ic_hit_in_l2 / instructions",
    "MetricGroup": "l2_cache",
    "ScaleUnit": "1e3per_1k_instr"
  },
  {
    "MetricName": "l2_cache_hits_from_l1_dc_miss_pti",
    "BriefDescription": "L2 cache hits from L1 data cache misses per thousand instructions.",
    "MetricExpr": "l2_cache_req_stat.dc_hit_in_l2 / instructions",
    "MetricGroup": "l2_cache",
    "ScaleUnit": "1e3per_1k_instr"
  },
  {
    "MetricName": "l2_cache_hits_from_l2_hwpf_pti",
    "BriefDescription": "L2 cache hits from L2 cache hardware prefetcher per thousand instructions.",
    "MetricExpr": "l2_pf_hit_l2.l1_dc_l2_hwpf / instructions",
    "MetricGroup": "l2_cache",
    "ScaleUnit": "1e3per_1k_instr"
  },
  {
    "MetricName": "l3_cache_accesses",
    "BriefDescription": "L3 cache accesses.",
    "MetricExpr": "l3_lookup_state.all_coherent_accesses_to_l3",
    "MetricGroup": "l3_cache"
  },
  {
    "MetricName": "l3_misses",
    "BriefDescription": "L3 misses (including cacheline state change requests).",
    "MetricExpr": "l3_lookup_state.l3_miss",
    "MetricGroup": "l3_cache"
  },
  {
    "MetricName": "l3_read_miss_latency",
    "BriefDescription": "Average L3 read miss latency (in core clocks).",
    "MetricExpr": "(l3_xi_sampled_latency.all * 10) / l3_xi_sampled_latency_requests.all",
    "MetricGroup": "l3_cache",
    "ScaleUnit": "1ns"
  },
  {
    "MetricName": "l3_read_miss_latency_for_local_dram",
    "BriefDescription": "Average L3 read miss latency (in core clocks) for local DRAM.",
    "MetricExpr": "(l3_xi_sampled_latency.dram_near * 10) / l3_xi_sampled_latency_requests.dram_near",
    "MetricGroup": "l3_cache",
    "ScaleUnit": "1ns"
  },
  {
    "MetricName": "l3_read_miss_latency_for_remote_dram",
    "BriefDescription": "Average L3 read miss latency (in core clocks) for remote DRAM.",
    "MetricExpr": "(l3_xi_sampled_latency.dram_far * 10) / l3_xi_sampled_latency_requests.dram_far",
    "MetricGroup": "l3_cache",
    "ScaleUnit": "1ns"
  },
  {
    "MetricName": "op_cache_fetch_miss_ratio",
    "BriefDescription": "Op cache miss ratio for all fetches.",
    "MetricExpr": "d_ratio(op_cache_hit_miss.op_cache_miss, op_cache_hit_miss.all_op_cache_accesses)",
    "ScaleUnit": "100%"
  },
  {
    "MetricName": "ic_fetch_miss_ratio",
    "BriefDescription": "Instruction cache miss ratio for all fetches. An instruction cache miss will not be counted by this metric if it is an OC hit.",
    "MetricExpr": "d_ratio(ic_tag_hit_miss.instruction_cache_miss, ic_tag_hit_miss.all_instruction_cache_accesses)",
    "ScaleUnit": "100%"
  },
  {
    "MetricName": "l1_data_cache_fills_from_memory_pti",
    "BriefDescription": "L1 data cache fills from DRAM or MMIO in any NUMA node per thousand instructions.",
    "MetricExpr": "ls_any_fills_from_sys.dram_io_all / instructions",
    "MetricGroup": "l1_dcache",
    "ScaleUnit": "1e3per_1k_instr"
  },
  {
    "MetricName": "l1_data_cache_fills_from_remote_node_pti",
    "BriefDescription": "L1 data cache fills from a different NUMA node per thousand instructions.",
    "MetricExpr": "ls_any_fills_from_sys.far_all / instructions",
    "MetricGroup": "l1_dcache",
    "ScaleUnit": "1e3per_1k_instr"
  },
  {
    "MetricName": "l1_data_cache_fills_from_same_ccx_pti",
    "BriefDescription": "L1 data cache fills from within the same CCX per thousand instructions.",
    "MetricExpr": "ls_any_fills_from_sys.local_all / instructions",
    "MetricGroup": "l1_dcache",
    "ScaleUnit": "1e3per_1k_instr"
  },
  {
    "MetricName": "l1_data_cache_fills_from_different_ccx_pti",
    "BriefDescription": "L1 data cache fills from another CCX cache in any NUMA node per thousand instructions.",
    "MetricExpr": "ls_any_fills_from_sys.remote_cache / instructions",
    "MetricGroup": "l1_dcache",
    "ScaleUnit": "1e3per_1k_instr"
  },
  {
    "MetricName": "all_l1_data_cache_fills_pti",
    "BriefDescription": "All L1 data cache fills per thousand instructions.",
    "MetricExpr": "ls_any_fills_from_sys.all / instructions",
    "MetricGroup": "l1_dcache",
    "ScaleUnit": "1e3per_1k_instr"
  },
  {
    "MetricName": "l1_demand_data_cache_fills_from_local_l2_pti",
    "BriefDescription": "L1 demand data cache fills from local L2 cache per thousand instructions.",
    "MetricExpr": "ls_dmnd_fills_from_sys.local_l2 / instructions",
    "MetricGroup": "l1_dcache",
    "ScaleUnit": "1e3per_1k_instr"
  },
  {
    "MetricName": "l1_demand_data_cache_fills_from_same_ccx_pti",
    "BriefDescription": "L1 demand data cache fills from within the same CCX per thousand instructions.",
    "MetricExpr": "ls_dmnd_fills_from_sys.local_ccx / instructions",
    "MetricGroup": "l1_dcache",
    "ScaleUnit": "1e3per_1k_instr"
  },
  {
    "MetricName": "l1_demand_data_cache_fills_from_near_cache_pti",
    "BriefDescription": "L1 demand data cache fills from another CCX cache in the same NUMA node per thousand instructions.",
    "MetricExpr": "ls_dmnd_fills_from_sys.near_cache / instructions",
    "MetricGroup": "l1_dcache",
    "ScaleUnit": "1e3per_1k_instr"
  },
  {
    "MetricName": "l1_demand_data_cache_fills_from_near_memory_pti",
    "BriefDescription": "L1 demand data cache fills from DRAM or MMIO in the same NUMA node per thousand instructions.",
    "MetricExpr": "ls_dmnd_fills_from_sys.dram_io_near / instructions",
    "MetricGroup": "l1_dcache",
    "ScaleUnit": "1e3per_1k_instr"
  },
  {
    "MetricName": "l1_demand_data_cache_fills_from_far_cache_pti",
    "BriefDescription": "L1 demand data cache fills from another CCX cache in a different NUMA node per thousand instructions.",
    "MetricExpr": "ls_dmnd_fills_from_sys.far_cache / instructions",
    "MetricGroup": "l1_dcache",
    "ScaleUnit": "1e3per_1k_instr"
  },
  {
    "MetricName": "l1_demand_data_cache_fills_from_far_memory_pti",
    "BriefDescription": "L1 demand data cache fills from DRAM or MMIO in a different NUMA node per thousand instructions.",
    "MetricExpr": "ls_dmnd_fills_from_sys.dram_io_far / instructions",
    "MetricGroup": "l1_dcache",
    "ScaleUnit": "1e3per_1k_instr"
  },
  {
    "MetricName": "l1_itlb_misses_pti",
    "BriefDescription": "L1 instruction TLB misses per thousand instructions.",
    "MetricExpr": "(bp_l1_tlb_miss_l2_tlb_hit + bp_l1_tlb_miss_l2_tlb_miss.all) / instructions",
    "MetricGroup": "tlb",
    "ScaleUnit": "1e3per_1k_instr"
  },
  {
    "MetricName": "l2_itlb_misses_pti",
    "BriefDescription": "L2 instruction TLB misses and instruction page walks per thousand instructions.",
    "MetricExpr": "bp_l1_tlb_miss_l2_tlb_miss.all / instructions",
    "MetricGroup": "tlb",
    "ScaleUnit": "1e3per_1k_instr"
  },
  {
    "MetricName": "l1_dtlb_misses_pti",
    "BriefDescription": "L1 data TLB misses per thousand instructions.",
    "MetricExpr": "ls_l1_d_tlb_miss.all / instructions",
    "MetricGroup": "tlb",
    "ScaleUnit": "1e3per_1k_instr"
  },
  {
    "MetricName": "l2_dtlb_misses_pti",
    "BriefDescription": "L2 data TLB misses and data page walks per thousand instructions.",
    "MetricExpr": "ls_l1_d_tlb_miss.all_l2_miss / instructions",
    "MetricGroup": "tlb",
    "ScaleUnit": "1e3per_1k_instr"
  },
  {
    "MetricName": "all_tlbs_flushed_pti",
    "BriefDescription": "All TLBs flushed per thousand instructions.",
    "MetricExpr": "ls_tlb_flush.all / instructions",
    "MetricGroup": "tlb",
    "ScaleUnit": "1e3per_1k_instr"
  },
  {
    "MetricName": "macro_ops_dispatched",
    "BriefDescription": "Macro-ops dispatched.",
    "MetricExpr": "de_src_op_disp.all",
    "MetricGroup": "decoder"
  },
  {
    "MetricName": "sse_avx_stalls",
    "BriefDescription": "Mixed SSE/AVX stalls.",
    "MetricExpr": "fp_disp_faults.sse_avx_all"
  },
  {
    "MetricName": "macro_ops_retired",
    "BriefDescription": "Macro-ops retired.",
    "MetricExpr": "ex_ret_ops"
  },
  {
    "MetricName": "umc_data_bus_utilization",
    "BriefDescription": "Memory controller data bus utilization.",
    "MetricExpr": "d_ratio(umc_data_slot_clks.all / 2, umc_mem_clk)",
    "MetricGroup": "memory_controller",
    "PerPkg": "1",
    "ScaleUnit": "100%"
  },
  {
    "MetricName": "umc_cas_cmd_rate",
    "BriefDescription": "Memory controller CAS command rate.",
    "MetricExpr": "d_ratio(umc_cas_cmd.all * 1000, umc_mem_clk)",
    "MetricGroup": "memory_controller",
    "PerPkg": "1",
    "ScaleUnit": "1per_memclk"
  },
  {
    "MetricName": "umc_cas_cmd_read_ratio",
    "BriefDescription": "Ratio of memory controller CAS commands for reads.",
    "MetricExpr": "d_ratio(umc_cas_cmd.rd, umc_cas_cmd.all)",
    "MetricGroup": "memory_controller",
    "PerPkg": "1",
    "ScaleUnit": "100%"
  },
  {
    "MetricName": "umc_cas_cmd_write_ratio",
    "BriefDescription": "Ratio of memory controller CAS commands for writes.",
    "MetricExpr": "d_ratio(umc_cas_cmd.wr, umc_cas_cmd.all)",
    "MetricGroup": "memory_controller",
    "PerPkg": "1",
    "ScaleUnit": "100%"
  },
  {
    "MetricName": "umc_mem_read_bandwidth",
    "BriefDescription": "Estimated memory read bandwidth.",
    "MetricExpr": "(umc_cas_cmd.rd * 64) / 1e6 / duration_time",
    "MetricGroup": "memory_controller",
    "PerPkg": "1",
    "ScaleUnit": "1MB/s"
  },
  {
    "MetricName": "umc_mem_write_bandwidth",
    "BriefDescription": "Estimated memory write bandwidth.",
    "MetricExpr": "(umc_cas_cmd.wr * 64) / 1e6 / duration_time",
    "MetricGroup": "memory_controller",
    "PerPkg": "1",
    "ScaleUnit": "1MB/s"
  },
  {
    "MetricName": "umc_mem_bandwidth",
    "BriefDescription": "Estimated combined memory bandwidth.",
    "MetricExpr": "(umc_cas_cmd.all * 64) / 1e6 / duration_time",
    "MetricGroup": "memory_controller",
    "PerPkg": "1",
    "ScaleUnit": "1MB/s"
  },
  {
    "MetricName": "umc_activate_cmd_rate",
    "BriefDescription": "Memory controller ACTIVATE command rate.",
    "MetricExpr": "d_ratio(umc_act_cmd.all * 1000, umc_mem_clk)",
    "MetricGroup": "memory_controller",
    "PerPkg": "1",
    "ScaleUnit": "1per_memclk"
  },
  {
    "MetricName": "umc_precharge_cmd_rate",
    "BriefDescription": "Memory controller PRECHARGE command rate.",
    "MetricExpr": "d_ratio(umc_pchg_cmd.all * 1000, umc_mem_clk)",
    "MetricGroup": "memory_controller",
    "PerPkg": "1",
    "ScaleUnit": "1per_memclk"
  }
]