1b74d1315SAndi Kleen[
2b74d1315SAndi Kleen    {
3b74d1315SAndi Kleen        "BriefDescription": "Cycles when divider is busy executing divide operations",
4b3ab8adcSAndi Kleen        "Counter": "0,1,2,3",
5b3ab8adcSAndi Kleen        "CounterHTOff": "0,1,2,3,4,5,6,7",
6*10e8d85fSIan Rogers        "EventCode": "0x14",
7*10e8d85fSIan Rogers        "EventName": "ARITH.FPU_DIV_ACTIVE",
8*10e8d85fSIan Rogers        "PublicDescription": "This event counts the number of the divide operations executed. Uses edge-detect and a cmask value of 1 on ARITH.FPU_DIV_ACTIVE to get the number of the divide operations executed.",
9b3ab8adcSAndi Kleen        "SampleAfterValue": "2000003",
10*10e8d85fSIan Rogers        "UMask": "0x1"
11b3ab8adcSAndi Kleen    },
12b3ab8adcSAndi Kleen    {
13*10e8d85fSIan Rogers        "BriefDescription": "Speculative and retired  branches",
14b3ab8adcSAndi Kleen        "Counter": "0,1,2,3",
15*10e8d85fSIan Rogers        "CounterHTOff": "0,1,2,3,4,5,6,7",
16*10e8d85fSIan Rogers        "EventCode": "0x88",
17*10e8d85fSIan Rogers        "EventName": "BR_INST_EXEC.ALL_BRANCHES",
18*10e8d85fSIan Rogers        "PublicDescription": "This event counts both taken and not taken speculative and retired branch instructions.",
19*10e8d85fSIan Rogers        "SampleAfterValue": "200003",
20*10e8d85fSIan Rogers        "UMask": "0xff"
21b3ab8adcSAndi Kleen    },
22b3ab8adcSAndi Kleen    {
23*10e8d85fSIan Rogers        "BriefDescription": "Speculative and retired macro-conditional branches",
24b3ab8adcSAndi Kleen        "Counter": "0,1,2,3",
25*10e8d85fSIan Rogers        "CounterHTOff": "0,1,2,3,4,5,6,7",
26*10e8d85fSIan Rogers        "EventCode": "0x88",
27*10e8d85fSIan Rogers        "EventName": "BR_INST_EXEC.ALL_CONDITIONAL",
28*10e8d85fSIan Rogers        "PublicDescription": "This event counts both taken and not taken speculative and retired macro-conditional branch instructions.",
29*10e8d85fSIan Rogers        "SampleAfterValue": "200003",
30*10e8d85fSIan Rogers        "UMask": "0xc1"
31b3ab8adcSAndi Kleen    },
32b3ab8adcSAndi Kleen    {
33*10e8d85fSIan Rogers        "BriefDescription": "Speculative and retired macro-unconditional branches excluding calls and indirects",
34b3ab8adcSAndi Kleen        "Counter": "0,1,2,3",
35*10e8d85fSIan Rogers        "CounterHTOff": "0,1,2,3,4,5,6,7",
36*10e8d85fSIan Rogers        "EventCode": "0x88",
37*10e8d85fSIan Rogers        "EventName": "BR_INST_EXEC.ALL_DIRECT_JMP",
38*10e8d85fSIan Rogers        "PublicDescription": "This event counts both taken and not taken speculative and retired macro-unconditional branch instructions, excluding calls and indirects.",
39*10e8d85fSIan Rogers        "SampleAfterValue": "200003",
40*10e8d85fSIan Rogers        "UMask": "0xc2"
41b3ab8adcSAndi Kleen    },
42b3ab8adcSAndi Kleen    {
43*10e8d85fSIan Rogers        "BriefDescription": "Speculative and retired direct near calls",
44b3ab8adcSAndi Kleen        "Counter": "0,1,2,3",
45*10e8d85fSIan Rogers        "CounterHTOff": "0,1,2,3,4,5,6,7",
46*10e8d85fSIan Rogers        "EventCode": "0x88",
47*10e8d85fSIan Rogers        "EventName": "BR_INST_EXEC.ALL_DIRECT_NEAR_CALL",
48*10e8d85fSIan Rogers        "PublicDescription": "This event counts both taken and not taken speculative and retired direct near calls.",
49*10e8d85fSIan Rogers        "SampleAfterValue": "200003",
50*10e8d85fSIan Rogers        "UMask": "0xd0"
51b3ab8adcSAndi Kleen    },
52b3ab8adcSAndi Kleen    {
53*10e8d85fSIan Rogers        "BriefDescription": "Speculative and retired indirect branches excluding calls and returns",
54b3ab8adcSAndi Kleen        "Counter": "0,1,2,3",
55*10e8d85fSIan Rogers        "CounterHTOff": "0,1,2,3,4,5,6,7",
56*10e8d85fSIan Rogers        "EventCode": "0x88",
57*10e8d85fSIan Rogers        "EventName": "BR_INST_EXEC.ALL_INDIRECT_JUMP_NON_CALL_RET",
58*10e8d85fSIan Rogers        "PublicDescription": "This event counts both taken and not taken speculative and retired indirect branches excluding calls and return branches.",
59*10e8d85fSIan Rogers        "SampleAfterValue": "200003",
60*10e8d85fSIan Rogers        "UMask": "0xc4"
61b3ab8adcSAndi Kleen    },
62b3ab8adcSAndi Kleen    {
63*10e8d85fSIan Rogers        "BriefDescription": "Speculative and retired indirect return branches.",
64b3ab8adcSAndi Kleen        "Counter": "0,1,2,3",
65*10e8d85fSIan Rogers        "CounterHTOff": "0,1,2,3,4,5,6,7",
66*10e8d85fSIan Rogers        "EventCode": "0x88",
67*10e8d85fSIan Rogers        "EventName": "BR_INST_EXEC.ALL_INDIRECT_NEAR_RETURN",
68*10e8d85fSIan Rogers        "PublicDescription": "This event counts both taken and not taken speculative and retired indirect branches that have a return mnemonic.",
69*10e8d85fSIan Rogers        "SampleAfterValue": "200003",
70*10e8d85fSIan Rogers        "UMask": "0xc8"
71b3ab8adcSAndi Kleen    },
72b3ab8adcSAndi Kleen    {
73*10e8d85fSIan Rogers        "BriefDescription": "Not taken macro-conditional branches",
74b3ab8adcSAndi Kleen        "Counter": "0,1,2,3",
75*10e8d85fSIan Rogers        "CounterHTOff": "0,1,2,3,4,5,6,7",
76*10e8d85fSIan Rogers        "EventCode": "0x88",
77*10e8d85fSIan Rogers        "EventName": "BR_INST_EXEC.NONTAKEN_CONDITIONAL",
78*10e8d85fSIan Rogers        "PublicDescription": "This event counts not taken macro-conditional branch instructions.",
79*10e8d85fSIan Rogers        "SampleAfterValue": "200003",
80*10e8d85fSIan Rogers        "UMask": "0x41"
81*10e8d85fSIan Rogers    },
82*10e8d85fSIan Rogers    {
83*10e8d85fSIan Rogers        "BriefDescription": "Taken speculative and retired macro-conditional branches",
84*10e8d85fSIan Rogers        "Counter": "0,1,2,3",
85*10e8d85fSIan Rogers        "CounterHTOff": "0,1,2,3,4,5,6,7",
86*10e8d85fSIan Rogers        "EventCode": "0x88",
87*10e8d85fSIan Rogers        "EventName": "BR_INST_EXEC.TAKEN_CONDITIONAL",
88*10e8d85fSIan Rogers        "PublicDescription": "This event counts taken speculative and retired macro-conditional branch instructions.",
89*10e8d85fSIan Rogers        "SampleAfterValue": "200003",
90*10e8d85fSIan Rogers        "UMask": "0x81"
91*10e8d85fSIan Rogers    },
92*10e8d85fSIan Rogers    {
93*10e8d85fSIan Rogers        "BriefDescription": "Taken speculative and retired macro-conditional branch instructions excluding calls and indirects",
94*10e8d85fSIan Rogers        "Counter": "0,1,2,3",
95*10e8d85fSIan Rogers        "CounterHTOff": "0,1,2,3,4,5,6,7",
96*10e8d85fSIan Rogers        "EventCode": "0x88",
97*10e8d85fSIan Rogers        "EventName": "BR_INST_EXEC.TAKEN_DIRECT_JUMP",
98*10e8d85fSIan Rogers        "PublicDescription": "This event counts taken speculative and retired macro-conditional branch instructions excluding calls and indirect branches.",
99*10e8d85fSIan Rogers        "SampleAfterValue": "200003",
100*10e8d85fSIan Rogers        "UMask": "0x82"
101*10e8d85fSIan Rogers    },
102*10e8d85fSIan Rogers    {
103*10e8d85fSIan Rogers        "BriefDescription": "Taken speculative and retired direct near calls",
104*10e8d85fSIan Rogers        "Counter": "0,1,2,3",
105*10e8d85fSIan Rogers        "CounterHTOff": "0,1,2,3,4,5,6,7",
106*10e8d85fSIan Rogers        "EventCode": "0x88",
107*10e8d85fSIan Rogers        "EventName": "BR_INST_EXEC.TAKEN_DIRECT_NEAR_CALL",
108*10e8d85fSIan Rogers        "PublicDescription": "This event counts taken speculative and retired direct near calls.",
109*10e8d85fSIan Rogers        "SampleAfterValue": "200003",
110*10e8d85fSIan Rogers        "UMask": "0x90"
111*10e8d85fSIan Rogers    },
112*10e8d85fSIan Rogers    {
113*10e8d85fSIan Rogers        "BriefDescription": "Taken speculative and retired indirect branches excluding calls and returns",
114*10e8d85fSIan Rogers        "Counter": "0,1,2,3",
115*10e8d85fSIan Rogers        "CounterHTOff": "0,1,2,3,4,5,6,7",
116*10e8d85fSIan Rogers        "EventCode": "0x88",
117*10e8d85fSIan Rogers        "EventName": "BR_INST_EXEC.TAKEN_INDIRECT_JUMP_NON_CALL_RET",
118*10e8d85fSIan Rogers        "PublicDescription": "This event counts taken speculative and retired indirect branches excluding calls and return branches.",
119*10e8d85fSIan Rogers        "SampleAfterValue": "200003",
120*10e8d85fSIan Rogers        "UMask": "0x84"
121*10e8d85fSIan Rogers    },
122*10e8d85fSIan Rogers    {
123*10e8d85fSIan Rogers        "BriefDescription": "Taken speculative and retired indirect calls",
124*10e8d85fSIan Rogers        "Counter": "0,1,2,3",
125*10e8d85fSIan Rogers        "CounterHTOff": "0,1,2,3,4,5,6,7",
126*10e8d85fSIan Rogers        "EventCode": "0x88",
127*10e8d85fSIan Rogers        "EventName": "BR_INST_EXEC.TAKEN_INDIRECT_NEAR_CALL",
128*10e8d85fSIan Rogers        "PublicDescription": "This event counts taken speculative and retired indirect calls including both register and memory indirect.",
129*10e8d85fSIan Rogers        "SampleAfterValue": "200003",
130*10e8d85fSIan Rogers        "UMask": "0xa0"
131*10e8d85fSIan Rogers    },
132*10e8d85fSIan Rogers    {
133*10e8d85fSIan Rogers        "BriefDescription": "Taken speculative and retired indirect branches with return mnemonic",
134*10e8d85fSIan Rogers        "Counter": "0,1,2,3",
135*10e8d85fSIan Rogers        "CounterHTOff": "0,1,2,3,4,5,6,7",
136*10e8d85fSIan Rogers        "EventCode": "0x88",
137*10e8d85fSIan Rogers        "EventName": "BR_INST_EXEC.TAKEN_INDIRECT_NEAR_RETURN",
138*10e8d85fSIan Rogers        "PublicDescription": "This event counts taken speculative and retired indirect branches that have a return mnemonic.",
139*10e8d85fSIan Rogers        "SampleAfterValue": "200003",
140*10e8d85fSIan Rogers        "UMask": "0x88"
141*10e8d85fSIan Rogers    },
142*10e8d85fSIan Rogers    {
143b3ab8adcSAndi Kleen        "BriefDescription": "All (macro) branch instructions retired.",
144b3ab8adcSAndi Kleen        "Counter": "0,1,2,3",
145*10e8d85fSIan Rogers        "CounterHTOff": "0,1,2,3,4,5,6,7",
146b3ab8adcSAndi Kleen        "EventCode": "0xC4",
147*10e8d85fSIan Rogers        "EventName": "BR_INST_RETIRED.ALL_BRANCHES",
148*10e8d85fSIan Rogers        "PublicDescription": "This event counts all (macro) branch instructions retired.",
149*10e8d85fSIan Rogers        "SampleAfterValue": "400009"
150b3ab8adcSAndi Kleen    },
151b3ab8adcSAndi Kleen    {
152*10e8d85fSIan Rogers        "BriefDescription": "All (macro) branch instructions retired. (Precise Event - PEBS)",
153*10e8d85fSIan Rogers        "Counter": "0,1,2,3",
154*10e8d85fSIan Rogers        "CounterHTOff": "0,1,2,3",
155*10e8d85fSIan Rogers        "Errata": "BDW98",
156b3ab8adcSAndi Kleen        "EventCode": "0xC4",
157*10e8d85fSIan Rogers        "EventName": "BR_INST_RETIRED.ALL_BRANCHES_PEBS",
158b3ab8adcSAndi Kleen        "PEBS": "2",
159b3ab8adcSAndi Kleen        "PublicDescription": "This is a precise version of BR_INST_RETIRED.ALL_BRANCHES that counts all (macro) branch instructions retired.",
160*10e8d85fSIan Rogers        "SampleAfterValue": "400009",
161*10e8d85fSIan Rogers        "UMask": "0x4"
162*10e8d85fSIan Rogers    },
163*10e8d85fSIan Rogers    {
164*10e8d85fSIan Rogers        "BriefDescription": "Conditional branch instructions retired.",
165b3ab8adcSAndi Kleen        "Counter": "0,1,2,3",
166*10e8d85fSIan Rogers        "CounterHTOff": "0,1,2,3,4,5,6,7",
167*10e8d85fSIan Rogers        "EventCode": "0xC4",
168*10e8d85fSIan Rogers        "EventName": "BR_INST_RETIRED.CONDITIONAL",
169*10e8d85fSIan Rogers        "PEBS": "1",
170*10e8d85fSIan Rogers        "PublicDescription": "This event counts conditional branch instructions retired.",
171*10e8d85fSIan Rogers        "SampleAfterValue": "400009",
172*10e8d85fSIan Rogers        "UMask": "0x1"
173*10e8d85fSIan Rogers    },
174*10e8d85fSIan Rogers    {
175*10e8d85fSIan Rogers        "BriefDescription": "Far branch instructions retired.",
176*10e8d85fSIan Rogers        "Counter": "0,1,2,3",
177*10e8d85fSIan Rogers        "CounterHTOff": "0,1,2,3,4,5,6,7",
178b3ab8adcSAndi Kleen        "Errata": "BDW98",
179b3ab8adcSAndi Kleen        "EventCode": "0xC4",
180b3ab8adcSAndi Kleen        "EventName": "BR_INST_RETIRED.FAR_BRANCH",
181*10e8d85fSIan Rogers        "PublicDescription": "This event counts far branch instructions retired.",
182b3ab8adcSAndi Kleen        "SampleAfterValue": "100007",
183*10e8d85fSIan Rogers        "UMask": "0x40"
184b3ab8adcSAndi Kleen    },
185b3ab8adcSAndi Kleen    {
186*10e8d85fSIan Rogers        "BriefDescription": "Direct and indirect near call instructions retired.",
187b3ab8adcSAndi Kleen        "Counter": "0,1,2,3",
188*10e8d85fSIan Rogers        "CounterHTOff": "0,1,2,3,4,5,6,7",
189*10e8d85fSIan Rogers        "EventCode": "0xC4",
190*10e8d85fSIan Rogers        "EventName": "BR_INST_RETIRED.NEAR_CALL",
191b3ab8adcSAndi Kleen        "PEBS": "1",
192*10e8d85fSIan Rogers        "PublicDescription": "This event counts both direct and indirect near call instructions retired.",
193*10e8d85fSIan Rogers        "SampleAfterValue": "100007",
194*10e8d85fSIan Rogers        "UMask": "0x2"
195b3ab8adcSAndi Kleen    },
196b3ab8adcSAndi Kleen    {
197*10e8d85fSIan Rogers        "BriefDescription": "Direct and indirect macro near call instructions retired (captured in ring 3).",
198*10e8d85fSIan Rogers        "Counter": "0,1,2,3",
199*10e8d85fSIan Rogers        "CounterHTOff": "0,1,2,3,4,5,6,7",
200*10e8d85fSIan Rogers        "EventCode": "0xC4",
201*10e8d85fSIan Rogers        "EventName": "BR_INST_RETIRED.NEAR_CALL_R3",
202*10e8d85fSIan Rogers        "PEBS": "1",
203*10e8d85fSIan Rogers        "PublicDescription": "This event counts both direct and indirect macro near call instructions retired (captured in ring 3).",
204*10e8d85fSIan Rogers        "SampleAfterValue": "100007",
205*10e8d85fSIan Rogers        "UMask": "0x2"
206*10e8d85fSIan Rogers    },
207*10e8d85fSIan Rogers    {
208*10e8d85fSIan Rogers        "BriefDescription": "Return instructions retired.",
209*10e8d85fSIan Rogers        "Counter": "0,1,2,3",
210*10e8d85fSIan Rogers        "CounterHTOff": "0,1,2,3,4,5,6,7",
211*10e8d85fSIan Rogers        "EventCode": "0xC4",
212*10e8d85fSIan Rogers        "EventName": "BR_INST_RETIRED.NEAR_RETURN",
213*10e8d85fSIan Rogers        "PEBS": "1",
214*10e8d85fSIan Rogers        "PublicDescription": "This event counts return instructions retired.",
215*10e8d85fSIan Rogers        "SampleAfterValue": "100007",
216*10e8d85fSIan Rogers        "UMask": "0x8"
217*10e8d85fSIan Rogers    },
218*10e8d85fSIan Rogers    {
219*10e8d85fSIan Rogers        "BriefDescription": "Taken branch instructions retired.",
220*10e8d85fSIan Rogers        "Counter": "0,1,2,3",
221*10e8d85fSIan Rogers        "CounterHTOff": "0,1,2,3,4,5,6,7",
222*10e8d85fSIan Rogers        "EventCode": "0xC4",
223*10e8d85fSIan Rogers        "EventName": "BR_INST_RETIRED.NEAR_TAKEN",
224*10e8d85fSIan Rogers        "PEBS": "1",
225*10e8d85fSIan Rogers        "PublicDescription": "This event counts taken branch instructions retired.",
226*10e8d85fSIan Rogers        "SampleAfterValue": "400009",
227*10e8d85fSIan Rogers        "UMask": "0x20"
228*10e8d85fSIan Rogers    },
229*10e8d85fSIan Rogers    {
230*10e8d85fSIan Rogers        "BriefDescription": "Not taken branch instructions retired.",
231*10e8d85fSIan Rogers        "Counter": "0,1,2,3",
232*10e8d85fSIan Rogers        "CounterHTOff": "0,1,2,3,4,5,6,7",
233*10e8d85fSIan Rogers        "EventCode": "0xC4",
234*10e8d85fSIan Rogers        "EventName": "BR_INST_RETIRED.NOT_TAKEN",
235*10e8d85fSIan Rogers        "PublicDescription": "This event counts not taken branch instructions retired.",
236*10e8d85fSIan Rogers        "SampleAfterValue": "400009",
237*10e8d85fSIan Rogers        "UMask": "0x10"
238*10e8d85fSIan Rogers    },
239*10e8d85fSIan Rogers    {
240*10e8d85fSIan Rogers        "BriefDescription": "Speculative and retired mispredicted macro conditional branches",
241*10e8d85fSIan Rogers        "Counter": "0,1,2,3",
242*10e8d85fSIan Rogers        "CounterHTOff": "0,1,2,3,4,5,6,7",
243*10e8d85fSIan Rogers        "EventCode": "0x89",
244*10e8d85fSIan Rogers        "EventName": "BR_MISP_EXEC.ALL_BRANCHES",
245*10e8d85fSIan Rogers        "PublicDescription": "This event counts both taken and not taken speculative and retired mispredicted branch instructions.",
246*10e8d85fSIan Rogers        "SampleAfterValue": "200003",
247*10e8d85fSIan Rogers        "UMask": "0xff"
248*10e8d85fSIan Rogers    },
249*10e8d85fSIan Rogers    {
250*10e8d85fSIan Rogers        "BriefDescription": "Speculative and retired mispredicted macro conditional branches",
251*10e8d85fSIan Rogers        "Counter": "0,1,2,3",
252*10e8d85fSIan Rogers        "CounterHTOff": "0,1,2,3,4,5,6,7",
253*10e8d85fSIan Rogers        "EventCode": "0x89",
254*10e8d85fSIan Rogers        "EventName": "BR_MISP_EXEC.ALL_CONDITIONAL",
255*10e8d85fSIan Rogers        "PublicDescription": "This event counts both taken and not taken speculative and retired mispredicted macro conditional branch instructions.",
256*10e8d85fSIan Rogers        "SampleAfterValue": "200003",
257*10e8d85fSIan Rogers        "UMask": "0xc1"
258*10e8d85fSIan Rogers    },
259*10e8d85fSIan Rogers    {
260*10e8d85fSIan Rogers        "BriefDescription": "Mispredicted indirect branches excluding calls and returns",
261*10e8d85fSIan Rogers        "Counter": "0,1,2,3",
262*10e8d85fSIan Rogers        "CounterHTOff": "0,1,2,3,4,5,6,7",
263*10e8d85fSIan Rogers        "EventCode": "0x89",
264*10e8d85fSIan Rogers        "EventName": "BR_MISP_EXEC.ALL_INDIRECT_JUMP_NON_CALL_RET",
265*10e8d85fSIan Rogers        "PublicDescription": "This event counts both taken and not taken mispredicted indirect branches excluding calls and returns.",
266*10e8d85fSIan Rogers        "SampleAfterValue": "200003",
267*10e8d85fSIan Rogers        "UMask": "0xc4"
268*10e8d85fSIan Rogers    },
269*10e8d85fSIan Rogers    {
270*10e8d85fSIan Rogers        "BriefDescription": "Not taken speculative and retired mispredicted macro conditional branches",
271*10e8d85fSIan Rogers        "Counter": "0,1,2,3",
272*10e8d85fSIan Rogers        "CounterHTOff": "0,1,2,3,4,5,6,7",
273*10e8d85fSIan Rogers        "EventCode": "0x89",
274*10e8d85fSIan Rogers        "EventName": "BR_MISP_EXEC.NONTAKEN_CONDITIONAL",
275*10e8d85fSIan Rogers        "PublicDescription": "This event counts not taken speculative and retired mispredicted macro conditional branch instructions.",
276*10e8d85fSIan Rogers        "SampleAfterValue": "200003",
277*10e8d85fSIan Rogers        "UMask": "0x41"
278*10e8d85fSIan Rogers    },
279*10e8d85fSIan Rogers    {
280*10e8d85fSIan Rogers        "BriefDescription": "Taken speculative and retired mispredicted macro conditional branches",
281*10e8d85fSIan Rogers        "Counter": "0,1,2,3",
282*10e8d85fSIan Rogers        "CounterHTOff": "0,1,2,3,4,5,6,7",
283*10e8d85fSIan Rogers        "EventCode": "0x89",
284*10e8d85fSIan Rogers        "EventName": "BR_MISP_EXEC.TAKEN_CONDITIONAL",
285*10e8d85fSIan Rogers        "PublicDescription": "This event counts taken speculative and retired mispredicted macro conditional branch instructions.",
286*10e8d85fSIan Rogers        "SampleAfterValue": "200003",
287*10e8d85fSIan Rogers        "UMask": "0x81"
288*10e8d85fSIan Rogers    },
289*10e8d85fSIan Rogers    {
290*10e8d85fSIan Rogers        "BriefDescription": "Taken speculative and retired mispredicted indirect branches excluding calls and returns",
291*10e8d85fSIan Rogers        "Counter": "0,1,2,3",
292*10e8d85fSIan Rogers        "CounterHTOff": "0,1,2,3,4,5,6,7",
293*10e8d85fSIan Rogers        "EventCode": "0x89",
294*10e8d85fSIan Rogers        "EventName": "BR_MISP_EXEC.TAKEN_INDIRECT_JUMP_NON_CALL_RET",
295*10e8d85fSIan Rogers        "PublicDescription": "This event counts taken speculative and retired mispredicted indirect branches excluding calls and returns.",
296*10e8d85fSIan Rogers        "SampleAfterValue": "200003",
297*10e8d85fSIan Rogers        "UMask": "0x84"
298*10e8d85fSIan Rogers    },
299*10e8d85fSIan Rogers    {
300*10e8d85fSIan Rogers        "BriefDescription": "Taken speculative and retired mispredicted indirect calls.",
301*10e8d85fSIan Rogers        "Counter": "0,1,2,3",
302*10e8d85fSIan Rogers        "CounterHTOff": "0,1,2,3,4,5,6,7",
303*10e8d85fSIan Rogers        "EventCode": "0x89",
304*10e8d85fSIan Rogers        "EventName": "BR_MISP_EXEC.TAKEN_INDIRECT_NEAR_CALL",
305*10e8d85fSIan Rogers        "SampleAfterValue": "200003",
306*10e8d85fSIan Rogers        "UMask": "0xa0"
307*10e8d85fSIan Rogers    },
308*10e8d85fSIan Rogers    {
309*10e8d85fSIan Rogers        "BriefDescription": "Taken speculative and retired mispredicted indirect branches with return mnemonic",
310*10e8d85fSIan Rogers        "Counter": "0,1,2,3",
311*10e8d85fSIan Rogers        "CounterHTOff": "0,1,2,3,4,5,6,7",
312*10e8d85fSIan Rogers        "EventCode": "0x89",
313*10e8d85fSIan Rogers        "EventName": "BR_MISP_EXEC.TAKEN_RETURN_NEAR",
314*10e8d85fSIan Rogers        "PublicDescription": "This event counts taken speculative and retired mispredicted indirect branches that have a return mnemonic.",
315*10e8d85fSIan Rogers        "SampleAfterValue": "200003",
316*10e8d85fSIan Rogers        "UMask": "0x88"
317*10e8d85fSIan Rogers    },
318*10e8d85fSIan Rogers    {
319*10e8d85fSIan Rogers        "BriefDescription": "All mispredicted macro branch instructions retired.",
320*10e8d85fSIan Rogers        "Counter": "0,1,2,3",
321*10e8d85fSIan Rogers        "CounterHTOff": "0,1,2,3,4,5,6,7",
322*10e8d85fSIan Rogers        "EventCode": "0xC5",
323*10e8d85fSIan Rogers        "EventName": "BR_MISP_RETIRED.ALL_BRANCHES",
324*10e8d85fSIan Rogers        "PublicDescription": "This event counts all mispredicted macro branch instructions retired.",
325*10e8d85fSIan Rogers        "SampleAfterValue": "400009"
326*10e8d85fSIan Rogers    },
327*10e8d85fSIan Rogers    {
328*10e8d85fSIan Rogers        "BriefDescription": "Mispredicted macro branch instructions retired. (Precise Event - PEBS)",
329*10e8d85fSIan Rogers        "Counter": "0,1,2,3",
330*10e8d85fSIan Rogers        "CounterHTOff": "0,1,2,3",
331*10e8d85fSIan Rogers        "EventCode": "0xC5",
332*10e8d85fSIan Rogers        "EventName": "BR_MISP_RETIRED.ALL_BRANCHES_PEBS",
333b3ab8adcSAndi Kleen        "PEBS": "2",
334b3ab8adcSAndi Kleen        "PublicDescription": "This is a precise version of BR_MISP_RETIRED.ALL_BRANCHES that counts all mispredicted macro branch instructions retired.",
335b3ab8adcSAndi Kleen        "SampleAfterValue": "400009",
336*10e8d85fSIan Rogers        "UMask": "0x4"
337b3ab8adcSAndi Kleen    },
338b3ab8adcSAndi Kleen    {
339*10e8d85fSIan Rogers        "BriefDescription": "Mispredicted conditional branch instructions retired.",
340b3ab8adcSAndi Kleen        "Counter": "0,1,2,3",
341*10e8d85fSIan Rogers        "CounterHTOff": "0,1,2,3,4,5,6,7",
342*10e8d85fSIan Rogers        "EventCode": "0xC5",
343*10e8d85fSIan Rogers        "EventName": "BR_MISP_RETIRED.CONDITIONAL",
344*10e8d85fSIan Rogers        "PEBS": "1",
345*10e8d85fSIan Rogers        "PublicDescription": "This event counts mispredicted conditional branch instructions retired.",
346*10e8d85fSIan Rogers        "SampleAfterValue": "400009",
347*10e8d85fSIan Rogers        "UMask": "0x1"
348b3ab8adcSAndi Kleen    },
349b3ab8adcSAndi Kleen    {
350*10e8d85fSIan Rogers        "BriefDescription": "number of near branch instructions retired that were mispredicted and taken.",
351b3ab8adcSAndi Kleen        "Counter": "0,1,2,3",
352*10e8d85fSIan Rogers        "CounterHTOff": "0,1,2,3,4,5,6,7",
353*10e8d85fSIan Rogers        "EventCode": "0xC5",
354b3ab8adcSAndi Kleen        "EventName": "BR_MISP_RETIRED.NEAR_TAKEN",
355*10e8d85fSIan Rogers        "PEBS": "1",
356*10e8d85fSIan Rogers        "PublicDescription": "Number of near branch instructions retired that were mispredicted and taken.",
357b3ab8adcSAndi Kleen        "SampleAfterValue": "400009",
358*10e8d85fSIan Rogers        "UMask": "0x20"
359b3ab8adcSAndi Kleen    },
360b3ab8adcSAndi Kleen    {
361*10e8d85fSIan Rogers        "BriefDescription": "This event counts the number of mispredicted ret instructions retired. Non PEBS",
362b3ab8adcSAndi Kleen        "Counter": "0,1,2,3",
363*10e8d85fSIan Rogers        "CounterHTOff": "0,1,2,3,4,5,6,7",
364*10e8d85fSIan Rogers        "EventCode": "0xC5",
365*10e8d85fSIan Rogers        "EventName": "BR_MISP_RETIRED.RET",
366*10e8d85fSIan Rogers        "PEBS": "1",
367*10e8d85fSIan Rogers        "PublicDescription": "This event counts mispredicted return instructions retired.",
368*10e8d85fSIan Rogers        "SampleAfterValue": "100007",
369*10e8d85fSIan Rogers        "UMask": "0x8"
370b3ab8adcSAndi Kleen    },
371b3ab8adcSAndi Kleen    {
372*10e8d85fSIan Rogers        "BriefDescription": "Count XClk pulses when this thread is unhalted and the other thread is halted.",
373b3ab8adcSAndi Kleen        "Counter": "0,1,2,3",
374*10e8d85fSIan Rogers        "CounterHTOff": "0,1,2,3",
375*10e8d85fSIan Rogers        "EventCode": "0x3c",
376*10e8d85fSIan Rogers        "EventName": "CPU_CLK_THREAD_UNHALTED.ONE_THREAD_ACTIVE",
377b3ab8adcSAndi Kleen        "SampleAfterValue": "100003",
378*10e8d85fSIan Rogers        "UMask": "0x2"
379*10e8d85fSIan Rogers    },
380*10e8d85fSIan Rogers    {
381*10e8d85fSIan Rogers        "BriefDescription": "Reference cycles when the thread is unhalted (counts at 100 MHz rate)",
382*10e8d85fSIan Rogers        "Counter": "0,1,2,3",
383*10e8d85fSIan Rogers        "CounterHTOff": "0,1,2,3,4,5,6,7",
384*10e8d85fSIan Rogers        "EventCode": "0x3C",
385*10e8d85fSIan Rogers        "EventName": "CPU_CLK_THREAD_UNHALTED.REF_XCLK",
386*10e8d85fSIan Rogers        "PublicDescription": "This is a fixed-frequency event programmed to general counters. It counts when the core is unhalted at 100 Mhz.",
387*10e8d85fSIan Rogers        "SampleAfterValue": "100003",
388*10e8d85fSIan Rogers        "UMask": "0x1"
389*10e8d85fSIan Rogers    },
390*10e8d85fSIan Rogers    {
391*10e8d85fSIan Rogers        "AnyThread": "1",
392*10e8d85fSIan Rogers        "BriefDescription": "Reference cycles when the at least one thread on the physical core is unhalted (counts at 100 MHz rate).",
393*10e8d85fSIan Rogers        "Counter": "0,1,2,3",
394*10e8d85fSIan Rogers        "CounterHTOff": "0,1,2,3,4,5,6,7",
395*10e8d85fSIan Rogers        "EventCode": "0x3C",
396*10e8d85fSIan Rogers        "EventName": "CPU_CLK_THREAD_UNHALTED.REF_XCLK_ANY",
397*10e8d85fSIan Rogers        "SampleAfterValue": "100003",
398*10e8d85fSIan Rogers        "UMask": "0x1"
399*10e8d85fSIan Rogers    },
400*10e8d85fSIan Rogers    {
401*10e8d85fSIan Rogers        "BriefDescription": "Count XClk pulses when this thread is unhalted and the other thread is halted.",
402*10e8d85fSIan Rogers        "Counter": "0,1,2,3",
403*10e8d85fSIan Rogers        "CounterHTOff": "0,1,2,3,4,5,6,7",
404*10e8d85fSIan Rogers        "EventCode": "0x3C",
405*10e8d85fSIan Rogers        "EventName": "CPU_CLK_UNHALTED.ONE_THREAD_ACTIVE",
406*10e8d85fSIan Rogers        "SampleAfterValue": "100003",
407*10e8d85fSIan Rogers        "UMask": "0x2"
408*10e8d85fSIan Rogers    },
409*10e8d85fSIan Rogers    {
410*10e8d85fSIan Rogers        "BriefDescription": "Reference cycles when the core is not in halt state.",
411*10e8d85fSIan Rogers        "Counter": "Fixed counter 2",
412*10e8d85fSIan Rogers        "CounterHTOff": "Fixed counter 2",
413*10e8d85fSIan Rogers        "EventName": "CPU_CLK_UNHALTED.REF_TSC",
414*10e8d85fSIan Rogers        "PublicDescription": "This event counts the number of reference cycles when the core is not in a halt state. The core enters the halt state when it is running the HLT instruction or the MWAIT instruction. This event is not affected by core frequency changes (for example, P states, TM2 transitions) but has the same incrementing frequency as the time stamp counter. This event can approximate elapsed time while the core was not in a halt state. This event has a constant ratio with the CPU_CLK_UNHALTED.REF_XCLK event. It is counted on a dedicated fixed counter, leaving the four (eight when Hyperthreading is disabled) programmable counters available for other events. \nNote: On all current platforms this event stops counting during 'throttling (TM)' states duty off periods the processor is 'halted'.  This event is clocked by base clock (100 Mhz) on Sandy Bridge. The counter update is done at a lower clock rate then the core clock the overflow status bit for this counter may appear 'sticky'.  After the counter has overflowed and software clears the overflow status bit and resets the counter to less than MAX. The reset value to the counter is not clocked immediately so the overflow status bit will flip 'high (1)' and generate another PMI (if enabled) after which the reset value gets clocked into the counter. Therefore, software will get the interrupt, read the overflow status bit '1 for bit 34 while the counter value is less than MAX. Software should ignore this case.",
415*10e8d85fSIan Rogers        "SampleAfterValue": "2000003",
416*10e8d85fSIan Rogers        "UMask": "0x3"
417*10e8d85fSIan Rogers    },
418*10e8d85fSIan Rogers    {
419*10e8d85fSIan Rogers        "BriefDescription": "Reference cycles when the thread is unhalted (counts at 100 MHz rate)",
420*10e8d85fSIan Rogers        "Counter": "0,1,2,3",
421*10e8d85fSIan Rogers        "CounterHTOff": "0,1,2,3,4,5,6,7",
422*10e8d85fSIan Rogers        "EventCode": "0x3C",
423*10e8d85fSIan Rogers        "EventName": "CPU_CLK_UNHALTED.REF_XCLK",
424*10e8d85fSIan Rogers        "PublicDescription": "Reference cycles when the thread is unhalted (counts at 100 MHz rate).",
425*10e8d85fSIan Rogers        "SampleAfterValue": "100003",
426*10e8d85fSIan Rogers        "UMask": "0x1"
427*10e8d85fSIan Rogers    },
428*10e8d85fSIan Rogers    {
429*10e8d85fSIan Rogers        "AnyThread": "1",
430*10e8d85fSIan Rogers        "BriefDescription": "Reference cycles when the at least one thread on the physical core is unhalted (counts at 100 MHz rate).",
431*10e8d85fSIan Rogers        "Counter": "0,1,2,3",
432*10e8d85fSIan Rogers        "CounterHTOff": "0,1,2,3,4,5,6,7",
433*10e8d85fSIan Rogers        "EventCode": "0x3C",
434*10e8d85fSIan Rogers        "EventName": "CPU_CLK_UNHALTED.REF_XCLK_ANY",
435*10e8d85fSIan Rogers        "SampleAfterValue": "100003",
436*10e8d85fSIan Rogers        "UMask": "0x1"
437*10e8d85fSIan Rogers    },
438*10e8d85fSIan Rogers    {
439*10e8d85fSIan Rogers        "BriefDescription": "Core cycles when the thread is not in halt state",
440*10e8d85fSIan Rogers        "Counter": "Fixed counter 1",
441*10e8d85fSIan Rogers        "CounterHTOff": "Fixed counter 1",
442*10e8d85fSIan Rogers        "EventName": "CPU_CLK_UNHALTED.THREAD",
443*10e8d85fSIan Rogers        "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, leaving the four (eight when Hyperthreading is disabled) programmable counters available for other events.",
444*10e8d85fSIan Rogers        "SampleAfterValue": "2000003",
445*10e8d85fSIan Rogers        "UMask": "0x2"
446*10e8d85fSIan Rogers    },
447*10e8d85fSIan Rogers    {
448*10e8d85fSIan Rogers        "AnyThread": "1",
449*10e8d85fSIan Rogers        "BriefDescription": "Core cycles when at least one thread on the physical core is not in halt state.",
450*10e8d85fSIan Rogers        "Counter": "Fixed counter 1",
451*10e8d85fSIan Rogers        "CounterHTOff": "Fixed counter 1",
452*10e8d85fSIan Rogers        "EventName": "CPU_CLK_UNHALTED.THREAD_ANY",
453*10e8d85fSIan Rogers        "SampleAfterValue": "2000003",
454*10e8d85fSIan Rogers        "UMask": "0x2"
455*10e8d85fSIan Rogers    },
456*10e8d85fSIan Rogers    {
457*10e8d85fSIan Rogers        "BriefDescription": "Thread cycles when thread is not in halt state",
458*10e8d85fSIan Rogers        "Counter": "0,1,2,3",
459*10e8d85fSIan Rogers        "CounterHTOff": "0,1,2,3,4,5,6,7",
460*10e8d85fSIan Rogers        "EventCode": "0x3C",
461*10e8d85fSIan Rogers        "EventName": "CPU_CLK_UNHALTED.THREAD_P",
462*10e8d85fSIan Rogers        "PublicDescription": "This is an architectural event that counts the number of thread cycles while the thread is not in a halt state. The thread enters the halt state when it is running the HLT instruction. The core frequency may change from time to time due to power or thermal throttling. For this reason, this event may have a changing ratio with regards to wall clock time.",
463*10e8d85fSIan Rogers        "SampleAfterValue": "2000003"
464*10e8d85fSIan Rogers    },
465*10e8d85fSIan Rogers    {
466*10e8d85fSIan Rogers        "AnyThread": "1",
467*10e8d85fSIan Rogers        "BriefDescription": "Core cycles when at least one thread on the physical core is not in halt state.",
468*10e8d85fSIan Rogers        "Counter": "0,1,2,3",
469*10e8d85fSIan Rogers        "CounterHTOff": "0,1,2,3,4,5,6,7",
470*10e8d85fSIan Rogers        "EventCode": "0x3C",
471*10e8d85fSIan Rogers        "EventName": "CPU_CLK_UNHALTED.THREAD_P_ANY",
472*10e8d85fSIan Rogers        "SampleAfterValue": "2000003"
473*10e8d85fSIan Rogers    },
474*10e8d85fSIan Rogers    {
475*10e8d85fSIan Rogers        "BriefDescription": "Cycles while L1 cache miss demand load is outstanding.",
476*10e8d85fSIan Rogers        "Counter": "2",
477*10e8d85fSIan Rogers        "CounterHTOff": "2",
478*10e8d85fSIan Rogers        "CounterMask": "8",
479*10e8d85fSIan Rogers        "EventCode": "0xA3",
480*10e8d85fSIan Rogers        "EventName": "CYCLE_ACTIVITY.CYCLES_L1D_MISS",
481*10e8d85fSIan Rogers        "SampleAfterValue": "2000003",
482*10e8d85fSIan Rogers        "UMask": "0x8"
483*10e8d85fSIan Rogers    },
484*10e8d85fSIan Rogers    {
485*10e8d85fSIan Rogers        "BriefDescription": "Cycles while L1 cache miss demand load is outstanding.",
486*10e8d85fSIan Rogers        "Counter": "2",
487*10e8d85fSIan Rogers        "CounterHTOff": "2",
488*10e8d85fSIan Rogers        "CounterMask": "8",
489*10e8d85fSIan Rogers        "EventCode": "0xA3",
490*10e8d85fSIan Rogers        "EventName": "CYCLE_ACTIVITY.CYCLES_L1D_PENDING",
491*10e8d85fSIan Rogers        "PublicDescription": "Counts number of cycles the CPU has at least one pending  demand load request missing the L1 data cache.",
492*10e8d85fSIan Rogers        "SampleAfterValue": "2000003",
493*10e8d85fSIan Rogers        "UMask": "0x8"
494*10e8d85fSIan Rogers    },
495*10e8d85fSIan Rogers    {
496*10e8d85fSIan Rogers        "BriefDescription": "Cycles while L2 cache miss demand load is outstanding.",
497*10e8d85fSIan Rogers        "Counter": "0,1,2,3",
498*10e8d85fSIan Rogers        "CounterHTOff": "0,1,2,3,4,5,6,7",
499*10e8d85fSIan Rogers        "CounterMask": "1",
500*10e8d85fSIan Rogers        "EventCode": "0xA3",
501*10e8d85fSIan Rogers        "EventName": "CYCLE_ACTIVITY.CYCLES_L2_MISS",
502*10e8d85fSIan Rogers        "SampleAfterValue": "2000003",
503*10e8d85fSIan Rogers        "UMask": "0x1"
504*10e8d85fSIan Rogers    },
505*10e8d85fSIan Rogers    {
506*10e8d85fSIan Rogers        "BriefDescription": "Cycles while L2 cache miss demand load is outstanding.",
507*10e8d85fSIan Rogers        "Counter": "0,1,2,3",
508*10e8d85fSIan Rogers        "CounterHTOff": "0,1,2,3,4,5,6,7",
509*10e8d85fSIan Rogers        "CounterMask": "1",
510*10e8d85fSIan Rogers        "EventCode": "0xA3",
511*10e8d85fSIan Rogers        "EventName": "CYCLE_ACTIVITY.CYCLES_L2_PENDING",
512*10e8d85fSIan Rogers        "PublicDescription": "Counts number of cycles the CPU has at least one pending  demand* load request missing the L2 cache.",
513*10e8d85fSIan Rogers        "SampleAfterValue": "2000003",
514*10e8d85fSIan Rogers        "UMask": "0x1"
515*10e8d85fSIan Rogers    },
516*10e8d85fSIan Rogers    {
517*10e8d85fSIan Rogers        "BriefDescription": "Cycles while memory subsystem has an outstanding load.",
518*10e8d85fSIan Rogers        "Counter": "0,1,2,3",
519*10e8d85fSIan Rogers        "CounterHTOff": "0,1,2,3,4,5,6,7",
520*10e8d85fSIan Rogers        "CounterMask": "2",
521*10e8d85fSIan Rogers        "EventCode": "0xA3",
522*10e8d85fSIan Rogers        "EventName": "CYCLE_ACTIVITY.CYCLES_LDM_PENDING",
523*10e8d85fSIan Rogers        "PublicDescription": "Counts number of cycles the CPU has at least one pending  demand load request (that is cycles with non-completed load waiting for its data from memory subsystem).",
524*10e8d85fSIan Rogers        "SampleAfterValue": "2000003",
525*10e8d85fSIan Rogers        "UMask": "0x2"
526*10e8d85fSIan Rogers    },
527*10e8d85fSIan Rogers    {
528*10e8d85fSIan Rogers        "BriefDescription": "Cycles while memory subsystem has an outstanding load.",
529*10e8d85fSIan Rogers        "Counter": "0,1,2,3",
530*10e8d85fSIan Rogers        "CounterHTOff": "0,1,2,3",
531*10e8d85fSIan Rogers        "CounterMask": "2",
532*10e8d85fSIan Rogers        "EventCode": "0xA3",
533*10e8d85fSIan Rogers        "EventName": "CYCLE_ACTIVITY.CYCLES_MEM_ANY",
534*10e8d85fSIan Rogers        "SampleAfterValue": "2000003",
535*10e8d85fSIan Rogers        "UMask": "0x2"
536*10e8d85fSIan Rogers    },
537*10e8d85fSIan Rogers    {
538*10e8d85fSIan Rogers        "BriefDescription": "This event increments by 1 for every cycle where there was no execute for this thread.",
539*10e8d85fSIan Rogers        "Counter": "0,1,2,3",
540*10e8d85fSIan Rogers        "CounterHTOff": "0,1,2,3",
541*10e8d85fSIan Rogers        "CounterMask": "4",
542*10e8d85fSIan Rogers        "EventCode": "0xA3",
543*10e8d85fSIan Rogers        "EventName": "CYCLE_ACTIVITY.CYCLES_NO_EXECUTE",
544*10e8d85fSIan Rogers        "PublicDescription": "Counts number of cycles nothing is executed on any execution port.",
545*10e8d85fSIan Rogers        "SampleAfterValue": "2000003",
546*10e8d85fSIan Rogers        "UMask": "0x4"
547*10e8d85fSIan Rogers    },
548*10e8d85fSIan Rogers    {
549*10e8d85fSIan Rogers        "BriefDescription": "Execution stalls while L1 cache miss demand load is outstanding.",
550*10e8d85fSIan Rogers        "Counter": "2",
551*10e8d85fSIan Rogers        "CounterHTOff": "2",
552*10e8d85fSIan Rogers        "CounterMask": "12",
553*10e8d85fSIan Rogers        "EventCode": "0xA3",
554*10e8d85fSIan Rogers        "EventName": "CYCLE_ACTIVITY.STALLS_L1D_MISS",
555*10e8d85fSIan Rogers        "SampleAfterValue": "2000003",
556*10e8d85fSIan Rogers        "UMask": "0xc"
557*10e8d85fSIan Rogers    },
558*10e8d85fSIan Rogers    {
559*10e8d85fSIan Rogers        "BriefDescription": "Execution stalls while L1 cache miss demand load is outstanding.",
560*10e8d85fSIan Rogers        "Counter": "2",
561*10e8d85fSIan Rogers        "CounterHTOff": "2",
562*10e8d85fSIan Rogers        "CounterMask": "12",
563*10e8d85fSIan Rogers        "EventCode": "0xA3",
564*10e8d85fSIan Rogers        "EventName": "CYCLE_ACTIVITY.STALLS_L1D_PENDING",
565*10e8d85fSIan Rogers        "PublicDescription": "Counts number of cycles nothing is executed on any execution port, while there was at least one pending demand load request missing the L1 data cache.",
566*10e8d85fSIan Rogers        "SampleAfterValue": "2000003",
567*10e8d85fSIan Rogers        "UMask": "0xc"
568*10e8d85fSIan Rogers    },
569*10e8d85fSIan Rogers    {
570*10e8d85fSIan Rogers        "BriefDescription": "Execution stalls while L2 cache miss demand load is outstanding.",
571*10e8d85fSIan Rogers        "Counter": "0,1,2,3",
572*10e8d85fSIan Rogers        "CounterHTOff": "0,1,2,3,4,5,6,7",
573*10e8d85fSIan Rogers        "CounterMask": "5",
574*10e8d85fSIan Rogers        "EventCode": "0xA3",
575*10e8d85fSIan Rogers        "EventName": "CYCLE_ACTIVITY.STALLS_L2_MISS",
576*10e8d85fSIan Rogers        "SampleAfterValue": "2000003",
577*10e8d85fSIan Rogers        "UMask": "0x5"
578*10e8d85fSIan Rogers    },
579*10e8d85fSIan Rogers    {
580*10e8d85fSIan Rogers        "BriefDescription": "Execution stalls while L2 cache miss demand load is outstanding.",
581*10e8d85fSIan Rogers        "Counter": "0,1,2,3",
582*10e8d85fSIan Rogers        "CounterHTOff": "0,1,2,3",
583*10e8d85fSIan Rogers        "CounterMask": "5",
584*10e8d85fSIan Rogers        "EventCode": "0xA3",
585*10e8d85fSIan Rogers        "EventName": "CYCLE_ACTIVITY.STALLS_L2_PENDING",
586*10e8d85fSIan Rogers        "PublicDescription": "Counts number of cycles nothing is executed on any execution port, while there was at least one pending demand* load request missing the L2 cache.(as a footprint) * includes also L1 HW prefetch requests that may or may not be required by demands.",
587*10e8d85fSIan Rogers        "SampleAfterValue": "2000003",
588*10e8d85fSIan Rogers        "UMask": "0x5"
589*10e8d85fSIan Rogers    },
590*10e8d85fSIan Rogers    {
591*10e8d85fSIan Rogers        "BriefDescription": "Execution stalls while memory subsystem has an outstanding load.",
592*10e8d85fSIan Rogers        "Counter": "0,1,2,3",
593*10e8d85fSIan Rogers        "CounterHTOff": "0,1,2,3",
594*10e8d85fSIan Rogers        "CounterMask": "6",
595*10e8d85fSIan Rogers        "EventCode": "0xA3",
596*10e8d85fSIan Rogers        "EventName": "CYCLE_ACTIVITY.STALLS_LDM_PENDING",
597*10e8d85fSIan Rogers        "PublicDescription": "Counts number of cycles nothing is executed on any execution port, while there was at least one pending demand load request.",
598*10e8d85fSIan Rogers        "SampleAfterValue": "2000003",
599*10e8d85fSIan Rogers        "UMask": "0x6"
600*10e8d85fSIan Rogers    },
601*10e8d85fSIan Rogers    {
602*10e8d85fSIan Rogers        "BriefDescription": "Execution stalls while memory subsystem has an outstanding load.",
603*10e8d85fSIan Rogers        "Counter": "0,1,2,3",
604*10e8d85fSIan Rogers        "CounterHTOff": "0,1,2,3,4,5,6,7",
605*10e8d85fSIan Rogers        "CounterMask": "6",
606*10e8d85fSIan Rogers        "EventCode": "0xA3",
607*10e8d85fSIan Rogers        "EventName": "CYCLE_ACTIVITY.STALLS_MEM_ANY",
608*10e8d85fSIan Rogers        "SampleAfterValue": "2000003",
609*10e8d85fSIan Rogers        "UMask": "0x6"
610*10e8d85fSIan Rogers    },
611*10e8d85fSIan Rogers    {
612*10e8d85fSIan Rogers        "BriefDescription": "Total execution stalls.",
613*10e8d85fSIan Rogers        "Counter": "0,1,2,3",
614*10e8d85fSIan Rogers        "CounterHTOff": "0,1,2,3,4,5,6,7",
615*10e8d85fSIan Rogers        "CounterMask": "4",
616*10e8d85fSIan Rogers        "EventCode": "0xA3",
617*10e8d85fSIan Rogers        "EventName": "CYCLE_ACTIVITY.STALLS_TOTAL",
618*10e8d85fSIan Rogers        "SampleAfterValue": "2000003",
619*10e8d85fSIan Rogers        "UMask": "0x4"
620*10e8d85fSIan Rogers    },
621*10e8d85fSIan Rogers    {
622*10e8d85fSIan Rogers        "BriefDescription": "Stalls caused by changing prefix length of the instruction.",
623*10e8d85fSIan Rogers        "Counter": "0,1,2,3",
624*10e8d85fSIan Rogers        "CounterHTOff": "0,1,2,3,4,5,6,7",
625*10e8d85fSIan Rogers        "EventCode": "0x87",
626*10e8d85fSIan Rogers        "EventName": "ILD_STALL.LCP",
627*10e8d85fSIan Rogers        "PublicDescription": "This event counts stalls occured due to changing prefix length (66, 67 or REX.W when they change the length of the decoded instruction). Occurrences counting is proportional to the number of prefixes in a 16B-line. This may result in the following penalties: three-cycle penalty for each LCP in a 16-byte chunk.",
628*10e8d85fSIan Rogers        "SampleAfterValue": "2000003",
629*10e8d85fSIan Rogers        "UMask": "0x1"
630*10e8d85fSIan Rogers    },
631*10e8d85fSIan Rogers    {
632*10e8d85fSIan Rogers        "BriefDescription": "Instructions retired from execution.",
633*10e8d85fSIan Rogers        "Counter": "Fixed counter 0",
634*10e8d85fSIan Rogers        "CounterHTOff": "Fixed counter 0",
635*10e8d85fSIan Rogers        "EventName": "INST_RETIRED.ANY",
636*10e8d85fSIan Rogers        "PublicDescription": "This event counts the number of instructions retired from execution. For instructions that consist of multiple micro-ops, this event counts the retirement of the last micro-op of the instruction. Counting continues during hardware interrupts, traps, and inside interrupt handlers. \nNotes: INST_RETIRED.ANY is counted by a designated fixed counter, leaving the four (eight when Hyperthreading is disabled) programmable counters available for other events. INST_RETIRED.ANY_P is counted by a programmable counter and it is an architectural performance event. \nCounting: Faulting executions of GETSEC/VM entry/VM Exit/MWait will not count as retired instructions.",
637*10e8d85fSIan Rogers        "SampleAfterValue": "2000003",
638*10e8d85fSIan Rogers        "UMask": "0x1"
639*10e8d85fSIan Rogers    },
640*10e8d85fSIan Rogers    {
641*10e8d85fSIan Rogers        "BriefDescription": "Number of instructions retired. General Counter   - architectural event",
642*10e8d85fSIan Rogers        "Counter": "0,1,2,3",
643*10e8d85fSIan Rogers        "CounterHTOff": "0,1,2,3,4,5,6,7",
644*10e8d85fSIan Rogers        "Errata": "BDM61",
645*10e8d85fSIan Rogers        "EventCode": "0xC0",
646*10e8d85fSIan Rogers        "EventName": "INST_RETIRED.ANY_P",
647*10e8d85fSIan Rogers        "PublicDescription": "This event counts the number of instructions (EOMs) retired. Counting covers macro-fused instructions individually (that is, increments by two).",
648*10e8d85fSIan Rogers        "SampleAfterValue": "2000003"
649*10e8d85fSIan Rogers    },
650*10e8d85fSIan Rogers    {
651*10e8d85fSIan Rogers        "BriefDescription": "Precise instruction retired event with HW to reduce effect of PEBS shadow in IP distribution",
652*10e8d85fSIan Rogers        "Counter": "1",
653*10e8d85fSIan Rogers        "CounterHTOff": "1",
654*10e8d85fSIan Rogers        "Errata": "BDM11, BDM55",
655*10e8d85fSIan Rogers        "EventCode": "0xC0",
656*10e8d85fSIan Rogers        "EventName": "INST_RETIRED.PREC_DIST",
657*10e8d85fSIan Rogers        "PEBS": "2",
658*10e8d85fSIan Rogers        "PublicDescription": "This is a precise version (that is, uses PEBS) of the event that counts instructions retired.",
659*10e8d85fSIan Rogers        "SampleAfterValue": "2000003",
660*10e8d85fSIan Rogers        "UMask": "0x1"
661*10e8d85fSIan Rogers    },
662*10e8d85fSIan Rogers    {
663*10e8d85fSIan Rogers        "BriefDescription": "FP operations  retired. X87 FP operations that have no exceptions:",
664*10e8d85fSIan Rogers        "Counter": "0,1,2,3",
665*10e8d85fSIan Rogers        "CounterHTOff": "0,1,2,3,4,5,6,7",
666*10e8d85fSIan Rogers        "EventCode": "0xC0",
667*10e8d85fSIan Rogers        "EventName": "INST_RETIRED.X87",
668*10e8d85fSIan Rogers        "PublicDescription": "This event counts FP operations retired. For X87 FP operations that have no exceptions counting also includes flows that have several X87, or flows that use X87 uops in the exception handling.",
669*10e8d85fSIan Rogers        "SampleAfterValue": "2000003",
670*10e8d85fSIan Rogers        "UMask": "0x2"
671*10e8d85fSIan Rogers    },
672*10e8d85fSIan Rogers    {
673*10e8d85fSIan Rogers        "BriefDescription": "Cycles when Resource Allocation Table (RAT) external stall is sent to Instruction Decode Queue (IDQ) for the thread",
674*10e8d85fSIan Rogers        "Counter": "0,1,2,3",
675*10e8d85fSIan Rogers        "CounterHTOff": "0,1,2,3,4,5,6,7",
676*10e8d85fSIan Rogers        "EventCode": "0x0D",
677*10e8d85fSIan Rogers        "EventName": "INT_MISC.RAT_STALL_CYCLES",
678*10e8d85fSIan Rogers        "PublicDescription": "This event counts the number of cycles during which Resource Allocation Table (RAT) external stall is sent to Instruction Decode Queue (IDQ) for the current thread. This also includes the cycles during which the Allocator is serving another thread.",
679*10e8d85fSIan Rogers        "SampleAfterValue": "2000003",
680*10e8d85fSIan Rogers        "UMask": "0x8"
681*10e8d85fSIan Rogers    },
682*10e8d85fSIan Rogers    {
683*10e8d85fSIan Rogers        "BriefDescription": "Core cycles the allocator was stalled due to recovery from earlier clear event for this thread (e.g. misprediction or memory nuke)",
684*10e8d85fSIan Rogers        "Counter": "0,1,2,3",
685*10e8d85fSIan Rogers        "CounterHTOff": "0,1,2,3,4,5,6,7",
686*10e8d85fSIan Rogers        "CounterMask": "1",
687*10e8d85fSIan Rogers        "EventCode": "0x0D",
688*10e8d85fSIan Rogers        "EventName": "INT_MISC.RECOVERY_CYCLES",
689*10e8d85fSIan Rogers        "PublicDescription": "Cycles checkpoints in Resource Allocation Table (RAT) are recovering from JEClear or machine clear.",
690*10e8d85fSIan Rogers        "SampleAfterValue": "2000003",
691*10e8d85fSIan Rogers        "UMask": "0x3"
692*10e8d85fSIan Rogers    },
693*10e8d85fSIan Rogers    {
694*10e8d85fSIan Rogers        "AnyThread": "1",
695*10e8d85fSIan Rogers        "BriefDescription": "Core cycles the allocator was stalled due to recovery from earlier clear event for any thread running on the physical core (e.g. misprediction or memory nuke).",
696*10e8d85fSIan Rogers        "Counter": "0,1,2,3",
697*10e8d85fSIan Rogers        "CounterHTOff": "0,1,2,3,4,5,6,7",
698*10e8d85fSIan Rogers        "CounterMask": "1",
699*10e8d85fSIan Rogers        "EventCode": "0x0D",
700*10e8d85fSIan Rogers        "EventName": "INT_MISC.RECOVERY_CYCLES_ANY",
701*10e8d85fSIan Rogers        "SampleAfterValue": "2000003",
702*10e8d85fSIan Rogers        "UMask": "0x3"
703*10e8d85fSIan Rogers    },
704*10e8d85fSIan Rogers    {
705*10e8d85fSIan Rogers        "BriefDescription": "This event counts the number of times that split load operations are temporarily blocked because all resources for handling the split accesses are in use.",
706*10e8d85fSIan Rogers        "Counter": "0,1,2,3",
707*10e8d85fSIan Rogers        "CounterHTOff": "0,1,2,3,4,5,6,7",
708*10e8d85fSIan Rogers        "EventCode": "0x03",
709*10e8d85fSIan Rogers        "EventName": "LD_BLOCKS.NO_SR",
710*10e8d85fSIan Rogers        "SampleAfterValue": "100003",
711*10e8d85fSIan Rogers        "UMask": "0x8"
712*10e8d85fSIan Rogers    },
713*10e8d85fSIan Rogers    {
714*10e8d85fSIan Rogers        "BriefDescription": "Cases when loads get true Block-on-Store blocking code preventing store forwarding",
715*10e8d85fSIan Rogers        "Counter": "0,1,2,3",
716*10e8d85fSIan Rogers        "CounterHTOff": "0,1,2,3,4,5,6,7",
717*10e8d85fSIan Rogers        "EventCode": "0x03",
718*10e8d85fSIan Rogers        "EventName": "LD_BLOCKS.STORE_FORWARD",
719*10e8d85fSIan Rogers        "PublicDescription": "This event counts how many times the load operation got the true Block-on-Store blocking code preventing store forwarding. This includes cases when:\n - preceding store conflicts with the load (incomplete overlap);\n - store forwarding is impossible due to u-arch limitations;\n - preceding lock RMW operations are not forwarded;\n - store has the no-forward bit set (uncacheable/page-split/masked stores);\n - all-blocking stores are used (mostly, fences and port I/O);\nand others.\nThe most common case is a load blocked due to its address range overlapping with a preceding smaller uncompleted store. Note: This event does not take into account cases of out-of-SW-control (for example, SbTailHit), unknown physical STA, and cases of blocking loads on store due to being non-WB memory type or a lock. These cases are covered by other events.\nSee the table of not supported store forwards in the Optimization Guide.",
720*10e8d85fSIan Rogers        "SampleAfterValue": "100003",
721*10e8d85fSIan Rogers        "UMask": "0x2"
722*10e8d85fSIan Rogers    },
723*10e8d85fSIan Rogers    {
724*10e8d85fSIan Rogers        "BriefDescription": "False dependencies in MOB due to partial compare",
725*10e8d85fSIan Rogers        "Counter": "0,1,2,3",
726*10e8d85fSIan Rogers        "CounterHTOff": "0,1,2,3,4,5,6,7",
727*10e8d85fSIan Rogers        "EventCode": "0x07",
728*10e8d85fSIan Rogers        "EventName": "LD_BLOCKS_PARTIAL.ADDRESS_ALIAS",
729*10e8d85fSIan Rogers        "PublicDescription": "This event counts false dependencies in MOB when the partial comparison upon loose net check and dependency was resolved by the Enhanced Loose net mechanism. This may not result in high performance penalties. Loose net checks can fail when loads and stores are 4k aliased.",
730*10e8d85fSIan Rogers        "SampleAfterValue": "100003",
731*10e8d85fSIan Rogers        "UMask": "0x1"
732*10e8d85fSIan Rogers    },
733*10e8d85fSIan Rogers    {
734*10e8d85fSIan Rogers        "BriefDescription": "Not software-prefetch load dispatches that hit FB allocated for hardware prefetch",
735*10e8d85fSIan Rogers        "Counter": "0,1,2,3",
736*10e8d85fSIan Rogers        "CounterHTOff": "0,1,2,3,4,5,6,7",
737*10e8d85fSIan Rogers        "EventCode": "0x4C",
738*10e8d85fSIan Rogers        "EventName": "LOAD_HIT_PRE.HW_PF",
739*10e8d85fSIan Rogers        "PublicDescription": "This event counts all not software-prefetch load dispatches that hit the fill buffer (FB) allocated for the hardware prefetch.",
740*10e8d85fSIan Rogers        "SampleAfterValue": "100003",
741*10e8d85fSIan Rogers        "UMask": "0x2"
742*10e8d85fSIan Rogers    },
743*10e8d85fSIan Rogers    {
744*10e8d85fSIan Rogers        "BriefDescription": "Not software-prefetch load dispatches that hit FB allocated for software prefetch",
745*10e8d85fSIan Rogers        "Counter": "0,1,2,3",
746*10e8d85fSIan Rogers        "CounterHTOff": "0,1,2,3,4,5,6,7",
747*10e8d85fSIan Rogers        "EventCode": "0x4c",
748*10e8d85fSIan Rogers        "EventName": "LOAD_HIT_PRE.SW_PF",
749*10e8d85fSIan Rogers        "PublicDescription": "This event counts all not software-prefetch load dispatches that hit the fill buffer (FB) allocated for the software prefetch. It can also be incremented by some lock instructions. So it should only be used with profiling so that the locks can be excluded by asm inspection of the nearby instructions.",
750*10e8d85fSIan Rogers        "SampleAfterValue": "100003",
751*10e8d85fSIan Rogers        "UMask": "0x1"
752*10e8d85fSIan Rogers    },
753*10e8d85fSIan Rogers    {
754*10e8d85fSIan Rogers        "BriefDescription": "Cycles 4 Uops delivered by the LSD, but didn't come from the decoder.",
755*10e8d85fSIan Rogers        "Counter": "0,1,2,3",
756*10e8d85fSIan Rogers        "CounterHTOff": "0,1,2,3,4,5,6,7",
757*10e8d85fSIan Rogers        "CounterMask": "4",
758*10e8d85fSIan Rogers        "EventCode": "0xA8",
759*10e8d85fSIan Rogers        "EventName": "LSD.CYCLES_4_UOPS",
760*10e8d85fSIan Rogers        "SampleAfterValue": "2000003",
761*10e8d85fSIan Rogers        "UMask": "0x1"
762*10e8d85fSIan Rogers    },
763*10e8d85fSIan Rogers    {
764*10e8d85fSIan Rogers        "BriefDescription": "Cycles Uops delivered by the LSD, but didn't come from the decoder.",
765*10e8d85fSIan Rogers        "Counter": "0,1,2,3",
766*10e8d85fSIan Rogers        "CounterHTOff": "0,1,2,3,4,5,6,7",
767*10e8d85fSIan Rogers        "CounterMask": "1",
768*10e8d85fSIan Rogers        "EventCode": "0xA8",
769*10e8d85fSIan Rogers        "EventName": "LSD.CYCLES_ACTIVE",
770*10e8d85fSIan Rogers        "SampleAfterValue": "2000003",
771*10e8d85fSIan Rogers        "UMask": "0x1"
772*10e8d85fSIan Rogers    },
773*10e8d85fSIan Rogers    {
774*10e8d85fSIan Rogers        "BriefDescription": "Number of Uops delivered by the LSD.",
775*10e8d85fSIan Rogers        "Counter": "0,1,2,3",
776*10e8d85fSIan Rogers        "CounterHTOff": "0,1,2,3,4,5,6,7",
777*10e8d85fSIan Rogers        "EventCode": "0xA8",
778*10e8d85fSIan Rogers        "EventName": "LSD.UOPS",
779*10e8d85fSIan Rogers        "SampleAfterValue": "2000003",
780*10e8d85fSIan Rogers        "UMask": "0x1"
781*10e8d85fSIan Rogers    },
782*10e8d85fSIan Rogers    {
783*10e8d85fSIan Rogers        "BriefDescription": "Number of machine clears (nukes) of any type.",
784*10e8d85fSIan Rogers        "Counter": "0,1,2,3",
785*10e8d85fSIan Rogers        "CounterHTOff": "0,1,2,3,4,5,6,7",
786*10e8d85fSIan Rogers        "CounterMask": "1",
787*10e8d85fSIan Rogers        "EdgeDetect": "1",
788*10e8d85fSIan Rogers        "EventCode": "0xC3",
789*10e8d85fSIan Rogers        "EventName": "MACHINE_CLEARS.COUNT",
790*10e8d85fSIan Rogers        "SampleAfterValue": "100003",
791*10e8d85fSIan Rogers        "UMask": "0x1"
792*10e8d85fSIan Rogers    },
793*10e8d85fSIan Rogers    {
794*10e8d85fSIan Rogers        "BriefDescription": "Cycles there was a Nuke. Account for both thread-specific and All Thread Nukes.",
795*10e8d85fSIan Rogers        "Counter": "0,1,2,3",
796*10e8d85fSIan Rogers        "CounterHTOff": "0,1,2,3,4,5,6,7",
797*10e8d85fSIan Rogers        "EventCode": "0xC3",
798*10e8d85fSIan Rogers        "EventName": "MACHINE_CLEARS.CYCLES",
799*10e8d85fSIan Rogers        "PublicDescription": "This event counts both thread-specific (TS) and all-thread (AT) nukes.",
800*10e8d85fSIan Rogers        "SampleAfterValue": "2000003",
801*10e8d85fSIan Rogers        "UMask": "0x1"
802*10e8d85fSIan Rogers    },
803*10e8d85fSIan Rogers    {
804*10e8d85fSIan Rogers        "BriefDescription": "This event counts the number of executed Intel AVX masked load operations that refer to an illegal address range with the mask bits set to 0.",
805*10e8d85fSIan Rogers        "Counter": "0,1,2,3",
806*10e8d85fSIan Rogers        "CounterHTOff": "0,1,2,3,4,5,6,7",
807*10e8d85fSIan Rogers        "EventCode": "0xC3",
808*10e8d85fSIan Rogers        "EventName": "MACHINE_CLEARS.MASKMOV",
809*10e8d85fSIan Rogers        "PublicDescription": "Maskmov false fault - counts number of time ucode passes through Maskmov flow due to instruction's mask being 0 while the flow was completed without raising a fault.",
810*10e8d85fSIan Rogers        "SampleAfterValue": "100003",
811*10e8d85fSIan Rogers        "UMask": "0x20"
812*10e8d85fSIan Rogers    },
813*10e8d85fSIan Rogers    {
814*10e8d85fSIan Rogers        "BriefDescription": "Self-modifying code (SMC) detected.",
815*10e8d85fSIan Rogers        "Counter": "0,1,2,3",
816*10e8d85fSIan Rogers        "CounterHTOff": "0,1,2,3,4,5,6,7",
817*10e8d85fSIan Rogers        "EventCode": "0xC3",
818*10e8d85fSIan Rogers        "EventName": "MACHINE_CLEARS.SMC",
819*10e8d85fSIan Rogers        "PublicDescription": "This event counts self-modifying code (SMC) detected, which causes a machine clear.",
820*10e8d85fSIan Rogers        "SampleAfterValue": "100003",
821*10e8d85fSIan Rogers        "UMask": "0x4"
822*10e8d85fSIan Rogers    },
823*10e8d85fSIan Rogers    {
824*10e8d85fSIan Rogers        "BriefDescription": "Number of integer Move Elimination candidate uops that were eliminated.",
825*10e8d85fSIan Rogers        "Counter": "0,1,2,3",
826*10e8d85fSIan Rogers        "CounterHTOff": "0,1,2,3,4,5,6,7",
827*10e8d85fSIan Rogers        "EventCode": "0x58",
828*10e8d85fSIan Rogers        "EventName": "MOVE_ELIMINATION.INT_ELIMINATED",
829*10e8d85fSIan Rogers        "SampleAfterValue": "1000003",
830*10e8d85fSIan Rogers        "UMask": "0x1"
831*10e8d85fSIan Rogers    },
832*10e8d85fSIan Rogers    {
833*10e8d85fSIan Rogers        "BriefDescription": "Number of integer Move Elimination candidate uops that were not eliminated.",
834*10e8d85fSIan Rogers        "Counter": "0,1,2,3",
835*10e8d85fSIan Rogers        "CounterHTOff": "0,1,2,3,4,5,6,7",
836*10e8d85fSIan Rogers        "EventCode": "0x58",
837*10e8d85fSIan Rogers        "EventName": "MOVE_ELIMINATION.INT_NOT_ELIMINATED",
838*10e8d85fSIan Rogers        "SampleAfterValue": "1000003",
839*10e8d85fSIan Rogers        "UMask": "0x4"
840*10e8d85fSIan Rogers    },
841*10e8d85fSIan Rogers    {
842*10e8d85fSIan Rogers        "BriefDescription": "Number of times any microcode assist is invoked by HW upon uop writeback.",
843*10e8d85fSIan Rogers        "Counter": "0,1,2,3",
844*10e8d85fSIan Rogers        "CounterHTOff": "0,1,2,3,4,5,6,7",
845*10e8d85fSIan Rogers        "EventCode": "0xC1",
846*10e8d85fSIan Rogers        "EventName": "OTHER_ASSISTS.ANY_WB_ASSIST",
847*10e8d85fSIan Rogers        "SampleAfterValue": "100003",
848*10e8d85fSIan Rogers        "UMask": "0x40"
849*10e8d85fSIan Rogers    },
850*10e8d85fSIan Rogers    {
851*10e8d85fSIan Rogers        "BriefDescription": "Resource-related stall cycles",
852*10e8d85fSIan Rogers        "Counter": "0,1,2,3",
853*10e8d85fSIan Rogers        "CounterHTOff": "0,1,2,3,4,5,6,7",
854*10e8d85fSIan Rogers        "EventCode": "0xa2",
855*10e8d85fSIan Rogers        "EventName": "RESOURCE_STALLS.ANY",
856*10e8d85fSIan Rogers        "PublicDescription": "This event counts resource-related stall cycles.",
857*10e8d85fSIan Rogers        "SampleAfterValue": "2000003",
858*10e8d85fSIan Rogers        "UMask": "0x1"
859*10e8d85fSIan Rogers    },
860*10e8d85fSIan Rogers    {
861*10e8d85fSIan Rogers        "BriefDescription": "Cycles stalled due to re-order buffer full.",
862*10e8d85fSIan Rogers        "Counter": "0,1,2,3",
863*10e8d85fSIan Rogers        "CounterHTOff": "0,1,2,3,4,5,6,7",
864*10e8d85fSIan Rogers        "EventCode": "0xA2",
865*10e8d85fSIan Rogers        "EventName": "RESOURCE_STALLS.ROB",
866*10e8d85fSIan Rogers        "PublicDescription": "This event counts ROB full stall cycles. This counts cycles that the pipeline backend blocked uop delivery from the front end.",
867*10e8d85fSIan Rogers        "SampleAfterValue": "2000003",
868*10e8d85fSIan Rogers        "UMask": "0x10"
869*10e8d85fSIan Rogers    },
870*10e8d85fSIan Rogers    {
871*10e8d85fSIan Rogers        "BriefDescription": "Cycles stalled due to no eligible RS entry available.",
872*10e8d85fSIan Rogers        "Counter": "0,1,2,3",
873*10e8d85fSIan Rogers        "CounterHTOff": "0,1,2,3,4,5,6,7",
874*10e8d85fSIan Rogers        "EventCode": "0xA2",
875*10e8d85fSIan Rogers        "EventName": "RESOURCE_STALLS.RS",
876*10e8d85fSIan Rogers        "PublicDescription": "This event counts stall cycles caused by absence of eligible entries in the reservation station (RS). This may result from RS overflow, or from RS deallocation because of the RS array Write Port allocation scheme (each RS entry has two write ports instead of four. As a result, empty entries could not be used, although RS is not really full). This counts cycles that the pipeline backend blocked uop delivery from the front end.",
877*10e8d85fSIan Rogers        "SampleAfterValue": "2000003",
878*10e8d85fSIan Rogers        "UMask": "0x4"
879*10e8d85fSIan Rogers    },
880*10e8d85fSIan Rogers    {
881*10e8d85fSIan Rogers        "BriefDescription": "Cycles stalled due to no store buffers available. (not including draining form sync).",
882*10e8d85fSIan Rogers        "Counter": "0,1,2,3",
883*10e8d85fSIan Rogers        "CounterHTOff": "0,1,2,3,4,5,6,7",
884*10e8d85fSIan Rogers        "EventCode": "0xA2",
885*10e8d85fSIan Rogers        "EventName": "RESOURCE_STALLS.SB",
886*10e8d85fSIan Rogers        "PublicDescription": "This event counts stall cycles caused by the store buffer (SB) overflow (excluding draining from synch). This counts cycles that the pipeline backend blocked uop delivery from the front end.",
887*10e8d85fSIan Rogers        "SampleAfterValue": "2000003",
888*10e8d85fSIan Rogers        "UMask": "0x8"
889*10e8d85fSIan Rogers    },
890*10e8d85fSIan Rogers    {
891*10e8d85fSIan Rogers        "BriefDescription": "Count cases of saving new LBR",
892*10e8d85fSIan Rogers        "Counter": "0,1,2,3",
893*10e8d85fSIan Rogers        "CounterHTOff": "0,1,2,3,4,5,6,7",
894*10e8d85fSIan Rogers        "EventCode": "0xCC",
895*10e8d85fSIan Rogers        "EventName": "ROB_MISC_EVENTS.LBR_INSERTS",
896*10e8d85fSIan Rogers        "PublicDescription": "This event counts cases of saving new LBR records by hardware. This assumes proper enabling of LBRs and takes into account LBR filtering done by the LBR_SELECT register.",
897*10e8d85fSIan Rogers        "SampleAfterValue": "2000003",
898*10e8d85fSIan Rogers        "UMask": "0x20"
899*10e8d85fSIan Rogers    },
900*10e8d85fSIan Rogers    {
901*10e8d85fSIan Rogers        "BriefDescription": "Cycles when Reservation Station (RS) is empty for the thread",
902*10e8d85fSIan Rogers        "Counter": "0,1,2,3",
903*10e8d85fSIan Rogers        "CounterHTOff": "0,1,2,3,4,5,6,7",
904*10e8d85fSIan Rogers        "EventCode": "0x5E",
905*10e8d85fSIan Rogers        "EventName": "RS_EVENTS.EMPTY_CYCLES",
906*10e8d85fSIan Rogers        "PublicDescription": "This event counts cycles during which the reservation station (RS) is empty for the thread.\nNote: In ST-mode, not active thread should drive 0. This is usually caused by severely costly branch mispredictions, or allocator/FE issues.",
907*10e8d85fSIan Rogers        "SampleAfterValue": "2000003",
908*10e8d85fSIan Rogers        "UMask": "0x1"
909*10e8d85fSIan Rogers    },
910*10e8d85fSIan Rogers    {
911*10e8d85fSIan Rogers        "BriefDescription": "Counts end of periods where the Reservation Station (RS) was empty. Could be useful to precisely locate Frontend Latency Bound issues.",
912*10e8d85fSIan Rogers        "Counter": "0,1,2,3",
913*10e8d85fSIan Rogers        "CounterHTOff": "0,1,2,3,4,5,6,7",
914*10e8d85fSIan Rogers        "CounterMask": "1",
915*10e8d85fSIan Rogers        "EdgeDetect": "1",
916*10e8d85fSIan Rogers        "EventCode": "0x5E",
917*10e8d85fSIan Rogers        "EventName": "RS_EVENTS.EMPTY_END",
918*10e8d85fSIan Rogers        "Invert": "1",
919*10e8d85fSIan Rogers        "SampleAfterValue": "200003",
920*10e8d85fSIan Rogers        "UMask": "0x1"
921*10e8d85fSIan Rogers    },
922*10e8d85fSIan Rogers    {
923*10e8d85fSIan Rogers        "BriefDescription": "Cycles per thread when uops are executed in port 0",
924*10e8d85fSIan Rogers        "Counter": "0,1,2,3",
925*10e8d85fSIan Rogers        "CounterHTOff": "0,1,2,3,4,5,6,7",
926*10e8d85fSIan Rogers        "EventCode": "0xA1",
927*10e8d85fSIan Rogers        "EventName": "UOPS_DISPATCHED_PORT.PORT_0",
928*10e8d85fSIan Rogers        "PublicDescription": "This event counts, on the per-thread basis, cycles during which uops are dispatched from the Reservation Station (RS) to port 0.",
929*10e8d85fSIan Rogers        "SampleAfterValue": "2000003",
930*10e8d85fSIan Rogers        "UMask": "0x1"
931*10e8d85fSIan Rogers    },
932*10e8d85fSIan Rogers    {
933*10e8d85fSIan Rogers        "BriefDescription": "Cycles per thread when uops are executed in port 1",
934*10e8d85fSIan Rogers        "Counter": "0,1,2,3",
935*10e8d85fSIan Rogers        "CounterHTOff": "0,1,2,3,4,5,6,7",
936*10e8d85fSIan Rogers        "EventCode": "0xA1",
937*10e8d85fSIan Rogers        "EventName": "UOPS_DISPATCHED_PORT.PORT_1",
938*10e8d85fSIan Rogers        "PublicDescription": "This event counts, on the per-thread basis, cycles during which uops are dispatched from the Reservation Station (RS) to port 1.",
939*10e8d85fSIan Rogers        "SampleAfterValue": "2000003",
940*10e8d85fSIan Rogers        "UMask": "0x2"
941*10e8d85fSIan Rogers    },
942*10e8d85fSIan Rogers    {
943*10e8d85fSIan Rogers        "BriefDescription": "Cycles per thread when uops are executed in port 2",
944*10e8d85fSIan Rogers        "Counter": "0,1,2,3",
945*10e8d85fSIan Rogers        "CounterHTOff": "0,1,2,3,4,5,6,7",
946*10e8d85fSIan Rogers        "EventCode": "0xA1",
947*10e8d85fSIan Rogers        "EventName": "UOPS_DISPATCHED_PORT.PORT_2",
948*10e8d85fSIan Rogers        "PublicDescription": "This event counts, on the per-thread basis, cycles during which uops are dispatched from the Reservation Station (RS) to port 2.",
949*10e8d85fSIan Rogers        "SampleAfterValue": "2000003",
950*10e8d85fSIan Rogers        "UMask": "0x4"
951*10e8d85fSIan Rogers    },
952*10e8d85fSIan Rogers    {
953*10e8d85fSIan Rogers        "BriefDescription": "Cycles per thread when uops are executed in port 3",
954*10e8d85fSIan Rogers        "Counter": "0,1,2,3",
955*10e8d85fSIan Rogers        "CounterHTOff": "0,1,2,3,4,5,6,7",
956*10e8d85fSIan Rogers        "EventCode": "0xA1",
957*10e8d85fSIan Rogers        "EventName": "UOPS_DISPATCHED_PORT.PORT_3",
958*10e8d85fSIan Rogers        "PublicDescription": "This event counts, on the per-thread basis, cycles during which uops are dispatched from the Reservation Station (RS) to port 3.",
959*10e8d85fSIan Rogers        "SampleAfterValue": "2000003",
960*10e8d85fSIan Rogers        "UMask": "0x8"
961*10e8d85fSIan Rogers    },
962*10e8d85fSIan Rogers    {
963*10e8d85fSIan Rogers        "BriefDescription": "Cycles per thread when uops are executed in port 4",
964*10e8d85fSIan Rogers        "Counter": "0,1,2,3",
965*10e8d85fSIan Rogers        "CounterHTOff": "0,1,2,3,4,5,6,7",
966*10e8d85fSIan Rogers        "EventCode": "0xA1",
967*10e8d85fSIan Rogers        "EventName": "UOPS_DISPATCHED_PORT.PORT_4",
968*10e8d85fSIan Rogers        "PublicDescription": "This event counts, on the per-thread basis, cycles during which uops are dispatched from the Reservation Station (RS) to port 4.",
969*10e8d85fSIan Rogers        "SampleAfterValue": "2000003",
970*10e8d85fSIan Rogers        "UMask": "0x10"
971*10e8d85fSIan Rogers    },
972*10e8d85fSIan Rogers    {
973*10e8d85fSIan Rogers        "BriefDescription": "Cycles per thread when uops are executed in port 5",
974*10e8d85fSIan Rogers        "Counter": "0,1,2,3",
975*10e8d85fSIan Rogers        "CounterHTOff": "0,1,2,3,4,5,6,7",
976*10e8d85fSIan Rogers        "EventCode": "0xA1",
977*10e8d85fSIan Rogers        "EventName": "UOPS_DISPATCHED_PORT.PORT_5",
978*10e8d85fSIan Rogers        "PublicDescription": "This event counts, on the per-thread basis, cycles during which uops are dispatched from the Reservation Station (RS) to port 5.",
979*10e8d85fSIan Rogers        "SampleAfterValue": "2000003",
980*10e8d85fSIan Rogers        "UMask": "0x20"
981*10e8d85fSIan Rogers    },
982*10e8d85fSIan Rogers    {
983*10e8d85fSIan Rogers        "BriefDescription": "Cycles per thread when uops are executed in port 6",
984*10e8d85fSIan Rogers        "Counter": "0,1,2,3",
985*10e8d85fSIan Rogers        "CounterHTOff": "0,1,2,3,4,5,6,7",
986*10e8d85fSIan Rogers        "EventCode": "0xA1",
987*10e8d85fSIan Rogers        "EventName": "UOPS_DISPATCHED_PORT.PORT_6",
988*10e8d85fSIan Rogers        "PublicDescription": "This event counts, on the per-thread basis, cycles during which uops are dispatched from the Reservation Station (RS) to port 6.",
989*10e8d85fSIan Rogers        "SampleAfterValue": "2000003",
990*10e8d85fSIan Rogers        "UMask": "0x40"
991*10e8d85fSIan Rogers    },
992*10e8d85fSIan Rogers    {
993*10e8d85fSIan Rogers        "BriefDescription": "Cycles per thread when uops are executed in port 7",
994*10e8d85fSIan Rogers        "Counter": "0,1,2,3",
995*10e8d85fSIan Rogers        "CounterHTOff": "0,1,2,3,4,5,6,7",
996*10e8d85fSIan Rogers        "EventCode": "0xA1",
997*10e8d85fSIan Rogers        "EventName": "UOPS_DISPATCHED_PORT.PORT_7",
998*10e8d85fSIan Rogers        "PublicDescription": "This event counts, on the per-thread basis, cycles during which uops are dispatched from the Reservation Station (RS) to port 7.",
999*10e8d85fSIan Rogers        "SampleAfterValue": "2000003",
1000*10e8d85fSIan Rogers        "UMask": "0x80"
1001*10e8d85fSIan Rogers    },
1002*10e8d85fSIan Rogers    {
1003*10e8d85fSIan Rogers        "BriefDescription": "Number of uops executed on the core.",
1004*10e8d85fSIan Rogers        "Counter": "0,1,2,3",
1005*10e8d85fSIan Rogers        "CounterHTOff": "0,1,2,3,4,5,6,7",
1006*10e8d85fSIan Rogers        "EventCode": "0xB1",
1007*10e8d85fSIan Rogers        "EventName": "UOPS_EXECUTED.CORE",
1008*10e8d85fSIan Rogers        "PublicDescription": "Number of uops executed from any thread.",
1009*10e8d85fSIan Rogers        "SampleAfterValue": "2000003",
1010*10e8d85fSIan Rogers        "UMask": "0x2"
1011*10e8d85fSIan Rogers    },
1012*10e8d85fSIan Rogers    {
1013*10e8d85fSIan Rogers        "BriefDescription": "Cycles at least 1 micro-op is executed from any thread on physical core.",
1014*10e8d85fSIan Rogers        "Counter": "0,1,2,3",
1015*10e8d85fSIan Rogers        "CounterHTOff": "0,1,2,3,4,5,6,7",
1016*10e8d85fSIan Rogers        "CounterMask": "1",
1017*10e8d85fSIan Rogers        "EventCode": "0xb1",
1018*10e8d85fSIan Rogers        "EventName": "UOPS_EXECUTED.CORE_CYCLES_GE_1",
1019*10e8d85fSIan Rogers        "SampleAfterValue": "2000003",
1020*10e8d85fSIan Rogers        "UMask": "0x2"
1021*10e8d85fSIan Rogers    },
1022*10e8d85fSIan Rogers    {
1023*10e8d85fSIan Rogers        "BriefDescription": "Cycles at least 2 micro-op is executed from any thread on physical core.",
1024*10e8d85fSIan Rogers        "Counter": "0,1,2,3",
1025*10e8d85fSIan Rogers        "CounterHTOff": "0,1,2,3,4,5,6,7",
1026*10e8d85fSIan Rogers        "CounterMask": "2",
1027*10e8d85fSIan Rogers        "EventCode": "0xb1",
1028*10e8d85fSIan Rogers        "EventName": "UOPS_EXECUTED.CORE_CYCLES_GE_2",
1029*10e8d85fSIan Rogers        "SampleAfterValue": "2000003",
1030*10e8d85fSIan Rogers        "UMask": "0x2"
1031*10e8d85fSIan Rogers    },
1032*10e8d85fSIan Rogers    {
1033*10e8d85fSIan Rogers        "BriefDescription": "Cycles at least 3 micro-op is executed from any thread on physical core.",
1034*10e8d85fSIan Rogers        "Counter": "0,1,2,3",
1035*10e8d85fSIan Rogers        "CounterHTOff": "0,1,2,3,4,5,6,7",
1036*10e8d85fSIan Rogers        "CounterMask": "3",
1037*10e8d85fSIan Rogers        "EventCode": "0xb1",
1038*10e8d85fSIan Rogers        "EventName": "UOPS_EXECUTED.CORE_CYCLES_GE_3",
1039*10e8d85fSIan Rogers        "SampleAfterValue": "2000003",
1040*10e8d85fSIan Rogers        "UMask": "0x2"
1041*10e8d85fSIan Rogers    },
1042*10e8d85fSIan Rogers    {
1043*10e8d85fSIan Rogers        "BriefDescription": "Cycles at least 4 micro-op is executed from any thread on physical core.",
1044*10e8d85fSIan Rogers        "Counter": "0,1,2,3",
1045*10e8d85fSIan Rogers        "CounterHTOff": "0,1,2,3,4,5,6,7",
1046*10e8d85fSIan Rogers        "CounterMask": "4",
1047*10e8d85fSIan Rogers        "EventCode": "0xb1",
1048*10e8d85fSIan Rogers        "EventName": "UOPS_EXECUTED.CORE_CYCLES_GE_4",
1049*10e8d85fSIan Rogers        "SampleAfterValue": "2000003",
1050*10e8d85fSIan Rogers        "UMask": "0x2"
1051*10e8d85fSIan Rogers    },
1052*10e8d85fSIan Rogers    {
1053*10e8d85fSIan Rogers        "BriefDescription": "Cycles with no micro-ops executed from any thread on physical core.",
1054*10e8d85fSIan Rogers        "Counter": "0,1,2,3",
1055*10e8d85fSIan Rogers        "CounterHTOff": "0,1,2,3,4,5,6,7",
1056*10e8d85fSIan Rogers        "EventCode": "0xb1",
1057*10e8d85fSIan Rogers        "EventName": "UOPS_EXECUTED.CORE_CYCLES_NONE",
1058*10e8d85fSIan Rogers        "Invert": "1",
1059*10e8d85fSIan Rogers        "SampleAfterValue": "2000003",
1060*10e8d85fSIan Rogers        "UMask": "0x2"
1061*10e8d85fSIan Rogers    },
1062*10e8d85fSIan Rogers    {
1063*10e8d85fSIan Rogers        "BriefDescription": "Cycles where at least 1 uop was executed per-thread.",
1064*10e8d85fSIan Rogers        "Counter": "0,1,2,3",
1065*10e8d85fSIan Rogers        "CounterHTOff": "0,1,2,3",
1066*10e8d85fSIan Rogers        "CounterMask": "1",
1067*10e8d85fSIan Rogers        "EventCode": "0xB1",
1068*10e8d85fSIan Rogers        "EventName": "UOPS_EXECUTED.CYCLES_GE_1_UOP_EXEC",
1069*10e8d85fSIan Rogers        "SampleAfterValue": "2000003",
1070*10e8d85fSIan Rogers        "UMask": "0x1"
1071*10e8d85fSIan Rogers    },
1072*10e8d85fSIan Rogers    {
1073*10e8d85fSIan Rogers        "BriefDescription": "Cycles where at least 2 uops were executed per-thread.",
1074*10e8d85fSIan Rogers        "Counter": "0,1,2,3",
1075*10e8d85fSIan Rogers        "CounterHTOff": "0,1,2,3",
1076*10e8d85fSIan Rogers        "CounterMask": "2",
1077*10e8d85fSIan Rogers        "EventCode": "0xB1",
1078*10e8d85fSIan Rogers        "EventName": "UOPS_EXECUTED.CYCLES_GE_2_UOPS_EXEC",
1079*10e8d85fSIan Rogers        "SampleAfterValue": "2000003",
1080*10e8d85fSIan Rogers        "UMask": "0x1"
1081*10e8d85fSIan Rogers    },
1082*10e8d85fSIan Rogers    {
1083*10e8d85fSIan Rogers        "BriefDescription": "Cycles where at least 3 uops were executed per-thread.",
1084*10e8d85fSIan Rogers        "Counter": "0,1,2,3",
1085*10e8d85fSIan Rogers        "CounterHTOff": "0,1,2,3",
1086*10e8d85fSIan Rogers        "CounterMask": "3",
1087*10e8d85fSIan Rogers        "EventCode": "0xB1",
1088*10e8d85fSIan Rogers        "EventName": "UOPS_EXECUTED.CYCLES_GE_3_UOPS_EXEC",
1089*10e8d85fSIan Rogers        "SampleAfterValue": "2000003",
1090*10e8d85fSIan Rogers        "UMask": "0x1"
1091*10e8d85fSIan Rogers    },
1092*10e8d85fSIan Rogers    {
1093*10e8d85fSIan Rogers        "BriefDescription": "Cycles where at least 4 uops were executed per-thread.",
1094*10e8d85fSIan Rogers        "Counter": "0,1,2,3",
1095*10e8d85fSIan Rogers        "CounterHTOff": "0,1,2,3",
1096*10e8d85fSIan Rogers        "CounterMask": "4",
1097*10e8d85fSIan Rogers        "EventCode": "0xB1",
1098*10e8d85fSIan Rogers        "EventName": "UOPS_EXECUTED.CYCLES_GE_4_UOPS_EXEC",
1099*10e8d85fSIan Rogers        "SampleAfterValue": "2000003",
1100*10e8d85fSIan Rogers        "UMask": "0x1"
1101*10e8d85fSIan Rogers    },
1102*10e8d85fSIan Rogers    {
1103*10e8d85fSIan Rogers        "BriefDescription": "Counts number of cycles no uops were dispatched to be executed on this thread.",
1104*10e8d85fSIan Rogers        "Counter": "0,1,2,3",
1105*10e8d85fSIan Rogers        "CounterHTOff": "0,1,2,3",
1106*10e8d85fSIan Rogers        "CounterMask": "1",
1107*10e8d85fSIan Rogers        "EventCode": "0xB1",
1108*10e8d85fSIan Rogers        "EventName": "UOPS_EXECUTED.STALL_CYCLES",
1109*10e8d85fSIan Rogers        "Invert": "1",
1110*10e8d85fSIan Rogers        "PublicDescription": "This event counts cycles during which no uops were dispatched from the Reservation Station (RS) per thread.",
1111*10e8d85fSIan Rogers        "SampleAfterValue": "2000003",
1112*10e8d85fSIan Rogers        "UMask": "0x1"
1113*10e8d85fSIan Rogers    },
1114*10e8d85fSIan Rogers    {
1115*10e8d85fSIan Rogers        "BriefDescription": "Counts the number of uops to be executed per-thread each cycle.",
1116*10e8d85fSIan Rogers        "Counter": "0,1,2,3",
1117*10e8d85fSIan Rogers        "CounterHTOff": "0,1,2,3,4,5,6,7",
1118*10e8d85fSIan Rogers        "EventCode": "0xB1",
1119*10e8d85fSIan Rogers        "EventName": "UOPS_EXECUTED.THREAD",
1120*10e8d85fSIan Rogers        "PublicDescription": "Number of uops to be executed per-thread each cycle.",
1121*10e8d85fSIan Rogers        "SampleAfterValue": "2000003",
1122*10e8d85fSIan Rogers        "UMask": "0x1"
1123*10e8d85fSIan Rogers    },
1124*10e8d85fSIan Rogers    {
1125*10e8d85fSIan Rogers        "BriefDescription": "Cycles per thread when uops are executed in port 0",
1126*10e8d85fSIan Rogers        "Counter": "0,1,2,3",
1127*10e8d85fSIan Rogers        "CounterHTOff": "0,1,2,3,4,5,6,7",
1128*10e8d85fSIan Rogers        "EventCode": "0xA1",
1129*10e8d85fSIan Rogers        "EventName": "UOPS_EXECUTED_PORT.PORT_0",
1130*10e8d85fSIan Rogers        "PublicDescription": "This event counts, on the per-thread basis, cycles during which uops are dispatched from the Reservation Station (RS) to port 0.",
1131*10e8d85fSIan Rogers        "SampleAfterValue": "2000003",
1132*10e8d85fSIan Rogers        "UMask": "0x1"
1133*10e8d85fSIan Rogers    },
1134*10e8d85fSIan Rogers    {
1135*10e8d85fSIan Rogers        "AnyThread": "1",
1136*10e8d85fSIan Rogers        "BriefDescription": "Cycles per core when uops are exectuted in port 0.",
1137*10e8d85fSIan Rogers        "Counter": "0,1,2,3",
1138*10e8d85fSIan Rogers        "CounterHTOff": "0,1,2,3,4,5,6,7",
1139*10e8d85fSIan Rogers        "EventCode": "0xA1",
1140*10e8d85fSIan Rogers        "EventName": "UOPS_EXECUTED_PORT.PORT_0_CORE",
1141*10e8d85fSIan Rogers        "SampleAfterValue": "2000003",
1142*10e8d85fSIan Rogers        "UMask": "0x1"
1143*10e8d85fSIan Rogers    },
1144*10e8d85fSIan Rogers    {
1145*10e8d85fSIan Rogers        "BriefDescription": "Cycles per thread when uops are executed in port 1",
1146*10e8d85fSIan Rogers        "Counter": "0,1,2,3",
1147*10e8d85fSIan Rogers        "CounterHTOff": "0,1,2,3,4,5,6,7",
1148*10e8d85fSIan Rogers        "EventCode": "0xA1",
1149*10e8d85fSIan Rogers        "EventName": "UOPS_EXECUTED_PORT.PORT_1",
1150*10e8d85fSIan Rogers        "PublicDescription": "This event counts, on the per-thread basis, cycles during which uops are dispatched from the Reservation Station (RS) to port 1.",
1151*10e8d85fSIan Rogers        "SampleAfterValue": "2000003",
1152*10e8d85fSIan Rogers        "UMask": "0x2"
1153*10e8d85fSIan Rogers    },
1154*10e8d85fSIan Rogers    {
1155*10e8d85fSIan Rogers        "AnyThread": "1",
1156*10e8d85fSIan Rogers        "BriefDescription": "Cycles per core when uops are exectuted in port 1.",
1157*10e8d85fSIan Rogers        "Counter": "0,1,2,3",
1158*10e8d85fSIan Rogers        "CounterHTOff": "0,1,2,3,4,5,6,7",
1159*10e8d85fSIan Rogers        "EventCode": "0xA1",
1160*10e8d85fSIan Rogers        "EventName": "UOPS_EXECUTED_PORT.PORT_1_CORE",
1161*10e8d85fSIan Rogers        "SampleAfterValue": "2000003",
1162*10e8d85fSIan Rogers        "UMask": "0x2"
1163*10e8d85fSIan Rogers    },
1164*10e8d85fSIan Rogers    {
1165*10e8d85fSIan Rogers        "BriefDescription": "Cycles per thread when uops are executed in port 2",
1166*10e8d85fSIan Rogers        "Counter": "0,1,2,3",
1167*10e8d85fSIan Rogers        "CounterHTOff": "0,1,2,3,4,5,6,7",
1168*10e8d85fSIan Rogers        "EventCode": "0xA1",
1169*10e8d85fSIan Rogers        "EventName": "UOPS_EXECUTED_PORT.PORT_2",
1170*10e8d85fSIan Rogers        "PublicDescription": "This event counts, on the per-thread basis, cycles during which uops are dispatched from the Reservation Station (RS) to port 2.",
1171*10e8d85fSIan Rogers        "SampleAfterValue": "2000003",
1172*10e8d85fSIan Rogers        "UMask": "0x4"
1173*10e8d85fSIan Rogers    },
1174*10e8d85fSIan Rogers    {
1175*10e8d85fSIan Rogers        "AnyThread": "1",
1176*10e8d85fSIan Rogers        "BriefDescription": "Cycles per core when uops are dispatched to port 2.",
1177*10e8d85fSIan Rogers        "Counter": "0,1,2,3",
1178*10e8d85fSIan Rogers        "CounterHTOff": "0,1,2,3,4,5,6,7",
1179*10e8d85fSIan Rogers        "EventCode": "0xA1",
1180*10e8d85fSIan Rogers        "EventName": "UOPS_EXECUTED_PORT.PORT_2_CORE",
1181*10e8d85fSIan Rogers        "SampleAfterValue": "2000003",
1182*10e8d85fSIan Rogers        "UMask": "0x4"
1183*10e8d85fSIan Rogers    },
1184*10e8d85fSIan Rogers    {
1185*10e8d85fSIan Rogers        "BriefDescription": "Cycles per thread when uops are executed in port 3",
1186*10e8d85fSIan Rogers        "Counter": "0,1,2,3",
1187*10e8d85fSIan Rogers        "CounterHTOff": "0,1,2,3,4,5,6,7",
1188*10e8d85fSIan Rogers        "EventCode": "0xA1",
1189*10e8d85fSIan Rogers        "EventName": "UOPS_EXECUTED_PORT.PORT_3",
1190*10e8d85fSIan Rogers        "PublicDescription": "This event counts, on the per-thread basis, cycles during which uops are dispatched from the Reservation Station (RS) to port 3.",
1191*10e8d85fSIan Rogers        "SampleAfterValue": "2000003",
1192*10e8d85fSIan Rogers        "UMask": "0x8"
1193*10e8d85fSIan Rogers    },
1194*10e8d85fSIan Rogers    {
1195*10e8d85fSIan Rogers        "AnyThread": "1",
1196*10e8d85fSIan Rogers        "BriefDescription": "Cycles per core when uops are dispatched to port 3.",
1197*10e8d85fSIan Rogers        "Counter": "0,1,2,3",
1198*10e8d85fSIan Rogers        "CounterHTOff": "0,1,2,3,4,5,6,7",
1199*10e8d85fSIan Rogers        "EventCode": "0xA1",
1200*10e8d85fSIan Rogers        "EventName": "UOPS_EXECUTED_PORT.PORT_3_CORE",
1201*10e8d85fSIan Rogers        "SampleAfterValue": "2000003",
1202*10e8d85fSIan Rogers        "UMask": "0x8"
1203*10e8d85fSIan Rogers    },
1204*10e8d85fSIan Rogers    {
1205*10e8d85fSIan Rogers        "BriefDescription": "Cycles per thread when uops are executed in port 4",
1206*10e8d85fSIan Rogers        "Counter": "0,1,2,3",
1207*10e8d85fSIan Rogers        "CounterHTOff": "0,1,2,3,4,5,6,7",
1208*10e8d85fSIan Rogers        "EventCode": "0xA1",
1209*10e8d85fSIan Rogers        "EventName": "UOPS_EXECUTED_PORT.PORT_4",
1210*10e8d85fSIan Rogers        "PublicDescription": "This event counts, on the per-thread basis, cycles during which uops are dispatched from the Reservation Station (RS) to port 4.",
1211*10e8d85fSIan Rogers        "SampleAfterValue": "2000003",
1212*10e8d85fSIan Rogers        "UMask": "0x10"
1213*10e8d85fSIan Rogers    },
1214*10e8d85fSIan Rogers    {
1215*10e8d85fSIan Rogers        "AnyThread": "1",
1216*10e8d85fSIan Rogers        "BriefDescription": "Cycles per core when uops are exectuted in port 4.",
1217*10e8d85fSIan Rogers        "Counter": "0,1,2,3",
1218*10e8d85fSIan Rogers        "CounterHTOff": "0,1,2,3,4,5,6,7",
1219*10e8d85fSIan Rogers        "EventCode": "0xA1",
1220*10e8d85fSIan Rogers        "EventName": "UOPS_EXECUTED_PORT.PORT_4_CORE",
1221*10e8d85fSIan Rogers        "SampleAfterValue": "2000003",
1222*10e8d85fSIan Rogers        "UMask": "0x10"
1223*10e8d85fSIan Rogers    },
1224*10e8d85fSIan Rogers    {
1225*10e8d85fSIan Rogers        "BriefDescription": "Cycles per thread when uops are executed in port 5",
1226*10e8d85fSIan Rogers        "Counter": "0,1,2,3",
1227*10e8d85fSIan Rogers        "CounterHTOff": "0,1,2,3,4,5,6,7",
1228*10e8d85fSIan Rogers        "EventCode": "0xA1",
1229*10e8d85fSIan Rogers        "EventName": "UOPS_EXECUTED_PORT.PORT_5",
1230*10e8d85fSIan Rogers        "PublicDescription": "This event counts, on the per-thread basis, cycles during which uops are dispatched from the Reservation Station (RS) to port 5.",
1231*10e8d85fSIan Rogers        "SampleAfterValue": "2000003",
1232*10e8d85fSIan Rogers        "UMask": "0x20"
1233*10e8d85fSIan Rogers    },
1234*10e8d85fSIan Rogers    {
1235*10e8d85fSIan Rogers        "AnyThread": "1",
1236*10e8d85fSIan Rogers        "BriefDescription": "Cycles per core when uops are exectuted in port 5.",
1237*10e8d85fSIan Rogers        "Counter": "0,1,2,3",
1238*10e8d85fSIan Rogers        "CounterHTOff": "0,1,2,3,4,5,6,7",
1239*10e8d85fSIan Rogers        "EventCode": "0xA1",
1240*10e8d85fSIan Rogers        "EventName": "UOPS_EXECUTED_PORT.PORT_5_CORE",
1241*10e8d85fSIan Rogers        "SampleAfterValue": "2000003",
1242*10e8d85fSIan Rogers        "UMask": "0x20"
1243*10e8d85fSIan Rogers    },
1244*10e8d85fSIan Rogers    {
1245*10e8d85fSIan Rogers        "BriefDescription": "Cycles per thread when uops are executed in port 6",
1246*10e8d85fSIan Rogers        "Counter": "0,1,2,3",
1247*10e8d85fSIan Rogers        "CounterHTOff": "0,1,2,3,4,5,6,7",
1248*10e8d85fSIan Rogers        "EventCode": "0xA1",
1249*10e8d85fSIan Rogers        "EventName": "UOPS_EXECUTED_PORT.PORT_6",
1250*10e8d85fSIan Rogers        "PublicDescription": "This event counts, on the per-thread basis, cycles during which uops are dispatched from the Reservation Station (RS) to port 6.",
1251*10e8d85fSIan Rogers        "SampleAfterValue": "2000003",
1252*10e8d85fSIan Rogers        "UMask": "0x40"
1253*10e8d85fSIan Rogers    },
1254*10e8d85fSIan Rogers    {
1255*10e8d85fSIan Rogers        "AnyThread": "1",
1256*10e8d85fSIan Rogers        "BriefDescription": "Cycles per core when uops are exectuted in port 6.",
1257*10e8d85fSIan Rogers        "Counter": "0,1,2,3",
1258*10e8d85fSIan Rogers        "CounterHTOff": "0,1,2,3,4,5,6,7",
1259*10e8d85fSIan Rogers        "EventCode": "0xA1",
1260*10e8d85fSIan Rogers        "EventName": "UOPS_EXECUTED_PORT.PORT_6_CORE",
1261*10e8d85fSIan Rogers        "SampleAfterValue": "2000003",
1262*10e8d85fSIan Rogers        "UMask": "0x40"
1263*10e8d85fSIan Rogers    },
1264*10e8d85fSIan Rogers    {
1265*10e8d85fSIan Rogers        "BriefDescription": "Cycles per thread when uops are executed in port 7",
1266*10e8d85fSIan Rogers        "Counter": "0,1,2,3",
1267*10e8d85fSIan Rogers        "CounterHTOff": "0,1,2,3,4,5,6,7",
1268*10e8d85fSIan Rogers        "EventCode": "0xA1",
1269*10e8d85fSIan Rogers        "EventName": "UOPS_EXECUTED_PORT.PORT_7",
1270*10e8d85fSIan Rogers        "PublicDescription": "This event counts, on the per-thread basis, cycles during which uops are dispatched from the Reservation Station (RS) to port 7.",
1271*10e8d85fSIan Rogers        "SampleAfterValue": "2000003",
1272*10e8d85fSIan Rogers        "UMask": "0x80"
1273*10e8d85fSIan Rogers    },
1274*10e8d85fSIan Rogers    {
1275*10e8d85fSIan Rogers        "AnyThread": "1",
1276*10e8d85fSIan Rogers        "BriefDescription": "Cycles per core when uops are dispatched to port 7.",
1277*10e8d85fSIan Rogers        "Counter": "0,1,2,3",
1278*10e8d85fSIan Rogers        "CounterHTOff": "0,1,2,3,4,5,6,7",
1279*10e8d85fSIan Rogers        "EventCode": "0xA1",
1280*10e8d85fSIan Rogers        "EventName": "UOPS_EXECUTED_PORT.PORT_7_CORE",
1281*10e8d85fSIan Rogers        "SampleAfterValue": "2000003",
1282*10e8d85fSIan Rogers        "UMask": "0x80"
1283*10e8d85fSIan Rogers    },
1284*10e8d85fSIan Rogers    {
1285*10e8d85fSIan Rogers        "BriefDescription": "Uops that Resource Allocation Table (RAT) issues to Reservation Station (RS)",
1286*10e8d85fSIan Rogers        "Counter": "0,1,2,3",
1287*10e8d85fSIan Rogers        "CounterHTOff": "0,1,2,3,4,5,6,7",
1288*10e8d85fSIan Rogers        "EventCode": "0x0E",
1289*10e8d85fSIan Rogers        "EventName": "UOPS_ISSUED.ANY",
1290*10e8d85fSIan Rogers        "PublicDescription": "This event counts the number of Uops issued by the Resource Allocation Table (RAT) to the reservation station (RS).",
1291*10e8d85fSIan Rogers        "SampleAfterValue": "2000003",
1292*10e8d85fSIan Rogers        "UMask": "0x1"
1293*10e8d85fSIan Rogers    },
1294*10e8d85fSIan Rogers    {
1295*10e8d85fSIan Rogers        "BriefDescription": "Number of flags-merge uops being allocated. Such uops considered perf sensitive; added by GSR u-arch.",
1296*10e8d85fSIan Rogers        "Counter": "0,1,2,3",
1297*10e8d85fSIan Rogers        "CounterHTOff": "0,1,2,3,4,5,6,7",
1298*10e8d85fSIan Rogers        "EventCode": "0x0E",
1299*10e8d85fSIan Rogers        "EventName": "UOPS_ISSUED.FLAGS_MERGE",
1300*10e8d85fSIan Rogers        "PublicDescription": "Number of flags-merge uops being allocated. Such uops considered perf sensitive\n added by GSR u-arch.",
1301*10e8d85fSIan Rogers        "SampleAfterValue": "2000003",
1302*10e8d85fSIan Rogers        "UMask": "0x10"
1303*10e8d85fSIan Rogers    },
1304*10e8d85fSIan Rogers    {
1305*10e8d85fSIan Rogers        "BriefDescription": "Number of Multiply packed/scalar single precision uops allocated.",
1306*10e8d85fSIan Rogers        "Counter": "0,1,2,3",
1307*10e8d85fSIan Rogers        "CounterHTOff": "0,1,2,3,4,5,6,7",
1308*10e8d85fSIan Rogers        "EventCode": "0x0E",
1309*10e8d85fSIan Rogers        "EventName": "UOPS_ISSUED.SINGLE_MUL",
1310*10e8d85fSIan Rogers        "SampleAfterValue": "2000003",
1311*10e8d85fSIan Rogers        "UMask": "0x40"
1312*10e8d85fSIan Rogers    },
1313*10e8d85fSIan Rogers    {
1314*10e8d85fSIan Rogers        "BriefDescription": "Number of slow LEA uops being allocated. A uop is generally considered SlowLea if it has 3 sources (e.g. 2 sources + immediate) regardless if as a result of LEA instruction or not.",
1315*10e8d85fSIan Rogers        "Counter": "0,1,2,3",
1316*10e8d85fSIan Rogers        "CounterHTOff": "0,1,2,3,4,5,6,7",
1317*10e8d85fSIan Rogers        "EventCode": "0x0E",
1318*10e8d85fSIan Rogers        "EventName": "UOPS_ISSUED.SLOW_LEA",
1319*10e8d85fSIan Rogers        "SampleAfterValue": "2000003",
1320*10e8d85fSIan Rogers        "UMask": "0x20"
1321*10e8d85fSIan Rogers    },
1322*10e8d85fSIan Rogers    {
1323*10e8d85fSIan Rogers        "BriefDescription": "Cycles when Resource Allocation Table (RAT) does not issue Uops to Reservation Station (RS) for the thread",
1324*10e8d85fSIan Rogers        "Counter": "0,1,2,3",
1325*10e8d85fSIan Rogers        "CounterHTOff": "0,1,2,3",
1326*10e8d85fSIan Rogers        "CounterMask": "1",
1327*10e8d85fSIan Rogers        "EventCode": "0x0E",
1328*10e8d85fSIan Rogers        "EventName": "UOPS_ISSUED.STALL_CYCLES",
1329*10e8d85fSIan Rogers        "Invert": "1",
1330*10e8d85fSIan Rogers        "PublicDescription": "This event counts cycles during which the Resource Allocation Table (RAT) does not issue any Uops to the reservation station (RS) for the current thread.",
1331*10e8d85fSIan Rogers        "SampleAfterValue": "2000003",
1332*10e8d85fSIan Rogers        "UMask": "0x1"
1333*10e8d85fSIan Rogers    },
1334*10e8d85fSIan Rogers    {
1335*10e8d85fSIan Rogers        "BriefDescription": "Actually retired uops.",
1336*10e8d85fSIan Rogers        "Counter": "0,1,2,3",
1337*10e8d85fSIan Rogers        "CounterHTOff": "0,1,2,3,4,5,6,7",
1338*10e8d85fSIan Rogers        "EventCode": "0xC2",
1339*10e8d85fSIan Rogers        "EventName": "UOPS_RETIRED.ALL",
1340*10e8d85fSIan Rogers        "PEBS": "1",
1341*10e8d85fSIan Rogers        "PublicDescription": "This event counts all actually retired uops. Counting increments by two for micro-fused uops, and by one for macro-fused and other uops. Maximal increment value for one cycle is eight.",
1342*10e8d85fSIan Rogers        "SampleAfterValue": "2000003",
1343*10e8d85fSIan Rogers        "UMask": "0x1"
1344*10e8d85fSIan Rogers    },
1345*10e8d85fSIan Rogers    {
1346*10e8d85fSIan Rogers        "BriefDescription": "Retirement slots used.",
1347*10e8d85fSIan Rogers        "Counter": "0,1,2,3",
1348*10e8d85fSIan Rogers        "CounterHTOff": "0,1,2,3,4,5,6,7",
1349*10e8d85fSIan Rogers        "EventCode": "0xC2",
1350*10e8d85fSIan Rogers        "EventName": "UOPS_RETIRED.RETIRE_SLOTS",
1351*10e8d85fSIan Rogers        "PEBS": "1",
1352*10e8d85fSIan Rogers        "PublicDescription": "This event counts the number of retirement slots used.",
1353*10e8d85fSIan Rogers        "SampleAfterValue": "2000003",
1354*10e8d85fSIan Rogers        "UMask": "0x2"
1355*10e8d85fSIan Rogers    },
1356*10e8d85fSIan Rogers    {
1357*10e8d85fSIan Rogers        "BriefDescription": "Cycles without actually retired uops.",
1358*10e8d85fSIan Rogers        "Counter": "0,1,2,3",
1359*10e8d85fSIan Rogers        "CounterHTOff": "0,1,2,3",
1360*10e8d85fSIan Rogers        "CounterMask": "1",
1361*10e8d85fSIan Rogers        "EventCode": "0xC2",
1362*10e8d85fSIan Rogers        "EventName": "UOPS_RETIRED.STALL_CYCLES",
1363*10e8d85fSIan Rogers        "Invert": "1",
1364*10e8d85fSIan Rogers        "PublicDescription": "This event counts cycles without actually retired uops.",
1365*10e8d85fSIan Rogers        "SampleAfterValue": "2000003",
1366*10e8d85fSIan Rogers        "UMask": "0x1"
1367*10e8d85fSIan Rogers    },
1368*10e8d85fSIan Rogers    {
1369*10e8d85fSIan Rogers        "BriefDescription": "Cycles with less than 10 actually retired uops.",
1370*10e8d85fSIan Rogers        "Counter": "0,1,2,3",
1371*10e8d85fSIan Rogers        "CounterHTOff": "0,1,2,3",
1372*10e8d85fSIan Rogers        "CounterMask": "10",
1373*10e8d85fSIan Rogers        "EventCode": "0xC2",
1374*10e8d85fSIan Rogers        "EventName": "UOPS_RETIRED.TOTAL_CYCLES",
1375*10e8d85fSIan Rogers        "Invert": "1",
1376*10e8d85fSIan Rogers        "PublicDescription": "Number of cycles using always true condition (uops_ret < 16) applied to non PEBS uops retired event.",
1377*10e8d85fSIan Rogers        "SampleAfterValue": "2000003",
1378*10e8d85fSIan Rogers        "UMask": "0x1"
1379b74d1315SAndi Kleen    }
1380b74d1315SAndi Kleen]