xref: /freebsd/lib/libpmc/pmu-events/arch/x86/elkhartlake/pipeline.json (revision 52d973f52c07b94909a6487be373c269988dc151)
1*52d973f5SAlexander Motin[
2*52d973f5SAlexander Motin    {
3*52d973f5SAlexander Motin        "BriefDescription": "Counts the total number of branch instructions retired for all branch types.",
4*52d973f5SAlexander Motin        "CollectPEBSRecord": "2",
5*52d973f5SAlexander Motin        "Counter": "0,1,2,3",
6*52d973f5SAlexander Motin        "EventCode": "0xc4",
7*52d973f5SAlexander Motin        "EventName": "BR_INST_RETIRED.ALL_BRANCHES",
8*52d973f5SAlexander Motin        "PEBS": "1",
9*52d973f5SAlexander Motin        "PEBScounters": "0,1,2,3",
10*52d973f5SAlexander Motin        "PublicDescription": "Counts the total number of instructions in which the instruction pointer (IP) of the processor is resteered due to a branch instruction and the branch instruction successfully retires.  All branch type instructions are accounted for.",
11*52d973f5SAlexander Motin        "SampleAfterValue": "200003"
12*52d973f5SAlexander Motin    },
13*52d973f5SAlexander Motin    {
14*52d973f5SAlexander Motin        "BriefDescription": "Counts the number of near CALL branch instructions retired.",
15*52d973f5SAlexander Motin        "CollectPEBSRecord": "2",
16*52d973f5SAlexander Motin        "Counter": "0,1,2,3",
17*52d973f5SAlexander Motin        "EventCode": "0xc4",
18*52d973f5SAlexander Motin        "EventName": "BR_INST_RETIRED.CALL",
19*52d973f5SAlexander Motin        "PEBS": "1",
20*52d973f5SAlexander Motin        "PEBScounters": "0,1,2,3",
21*52d973f5SAlexander Motin        "SampleAfterValue": "200003",
22*52d973f5SAlexander Motin        "UMask": "0xf9"
23*52d973f5SAlexander Motin    },
24*52d973f5SAlexander Motin    {
25*52d973f5SAlexander Motin        "BriefDescription": "Counts the number of far branch instructions retired, includes far jump, far call and return, and interrupt call and return.",
26*52d973f5SAlexander Motin        "CollectPEBSRecord": "2",
27*52d973f5SAlexander Motin        "Counter": "0,1,2,3",
28*52d973f5SAlexander Motin        "EventCode": "0xc4",
29*52d973f5SAlexander Motin        "EventName": "BR_INST_RETIRED.FAR_BRANCH",
30*52d973f5SAlexander Motin        "PEBS": "1",
31*52d973f5SAlexander Motin        "PEBScounters": "0,1,2,3",
32*52d973f5SAlexander Motin        "SampleAfterValue": "200003",
33*52d973f5SAlexander Motin        "UMask": "0xbf"
34*52d973f5SAlexander Motin    },
35*52d973f5SAlexander Motin    {
36*52d973f5SAlexander Motin        "BriefDescription": "Counts the number of near indirect CALL branch instructions retired.",
37*52d973f5SAlexander Motin        "CollectPEBSRecord": "2",
38*52d973f5SAlexander Motin        "Counter": "0,1,2,3",
39*52d973f5SAlexander Motin        "EventCode": "0xc4",
40*52d973f5SAlexander Motin        "EventName": "BR_INST_RETIRED.IND_CALL",
41*52d973f5SAlexander Motin        "PEBS": "1",
42*52d973f5SAlexander Motin        "PEBScounters": "0,1,2,3",
43*52d973f5SAlexander Motin        "SampleAfterValue": "200003",
44*52d973f5SAlexander Motin        "UMask": "0xfb"
45*52d973f5SAlexander Motin    },
46*52d973f5SAlexander Motin    {
47*52d973f5SAlexander Motin        "BriefDescription": "Counts the number of retired JCC (Jump on Conditional Code) branch instructions retired, includes both taken and not taken branches.",
48*52d973f5SAlexander Motin        "CollectPEBSRecord": "2",
49*52d973f5SAlexander Motin        "Counter": "0,1,2,3",
50*52d973f5SAlexander Motin        "EventCode": "0xc4",
51*52d973f5SAlexander Motin        "EventName": "BR_INST_RETIRED.JCC",
52*52d973f5SAlexander Motin        "PEBS": "1",
53*52d973f5SAlexander Motin        "PEBScounters": "0,1,2,3",
54*52d973f5SAlexander Motin        "SampleAfterValue": "200003",
55*52d973f5SAlexander Motin        "UMask": "0x7e"
56*52d973f5SAlexander Motin    },
57*52d973f5SAlexander Motin    {
58*52d973f5SAlexander Motin        "BriefDescription": "Counts the number of near indirect JMP and near indirect CALL branch instructions retired.",
59*52d973f5SAlexander Motin        "CollectPEBSRecord": "2",
60*52d973f5SAlexander Motin        "Counter": "0,1,2,3",
61*52d973f5SAlexander Motin        "EventCode": "0xc4",
62*52d973f5SAlexander Motin        "EventName": "BR_INST_RETIRED.NON_RETURN_IND",
63*52d973f5SAlexander Motin        "PEBS": "1",
64*52d973f5SAlexander Motin        "PEBScounters": "0,1,2,3",
65*52d973f5SAlexander Motin        "SampleAfterValue": "200003",
66*52d973f5SAlexander Motin        "UMask": "0xeb"
67*52d973f5SAlexander Motin    },
68*52d973f5SAlexander Motin    {
69*52d973f5SAlexander Motin        "BriefDescription": "Counts the number of near relative CALL branch instructions retired.",
70*52d973f5SAlexander Motin        "CollectPEBSRecord": "2",
71*52d973f5SAlexander Motin        "Counter": "0,1,2,3",
72*52d973f5SAlexander Motin        "EventCode": "0xc4",
73*52d973f5SAlexander Motin        "EventName": "BR_INST_RETIRED.REL_CALL",
74*52d973f5SAlexander Motin        "PEBS": "1",
75*52d973f5SAlexander Motin        "PEBScounters": "0,1,2,3",
76*52d973f5SAlexander Motin        "SampleAfterValue": "200003",
77*52d973f5SAlexander Motin        "UMask": "0xfd"
78*52d973f5SAlexander Motin    },
79*52d973f5SAlexander Motin    {
80*52d973f5SAlexander Motin        "BriefDescription": "Counts the number of near RET branch instructions retired.",
81*52d973f5SAlexander Motin        "CollectPEBSRecord": "2",
82*52d973f5SAlexander Motin        "Counter": "0,1,2,3",
83*52d973f5SAlexander Motin        "EventCode": "0xc4",
84*52d973f5SAlexander Motin        "EventName": "BR_INST_RETIRED.RETURN",
85*52d973f5SAlexander Motin        "PEBS": "1",
86*52d973f5SAlexander Motin        "PEBScounters": "0,1,2,3",
87*52d973f5SAlexander Motin        "SampleAfterValue": "200003",
88*52d973f5SAlexander Motin        "UMask": "0xf7"
89*52d973f5SAlexander Motin    },
90*52d973f5SAlexander Motin    {
91*52d973f5SAlexander Motin        "BriefDescription": "Counts the number of taken JCC (Jump on Conditional Code) branch instructions retired.",
92*52d973f5SAlexander Motin        "CollectPEBSRecord": "2",
93*52d973f5SAlexander Motin        "Counter": "0,1,2,3",
94*52d973f5SAlexander Motin        "EventCode": "0xc4",
95*52d973f5SAlexander Motin        "EventName": "BR_INST_RETIRED.TAKEN_JCC",
96*52d973f5SAlexander Motin        "PEBS": "1",
97*52d973f5SAlexander Motin        "PEBScounters": "0,1,2,3",
98*52d973f5SAlexander Motin        "SampleAfterValue": "200003",
99*52d973f5SAlexander Motin        "UMask": "0xfe"
100*52d973f5SAlexander Motin    },
101*52d973f5SAlexander Motin    {
102*52d973f5SAlexander Motin        "BriefDescription": "Counts the total number of mispredicted branch instructions retired for all branch types.",
103*52d973f5SAlexander Motin        "CollectPEBSRecord": "2",
104*52d973f5SAlexander Motin        "Counter": "0,1,2,3",
105*52d973f5SAlexander Motin        "EventCode": "0xc5",
106*52d973f5SAlexander Motin        "EventName": "BR_MISP_RETIRED.ALL_BRANCHES",
107*52d973f5SAlexander Motin        "PEBS": "1",
108*52d973f5SAlexander Motin        "PEBScounters": "0,1,2,3",
109*52d973f5SAlexander Motin        "PublicDescription": "Counts the total number of mispredicted branch instructions retired.  All branch type instructions are accounted for.  Prediction of the branch target address enables the processor to begin executing instructions before the non-speculative execution path is known. The branch prediction unit (BPU) predicts the target address based on the instruction pointer (IP) of the branch and on the execution path through which execution reached this IP.    A branch misprediction occurs when the prediction is wrong, and results in discarding all instructions executed in the speculative path and re-fetching from the correct path.",
110*52d973f5SAlexander Motin        "SampleAfterValue": "200003"
111*52d973f5SAlexander Motin    },
112*52d973f5SAlexander Motin    {
113*52d973f5SAlexander Motin        "BriefDescription": "Counts the number of mispredicted near indirect CALL branch instructions retired.",
114*52d973f5SAlexander Motin        "CollectPEBSRecord": "2",
115*52d973f5SAlexander Motin        "Counter": "0,1,2,3",
116*52d973f5SAlexander Motin        "EventCode": "0xc5",
117*52d973f5SAlexander Motin        "EventName": "BR_MISP_RETIRED.IND_CALL",
118*52d973f5SAlexander Motin        "PEBS": "1",
119*52d973f5SAlexander Motin        "PEBScounters": "0,1,2,3",
120*52d973f5SAlexander Motin        "SampleAfterValue": "200003",
121*52d973f5SAlexander Motin        "UMask": "0xfb"
122*52d973f5SAlexander Motin    },
123*52d973f5SAlexander Motin    {
124*52d973f5SAlexander Motin        "BriefDescription": "Counts the number of mispredicted JCC (Jump on Conditional Code) branch instructions retired.",
125*52d973f5SAlexander Motin        "CollectPEBSRecord": "2",
126*52d973f5SAlexander Motin        "Counter": "0,1,2,3",
127*52d973f5SAlexander Motin        "EventCode": "0xc5",
128*52d973f5SAlexander Motin        "EventName": "BR_MISP_RETIRED.JCC",
129*52d973f5SAlexander Motin        "PEBS": "1",
130*52d973f5SAlexander Motin        "PEBScounters": "0,1,2,3",
131*52d973f5SAlexander Motin        "SampleAfterValue": "200003",
132*52d973f5SAlexander Motin        "UMask": "0x7e"
133*52d973f5SAlexander Motin    },
134*52d973f5SAlexander Motin    {
135*52d973f5SAlexander Motin        "BriefDescription": "Counts the number of mispredicted near RET branch instructions retired.",
136*52d973f5SAlexander Motin        "CollectPEBSRecord": "2",
137*52d973f5SAlexander Motin        "Counter": "0,1,2,3",
138*52d973f5SAlexander Motin        "EventCode": "0xc5",
139*52d973f5SAlexander Motin        "EventName": "BR_MISP_RETIRED.RETURN",
140*52d973f5SAlexander Motin        "PEBS": "1",
141*52d973f5SAlexander Motin        "PEBScounters": "0,1,2,3",
142*52d973f5SAlexander Motin        "SampleAfterValue": "200003",
143*52d973f5SAlexander Motin        "UMask": "0xf7"
144*52d973f5SAlexander Motin    },
145*52d973f5SAlexander Motin    {
146*52d973f5SAlexander Motin        "BriefDescription": "Counts the number of mispredicted taken JCC (Jump on Conditional Code) branch instructions retired.",
147*52d973f5SAlexander Motin        "CollectPEBSRecord": "2",
148*52d973f5SAlexander Motin        "Counter": "0,1,2,3",
149*52d973f5SAlexander Motin        "EventCode": "0xc5",
150*52d973f5SAlexander Motin        "EventName": "BR_MISP_RETIRED.TAKEN_JCC",
151*52d973f5SAlexander Motin        "PEBS": "1",
152*52d973f5SAlexander Motin        "PEBScounters": "0,1,2,3",
153*52d973f5SAlexander Motin        "SampleAfterValue": "200003",
154*52d973f5SAlexander Motin        "UMask": "0xfe"
155*52d973f5SAlexander Motin    },
156*52d973f5SAlexander Motin    {
157*52d973f5SAlexander Motin        "BriefDescription": "Counts the number of unhalted core clock cycles. (Fixed event)",
158*52d973f5SAlexander Motin        "CollectPEBSRecord": "2",
159*52d973f5SAlexander Motin        "Counter": "Fixed counter 1",
160*52d973f5SAlexander Motin        "EventName": "CPU_CLK_UNHALTED.CORE",
161*52d973f5SAlexander Motin        "PDIR_COUNTER": "na",
162*52d973f5SAlexander Motin        "PEBScounters": "33",
163*52d973f5SAlexander Motin        "PublicDescription": "Counts the number of core cycles while the core is not in a halt state.  The core enters the halt state when it is running the HLT instruction. The core frequency may change from time to time. For this reason this event may have a changing ratio with regards to time. This event uses fixed counter 1.",
164*52d973f5SAlexander Motin        "SampleAfterValue": "2000003",
165*52d973f5SAlexander Motin        "UMask": "0x2"
166*52d973f5SAlexander Motin    },
167*52d973f5SAlexander Motin    {
168*52d973f5SAlexander Motin        "BriefDescription": "Counts the number of unhalted core clock cycles.",
169*52d973f5SAlexander Motin        "CollectPEBSRecord": "2",
170*52d973f5SAlexander Motin        "Counter": "0,1,2,3",
171*52d973f5SAlexander Motin        "EventCode": "0x3c",
172*52d973f5SAlexander Motin        "EventName": "CPU_CLK_UNHALTED.CORE_P",
173*52d973f5SAlexander Motin        "PDIR_COUNTER": "na",
174*52d973f5SAlexander Motin        "PEBScounters": "0,1,2,3",
175*52d973f5SAlexander Motin        "PublicDescription": "Counts the number of core cycles while the core is not in a halt state.  The core enters the halt state when it is running the HLT instruction. The core frequency may change from time to time. For this reason this event may have a changing ratio with regards to time. This event uses a programmable general purpose performance counter.",
176*52d973f5SAlexander Motin        "SampleAfterValue": "2000003"
177*52d973f5SAlexander Motin    },
178*52d973f5SAlexander Motin    {
179*52d973f5SAlexander Motin        "BriefDescription": "Counts the number of unhalted reference clock cycles at TSC frequency.",
180*52d973f5SAlexander Motin        "CollectPEBSRecord": "2",
181*52d973f5SAlexander Motin        "Counter": "0,1,2,3",
182*52d973f5SAlexander Motin        "EventCode": "0x3c",
183*52d973f5SAlexander Motin        "EventName": "CPU_CLK_UNHALTED.REF",
184*52d973f5SAlexander Motin        "PDIR_COUNTER": "na",
185*52d973f5SAlexander Motin        "PEBScounters": "0,1,2,3",
186*52d973f5SAlexander Motin        "PublicDescription": "Counts the number of reference cycles that the core is not in a halt state. The core enters the halt state when it is running the HLT instruction. This event is not affected by core frequency changes and increments at a fixed frequency that is also used for the Time Stamp Counter (TSC). This event uses fixed counter 2.",
187*52d973f5SAlexander Motin        "SampleAfterValue": "2000003",
188*52d973f5SAlexander Motin        "UMask": "0x1"
189*52d973f5SAlexander Motin    },
190*52d973f5SAlexander Motin    {
191*52d973f5SAlexander Motin        "BriefDescription": "Counts the number of unhalted reference clock cycles at TSC frequency. (Fixed event)",
192*52d973f5SAlexander Motin        "CollectPEBSRecord": "2",
193*52d973f5SAlexander Motin        "Counter": "Fixed counter 2",
194*52d973f5SAlexander Motin        "EventName": "CPU_CLK_UNHALTED.REF_TSC",
195*52d973f5SAlexander Motin        "PDIR_COUNTER": "na",
196*52d973f5SAlexander Motin        "PEBScounters": "34",
197*52d973f5SAlexander Motin        "PublicDescription": "Counts the number of reference cycles that the core is not in a halt state. The core enters the halt state when it is running the HLT instruction. This event is not affected by core frequency changes and increments at a fixed frequency that is also used for the Time Stamp Counter (TSC). This event uses fixed counter 2.",
198*52d973f5SAlexander Motin        "SampleAfterValue": "2000003",
199*52d973f5SAlexander Motin        "UMask": "0x3"
200*52d973f5SAlexander Motin    },
201*52d973f5SAlexander Motin    {
202*52d973f5SAlexander Motin        "BriefDescription": "Counts the number of unhalted reference clock cycles at TSC frequency.",
203*52d973f5SAlexander Motin        "CollectPEBSRecord": "2",
204*52d973f5SAlexander Motin        "Counter": "0,1,2,3",
205*52d973f5SAlexander Motin        "EventCode": "0x3c",
206*52d973f5SAlexander Motin        "EventName": "CPU_CLK_UNHALTED.REF_TSC_P",
207*52d973f5SAlexander Motin        "PEBScounters": "0,1,2,3",
208*52d973f5SAlexander Motin        "PublicDescription": "Counts the number of reference cycles that the core is not in a halt state. The core enters the halt state when it is running the HLT instruction.  This event is not affected by core frequency changes and increments at a fixed frequency that is also used for the Time Stamp Counter (TSC). This event uses a programmable general purpose performance counter.",
209*52d973f5SAlexander Motin        "SampleAfterValue": "2000003",
210*52d973f5SAlexander Motin        "UMask": "0x1"
211*52d973f5SAlexander Motin    },
212*52d973f5SAlexander Motin    {
213*52d973f5SAlexander Motin        "BriefDescription": "This event is deprecated.",
214*52d973f5SAlexander Motin        "CollectPEBSRecord": "2",
215*52d973f5SAlexander Motin        "Counter": "0,1,2,3",
216*52d973f5SAlexander Motin        "EventCode": "0xcd",
217*52d973f5SAlexander Motin        "EventName": "CYCLES_DIV_BUSY.ANY",
218*52d973f5SAlexander Motin        "PDIR_COUNTER": "na",
219*52d973f5SAlexander Motin        "PEBScounters": "0,1,2,3",
220*52d973f5SAlexander Motin        "SampleAfterValue": "2000003"
221*52d973f5SAlexander Motin    },
222*52d973f5SAlexander Motin    {
223*52d973f5SAlexander Motin        "BriefDescription": "Counts the number of cycles the integer divider is busy.  Does not imply a stall waiting for the divider.",
224*52d973f5SAlexander Motin        "CollectPEBSRecord": "2",
225*52d973f5SAlexander Motin        "Counter": "0,1,2,3",
226*52d973f5SAlexander Motin        "EventCode": "0xcd",
227*52d973f5SAlexander Motin        "EventName": "CYCLES_DIV_BUSY.IDIV",
228*52d973f5SAlexander Motin        "PDIR_COUNTER": "na",
229*52d973f5SAlexander Motin        "PEBScounters": "0,1,2,3",
230*52d973f5SAlexander Motin        "SampleAfterValue": "200003",
231*52d973f5SAlexander Motin        "UMask": "0x1"
232*52d973f5SAlexander Motin    },
233*52d973f5SAlexander Motin    {
234*52d973f5SAlexander Motin        "BriefDescription": "Counts the total number of instructions retired. (Fixed event)",
235*52d973f5SAlexander Motin        "CollectPEBSRecord": "2",
236*52d973f5SAlexander Motin        "Counter": "Fixed counter 0",
237*52d973f5SAlexander Motin        "EventName": "INST_RETIRED.ANY",
238*52d973f5SAlexander Motin        "PEBS": "1",
239*52d973f5SAlexander Motin        "PEBScounters": "32",
240*52d973f5SAlexander Motin        "PublicDescription": "Counts the total number of instructions that retired. For instructions that consist of multiple uops, this event counts the retirement of the last uop of the instruction. This event continues counting during hardware interrupts, traps, and inside interrupt handlers. This event uses fixed counter 0.",
241*52d973f5SAlexander Motin        "SampleAfterValue": "2000003",
242*52d973f5SAlexander Motin        "UMask": "0x1"
243*52d973f5SAlexander Motin    },
244*52d973f5SAlexander Motin    {
245*52d973f5SAlexander Motin        "BriefDescription": "Counts the total number of instructions retired.",
246*52d973f5SAlexander Motin        "CollectPEBSRecord": "2",
247*52d973f5SAlexander Motin        "Counter": "0,1,2,3",
248*52d973f5SAlexander Motin        "EventCode": "0xc0",
249*52d973f5SAlexander Motin        "EventName": "INST_RETIRED.ANY_P",
250*52d973f5SAlexander Motin        "PEBS": "1",
251*52d973f5SAlexander Motin        "PEBScounters": "0,1,2,3",
252*52d973f5SAlexander Motin        "PublicDescription": "Counts the total number of instructions that retired. For instructions that consist of multiple uops, this event counts the retirement of the last uop of the instruction. This event continues counting during hardware interrupts, traps, and inside interrupt handlers. This event uses a programmable general purpose performance counter.",
253*52d973f5SAlexander Motin        "SampleAfterValue": "2000003"
254*52d973f5SAlexander Motin    },
255*52d973f5SAlexander Motin    {
256*52d973f5SAlexander Motin        "BriefDescription": "Counts the total number of machine clears including memory ordering, memory disambiguation, self-modifying code, page faults and floating point assist.",
257*52d973f5SAlexander Motin        "CollectPEBSRecord": "2",
258*52d973f5SAlexander Motin        "Counter": "0,1,2,3",
259*52d973f5SAlexander Motin        "EventCode": "0xc3",
260*52d973f5SAlexander Motin        "EventName": "MACHINE_CLEARS.ANY",
261*52d973f5SAlexander Motin        "PDIR_COUNTER": "na",
262*52d973f5SAlexander Motin        "PEBScounters": "0,1,2,3",
263*52d973f5SAlexander Motin        "SampleAfterValue": "20003"
264*52d973f5SAlexander Motin    },
265*52d973f5SAlexander Motin    {
266*52d973f5SAlexander Motin        "BriefDescription": "Counts the number of uops that are from complex flows issued by the micro-sequencer (MS).",
267*52d973f5SAlexander Motin        "CollectPEBSRecord": "2",
268*52d973f5SAlexander Motin        "Counter": "0,1,2,3",
269*52d973f5SAlexander Motin        "EventCode": "0xc2",
270*52d973f5SAlexander Motin        "EventName": "UOPS_RETIRED.MS",
271*52d973f5SAlexander Motin        "PDIR_COUNTER": "na",
272*52d973f5SAlexander Motin        "PEBS": "1",
273*52d973f5SAlexander Motin        "PEBScounters": "0,1,2,3",
274*52d973f5SAlexander Motin        "PublicDescription": "Counts the number of uops that are from complex flows issued by the Microcode Sequencer (MS). This includes uops from flows due to complex instructions, faults, assists, and inserted flows.",
275*52d973f5SAlexander Motin        "SampleAfterValue": "2000003",
276*52d973f5SAlexander Motin        "UMask": "0x1"
277*52d973f5SAlexander Motin    }
278*52d973f5SAlexander Motin]