summaryrefslogtreecommitdiffstats
path: root/tools/perf/pmu-events/arch/x86/knightslanding/pipeline.json
blob: bb5494cfb5aed79da1a0135537614c26a75c5461 (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
[
    {
        "PEBS": "1",
        "EventCode": "0xC4",
        "Counter": "0,1",
        "UMask": "0x0",
        "EventName": "BR_INST_RETIRED.ALL_BRANCHES",
        "SampleAfterValue": "200003",
        "BriefDescription": "Counts the number of branch instructions retired"
    },
    {
        "PEBS": "1",
        "EventCode": "0xC4",
        "Counter": "0,1",
        "UMask": "0x7e",
        "EventName": "BR_INST_RETIRED.JCC",
        "SampleAfterValue": "200003",
        "BriefDescription": "Counts the number of branch instructions retired that were conditional jumps."
    },
    {
        "PEBS": "1",
        "EventCode": "0xC4",
        "Counter": "0,1",
        "UMask": "0xfe",
        "EventName": "BR_INST_RETIRED.TAKEN_JCC",
        "SampleAfterValue": "200003",
        "BriefDescription": "Counts the number of branch instructions retired that were conditional jumps and predicted taken."
    },
    {
        "PEBS": "1",
        "EventCode": "0xC4",
        "Counter": "0,1",
        "UMask": "0xf9",
        "EventName": "BR_INST_RETIRED.CALL",
        "SampleAfterValue": "200003",
        "BriefDescription": "Counts the number of near CALL branch instructions retired."
    },
    {
        "PEBS": "1",
        "EventCode": "0xC4",
        "Counter": "0,1",
        "UMask": "0xfd",
        "EventName": "BR_INST_RETIRED.REL_CALL",
        "SampleAfterValue": "200003",
        "BriefDescription": "Counts the number of near relative CALL branch instructions retired."
    },
    {
        "PEBS": "1",
        "EventCode": "0xC4",
        "Counter": "0,1",
        "UMask": "0xfb",
        "EventName": "BR_INST_RETIRED.IND_CALL",
        "SampleAfterValue": "200003",
        "BriefDescription": "Counts the number of near indirect CALL branch instructions retired."
    },
    {
        "PEBS": "1",
        "EventCode": "0xC4",
        "Counter": "0,1",
        "UMask": "0xf7",
        "EventName": "BR_INST_RETIRED.RETURN",
        "SampleAfterValue": "200003",
        "BriefDescription": "Counts the number of near RET branch instructions retired."
    },
    {
        "PEBS": "1",
        "EventCode": "0xC4",
        "Counter": "0,1",
        "UMask": "0xeb",
        "EventName": "BR_INST_RETIRED.NON_RETURN_IND",
        "SampleAfterValue": "200003",
        "BriefDescription": "Counts the number of branch instructions retired that were near indirect CALL or near indirect JMP."
    },
    {
        "PEBS": "1",
        "EventCode": "0xC4",
        "Counter": "0,1",
        "UMask": "0xbf",
        "EventName": "BR_INST_RETIRED.FAR_BRANCH",
        "SampleAfterValue": "200003",
        "BriefDescription": "Counts the number of far branch instructions retired."
    },
    {
        "PEBS": "1",
        "EventCode": "0xC5",
        "Counter": "0,1",
        "UMask": "0x0",
        "EventName": "BR_MISP_RETIRED.ALL_BRANCHES",
        "SampleAfterValue": "200003",
        "BriefDescription": "Counts the number of mispredicted branch instructions retired"
    },
    {
        "PEBS": "1",
        "EventCode": "0xC5",
        "Counter": "0,1",
        "UMask": "0x7e",
        "EventName": "BR_MISP_RETIRED.JCC",
        "SampleAfterValue": "200003",
        "BriefDescription": "Counts the number of mispredicted branch instructions retired that were conditional jumps."
    },
    {
        "PEBS": "1",
        "EventCode": "0xC5",
        "Counter": "0,1",
        "UMask": "0xfe",
        "EventName": "BR_MISP_RETIRED.TAKEN_JCC",
        "SampleAfterValue": "200003",
        "BriefDescription": "Counts the number of mispredicted branch instructions retired that were conditional jumps and predicted taken."
    },
    {
        "PEBS": "1",
        "EventCode": "0xC5",
        "Counter": "0,1",
        "UMask": "0xfb",
        "EventName": "BR_MISP_RETIRED.IND_CALL",
        "SampleAfterValue": "200003",
        "BriefDescription": "Counts the number of mispredicted near indirect CALL branch instructions retired."
    },
    {
        "PEBS": "1",
        "EventCode": "0xC5",
        "Counter": "0,1",
        "UMask": "0xf7",
        "EventName": "BR_MISP_RETIRED.RETURN",
        "SampleAfterValue": "200003",
        "BriefDescription": "Counts the number of mispredicted near RET branch instructions retired."
    },
    {
        "PEBS": "1",
        "EventCode": "0xC5",
        "Counter": "0,1",
        "UMask": "0xeb",
        "EventName": "BR_MISP_RETIRED.NON_RETURN_IND",
        "SampleAfterValue": "200003",
        "BriefDescription": "Counts the number of mispredicted branch instructions retired that were near indirect CALL or near indirect JMP."
    },
    {
        "PublicDescription": "This event counts the number of micro-ops retired that were supplied from MSROM.",
        "EventCode": "0xC2",
        "Counter": "0,1",
        "UMask": "0x1",
        "EventName": "UOPS_RETIRED.MS",
        "SampleAfterValue": "2000003",
        "BriefDescription": "Counts the number of micro-ops retired that are from the complex flows issued by the micro-sequencer (MS)."
    },
    {
        "PublicDescription": "This event counts the number of micro-ops (uops) retired. The processor decodes complex macro instructions into a sequence of simpler uops. Most instructions are composed of one or two uops. Some instructions are decoded into longer sequences such as repeat instructions, floating point transcendental instructions, and assists. ",
        "EventCode": "0xC2",
        "Counter": "0,1",
        "UMask": "0x10",
        "EventName": "UOPS_RETIRED.ALL",
        "SampleAfterValue": "2000003",
        "BriefDescription": "Counts the number of micro-ops retired"
    },
    {
        "PublicDescription": "This event counts the number of scalar SSE, AVX, AVX2, AVX-512 micro-ops retired (floating point, integer and store) except for loads (memory-to-register mov-type micro ops), division, sqrt.",
        "EventCode": "0xC2",
        "Counter": "0,1",
        "UMask": "0x20",
        "EventName": "UOPS_RETIRED.SCALAR_SIMD",
        "SampleAfterValue": "200003",
        "BriefDescription": "Counts the number of scalar SSE, AVX, AVX2, AVX-512 micro-ops retired. More specifically, it counts scalar SSE, AVX, AVX2, AVX-512 micro-ops except for loads (memory-to-register mov-type micro ops), division, sqrt."
    },
    {
        "PublicDescription": "This event counts the number of packed vector SSE, AVX, AVX2, and AVX-512 micro-ops retired (floating point, integer and store) except for loads (memory-to-register mov-type micro-ops), packed byte and word multiplies.",
        "EventCode": "0xC2",
        "Counter": "0,1",
        "UMask": "0x40",
        "EventName": "UOPS_RETIRED.PACKED_SIMD",
        "SampleAfterValue": "200003",
        "BriefDescription": "Counts the number of vector SSE, AVX, AVX2, AVX-512 micro-ops retired. More specifically, it counts packed SSE, AVX, AVX2, AVX-512 micro-ops (both floating point and integer) except for loads (memory-to-register mov-type micro-ops), packed byte and word multiplies."
    },
    {
        "EventCode": "0xC3",
        "Counter": "0,1",
        "UMask": "0x1",
        "EventName": "MACHINE_CLEARS.SMC",
        "SampleAfterValue": "200003",
        "BriefDescription": "Counts the number of times that the machine clears due to program modifying data within 1K of a recently fetched code page"
    },
    {
        "PublicDescription": "This event counts the number of times that the pipeline stalled due to FP operations needing assists.",
        "EventCode": "0xC3",
        "Counter": "0,1",
        "UMask": "0x4",
        "EventName": "MACHINE_CLEARS.FP_ASSIST",
        "SampleAfterValue": "200003",
        "BriefDescription": "Counts the number of floating operations retired that required microcode assists"
    },
    {
        "EventCode": "0xC3",
        "Counter": "0,1",
        "UMask": "0x8",
        "EventName": "MACHINE_CLEARS.ALL",
        "SampleAfterValue": "200003",
        "BriefDescription": "Counts all nukes"
    },
    {
        "EventCode": "0xCA",
        "Counter": "0,1",
        "UMask": "0x1",
        "EventName": "NO_ALLOC_CYCLES.ROB_FULL",
        "SampleAfterValue": "200003",
        "BriefDescription": "Counts the number of core cycles when no micro-ops are allocated and the ROB is full"
    },
    {
        "PublicDescription": "This event counts the number of core cycles when no uops are allocated and the alloc pipe is stalled waiting for a mispredicted branch to retire.",
        "EventCode": "0xCA",
        "Counter": "0,1",
        "UMask": "0x4",
        "EventName": "NO_ALLOC_CYCLES.MISPREDICTS",
        "SampleAfterValue": "200003",
        "BriefDescription": "Counts the number of core cycles when no micro-ops are allocated and the alloc pipe is stalled waiting for a mispredicted branch to retire."
    },
    {
        "EventCode": "0xCA",
        "Counter": "0,1",
        "UMask": "0x20",
        "EventName": "NO_ALLOC_CYCLES.RAT_STALL",
        "SampleAfterValue": "200003",
        "BriefDescription": "Counts the number of core cycles when no micro-ops are allocated and a RATstall (caused by reservation station full) is asserted.  "
    },
    {
        "PublicDescription": "This event counts the number of core cycles when no uops are allocated, the instruction queue is empty and the alloc pipe is stalled waiting for instructions to be fetched.",
        "EventCode": "0xCA",
        "Counter": "0,1",
        "UMask": "0x90",
        "EventName": "NO_ALLOC_CYCLES.NOT_DELIVERED",
        "SampleAfterValue": "200003",
        "BriefDescription": "Counts the number of core cycles when no micro-ops are allocated, the IQ is empty, and no other condition is blocking allocation."
    },
    {
        "EventCode": "0xCA",
        "Counter": "0,1",
        "UMask": "0x7f",
        "EventName": "NO_ALLOC_CYCLES.ALL",
        "SampleAfterValue": "200003",
        "BriefDescription": "Counts the total number of core cycles when no micro-ops are allocated for any reason."
    },
    {
        "EventCode": "0xCB",
        "Counter": "0,1",
        "UMask": "0x1",
        "EventName": "RS_FULL_STALL.MEC",
        "SampleAfterValue": "200003",
        "BriefDescription": "Counts the number of core cycles when allocation pipeline is stalled and is waiting for a free MEC reservation station entry."
    },
    {
        "EventCode": "0xCB",
        "Counter": "0,1",
        "UMask": "0x1f",
        "EventName": "RS_FULL_STALL.ALL",
        "SampleAfterValue": "200003",
        "BriefDescription": "Counts the total number of core cycles the Alloc pipeline is stalled when any one of the reservation stations is full. "
    },
    {
        "EventCode": "0xC0",
        "Counter": "0,1",
        "UMask": "0x0",
        "EventName": "INST_RETIRED.ANY_P",
        "SampleAfterValue": "2000003",
        "BriefDescription": "Counts the total number of instructions retired"
    },
    {
        "PublicDescription": "This event counts cycles when the divider is busy. More specifically cycles when the divide unit is unable to accept a new divide uop because it is busy processing a previously dispatched uop. The cycles will be counted irrespective of whether or not another divide uop is waiting to enter the divide unit (from the RS). This event counts integer divides, x87 divides, divss, divsd, sqrtss, sqrtsd event and does not count vector divides.",
        "EventCode": "0xCD",
        "Counter": "0,1",
        "UMask": "0x1",
        "EventName": "CYCLES_DIV_BUSY.ALL",
        "SampleAfterValue": "2000003",
        "BriefDescription": "Cycles the number of core cycles when divider is busy.  Does not imply a stall waiting for the divider.  "
    },
    {
        "PublicDescription": "This event counts the number of instructions that retire.  For instructions that consist of multiple micro-ops, this event counts exactly once, as the last micro-op of the instruction retires.  The event continues counting while instructions retire, including during interrupt service routines caused by hardware interrupts, faults or traps.",
        "EventCode": "0x00",
        "Counter": "Fixed counter 1",
        "UMask": "0x1",
        "EventName": "INST_RETIRED.ANY",
        "SampleAfterValue": "2000003",
        "BriefDescription": "Fixed Counter: Counts the number of instructions retired"
    },
    {
        "EventCode": "0x3C",
        "Counter": "0,1",
        "UMask": "0x0",
        "EventName": "CPU_CLK_UNHALTED.THREAD_P",
        "SampleAfterValue": "2000003",
        "BriefDescription": "Counts the number of unhalted core clock cycles"
    },
    {
        "EventCode": "0x3C",
        "Counter": "0,1",
        "UMask": "0x1",
        "EventName": "CPU_CLK_UNHALTED.REF",
        "SampleAfterValue": "2000003",
        "BriefDescription": "Counts the number of unhalted reference clock cycles"
    },
    {
        "PublicDescription": "This event counts the number of core cycles while the thread is not in a halt state. The thread enters the halt state when it is running the HLT instruction. This event is a component in many key event ratios. The core frequency may change from time to time due to transitions associated with Enhanced Intel SpeedStep Technology or TM2. For this reason this event may have a changing ratio with regards to time. When the core frequency is constant, this event can approximate elapsed time while the core was not in the halt state. It is counted on a dedicated fixed counter\r\n",
        "EventCode": "0x00",
        "Counter": "Fixed counter 2",
        "UMask": "0x2",
        "EventName": "CPU_CLK_UNHALTED.THREAD",
        "SampleAfterValue": "2000003",
        "BriefDescription": "Fixed Counter: Counts the number of unhalted core clock cycles"
    },
    {
        "EventCode": "0x00",
        "Counter": "Fixed counter 3",
        "UMask": "0x3",
        "EventName": "CPU_CLK_UNHALTED.REF_TSC",
        "SampleAfterValue": "2000003",
        "BriefDescription": "Fixed Counter: Counts the number of unhalted reference clock cycles"
    },
    {
        "EventCode": "0xE6",
        "Counter": "0,1",
        "UMask": "0x1",
        "EventName": "BACLEARS.ALL",
        "SampleAfterValue": "200003",
        "BriefDescription": "Counts the number of times the front end resteers for any branch as a result of another branch handling mechanism in the front end."
    },
    {
        "EventCode": "0xE6",
        "Counter": "0,1",
        "UMask": "0x8",
        "EventName": "BACLEARS.RETURN",
        "SampleAfterValue": "200003",
        "BriefDescription": "Counts the number of times the front end resteers for RET branches as a result of another branch handling mechanism in the front end."
    },
    {
        "EventCode": "0xE6",
        "Counter": "0,1",
        "UMask": "0x10",
        "EventName": "BACLEARS.COND",
        "SampleAfterValue": "200003",
        "BriefDescription": "Counts the number of times the front end resteers for conditional branches as a result of another branch handling mechanism in the front end."
    },
    {
        "PEBS": "1",
        "EventCode": "0x03",
        "Counter": "0,1",
        "UMask": "0x1",
        "EventName": "RECYCLEQ.LD_BLOCK_ST_FORWARD",
        "SampleAfterValue": "200003",
        "BriefDescription": "Counts the number of occurences a retired load gets blocked because its address partially overlaps with a store ",
        "Data_LA": "1"
    },
    {
        "EventCode": "0x03",
        "Counter": "0,1",
        "UMask": "0x2",
        "EventName": "RECYCLEQ.LD_BLOCK_STD_NOTREADY",
        "SampleAfterValue": "200003",
        "BriefDescription": "Counts the number of occurences a retired load gets blocked because its address overlaps with a store whose data is not ready"
    },
    {
        "PublicDescription": "This event counts the number of retired store that experienced a cache line boundary split(Precise Event). Note that each spilt should be counted only once.",
        "EventCode": "0x03",
        "Counter": "0,1",
        "UMask": "0x4",
        "EventName": "RECYCLEQ.ST_SPLITS",
        "SampleAfterValue": "200003",
        "BriefDescription": "Counts the number of occurences a retired store that is a cache line split. Each split should be counted only once."
    },
    {
        "PEBS": "1",
        "EventCode": "0x03",
        "Counter": "0,1",
        "UMask": "0x8",
        "EventName": "RECYCLEQ.LD_SPLITS",
        "SampleAfterValue": "200003",
        "BriefDescription": "Counts the number of occurences a retired load that is a cache line split. Each split should be counted only once.",
        "Data_LA": "1"
    },
    {
        "EventCode": "0x03",
        "Counter": "0,1",
        "UMask": "0x10",
        "EventName": "RECYCLEQ.LOCK",
        "SampleAfterValue": "200003",
        "BriefDescription": "Counts all the retired locked loads. It does not include stores because we would double count if we count stores"
    },
    {
        "EventCode": "0x03",
        "Counter": "0,1",
        "UMask": "0x20",
        "EventName": "RECYCLEQ.STA_FULL",
        "SampleAfterValue": "200003",
        "BriefDescription": "Counts the store micro-ops retired that were pushed in the rehad queue because the store address buffer is full"
    },
    {
        "EventCode": "0x03",
        "Counter": "0,1",
        "UMask": "0x40",
        "EventName": "RECYCLEQ.ANY_LD",
        "SampleAfterValue": "200003",
        "BriefDescription": "Counts any retired load that was pushed into the recycle queue for any reason."
    },
    {
        "EventCode": "0x03",
        "Counter": "0,1",
        "UMask": "0x80",
        "EventName": "RECYCLEQ.ANY_ST",
        "SampleAfterValue": "200003",
        "BriefDescription": "Counts any retired store that was pushed into the recycle queue for any reason."
    },
    {
        "PEBS": "1",
        "EventCode": "0xC5",
        "Counter": "0,1",
        "UMask": "0xf9",
        "EventName": "BR_MISP_RETIRED.CALL",
        "SampleAfterValue": "200003",
        "BriefDescription": "Counts the number of mispredicted near CALL branch instructions retired."
    },
    {
        "PEBS": "1",
        "EventCode": "0xC5",
        "Counter": "0,1",
        "UMask": "0xfd",
        "EventName": "BR_MISP_RETIRED.REL_CALL",
        "SampleAfterValue": "200003",
        "BriefDescription": "Counts the number of mispredicted near relative CALL branch instructions retired."
    },
    {
        "PEBS": "1",
        "EventCode": "0xC5",
        "Counter": "0,1",
        "UMask": "0xbf",
        "EventName": "BR_MISP_RETIRED.FAR_BRANCH",
        "SampleAfterValue": "200003",
        "BriefDescription": "Counts the number of mispredicted far branch instructions retired."
    }
]