1[
2    {
3        "ArchStdEvent": "backend_bound",
4        "MetricExpr": "(100 * ((STALL_SLOT_BACKEND / (CPU_CYCLES * #slots)) - ((BR_MIS_PRED * 3) / CPU_CYCLES)))"
5    },
6    {
7        "MetricName": "backend_stalled_cycles",
8        "MetricExpr": "((STALL_BACKEND / CPU_CYCLES) * 100)",
9        "BriefDescription": "This metric is the percentage of cycles that were stalled due to resource constraints in the backend unit of the processor.",
10        "MetricGroup": "Cycle_Accounting",
11        "ScaleUnit": "1percent of cycles"
12    },
13    {
14        "ArchStdEvent": "bad_speculation",
15        "MetricExpr": "(100 * (((1 - (OP_RETIRED / OP_SPEC)) * (1 - (((STALL_SLOT) if (strcmp_cpuid_str(0x410fd493) | strcmp_cpuid_str(0x410fd490) ^ 1) else (STALL_SLOT - CPU_CYCLES)) / (CPU_CYCLES * #slots)))) + ((BR_MIS_PRED * 4) / CPU_CYCLES)))"
16    },
17    {
18        "MetricName": "branch_misprediction_ratio",
19        "MetricExpr": "(BR_MIS_PRED_RETIRED / BR_RETIRED)",
20        "BriefDescription": "This metric measures the ratio of branches mispredicted to the total number of branches architecturally executed. This gives an indication of the effectiveness of the branch prediction unit.",
21        "MetricGroup": "Miss_Ratio;Branch_Effectiveness",
22        "ScaleUnit": "1per branch"
23    },
24    {
25        "MetricName": "branch_mpki",
26        "MetricExpr": "((BR_MIS_PRED_RETIRED / INST_RETIRED) * 1000)",
27        "BriefDescription": "This metric measures the number of branch mispredictions per thousand instructions executed.",
28        "MetricGroup": "MPKI;Branch_Effectiveness",
29        "ScaleUnit": "1MPKI"
30    },
31    {
32        "MetricName": "branch_percentage",
33        "MetricExpr": "(((BR_IMMED_SPEC + BR_INDIRECT_SPEC) / INST_SPEC) * 100)",
34        "BriefDescription": "This metric measures branch operations as a percentage of operations speculatively executed.",
35        "MetricGroup": "Operation_Mix",
36        "ScaleUnit": "1percent of operations"
37    },
38    {
39        "MetricName": "crypto_percentage",
40        "MetricExpr": "((CRYPTO_SPEC / INST_SPEC) * 100)",
41        "BriefDescription": "This metric measures crypto operations as a percentage of operations speculatively executed.",
42        "MetricGroup": "Operation_Mix",
43        "ScaleUnit": "1percent of operations"
44    },
45    {
46        "MetricName": "dtlb_mpki",
47        "MetricExpr": "((DTLB_WALK / INST_RETIRED) * 1000)",
48        "BriefDescription": "This metric measures the number of data TLB Walks per thousand instructions executed.",
49        "MetricGroup": "MPKI;DTLB_Effectiveness",
50        "ScaleUnit": "1MPKI"
51    },
52    {
53        "MetricName": "dtlb_walk_ratio",
54        "MetricExpr": "(DTLB_WALK / L1D_TLB)",
55        "BriefDescription": "This metric measures the ratio of data TLB Walks to the total number of data TLB accesses. This gives an indication of the effectiveness of the data TLB accesses.",
56        "MetricGroup": "Miss_Ratio;DTLB_Effectiveness",
57        "ScaleUnit": "1per TLB access"
58    },
59    {
60        "ArchStdEvent": "frontend_bound",
61        "MetricExpr": "(100 * ((((STALL_SLOT_FRONTEND) if (strcmp_cpuid_str(0x410fd493) | strcmp_cpuid_str(0x410fd490) ^ 1) else (STALL_SLOT_FRONTEND - CPU_CYCLES)) / (CPU_CYCLES * #slots)) - (BR_MIS_PRED / CPU_CYCLES)))"
62    },
63    {
64        "MetricName": "frontend_stalled_cycles",
65        "MetricExpr": "((STALL_FRONTEND / CPU_CYCLES) * 100)",
66        "BriefDescription": "This metric is the percentage of cycles that were stalled due to resource constraints in the frontend unit of the processor.",
67        "MetricGroup": "Cycle_Accounting",
68        "ScaleUnit": "1percent of cycles"
69    },
70    {
71        "MetricName": "integer_dp_percentage",
72        "MetricExpr": "((DP_SPEC / INST_SPEC) * 100)",
73        "BriefDescription": "This metric measures scalar integer operations as a percentage of operations speculatively executed.",
74        "MetricGroup": "Operation_Mix",
75        "ScaleUnit": "1percent of operations"
76    },
77    {
78        "MetricName": "ipc",
79        "MetricExpr": "(INST_RETIRED / CPU_CYCLES)",
80        "BriefDescription": "This metric measures the number of instructions retired per cycle.",
81        "MetricGroup": "General",
82        "ScaleUnit": "1per cycle"
83    },
84    {
85        "MetricName": "itlb_mpki",
86        "MetricExpr": "((ITLB_WALK / INST_RETIRED) * 1000)",
87        "BriefDescription": "This metric measures the number of instruction TLB Walks per thousand instructions executed.",
88        "MetricGroup": "MPKI;ITLB_Effectiveness",
89        "ScaleUnit": "1MPKI"
90    },
91    {
92        "MetricName": "itlb_walk_ratio",
93        "MetricExpr": "(ITLB_WALK / L1I_TLB)",
94        "BriefDescription": "This metric measures the ratio of instruction TLB Walks to the total number of instruction TLB accesses. This gives an indication of the effectiveness of the instruction TLB accesses.",
95        "MetricGroup": "Miss_Ratio;ITLB_Effectiveness",
96        "ScaleUnit": "1per TLB access"
97    },
98    {
99        "MetricName": "l1d_cache_miss_ratio",
100        "MetricExpr": "(L1D_CACHE_REFILL / L1D_CACHE)",
101        "BriefDescription": "This metric measures the ratio of level 1 data cache accesses missed to the total number of level 1 data cache accesses. This gives an indication of the effectiveness of the level 1 data cache.",
102        "MetricGroup": "Miss_Ratio;L1D_Cache_Effectiveness",
103        "ScaleUnit": "1per cache access"
104    },
105    {
106        "MetricName": "l1d_cache_mpki",
107        "MetricExpr": "((L1D_CACHE_REFILL / INST_RETIRED) * 1000)",
108        "BriefDescription": "This metric measures the number of level 1 data cache accesses missed per thousand instructions executed.",
109        "MetricGroup": "MPKI;L1D_Cache_Effectiveness",
110        "ScaleUnit": "1MPKI"
111    },
112    {
113        "MetricName": "l1d_tlb_miss_ratio",
114        "MetricExpr": "(L1D_TLB_REFILL / L1D_TLB)",
115        "BriefDescription": "This metric measures the ratio of level 1 data TLB accesses missed to the total number of level 1 data TLB accesses. This gives an indication of the effectiveness of the level 1 data TLB.",
116        "MetricGroup": "Miss_Ratio;DTLB_Effectiveness",
117        "ScaleUnit": "1per TLB access"
118    },
119    {
120        "MetricName": "l1d_tlb_mpki",
121        "MetricExpr": "((L1D_TLB_REFILL / INST_RETIRED) * 1000)",
122        "BriefDescription": "This metric measures the number of level 1 instruction TLB accesses missed per thousand instructions executed.",
123        "MetricGroup": "MPKI;DTLB_Effectiveness",
124        "ScaleUnit": "1MPKI"
125    },
126    {
127        "MetricName": "l1i_cache_miss_ratio",
128        "MetricExpr": "(L1I_CACHE_REFILL / L1I_CACHE)",
129        "BriefDescription": "This metric measures the ratio of level 1 instruction cache accesses missed to the total number of level 1 instruction cache accesses. This gives an indication of the effectiveness of the level 1 instruction cache.",
130        "MetricGroup": "Miss_Ratio;L1I_Cache_Effectiveness",
131        "ScaleUnit": "1per cache access"
132    },
133    {
134        "MetricName": "l1i_cache_mpki",
135        "MetricExpr": "((L1I_CACHE_REFILL / INST_RETIRED) * 1000)",
136        "BriefDescription": "This metric measures the number of level 1 instruction cache accesses missed per thousand instructions executed.",
137        "MetricGroup": "MPKI;L1I_Cache_Effectiveness",
138        "ScaleUnit": "1MPKI"
139    },
140    {
141        "MetricName": "l1i_tlb_miss_ratio",
142        "MetricExpr": "(L1I_TLB_REFILL / L1I_TLB)",
143        "BriefDescription": "This metric measures the ratio of level 1 instruction TLB accesses missed to the total number of level 1 instruction TLB accesses. This gives an indication of the effectiveness of the level 1 instruction TLB.",
144        "MetricGroup": "Miss_Ratio;ITLB_Effectiveness",
145        "ScaleUnit": "1per TLB access"
146    },
147    {
148        "MetricName": "l1i_tlb_mpki",
149        "MetricExpr": "((L1I_TLB_REFILL / INST_RETIRED) * 1000)",
150        "BriefDescription": "This metric measures the number of level 1 instruction TLB accesses missed per thousand instructions executed.",
151        "MetricGroup": "MPKI;ITLB_Effectiveness",
152        "ScaleUnit": "1MPKI"
153    },
154    {
155        "MetricName": "l2_cache_miss_ratio",
156        "MetricExpr": "(L2D_CACHE_REFILL / L2D_CACHE)",
157        "BriefDescription": "This metric measures the ratio of level 2 cache accesses missed to the total number of level 2 cache accesses. This gives an indication of the effectiveness of the level 2 cache, which is a unified cache that stores both data and instruction. Note that cache accesses in this cache are either data memory access or instruction fetch as this is a unified cache.",
158        "MetricGroup": "Miss_Ratio;L2_Cache_Effectiveness",
159        "ScaleUnit": "1per cache access"
160    },
161    {
162        "MetricName": "l2_cache_mpki",
163        "MetricExpr": "((L2D_CACHE_REFILL / INST_RETIRED) * 1000)",
164        "BriefDescription": "This metric measures the number of level 2 unified cache accesses missed per thousand instructions executed. Note that cache accesses in this cache are either data memory access or instruction fetch as this is a unified cache.",
165        "MetricGroup": "MPKI;L2_Cache_Effectiveness",
166        "ScaleUnit": "1MPKI"
167    },
168    {
169        "MetricName": "l2_tlb_miss_ratio",
170        "MetricExpr": "(L2D_TLB_REFILL / L2D_TLB)",
171        "BriefDescription": "This metric measures the ratio of level 2 unified TLB accesses missed to the total number of level 2 unified TLB accesses. This gives an indication of the effectiveness of the level 2 TLB.",
172        "MetricGroup": "Miss_Ratio;ITLB_Effectiveness;DTLB_Effectiveness",
173        "ScaleUnit": "1per TLB access"
174    },
175    {
176        "MetricName": "l2_tlb_mpki",
177        "MetricExpr": "((L2D_TLB_REFILL / INST_RETIRED) * 1000)",
178        "BriefDescription": "This metric measures the number of level 2 unified TLB accesses missed per thousand instructions executed.",
179        "MetricGroup": "MPKI;ITLB_Effectiveness;DTLB_Effectiveness",
180        "ScaleUnit": "1MPKI"
181    },
182    {
183        "MetricName": "ll_cache_read_hit_ratio",
184        "MetricExpr": "((LL_CACHE_RD - LL_CACHE_MISS_RD) / LL_CACHE_RD)",
185        "BriefDescription": "This metric measures the ratio of last level cache read accesses hit in the cache to the total number of last level cache accesses. This gives an indication of the effectiveness of the last level cache for read traffic. Note that cache accesses in this cache are either data memory access or instruction fetch as this is a system level cache.",
186        "MetricGroup": "LL_Cache_Effectiveness",
187        "ScaleUnit": "1per cache access"
188    },
189    {
190        "MetricName": "ll_cache_read_miss_ratio",
191        "MetricExpr": "(LL_CACHE_MISS_RD / LL_CACHE_RD)",
192        "BriefDescription": "This metric measures the ratio of last level cache read accesses missed to the total number of last level cache accesses. This gives an indication of the effectiveness of the last level cache for read traffic. Note that cache accesses in this cache are either data memory access or instruction fetch as this is a system level cache.",
193        "MetricGroup": "Miss_Ratio;LL_Cache_Effectiveness",
194        "ScaleUnit": "1per cache access"
195    },
196    {
197        "MetricName": "ll_cache_read_mpki",
198        "MetricExpr": "((LL_CACHE_MISS_RD / INST_RETIRED) * 1000)",
199        "BriefDescription": "This metric measures the number of last level cache read accesses missed per thousand instructions executed.",
200        "MetricGroup": "MPKI;LL_Cache_Effectiveness",
201        "ScaleUnit": "1MPKI"
202    },
203    {
204        "MetricName": "load_percentage",
205        "MetricExpr": "((LD_SPEC / INST_SPEC) * 100)",
206        "BriefDescription": "This metric measures load operations as a percentage of operations speculatively executed.",
207        "MetricGroup": "Operation_Mix",
208        "ScaleUnit": "1percent of operations"
209    },
210    {
211        "ArchStdEvent": "retiring",
212        "MetricExpr": "(100 * ((OP_RETIRED / OP_SPEC) * (1 - (((STALL_SLOT) if (strcmp_cpuid_str(0x410fd493) | strcmp_cpuid_str(0x410fd490) ^ 1) else (STALL_SLOT - CPU_CYCLES)) / (CPU_CYCLES * #slots)))))"
213    },
214    {
215        "MetricName": "scalar_fp_percentage",
216        "MetricExpr": "((VFP_SPEC / INST_SPEC) * 100)",
217        "BriefDescription": "This metric measures scalar floating point operations as a percentage of operations speculatively executed.",
218        "MetricGroup": "Operation_Mix",
219        "ScaleUnit": "1percent of operations"
220    },
221    {
222        "MetricName": "simd_percentage",
223        "MetricExpr": "((ASE_SPEC / INST_SPEC) * 100)",
224        "BriefDescription": "This metric measures advanced SIMD operations as a percentage of total operations speculatively executed.",
225        "MetricGroup": "Operation_Mix",
226        "ScaleUnit": "1percent of operations"
227    },
228    {
229        "MetricName": "store_percentage",
230        "MetricExpr": "((ST_SPEC / INST_SPEC) * 100)",
231        "BriefDescription": "This metric measures store operations as a percentage of operations speculatively executed.",
232        "MetricGroup": "Operation_Mix",
233        "ScaleUnit": "1percent of operations"
234    },
235    {
236        "MetricExpr": "L3D_CACHE_REFILL / INST_RETIRED * 1000",
237        "BriefDescription": "The rate of L3 D-Cache misses per kilo instructions",
238        "MetricGroup": "MPKI;L3_Cache_Effectiveness",
239        "MetricName": "l3d_cache_mpki",
240        "ScaleUnit": "1MPKI"
241    },
242    {
243        "MetricExpr": "L3D_CACHE_REFILL / L3D_CACHE",
244        "BriefDescription": "The rate of L3 D-Cache misses to the overall L3 D-Cache",
245        "MetricGroup": "Miss_Ratio;L3_Cache_Effectiveness",
246        "MetricName": "l3d_cache_miss_rate",
247        "ScaleUnit": "100%"
248    },
249    {
250        "MetricExpr": "BR_RETIRED / INST_RETIRED * 1000",
251        "BriefDescription": "The rate of branches retired per kilo instructions",
252        "MetricGroup": "MPKI;Branch_Effectiveness",
253        "MetricName": "branch_pki",
254        "ScaleUnit": "1PKI"
255    },
256    {
257        "MetricExpr": "ipc / #slots",
258        "BriefDescription": "IPC percentage of peak. The peak of IPC is the number of slots.",
259        "MetricGroup": "General",
260        "MetricName": "ipc_rate",
261        "ScaleUnit": "100%"
262    },
263    {
264        "MetricExpr": "INST_SPEC / CPU_CYCLES",
265        "BriefDescription": "Speculatively executed Instructions Per Cycle (IPC)",
266        "MetricGroup": "General",
267        "MetricName": "spec_ipc"
268    },
269    {
270        "MetricExpr": "OP_RETIRED / OP_SPEC",
271        "BriefDescription": "Of all the micro-operations issued, what percentage are retired(committed)",
272        "MetricGroup": "General",
273        "MetricName": "retired_rate",
274        "ScaleUnit": "100%"
275    },
276    {
277        "MetricExpr": "1 - OP_RETIRED / OP_SPEC",
278        "BriefDescription": "Of all the micro-operations issued, what percentage are not retired(committed)",
279        "MetricGroup": "General",
280        "MetricName": "wasted_rate",
281        "ScaleUnit": "100%"
282    },
283    {
284        "MetricExpr": "BR_IMMED_SPEC / INST_SPEC",
285        "BriefDescription": "The rate of branch immediate instructions speculatively executed to overall instructions speculatively executed",
286        "MetricGroup": "Operation_Mix",
287        "MetricName": "branch_immed_spec_rate",
288        "ScaleUnit": "100%"
289    },
290    {
291        "MetricExpr": "BR_RETURN_SPEC / INST_SPEC",
292        "BriefDescription": "The rate of procedure return instructions speculatively executed to overall instructions speculatively executed",
293        "MetricGroup": "Operation_Mix",
294        "MetricName": "branch_return_spec_rate",
295        "ScaleUnit": "100%"
296    },
297    {
298        "MetricExpr": "BR_INDIRECT_SPEC / INST_SPEC",
299        "BriefDescription": "The rate of indirect branch instructions speculatively executed to overall instructions speculatively executed",
300        "MetricGroup": "Operation_Mix",
301        "MetricName": "branch_indirect_spec_rate",
302        "ScaleUnit": "100%"
303    }
304]
305