119c0389bSAndi Kleen[
219c0389bSAndi Kleen    {
319c0389bSAndi Kleen        "BriefDescription": "Cycles when divider is busy executing divide operations",
419c0389bSAndi Kleen        "Counter": "0,1,2,3",
5*56f57cffSIan Rogers        "CounterHTOff": "0,1,2,3,4,5,6,7",
6*56f57cffSIan Rogers        "EventCode": "0x14",
719c0389bSAndi Kleen        "EventName": "ARITH.FPU_DIV_ACTIVE",
819c0389bSAndi Kleen        "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.",
919c0389bSAndi Kleen        "SampleAfterValue": "2000003",
10*56f57cffSIan Rogers        "UMask": "0x1"
1119c0389bSAndi Kleen    },
1219c0389bSAndi Kleen    {
1319c0389bSAndi Kleen        "BriefDescription": "Speculative and retired  branches",
1419c0389bSAndi Kleen        "Counter": "0,1,2,3",
15*56f57cffSIan Rogers        "CounterHTOff": "0,1,2,3,4,5,6,7",
16*56f57cffSIan Rogers        "EventCode": "0x88",
1719c0389bSAndi Kleen        "EventName": "BR_INST_EXEC.ALL_BRANCHES",
1819c0389bSAndi Kleen        "PublicDescription": "This event counts both taken and not taken speculative and retired branch instructions.",
1919c0389bSAndi Kleen        "SampleAfterValue": "200003",
20*56f57cffSIan Rogers        "UMask": "0xff"
2119c0389bSAndi Kleen    },
2219c0389bSAndi Kleen    {
23*56f57cffSIan Rogers        "BriefDescription": "Speculative and retired macro-conditional branches",
2419c0389bSAndi Kleen        "Counter": "0,1,2,3",
25*56f57cffSIan Rogers        "CounterHTOff": "0,1,2,3,4,5,6,7",
26*56f57cffSIan Rogers        "EventCode": "0x88",
27*56f57cffSIan Rogers        "EventName": "BR_INST_EXEC.ALL_CONDITIONAL",
28*56f57cffSIan Rogers        "PublicDescription": "This event counts both taken and not taken speculative and retired macro-conditional branch instructions.",
2919c0389bSAndi Kleen        "SampleAfterValue": "200003",
30*56f57cffSIan Rogers        "UMask": "0xc1"
3119c0389bSAndi Kleen    },
3219c0389bSAndi Kleen    {
33*56f57cffSIan Rogers        "BriefDescription": "Speculative and retired macro-unconditional branches excluding calls and indirects",
3419c0389bSAndi Kleen        "Counter": "0,1,2,3",
35*56f57cffSIan Rogers        "CounterHTOff": "0,1,2,3,4,5,6,7",
36*56f57cffSIan Rogers        "EventCode": "0x88",
37*56f57cffSIan Rogers        "EventName": "BR_INST_EXEC.ALL_DIRECT_JMP",
38*56f57cffSIan Rogers        "PublicDescription": "This event counts both taken and not taken speculative and retired macro-unconditional branch instructions, excluding calls and indirects.",
3919c0389bSAndi Kleen        "SampleAfterValue": "200003",
40*56f57cffSIan Rogers        "UMask": "0xc2"
4119c0389bSAndi Kleen    },
4219c0389bSAndi Kleen    {
43*56f57cffSIan Rogers        "BriefDescription": "Speculative and retired direct near calls",
4419c0389bSAndi Kleen        "Counter": "0,1,2,3",
45*56f57cffSIan Rogers        "CounterHTOff": "0,1,2,3,4,5,6,7",
46*56f57cffSIan Rogers        "EventCode": "0x88",
47*56f57cffSIan Rogers        "EventName": "BR_INST_EXEC.ALL_DIRECT_NEAR_CALL",
48*56f57cffSIan Rogers        "PublicDescription": "This event counts both taken and not taken speculative and retired direct near calls.",
4919c0389bSAndi Kleen        "SampleAfterValue": "200003",
50*56f57cffSIan Rogers        "UMask": "0xd0"
5119c0389bSAndi Kleen    },
5219c0389bSAndi Kleen    {
53*56f57cffSIan Rogers        "BriefDescription": "Speculative and retired indirect branches excluding calls and returns",
5419c0389bSAndi Kleen        "Counter": "0,1,2,3",
55*56f57cffSIan Rogers        "CounterHTOff": "0,1,2,3,4,5,6,7",
56*56f57cffSIan Rogers        "EventCode": "0x88",
57*56f57cffSIan Rogers        "EventName": "BR_INST_EXEC.ALL_INDIRECT_JUMP_NON_CALL_RET",
58*56f57cffSIan Rogers        "PublicDescription": "This event counts both taken and not taken speculative and retired indirect branches excluding calls and return branches.",
5919c0389bSAndi Kleen        "SampleAfterValue": "200003",
60*56f57cffSIan Rogers        "UMask": "0xc4"
6119c0389bSAndi Kleen    },
6219c0389bSAndi Kleen    {
63*56f57cffSIan Rogers        "BriefDescription": "Speculative and retired indirect return branches.",
6497d00f2dSAndi Kleen        "Counter": "0,1,2,3",
65*56f57cffSIan Rogers        "CounterHTOff": "0,1,2,3,4,5,6,7",
66*56f57cffSIan Rogers        "EventCode": "0x88",
67*56f57cffSIan Rogers        "EventName": "BR_INST_EXEC.ALL_INDIRECT_NEAR_RETURN",
68*56f57cffSIan Rogers        "PublicDescription": "This event counts both taken and not taken speculative and retired indirect branches that have a return mnemonic.",
6997d00f2dSAndi Kleen        "SampleAfterValue": "200003",
70*56f57cffSIan Rogers        "UMask": "0xc8"
7197d00f2dSAndi Kleen    },
7297d00f2dSAndi Kleen    {
73*56f57cffSIan Rogers        "BriefDescription": "Not taken macro-conditional branches",
7419c0389bSAndi Kleen        "Counter": "0,1,2,3",
75*56f57cffSIan Rogers        "CounterHTOff": "0,1,2,3,4,5,6,7",
76*56f57cffSIan Rogers        "EventCode": "0x88",
77*56f57cffSIan Rogers        "EventName": "BR_INST_EXEC.NONTAKEN_CONDITIONAL",
78*56f57cffSIan Rogers        "PublicDescription": "This event counts not taken macro-conditional branch instructions.",
7919c0389bSAndi Kleen        "SampleAfterValue": "200003",
80*56f57cffSIan Rogers        "UMask": "0x41"
8119c0389bSAndi Kleen    },
8219c0389bSAndi Kleen    {
83*56f57cffSIan Rogers        "BriefDescription": "Taken speculative and retired macro-conditional branches",
8419c0389bSAndi Kleen        "Counter": "0,1,2,3",
85*56f57cffSIan Rogers        "CounterHTOff": "0,1,2,3,4,5,6,7",
86*56f57cffSIan Rogers        "EventCode": "0x88",
87*56f57cffSIan Rogers        "EventName": "BR_INST_EXEC.TAKEN_CONDITIONAL",
88*56f57cffSIan Rogers        "PublicDescription": "This event counts taken speculative and retired macro-conditional branch instructions.",
8919c0389bSAndi Kleen        "SampleAfterValue": "200003",
90*56f57cffSIan Rogers        "UMask": "0x81"
9119c0389bSAndi Kleen    },
9219c0389bSAndi Kleen    {
93*56f57cffSIan Rogers        "BriefDescription": "Taken speculative and retired macro-conditional branch instructions excluding calls and indirects",
9419c0389bSAndi Kleen        "Counter": "0,1,2,3",
95*56f57cffSIan Rogers        "CounterHTOff": "0,1,2,3,4,5,6,7",
96*56f57cffSIan Rogers        "EventCode": "0x88",
97*56f57cffSIan Rogers        "EventName": "BR_INST_EXEC.TAKEN_DIRECT_JUMP",
98*56f57cffSIan Rogers        "PublicDescription": "This event counts taken speculative and retired macro-conditional branch instructions excluding calls and indirect branches.",
9919c0389bSAndi Kleen        "SampleAfterValue": "200003",
100*56f57cffSIan Rogers        "UMask": "0x82"
10119c0389bSAndi Kleen    },
10219c0389bSAndi Kleen    {
103*56f57cffSIan Rogers        "BriefDescription": "Taken speculative and retired direct near calls",
10497d00f2dSAndi Kleen        "Counter": "0,1,2,3",
105*56f57cffSIan Rogers        "CounterHTOff": "0,1,2,3,4,5,6,7",
106*56f57cffSIan Rogers        "EventCode": "0x88",
107*56f57cffSIan Rogers        "EventName": "BR_INST_EXEC.TAKEN_DIRECT_NEAR_CALL",
108*56f57cffSIan Rogers        "PublicDescription": "This event counts taken speculative and retired direct near calls.",
109*56f57cffSIan Rogers        "SampleAfterValue": "200003",
110*56f57cffSIan Rogers        "UMask": "0x90"
11197d00f2dSAndi Kleen    },
11297d00f2dSAndi Kleen    {
113*56f57cffSIan Rogers        "BriefDescription": "Taken speculative and retired indirect branches excluding calls and returns",
11419c0389bSAndi Kleen        "Counter": "0,1,2,3",
115*56f57cffSIan Rogers        "CounterHTOff": "0,1,2,3,4,5,6,7",
116*56f57cffSIan Rogers        "EventCode": "0x88",
117*56f57cffSIan Rogers        "EventName": "BR_INST_EXEC.TAKEN_INDIRECT_JUMP_NON_CALL_RET",
118*56f57cffSIan Rogers        "PublicDescription": "This event counts taken speculative and retired indirect branches excluding calls and return branches.",
119*56f57cffSIan Rogers        "SampleAfterValue": "200003",
120*56f57cffSIan Rogers        "UMask": "0x84"
12119c0389bSAndi Kleen    },
12219c0389bSAndi Kleen    {
123*56f57cffSIan Rogers        "BriefDescription": "Taken speculative and retired indirect calls",
12497d00f2dSAndi Kleen        "Counter": "0,1,2,3",
125*56f57cffSIan Rogers        "CounterHTOff": "0,1,2,3,4,5,6,7",
126*56f57cffSIan Rogers        "EventCode": "0x88",
127*56f57cffSIan Rogers        "EventName": "BR_INST_EXEC.TAKEN_INDIRECT_NEAR_CALL",
128*56f57cffSIan Rogers        "PublicDescription": "This event counts taken speculative and retired indirect calls including both register and memory indirect.",
129*56f57cffSIan Rogers        "SampleAfterValue": "200003",
130*56f57cffSIan Rogers        "UMask": "0xa0"
13197d00f2dSAndi Kleen    },
13297d00f2dSAndi Kleen    {
133*56f57cffSIan Rogers        "BriefDescription": "Taken speculative and retired indirect branches with return mnemonic",
13497d00f2dSAndi Kleen        "Counter": "0,1,2,3",
135*56f57cffSIan Rogers        "CounterHTOff": "0,1,2,3,4,5,6,7",
136*56f57cffSIan Rogers        "EventCode": "0x88",
137*56f57cffSIan Rogers        "EventName": "BR_INST_EXEC.TAKEN_INDIRECT_NEAR_RETURN",
138*56f57cffSIan Rogers        "PublicDescription": "This event counts taken speculative and retired indirect branches that have a return mnemonic.",
139*56f57cffSIan Rogers        "SampleAfterValue": "200003",
140*56f57cffSIan Rogers        "UMask": "0x88"
14197d00f2dSAndi Kleen    },
14297d00f2dSAndi Kleen    {
14397d00f2dSAndi Kleen        "BriefDescription": "All (macro) branch instructions retired.",
14497d00f2dSAndi Kleen        "Counter": "0,1,2,3",
145*56f57cffSIan Rogers        "CounterHTOff": "0,1,2,3,4,5,6,7",
146*56f57cffSIan Rogers        "EventCode": "0xC4",
14797d00f2dSAndi Kleen        "EventName": "BR_INST_RETIRED.ALL_BRANCHES",
14897d00f2dSAndi Kleen        "PublicDescription": "This event counts all (macro) branch instructions retired.",
149*56f57cffSIan Rogers        "SampleAfterValue": "400009"
15097d00f2dSAndi Kleen    },
15197d00f2dSAndi Kleen    {
15297d00f2dSAndi Kleen        "BriefDescription": "All (macro) branch instructions retired. (Precise Event - PEBS)",
15397d00f2dSAndi Kleen        "Counter": "0,1,2,3",
154*56f57cffSIan Rogers        "CounterHTOff": "0,1,2,3",
15597d00f2dSAndi Kleen        "Errata": "BDW98",
156*56f57cffSIan Rogers        "EventCode": "0xC4",
157*56f57cffSIan Rogers        "EventName": "BR_INST_RETIRED.ALL_BRANCHES_PEBS",
158*56f57cffSIan Rogers        "PEBS": "2",
15997d00f2dSAndi Kleen        "PublicDescription": "This is a precise version of BR_INST_RETIRED.ALL_BRANCHES that counts all (macro) branch instructions retired.",
16097d00f2dSAndi Kleen        "SampleAfterValue": "400009",
161*56f57cffSIan Rogers        "UMask": "0x4"
16297d00f2dSAndi Kleen    },
16397d00f2dSAndi Kleen    {
164*56f57cffSIan Rogers        "BriefDescription": "Conditional branch instructions retired.",
16597d00f2dSAndi Kleen        "Counter": "0,1,2,3",
166*56f57cffSIan Rogers        "CounterHTOff": "0,1,2,3,4,5,6,7",
167*56f57cffSIan Rogers        "EventCode": "0xC4",
168*56f57cffSIan Rogers        "EventName": "BR_INST_RETIRED.CONDITIONAL",
169*56f57cffSIan Rogers        "PEBS": "1",
170*56f57cffSIan Rogers        "PublicDescription": "This event counts conditional branch instructions retired.",
171*56f57cffSIan Rogers        "SampleAfterValue": "400009",
172*56f57cffSIan Rogers        "UMask": "0x1"
173*56f57cffSIan Rogers    },
174*56f57cffSIan Rogers    {
175*56f57cffSIan Rogers        "BriefDescription": "Far branch instructions retired.",
176*56f57cffSIan Rogers        "Counter": "0,1,2,3",
177*56f57cffSIan Rogers        "CounterHTOff": "0,1,2,3,4,5,6,7",
178*56f57cffSIan Rogers        "Errata": "BDW98",
179*56f57cffSIan Rogers        "EventCode": "0xC4",
180*56f57cffSIan Rogers        "EventName": "BR_INST_RETIRED.FAR_BRANCH",
181*56f57cffSIan Rogers        "PublicDescription": "This event counts far branch instructions retired.",
182*56f57cffSIan Rogers        "SampleAfterValue": "100007",
183*56f57cffSIan Rogers        "UMask": "0x40"
184*56f57cffSIan Rogers    },
185*56f57cffSIan Rogers    {
186*56f57cffSIan Rogers        "BriefDescription": "Direct and indirect near call instructions retired.",
187*56f57cffSIan Rogers        "Counter": "0,1,2,3",
188*56f57cffSIan Rogers        "CounterHTOff": "0,1,2,3,4,5,6,7",
189*56f57cffSIan Rogers        "EventCode": "0xC4",
190*56f57cffSIan Rogers        "EventName": "BR_INST_RETIRED.NEAR_CALL",
191*56f57cffSIan Rogers        "PEBS": "1",
192*56f57cffSIan Rogers        "PublicDescription": "This event counts both direct and indirect near call instructions retired.",
193*56f57cffSIan Rogers        "SampleAfterValue": "100007",
194*56f57cffSIan Rogers        "UMask": "0x2"
195*56f57cffSIan Rogers    },
196*56f57cffSIan Rogers    {
197*56f57cffSIan Rogers        "BriefDescription": "Direct and indirect macro near call instructions retired (captured in ring 3).",
198*56f57cffSIan Rogers        "Counter": "0,1,2,3",
199*56f57cffSIan Rogers        "CounterHTOff": "0,1,2,3,4,5,6,7",
200*56f57cffSIan Rogers        "EventCode": "0xC4",
201*56f57cffSIan Rogers        "EventName": "BR_INST_RETIRED.NEAR_CALL_R3",
202*56f57cffSIan Rogers        "PEBS": "1",
203*56f57cffSIan Rogers        "PublicDescription": "This event counts both direct and indirect macro near call instructions retired (captured in ring 3).",
204*56f57cffSIan Rogers        "SampleAfterValue": "100007",
205*56f57cffSIan Rogers        "UMask": "0x2"
206*56f57cffSIan Rogers    },
207*56f57cffSIan Rogers    {
208*56f57cffSIan Rogers        "BriefDescription": "Return instructions retired.",
209*56f57cffSIan Rogers        "Counter": "0,1,2,3",
210*56f57cffSIan Rogers        "CounterHTOff": "0,1,2,3,4,5,6,7",
211*56f57cffSIan Rogers        "EventCode": "0xC4",
21297d00f2dSAndi Kleen        "EventName": "BR_INST_RETIRED.NEAR_RETURN",
213*56f57cffSIan Rogers        "PEBS": "1",
2149f0f4a24SAndi Kleen        "PublicDescription": "This event counts return instructions retired.",
21597d00f2dSAndi Kleen        "SampleAfterValue": "100007",
216*56f57cffSIan Rogers        "UMask": "0x8"
21797d00f2dSAndi Kleen    },
21897d00f2dSAndi Kleen    {
219*56f57cffSIan Rogers        "BriefDescription": "Taken branch instructions retired.",
220*56f57cffSIan Rogers        "Counter": "0,1,2,3",
221*56f57cffSIan Rogers        "CounterHTOff": "0,1,2,3,4,5,6,7",
22297d00f2dSAndi Kleen        "EventCode": "0xC4",
223*56f57cffSIan Rogers        "EventName": "BR_INST_RETIRED.NEAR_TAKEN",
224*56f57cffSIan Rogers        "PEBS": "1",
225*56f57cffSIan Rogers        "PublicDescription": "This event counts taken branch instructions retired.",
226*56f57cffSIan Rogers        "SampleAfterValue": "400009",
227*56f57cffSIan Rogers        "UMask": "0x20"
228*56f57cffSIan Rogers    },
229*56f57cffSIan Rogers    {
23097d00f2dSAndi Kleen        "BriefDescription": "Not taken branch instructions retired.",
23197d00f2dSAndi Kleen        "Counter": "0,1,2,3",
232*56f57cffSIan Rogers        "CounterHTOff": "0,1,2,3,4,5,6,7",
233*56f57cffSIan Rogers        "EventCode": "0xC4",
23497d00f2dSAndi Kleen        "EventName": "BR_INST_RETIRED.NOT_TAKEN",
23597d00f2dSAndi Kleen        "PublicDescription": "This event counts not taken branch instructions retired.",
23697d00f2dSAndi Kleen        "SampleAfterValue": "400009",
237*56f57cffSIan Rogers        "UMask": "0x10"
23897d00f2dSAndi Kleen    },
23997d00f2dSAndi Kleen    {
240*56f57cffSIan Rogers        "BriefDescription": "Speculative and retired mispredicted macro conditional branches",
24197d00f2dSAndi Kleen        "Counter": "0,1,2,3",
242*56f57cffSIan Rogers        "CounterHTOff": "0,1,2,3,4,5,6,7",
243*56f57cffSIan Rogers        "EventCode": "0x89",
244*56f57cffSIan Rogers        "EventName": "BR_MISP_EXEC.ALL_BRANCHES",
245*56f57cffSIan Rogers        "PublicDescription": "This event counts both taken and not taken speculative and retired mispredicted branch instructions.",
246*56f57cffSIan Rogers        "SampleAfterValue": "200003",
247*56f57cffSIan Rogers        "UMask": "0xff"
24897d00f2dSAndi Kleen    },
24997d00f2dSAndi Kleen    {
250*56f57cffSIan Rogers        "BriefDescription": "Speculative and retired mispredicted macro conditional branches",
25197d00f2dSAndi Kleen        "Counter": "0,1,2,3",
252*56f57cffSIan Rogers        "CounterHTOff": "0,1,2,3,4,5,6,7",
253*56f57cffSIan Rogers        "EventCode": "0x89",
254*56f57cffSIan Rogers        "EventName": "BR_MISP_EXEC.ALL_CONDITIONAL",
255*56f57cffSIan Rogers        "PublicDescription": "This event counts both taken and not taken speculative and retired mispredicted macro conditional branch instructions.",
256*56f57cffSIan Rogers        "SampleAfterValue": "200003",
257*56f57cffSIan Rogers        "UMask": "0xc1"
25897d00f2dSAndi Kleen    },
25997d00f2dSAndi Kleen    {
260*56f57cffSIan Rogers        "BriefDescription": "Mispredicted indirect branches excluding calls and returns",
261*56f57cffSIan Rogers        "Counter": "0,1,2,3",
262*56f57cffSIan Rogers        "CounterHTOff": "0,1,2,3,4,5,6,7",
263*56f57cffSIan Rogers        "EventCode": "0x89",
264*56f57cffSIan Rogers        "EventName": "BR_MISP_EXEC.ALL_INDIRECT_JUMP_NON_CALL_RET",
265*56f57cffSIan Rogers        "PublicDescription": "This event counts both taken and not taken mispredicted indirect branches excluding calls and returns.",
266*56f57cffSIan Rogers        "SampleAfterValue": "200003",
267*56f57cffSIan Rogers        "UMask": "0xc4"
268*56f57cffSIan Rogers    },
269*56f57cffSIan Rogers    {
270*56f57cffSIan Rogers        "BriefDescription": "Not taken speculative and retired mispredicted macro conditional branches",
271*56f57cffSIan Rogers        "Counter": "0,1,2,3",
272*56f57cffSIan Rogers        "CounterHTOff": "0,1,2,3,4,5,6,7",
273*56f57cffSIan Rogers        "EventCode": "0x89",
274*56f57cffSIan Rogers        "EventName": "BR_MISP_EXEC.NONTAKEN_CONDITIONAL",
275*56f57cffSIan Rogers        "PublicDescription": "This event counts not taken speculative and retired mispredicted macro conditional branch instructions.",
276*56f57cffSIan Rogers        "SampleAfterValue": "200003",
277*56f57cffSIan Rogers        "UMask": "0x41"
278*56f57cffSIan Rogers    },
279*56f57cffSIan Rogers    {
280*56f57cffSIan Rogers        "BriefDescription": "Taken speculative and retired mispredicted macro conditional branches",
281*56f57cffSIan Rogers        "Counter": "0,1,2,3",
282*56f57cffSIan Rogers        "CounterHTOff": "0,1,2,3,4,5,6,7",
283*56f57cffSIan Rogers        "EventCode": "0x89",
284*56f57cffSIan Rogers        "EventName": "BR_MISP_EXEC.TAKEN_CONDITIONAL",
285*56f57cffSIan Rogers        "PublicDescription": "This event counts taken speculative and retired mispredicted macro conditional branch instructions.",
286*56f57cffSIan Rogers        "SampleAfterValue": "200003",
287*56f57cffSIan Rogers        "UMask": "0x81"
288*56f57cffSIan Rogers    },
289*56f57cffSIan Rogers    {
290*56f57cffSIan Rogers        "BriefDescription": "Taken speculative and retired mispredicted indirect branches excluding calls and returns",
291*56f57cffSIan Rogers        "Counter": "0,1,2,3",
292*56f57cffSIan Rogers        "CounterHTOff": "0,1,2,3,4,5,6,7",
293*56f57cffSIan Rogers        "EventCode": "0x89",
294*56f57cffSIan Rogers        "EventName": "BR_MISP_EXEC.TAKEN_INDIRECT_JUMP_NON_CALL_RET",
295*56f57cffSIan Rogers        "PublicDescription": "This event counts taken speculative and retired mispredicted indirect branches excluding calls and returns.",
296*56f57cffSIan Rogers        "SampleAfterValue": "200003",
297*56f57cffSIan Rogers        "UMask": "0x84"
298*56f57cffSIan Rogers    },
299*56f57cffSIan Rogers    {
300*56f57cffSIan Rogers        "BriefDescription": "Taken speculative and retired mispredicted indirect calls.",
301*56f57cffSIan Rogers        "Counter": "0,1,2,3",
302*56f57cffSIan Rogers        "CounterHTOff": "0,1,2,3,4,5,6,7",
303*56f57cffSIan Rogers        "EventCode": "0x89",
304*56f57cffSIan Rogers        "EventName": "BR_MISP_EXEC.TAKEN_INDIRECT_NEAR_CALL",
305*56f57cffSIan Rogers        "SampleAfterValue": "200003",
306*56f57cffSIan Rogers        "UMask": "0xa0"
307*56f57cffSIan Rogers    },
308*56f57cffSIan Rogers    {
309*56f57cffSIan Rogers        "BriefDescription": "Taken speculative and retired mispredicted indirect branches with return mnemonic",
310*56f57cffSIan Rogers        "Counter": "0,1,2,3",
311*56f57cffSIan Rogers        "CounterHTOff": "0,1,2,3,4,5,6,7",
312*56f57cffSIan Rogers        "EventCode": "0x89",
313*56f57cffSIan Rogers        "EventName": "BR_MISP_EXEC.TAKEN_RETURN_NEAR",
314*56f57cffSIan Rogers        "PublicDescription": "This event counts taken speculative and retired mispredicted indirect branches that have a return mnemonic.",
315*56f57cffSIan Rogers        "SampleAfterValue": "200003",
316*56f57cffSIan Rogers        "UMask": "0x88"
317*56f57cffSIan Rogers    },
318*56f57cffSIan Rogers    {
31997d00f2dSAndi Kleen        "BriefDescription": "All mispredicted macro branch instructions retired.",
32097d00f2dSAndi Kleen        "Counter": "0,1,2,3",
321*56f57cffSIan Rogers        "CounterHTOff": "0,1,2,3,4,5,6,7",
322*56f57cffSIan Rogers        "EventCode": "0xC5",
32397d00f2dSAndi Kleen        "EventName": "BR_MISP_RETIRED.ALL_BRANCHES",
32497d00f2dSAndi Kleen        "PublicDescription": "This event counts all mispredicted macro branch instructions retired.",
325*56f57cffSIan Rogers        "SampleAfterValue": "400009"
32697d00f2dSAndi Kleen    },
32797d00f2dSAndi Kleen    {
32897d00f2dSAndi Kleen        "BriefDescription": "Mispredicted macro branch instructions retired. (Precise Event - PEBS)",
32997d00f2dSAndi Kleen        "Counter": "0,1,2,3",
330*56f57cffSIan Rogers        "CounterHTOff": "0,1,2,3",
331*56f57cffSIan Rogers        "EventCode": "0xC5",
33297d00f2dSAndi Kleen        "EventName": "BR_MISP_RETIRED.ALL_BRANCHES_PEBS",
333*56f57cffSIan Rogers        "PEBS": "2",
33497d00f2dSAndi Kleen        "PublicDescription": "This is a precise version of BR_MISP_RETIRED.ALL_BRANCHES that counts all mispredicted macro branch instructions retired.",
33597d00f2dSAndi Kleen        "SampleAfterValue": "400009",
336*56f57cffSIan Rogers        "UMask": "0x4"
33797d00f2dSAndi Kleen    },
33897d00f2dSAndi Kleen    {
339*56f57cffSIan Rogers        "BriefDescription": "Mispredicted conditional branch instructions retired.",
34097d00f2dSAndi Kleen        "Counter": "0,1,2,3",
341*56f57cffSIan Rogers        "CounterHTOff": "0,1,2,3,4,5,6,7",
342*56f57cffSIan Rogers        "EventCode": "0xC5",
343*56f57cffSIan Rogers        "EventName": "BR_MISP_RETIRED.CONDITIONAL",
344*56f57cffSIan Rogers        "PEBS": "1",
345*56f57cffSIan Rogers        "PublicDescription": "This event counts mispredicted conditional branch instructions retired.",
346*56f57cffSIan Rogers        "SampleAfterValue": "400009",
347*56f57cffSIan Rogers        "UMask": "0x1"
34897d00f2dSAndi Kleen    },
34997d00f2dSAndi Kleen    {
3509f0f4a24SAndi Kleen        "BriefDescription": "number of near branch instructions retired that were mispredicted and taken.",
35197d00f2dSAndi Kleen        "Counter": "0,1,2,3",
352*56f57cffSIan Rogers        "CounterHTOff": "0,1,2,3,4,5,6,7",
353*56f57cffSIan Rogers        "EventCode": "0xC5",
35497d00f2dSAndi Kleen        "EventName": "BR_MISP_RETIRED.NEAR_TAKEN",
355*56f57cffSIan Rogers        "PEBS": "1",
3569f0f4a24SAndi Kleen        "PublicDescription": "Number of near branch instructions retired that were mispredicted and taken.",
35797d00f2dSAndi Kleen        "SampleAfterValue": "400009",
358*56f57cffSIan Rogers        "UMask": "0x20"
35997d00f2dSAndi Kleen    },
36097d00f2dSAndi Kleen    {
361*56f57cffSIan Rogers        "BriefDescription": "This event counts the number of mispredicted ret instructions retired. Non PEBS",
362*56f57cffSIan Rogers        "Counter": "0,1,2,3",
363*56f57cffSIan Rogers        "CounterHTOff": "0,1,2,3,4,5,6,7",
364*56f57cffSIan Rogers        "EventCode": "0xC5",
365*56f57cffSIan Rogers        "EventName": "BR_MISP_RETIRED.RET",
366*56f57cffSIan Rogers        "PEBS": "1",
367*56f57cffSIan Rogers        "PublicDescription": "This event counts mispredicted return instructions retired.",
368*56f57cffSIan Rogers        "SampleAfterValue": "100007",
369*56f57cffSIan Rogers        "UMask": "0x8"
370*56f57cffSIan Rogers    },
371*56f57cffSIan Rogers    {
372*56f57cffSIan Rogers        "BriefDescription": "Count XClk pulses when this thread is unhalted and the other thread is halted.",
373*56f57cffSIan Rogers        "Counter": "0,1,2,3",
374*56f57cffSIan Rogers        "CounterHTOff": "0,1,2,3",
375*56f57cffSIan Rogers        "EventCode": "0x3c",
376*56f57cffSIan Rogers        "EventName": "CPU_CLK_THREAD_UNHALTED.ONE_THREAD_ACTIVE",
377*56f57cffSIan Rogers        "SampleAfterValue": "100003",
378*56f57cffSIan Rogers        "UMask": "0x2"
379*56f57cffSIan Rogers    },
380*56f57cffSIan Rogers    {
381*56f57cffSIan Rogers        "BriefDescription": "Reference cycles when the thread is unhalted (counts at 100 MHz rate)",
382*56f57cffSIan Rogers        "Counter": "0,1,2,3",
383*56f57cffSIan Rogers        "CounterHTOff": "0,1,2,3,4,5,6,7",
384*56f57cffSIan Rogers        "EventCode": "0x3C",
385*56f57cffSIan Rogers        "EventName": "CPU_CLK_THREAD_UNHALTED.REF_XCLK",
386*56f57cffSIan Rogers        "PublicDescription": "This is a fixed-frequency event programmed to general counters. It counts when the core is unhalted at 100 Mhz.",
387*56f57cffSIan Rogers        "SampleAfterValue": "100003",
388*56f57cffSIan Rogers        "UMask": "0x1"
389*56f57cffSIan Rogers    },
390*56f57cffSIan Rogers    {
391*56f57cffSIan Rogers        "AnyThread": "1",
392*56f57cffSIan Rogers        "BriefDescription": "Reference cycles when the at least one thread on the physical core is unhalted (counts at 100 MHz rate).",
393*56f57cffSIan Rogers        "Counter": "0,1,2,3",
394*56f57cffSIan Rogers        "CounterHTOff": "0,1,2,3,4,5,6,7",
395*56f57cffSIan Rogers        "EventCode": "0x3C",
396*56f57cffSIan Rogers        "EventName": "CPU_CLK_THREAD_UNHALTED.REF_XCLK_ANY",
397*56f57cffSIan Rogers        "SampleAfterValue": "100003",
398*56f57cffSIan Rogers        "UMask": "0x1"
399*56f57cffSIan Rogers    },
400*56f57cffSIan Rogers    {
401*56f57cffSIan Rogers        "BriefDescription": "Count XClk pulses when this thread is unhalted and the other thread is halted.",
402*56f57cffSIan Rogers        "Counter": "0,1,2,3",
403*56f57cffSIan Rogers        "CounterHTOff": "0,1,2,3,4,5,6,7",
404*56f57cffSIan Rogers        "EventCode": "0x3C",
405*56f57cffSIan Rogers        "EventName": "CPU_CLK_UNHALTED.ONE_THREAD_ACTIVE",
406*56f57cffSIan Rogers        "SampleAfterValue": "100003",
407*56f57cffSIan Rogers        "UMask": "0x2"
408*56f57cffSIan Rogers    },
409*56f57cffSIan Rogers    {
410*56f57cffSIan Rogers        "BriefDescription": "Reference cycles when the core is not in halt state.",
411*56f57cffSIan Rogers        "Counter": "Fixed counter 2",
412*56f57cffSIan Rogers        "CounterHTOff": "Fixed counter 2",
413*56f57cffSIan Rogers        "EventName": "CPU_CLK_UNHALTED.REF_TSC",
414*56f57cffSIan 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*56f57cffSIan Rogers        "SampleAfterValue": "2000003",
416*56f57cffSIan Rogers        "UMask": "0x3"
417*56f57cffSIan Rogers    },
418*56f57cffSIan Rogers    {
419*56f57cffSIan Rogers        "BriefDescription": "Reference cycles when the thread is unhalted (counts at 100 MHz rate)",
420*56f57cffSIan Rogers        "Counter": "0,1,2,3",
421*56f57cffSIan Rogers        "CounterHTOff": "0,1,2,3,4,5,6,7",
422*56f57cffSIan Rogers        "EventCode": "0x3C",
423*56f57cffSIan Rogers        "EventName": "CPU_CLK_UNHALTED.REF_XCLK",
424*56f57cffSIan Rogers        "PublicDescription": "Reference cycles when the thread is unhalted (counts at 100 MHz rate).",
425*56f57cffSIan Rogers        "SampleAfterValue": "100003",
426*56f57cffSIan Rogers        "UMask": "0x1"
427*56f57cffSIan Rogers    },
428*56f57cffSIan Rogers    {
429*56f57cffSIan Rogers        "AnyThread": "1",
430*56f57cffSIan Rogers        "BriefDescription": "Reference cycles when the at least one thread on the physical core is unhalted (counts at 100 MHz rate).",
431*56f57cffSIan Rogers        "Counter": "0,1,2,3",
432*56f57cffSIan Rogers        "CounterHTOff": "0,1,2,3,4,5,6,7",
433*56f57cffSIan Rogers        "EventCode": "0x3C",
434*56f57cffSIan Rogers        "EventName": "CPU_CLK_UNHALTED.REF_XCLK_ANY",
435*56f57cffSIan Rogers        "SampleAfterValue": "100003",
436*56f57cffSIan Rogers        "UMask": "0x1"
437*56f57cffSIan Rogers    },
438*56f57cffSIan Rogers    {
439*56f57cffSIan Rogers        "BriefDescription": "Core cycles when the thread is not in halt state",
440*56f57cffSIan Rogers        "Counter": "Fixed counter 1",
441*56f57cffSIan Rogers        "CounterHTOff": "Fixed counter 1",
442*56f57cffSIan Rogers        "EventName": "CPU_CLK_UNHALTED.THREAD",
443*56f57cffSIan 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*56f57cffSIan Rogers        "SampleAfterValue": "2000003",
445*56f57cffSIan Rogers        "UMask": "0x2"
446*56f57cffSIan Rogers    },
447*56f57cffSIan Rogers    {
448*56f57cffSIan Rogers        "AnyThread": "1",
449*56f57cffSIan Rogers        "BriefDescription": "Core cycles when at least one thread on the physical core is not in halt state.",
450*56f57cffSIan Rogers        "Counter": "Fixed counter 1",
451*56f57cffSIan Rogers        "CounterHTOff": "Fixed counter 1",
452*56f57cffSIan Rogers        "EventName": "CPU_CLK_UNHALTED.THREAD_ANY",
453*56f57cffSIan Rogers        "SampleAfterValue": "2000003",
454*56f57cffSIan Rogers        "UMask": "0x2"
455*56f57cffSIan Rogers    },
456*56f57cffSIan Rogers    {
457*56f57cffSIan Rogers        "BriefDescription": "Thread cycles when thread is not in halt state",
458*56f57cffSIan Rogers        "Counter": "0,1,2,3",
459*56f57cffSIan Rogers        "CounterHTOff": "0,1,2,3,4,5,6,7",
460*56f57cffSIan Rogers        "EventCode": "0x3C",
461*56f57cffSIan Rogers        "EventName": "CPU_CLK_UNHALTED.THREAD_P",
462*56f57cffSIan 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*56f57cffSIan Rogers        "SampleAfterValue": "2000003"
464*56f57cffSIan Rogers    },
465*56f57cffSIan Rogers    {
466*56f57cffSIan Rogers        "AnyThread": "1",
467*56f57cffSIan Rogers        "BriefDescription": "Core cycles when at least one thread on the physical core is not in halt state.",
468*56f57cffSIan Rogers        "Counter": "0,1,2,3",
469*56f57cffSIan Rogers        "CounterHTOff": "0,1,2,3,4,5,6,7",
470*56f57cffSIan Rogers        "EventCode": "0x3C",
471*56f57cffSIan Rogers        "EventName": "CPU_CLK_UNHALTED.THREAD_P_ANY",
472*56f57cffSIan Rogers        "SampleAfterValue": "2000003"
473*56f57cffSIan Rogers    },
474*56f57cffSIan Rogers    {
475*56f57cffSIan Rogers        "BriefDescription": "Cycles while L1 cache miss demand load is outstanding.",
476*56f57cffSIan Rogers        "Counter": "2",
477*56f57cffSIan Rogers        "CounterHTOff": "2",
478*56f57cffSIan Rogers        "CounterMask": "8",
479*56f57cffSIan Rogers        "EventCode": "0xA3",
480*56f57cffSIan Rogers        "EventName": "CYCLE_ACTIVITY.CYCLES_L1D_MISS",
481*56f57cffSIan Rogers        "SampleAfterValue": "2000003",
482*56f57cffSIan Rogers        "UMask": "0x8"
483*56f57cffSIan Rogers    },
484*56f57cffSIan Rogers    {
485*56f57cffSIan Rogers        "BriefDescription": "Cycles while L1 cache miss demand load is outstanding.",
486*56f57cffSIan Rogers        "Counter": "2",
487*56f57cffSIan Rogers        "CounterHTOff": "2",
488*56f57cffSIan Rogers        "CounterMask": "8",
489*56f57cffSIan Rogers        "EventCode": "0xA3",
490*56f57cffSIan Rogers        "EventName": "CYCLE_ACTIVITY.CYCLES_L1D_PENDING",
491*56f57cffSIan Rogers        "PublicDescription": "Counts number of cycles the CPU has at least one pending  demand load request missing the L1 data cache.",
492*56f57cffSIan Rogers        "SampleAfterValue": "2000003",
493*56f57cffSIan Rogers        "UMask": "0x8"
494*56f57cffSIan Rogers    },
495*56f57cffSIan Rogers    {
496*56f57cffSIan Rogers        "BriefDescription": "Cycles while L2 cache miss demand load is outstanding.",
497*56f57cffSIan Rogers        "Counter": "0,1,2,3",
498*56f57cffSIan Rogers        "CounterHTOff": "0,1,2,3,4,5,6,7",
499*56f57cffSIan Rogers        "CounterMask": "1",
500*56f57cffSIan Rogers        "EventCode": "0xA3",
501*56f57cffSIan Rogers        "EventName": "CYCLE_ACTIVITY.CYCLES_L2_MISS",
502*56f57cffSIan Rogers        "SampleAfterValue": "2000003",
503*56f57cffSIan Rogers        "UMask": "0x1"
504*56f57cffSIan Rogers    },
505*56f57cffSIan Rogers    {
506*56f57cffSIan Rogers        "BriefDescription": "Cycles while L2 cache miss demand load is outstanding.",
507*56f57cffSIan Rogers        "Counter": "0,1,2,3",
508*56f57cffSIan Rogers        "CounterHTOff": "0,1,2,3,4,5,6,7",
509*56f57cffSIan Rogers        "CounterMask": "1",
510*56f57cffSIan Rogers        "EventCode": "0xA3",
511*56f57cffSIan Rogers        "EventName": "CYCLE_ACTIVITY.CYCLES_L2_PENDING",
512*56f57cffSIan Rogers        "PublicDescription": "Counts number of cycles the CPU has at least one pending  demand* load request missing the L2 cache.",
513*56f57cffSIan Rogers        "SampleAfterValue": "2000003",
514*56f57cffSIan Rogers        "UMask": "0x1"
515*56f57cffSIan Rogers    },
516*56f57cffSIan Rogers    {
517*56f57cffSIan Rogers        "BriefDescription": "Cycles while memory subsystem has an outstanding load.",
518*56f57cffSIan Rogers        "Counter": "0,1,2,3",
519*56f57cffSIan Rogers        "CounterHTOff": "0,1,2,3,4,5,6,7",
520*56f57cffSIan Rogers        "CounterMask": "2",
521*56f57cffSIan Rogers        "EventCode": "0xA3",
522*56f57cffSIan Rogers        "EventName": "CYCLE_ACTIVITY.CYCLES_LDM_PENDING",
523*56f57cffSIan 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*56f57cffSIan Rogers        "SampleAfterValue": "2000003",
525*56f57cffSIan Rogers        "UMask": "0x2"
526*56f57cffSIan Rogers    },
527*56f57cffSIan Rogers    {
528*56f57cffSIan Rogers        "BriefDescription": "Cycles while memory subsystem has an outstanding load.",
529*56f57cffSIan Rogers        "Counter": "0,1,2,3",
530*56f57cffSIan Rogers        "CounterHTOff": "0,1,2,3",
531*56f57cffSIan Rogers        "CounterMask": "2",
532*56f57cffSIan Rogers        "EventCode": "0xA3",
533*56f57cffSIan Rogers        "EventName": "CYCLE_ACTIVITY.CYCLES_MEM_ANY",
534*56f57cffSIan Rogers        "SampleAfterValue": "2000003",
535*56f57cffSIan Rogers        "UMask": "0x2"
536*56f57cffSIan Rogers    },
537*56f57cffSIan Rogers    {
538*56f57cffSIan Rogers        "BriefDescription": "This event increments by 1 for every cycle where there was no execute for this thread.",
539*56f57cffSIan Rogers        "Counter": "0,1,2,3",
540*56f57cffSIan Rogers        "CounterHTOff": "0,1,2,3",
541*56f57cffSIan Rogers        "CounterMask": "4",
542*56f57cffSIan Rogers        "EventCode": "0xA3",
543*56f57cffSIan Rogers        "EventName": "CYCLE_ACTIVITY.CYCLES_NO_EXECUTE",
544*56f57cffSIan Rogers        "PublicDescription": "Counts number of cycles nothing is executed on any execution port.",
545*56f57cffSIan Rogers        "SampleAfterValue": "2000003",
546*56f57cffSIan Rogers        "UMask": "0x4"
547*56f57cffSIan Rogers    },
548*56f57cffSIan Rogers    {
549*56f57cffSIan Rogers        "BriefDescription": "Execution stalls while L1 cache miss demand load is outstanding.",
550*56f57cffSIan Rogers        "Counter": "2",
551*56f57cffSIan Rogers        "CounterHTOff": "2",
552*56f57cffSIan Rogers        "CounterMask": "12",
553*56f57cffSIan Rogers        "EventCode": "0xA3",
554*56f57cffSIan Rogers        "EventName": "CYCLE_ACTIVITY.STALLS_L1D_MISS",
555*56f57cffSIan Rogers        "SampleAfterValue": "2000003",
556*56f57cffSIan Rogers        "UMask": "0xc"
557*56f57cffSIan Rogers    },
558*56f57cffSIan Rogers    {
559*56f57cffSIan Rogers        "BriefDescription": "Execution stalls while L1 cache miss demand load is outstanding.",
560*56f57cffSIan Rogers        "Counter": "2",
561*56f57cffSIan Rogers        "CounterHTOff": "2",
562*56f57cffSIan Rogers        "CounterMask": "12",
563*56f57cffSIan Rogers        "EventCode": "0xA3",
564*56f57cffSIan Rogers        "EventName": "CYCLE_ACTIVITY.STALLS_L1D_PENDING",
565*56f57cffSIan 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*56f57cffSIan Rogers        "SampleAfterValue": "2000003",
567*56f57cffSIan Rogers        "UMask": "0xc"
568*56f57cffSIan Rogers    },
569*56f57cffSIan Rogers    {
570*56f57cffSIan Rogers        "BriefDescription": "Execution stalls while L2 cache miss demand load is outstanding.",
571*56f57cffSIan Rogers        "Counter": "0,1,2,3",
572*56f57cffSIan Rogers        "CounterHTOff": "0,1,2,3,4,5,6,7",
573*56f57cffSIan Rogers        "CounterMask": "5",
574*56f57cffSIan Rogers        "EventCode": "0xA3",
575*56f57cffSIan Rogers        "EventName": "CYCLE_ACTIVITY.STALLS_L2_MISS",
576*56f57cffSIan Rogers        "SampleAfterValue": "2000003",
577*56f57cffSIan Rogers        "UMask": "0x5"
578*56f57cffSIan Rogers    },
579*56f57cffSIan Rogers    {
580*56f57cffSIan Rogers        "BriefDescription": "Execution stalls while L2 cache miss demand load is outstanding.",
581*56f57cffSIan Rogers        "Counter": "0,1,2,3",
582*56f57cffSIan Rogers        "CounterHTOff": "0,1,2,3",
583*56f57cffSIan Rogers        "CounterMask": "5",
584*56f57cffSIan Rogers        "EventCode": "0xA3",
585*56f57cffSIan Rogers        "EventName": "CYCLE_ACTIVITY.STALLS_L2_PENDING",
586*56f57cffSIan 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*56f57cffSIan Rogers        "SampleAfterValue": "2000003",
588*56f57cffSIan Rogers        "UMask": "0x5"
589*56f57cffSIan Rogers    },
590*56f57cffSIan Rogers    {
591*56f57cffSIan Rogers        "BriefDescription": "Execution stalls while memory subsystem has an outstanding load.",
592*56f57cffSIan Rogers        "Counter": "0,1,2,3",
593*56f57cffSIan Rogers        "CounterHTOff": "0,1,2,3",
594*56f57cffSIan Rogers        "CounterMask": "6",
595*56f57cffSIan Rogers        "EventCode": "0xA3",
596*56f57cffSIan Rogers        "EventName": "CYCLE_ACTIVITY.STALLS_LDM_PENDING",
597*56f57cffSIan Rogers        "PublicDescription": "Counts number of cycles nothing is executed on any execution port, while there was at least one pending demand load request.",
598*56f57cffSIan Rogers        "SampleAfterValue": "2000003",
599*56f57cffSIan Rogers        "UMask": "0x6"
600*56f57cffSIan Rogers    },
601*56f57cffSIan Rogers    {
602*56f57cffSIan Rogers        "BriefDescription": "Execution stalls while memory subsystem has an outstanding load.",
603*56f57cffSIan Rogers        "Counter": "0,1,2,3",
604*56f57cffSIan Rogers        "CounterHTOff": "0,1,2,3,4,5,6,7",
605*56f57cffSIan Rogers        "CounterMask": "6",
606*56f57cffSIan Rogers        "EventCode": "0xA3",
607*56f57cffSIan Rogers        "EventName": "CYCLE_ACTIVITY.STALLS_MEM_ANY",
608*56f57cffSIan Rogers        "SampleAfterValue": "2000003",
609*56f57cffSIan Rogers        "UMask": "0x6"
610*56f57cffSIan Rogers    },
611*56f57cffSIan Rogers    {
612*56f57cffSIan Rogers        "BriefDescription": "Total execution stalls.",
613*56f57cffSIan Rogers        "Counter": "0,1,2,3",
614*56f57cffSIan Rogers        "CounterHTOff": "0,1,2,3,4,5,6,7",
615*56f57cffSIan Rogers        "CounterMask": "4",
616*56f57cffSIan Rogers        "EventCode": "0xA3",
617*56f57cffSIan Rogers        "EventName": "CYCLE_ACTIVITY.STALLS_TOTAL",
618*56f57cffSIan Rogers        "SampleAfterValue": "2000003",
619*56f57cffSIan Rogers        "UMask": "0x4"
620*56f57cffSIan Rogers    },
621*56f57cffSIan Rogers    {
622*56f57cffSIan Rogers        "BriefDescription": "Stalls caused by changing prefix length of the instruction.",
623*56f57cffSIan Rogers        "Counter": "0,1,2,3",
624*56f57cffSIan Rogers        "CounterHTOff": "0,1,2,3,4,5,6,7",
625*56f57cffSIan Rogers        "EventCode": "0x87",
626*56f57cffSIan Rogers        "EventName": "ILD_STALL.LCP",
627*56f57cffSIan 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*56f57cffSIan Rogers        "SampleAfterValue": "2000003",
629*56f57cffSIan Rogers        "UMask": "0x1"
630*56f57cffSIan Rogers    },
631*56f57cffSIan Rogers    {
632*56f57cffSIan Rogers        "BriefDescription": "Instructions retired from execution.",
633*56f57cffSIan Rogers        "Counter": "Fixed counter 0",
634*56f57cffSIan Rogers        "CounterHTOff": "Fixed counter 0",
635*56f57cffSIan Rogers        "EventName": "INST_RETIRED.ANY",
636*56f57cffSIan 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*56f57cffSIan Rogers        "SampleAfterValue": "2000003",
638*56f57cffSIan Rogers        "UMask": "0x1"
639*56f57cffSIan Rogers    },
640*56f57cffSIan Rogers    {
641*56f57cffSIan Rogers        "BriefDescription": "Number of instructions retired. General Counter   - architectural event",
642*56f57cffSIan Rogers        "Counter": "0,1,2,3",
643*56f57cffSIan Rogers        "CounterHTOff": "0,1,2,3,4,5,6,7",
644*56f57cffSIan Rogers        "Errata": "BDM61",
645*56f57cffSIan Rogers        "EventCode": "0xC0",
646*56f57cffSIan Rogers        "EventName": "INST_RETIRED.ANY_P",
647*56f57cffSIan Rogers        "PublicDescription": "This event counts the number of instructions (EOMs) retired. Counting covers macro-fused instructions individually (that is, increments by two).",
648*56f57cffSIan Rogers        "SampleAfterValue": "2000003"
649*56f57cffSIan Rogers    },
650*56f57cffSIan Rogers    {
651*56f57cffSIan Rogers        "BriefDescription": "Precise instruction retired event with HW to reduce effect of PEBS shadow in IP distribution",
652*56f57cffSIan Rogers        "Counter": "1",
653*56f57cffSIan Rogers        "CounterHTOff": "1",
654*56f57cffSIan Rogers        "Errata": "BDM11, BDM55",
655*56f57cffSIan Rogers        "EventCode": "0xC0",
656*56f57cffSIan Rogers        "EventName": "INST_RETIRED.PREC_DIST",
657*56f57cffSIan Rogers        "PEBS": "2",
658*56f57cffSIan Rogers        "PublicDescription": "This is a precise version (that is, uses PEBS) of the event that counts instructions retired.",
659*56f57cffSIan Rogers        "SampleAfterValue": "2000003",
660*56f57cffSIan Rogers        "UMask": "0x1"
661*56f57cffSIan Rogers    },
662*56f57cffSIan Rogers    {
663*56f57cffSIan Rogers        "BriefDescription": "FP operations  retired. X87 FP operations that have no exceptions:",
664*56f57cffSIan Rogers        "Counter": "0,1,2,3",
665*56f57cffSIan Rogers        "CounterHTOff": "0,1,2,3,4,5,6,7",
666*56f57cffSIan Rogers        "EventCode": "0xC0",
667*56f57cffSIan Rogers        "EventName": "INST_RETIRED.X87",
668*56f57cffSIan 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*56f57cffSIan Rogers        "SampleAfterValue": "2000003",
670*56f57cffSIan Rogers        "UMask": "0x2"
671*56f57cffSIan Rogers    },
672*56f57cffSIan Rogers    {
673*56f57cffSIan Rogers        "BriefDescription": "Cycles when Resource Allocation Table (RAT) external stall is sent to Instruction Decode Queue (IDQ) for the thread",
674*56f57cffSIan Rogers        "Counter": "0,1,2,3",
675*56f57cffSIan Rogers        "CounterHTOff": "0,1,2,3,4,5,6,7",
676*56f57cffSIan Rogers        "EventCode": "0x0D",
677*56f57cffSIan Rogers        "EventName": "INT_MISC.RAT_STALL_CYCLES",
678*56f57cffSIan 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*56f57cffSIan Rogers        "SampleAfterValue": "2000003",
680*56f57cffSIan Rogers        "UMask": "0x8"
681*56f57cffSIan Rogers    },
682*56f57cffSIan Rogers    {
683*56f57cffSIan 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*56f57cffSIan Rogers        "Counter": "0,1,2,3",
685*56f57cffSIan Rogers        "CounterHTOff": "0,1,2,3,4,5,6,7",
686*56f57cffSIan Rogers        "CounterMask": "1",
687*56f57cffSIan Rogers        "EventCode": "0x0D",
688*56f57cffSIan Rogers        "EventName": "INT_MISC.RECOVERY_CYCLES",
689*56f57cffSIan Rogers        "PublicDescription": "Cycles checkpoints in Resource Allocation Table (RAT) are recovering from JEClear or machine clear.",
690*56f57cffSIan Rogers        "SampleAfterValue": "2000003",
691*56f57cffSIan Rogers        "UMask": "0x3"
692*56f57cffSIan Rogers    },
693*56f57cffSIan Rogers    {
694*56f57cffSIan Rogers        "AnyThread": "1",
695*56f57cffSIan 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*56f57cffSIan Rogers        "Counter": "0,1,2,3",
697*56f57cffSIan Rogers        "CounterHTOff": "0,1,2,3,4,5,6,7",
698*56f57cffSIan Rogers        "CounterMask": "1",
699*56f57cffSIan Rogers        "EventCode": "0x0D",
700*56f57cffSIan Rogers        "EventName": "INT_MISC.RECOVERY_CYCLES_ANY",
701*56f57cffSIan Rogers        "SampleAfterValue": "2000003",
702*56f57cffSIan Rogers        "UMask": "0x3"
703*56f57cffSIan Rogers    },
704*56f57cffSIan Rogers    {
705*56f57cffSIan 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*56f57cffSIan Rogers        "Counter": "0,1,2,3",
707*56f57cffSIan Rogers        "CounterHTOff": "0,1,2,3,4,5,6,7",
708*56f57cffSIan Rogers        "EventCode": "0x03",
709*56f57cffSIan Rogers        "EventName": "LD_BLOCKS.NO_SR",
710*56f57cffSIan Rogers        "SampleAfterValue": "100003",
711*56f57cffSIan Rogers        "UMask": "0x8"
712*56f57cffSIan Rogers    },
713*56f57cffSIan Rogers    {
714*56f57cffSIan Rogers        "BriefDescription": "Cases when loads get true Block-on-Store blocking code preventing store forwarding",
715*56f57cffSIan Rogers        "Counter": "0,1,2,3",
716*56f57cffSIan Rogers        "CounterHTOff": "0,1,2,3,4,5,6,7",
717*56f57cffSIan Rogers        "EventCode": "0x03",
718*56f57cffSIan Rogers        "EventName": "LD_BLOCKS.STORE_FORWARD",
719*56f57cffSIan 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*56f57cffSIan Rogers        "SampleAfterValue": "100003",
721*56f57cffSIan Rogers        "UMask": "0x2"
722*56f57cffSIan Rogers    },
723*56f57cffSIan Rogers    {
724*56f57cffSIan Rogers        "BriefDescription": "False dependencies in MOB due to partial compare",
725*56f57cffSIan Rogers        "Counter": "0,1,2,3",
726*56f57cffSIan Rogers        "CounterHTOff": "0,1,2,3,4,5,6,7",
727*56f57cffSIan Rogers        "EventCode": "0x07",
728*56f57cffSIan Rogers        "EventName": "LD_BLOCKS_PARTIAL.ADDRESS_ALIAS",
729*56f57cffSIan 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*56f57cffSIan Rogers        "SampleAfterValue": "100003",
731*56f57cffSIan Rogers        "UMask": "0x1"
732*56f57cffSIan Rogers    },
733*56f57cffSIan Rogers    {
734*56f57cffSIan Rogers        "BriefDescription": "Not software-prefetch load dispatches that hit FB allocated for hardware prefetch",
735*56f57cffSIan Rogers        "Counter": "0,1,2,3",
736*56f57cffSIan Rogers        "CounterHTOff": "0,1,2,3,4,5,6,7",
737*56f57cffSIan Rogers        "EventCode": "0x4C",
738*56f57cffSIan Rogers        "EventName": "LOAD_HIT_PRE.HW_PF",
739*56f57cffSIan Rogers        "PublicDescription": "This event counts all not software-prefetch load dispatches that hit the fill buffer (FB) allocated for the hardware prefetch.",
740*56f57cffSIan Rogers        "SampleAfterValue": "100003",
741*56f57cffSIan Rogers        "UMask": "0x2"
742*56f57cffSIan Rogers    },
743*56f57cffSIan Rogers    {
744*56f57cffSIan Rogers        "BriefDescription": "Not software-prefetch load dispatches that hit FB allocated for software prefetch",
745*56f57cffSIan Rogers        "Counter": "0,1,2,3",
746*56f57cffSIan Rogers        "CounterHTOff": "0,1,2,3,4,5,6,7",
747*56f57cffSIan Rogers        "EventCode": "0x4c",
748*56f57cffSIan Rogers        "EventName": "LOAD_HIT_PRE.SW_PF",
749*56f57cffSIan 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*56f57cffSIan Rogers        "SampleAfterValue": "100003",
751*56f57cffSIan Rogers        "UMask": "0x1"
752*56f57cffSIan Rogers    },
753*56f57cffSIan Rogers    {
754*56f57cffSIan Rogers        "BriefDescription": "Cycles 4 Uops delivered by the LSD, but didn't come from the decoder.",
755*56f57cffSIan Rogers        "Counter": "0,1,2,3",
756*56f57cffSIan Rogers        "CounterHTOff": "0,1,2,3,4,5,6,7",
757*56f57cffSIan Rogers        "CounterMask": "4",
758*56f57cffSIan Rogers        "EventCode": "0xA8",
759*56f57cffSIan Rogers        "EventName": "LSD.CYCLES_4_UOPS",
760*56f57cffSIan Rogers        "SampleAfterValue": "2000003",
761*56f57cffSIan Rogers        "UMask": "0x1"
762*56f57cffSIan Rogers    },
763*56f57cffSIan Rogers    {
764*56f57cffSIan Rogers        "BriefDescription": "Cycles Uops delivered by the LSD, but didn't come from the decoder.",
765*56f57cffSIan Rogers        "Counter": "0,1,2,3",
766*56f57cffSIan Rogers        "CounterHTOff": "0,1,2,3,4,5,6,7",
767*56f57cffSIan Rogers        "CounterMask": "1",
768*56f57cffSIan Rogers        "EventCode": "0xA8",
769*56f57cffSIan Rogers        "EventName": "LSD.CYCLES_ACTIVE",
770*56f57cffSIan Rogers        "SampleAfterValue": "2000003",
771*56f57cffSIan Rogers        "UMask": "0x1"
772*56f57cffSIan Rogers    },
773*56f57cffSIan Rogers    {
774*56f57cffSIan Rogers        "BriefDescription": "Number of Uops delivered by the LSD.",
775*56f57cffSIan Rogers        "Counter": "0,1,2,3",
776*56f57cffSIan Rogers        "CounterHTOff": "0,1,2,3,4,5,6,7",
777*56f57cffSIan Rogers        "EventCode": "0xA8",
778*56f57cffSIan Rogers        "EventName": "LSD.UOPS",
779*56f57cffSIan Rogers        "SampleAfterValue": "2000003",
780*56f57cffSIan Rogers        "UMask": "0x1"
781*56f57cffSIan Rogers    },
782*56f57cffSIan Rogers    {
783*56f57cffSIan Rogers        "BriefDescription": "Number of machine clears (nukes) of any type.",
784*56f57cffSIan Rogers        "Counter": "0,1,2,3",
785*56f57cffSIan Rogers        "CounterHTOff": "0,1,2,3,4,5,6,7",
786*56f57cffSIan Rogers        "CounterMask": "1",
787*56f57cffSIan Rogers        "EdgeDetect": "1",
788*56f57cffSIan Rogers        "EventCode": "0xC3",
789*56f57cffSIan Rogers        "EventName": "MACHINE_CLEARS.COUNT",
790*56f57cffSIan Rogers        "SampleAfterValue": "100003",
791*56f57cffSIan Rogers        "UMask": "0x1"
792*56f57cffSIan Rogers    },
793*56f57cffSIan Rogers    {
794*56f57cffSIan Rogers        "BriefDescription": "Cycles there was a Nuke. Account for both thread-specific and All Thread Nukes.",
795*56f57cffSIan Rogers        "Counter": "0,1,2,3",
796*56f57cffSIan Rogers        "CounterHTOff": "0,1,2,3,4,5,6,7",
797*56f57cffSIan Rogers        "EventCode": "0xC3",
798*56f57cffSIan Rogers        "EventName": "MACHINE_CLEARS.CYCLES",
799*56f57cffSIan Rogers        "PublicDescription": "This event counts both thread-specific (TS) and all-thread (AT) nukes.",
800*56f57cffSIan Rogers        "SampleAfterValue": "2000003",
801*56f57cffSIan Rogers        "UMask": "0x1"
802*56f57cffSIan Rogers    },
803*56f57cffSIan Rogers    {
804*56f57cffSIan 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*56f57cffSIan Rogers        "Counter": "0,1,2,3",
806*56f57cffSIan Rogers        "CounterHTOff": "0,1,2,3,4,5,6,7",
807*56f57cffSIan Rogers        "EventCode": "0xC3",
808*56f57cffSIan Rogers        "EventName": "MACHINE_CLEARS.MASKMOV",
809*56f57cffSIan 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*56f57cffSIan Rogers        "SampleAfterValue": "100003",
811*56f57cffSIan Rogers        "UMask": "0x20"
812*56f57cffSIan Rogers    },
813*56f57cffSIan Rogers    {
814*56f57cffSIan Rogers        "BriefDescription": "Self-modifying code (SMC) detected.",
815*56f57cffSIan Rogers        "Counter": "0,1,2,3",
816*56f57cffSIan Rogers        "CounterHTOff": "0,1,2,3,4,5,6,7",
817*56f57cffSIan Rogers        "EventCode": "0xC3",
818*56f57cffSIan Rogers        "EventName": "MACHINE_CLEARS.SMC",
819*56f57cffSIan Rogers        "PublicDescription": "This event counts self-modifying code (SMC) detected, which causes a machine clear.",
820*56f57cffSIan Rogers        "SampleAfterValue": "100003",
821*56f57cffSIan Rogers        "UMask": "0x4"
822*56f57cffSIan Rogers    },
823*56f57cffSIan Rogers    {
824*56f57cffSIan Rogers        "BriefDescription": "Number of integer Move Elimination candidate uops that were eliminated.",
825*56f57cffSIan Rogers        "Counter": "0,1,2,3",
826*56f57cffSIan Rogers        "CounterHTOff": "0,1,2,3,4,5,6,7",
827*56f57cffSIan Rogers        "EventCode": "0x58",
828*56f57cffSIan Rogers        "EventName": "MOVE_ELIMINATION.INT_ELIMINATED",
829*56f57cffSIan Rogers        "SampleAfterValue": "1000003",
830*56f57cffSIan Rogers        "UMask": "0x1"
831*56f57cffSIan Rogers    },
832*56f57cffSIan Rogers    {
833*56f57cffSIan Rogers        "BriefDescription": "Number of integer Move Elimination candidate uops that were not eliminated.",
834*56f57cffSIan Rogers        "Counter": "0,1,2,3",
835*56f57cffSIan Rogers        "CounterHTOff": "0,1,2,3,4,5,6,7",
836*56f57cffSIan Rogers        "EventCode": "0x58",
837*56f57cffSIan Rogers        "EventName": "MOVE_ELIMINATION.INT_NOT_ELIMINATED",
838*56f57cffSIan Rogers        "SampleAfterValue": "1000003",
839*56f57cffSIan Rogers        "UMask": "0x4"
840*56f57cffSIan Rogers    },
841*56f57cffSIan Rogers    {
842*56f57cffSIan Rogers        "BriefDescription": "Number of times any microcode assist is invoked by HW upon uop writeback.",
843*56f57cffSIan Rogers        "Counter": "0,1,2,3",
844*56f57cffSIan Rogers        "CounterHTOff": "0,1,2,3,4,5,6,7",
845*56f57cffSIan Rogers        "EventCode": "0xC1",
846*56f57cffSIan Rogers        "EventName": "OTHER_ASSISTS.ANY_WB_ASSIST",
847*56f57cffSIan Rogers        "SampleAfterValue": "100003",
848*56f57cffSIan Rogers        "UMask": "0x40"
849*56f57cffSIan Rogers    },
850*56f57cffSIan Rogers    {
851*56f57cffSIan Rogers        "BriefDescription": "Resource-related stall cycles",
852*56f57cffSIan Rogers        "Counter": "0,1,2,3",
853*56f57cffSIan Rogers        "CounterHTOff": "0,1,2,3,4,5,6,7",
854*56f57cffSIan Rogers        "EventCode": "0xa2",
855*56f57cffSIan Rogers        "EventName": "RESOURCE_STALLS.ANY",
856*56f57cffSIan Rogers        "PublicDescription": "This event counts resource-related stall cycles.",
857*56f57cffSIan Rogers        "SampleAfterValue": "2000003",
858*56f57cffSIan Rogers        "UMask": "0x1"
859*56f57cffSIan Rogers    },
860*56f57cffSIan Rogers    {
861*56f57cffSIan Rogers        "BriefDescription": "Cycles stalled due to re-order buffer full.",
862*56f57cffSIan Rogers        "Counter": "0,1,2,3",
863*56f57cffSIan Rogers        "CounterHTOff": "0,1,2,3,4,5,6,7",
864*56f57cffSIan Rogers        "EventCode": "0xA2",
865*56f57cffSIan Rogers        "EventName": "RESOURCE_STALLS.ROB",
866*56f57cffSIan Rogers        "PublicDescription": "This event counts ROB full stall cycles. This counts cycles that the pipeline backend blocked uop delivery from the front end.",
867*56f57cffSIan Rogers        "SampleAfterValue": "2000003",
868*56f57cffSIan Rogers        "UMask": "0x10"
869*56f57cffSIan Rogers    },
870*56f57cffSIan Rogers    {
871*56f57cffSIan Rogers        "BriefDescription": "Cycles stalled due to no eligible RS entry available.",
872*56f57cffSIan Rogers        "Counter": "0,1,2,3",
873*56f57cffSIan Rogers        "CounterHTOff": "0,1,2,3,4,5,6,7",
874*56f57cffSIan Rogers        "EventCode": "0xA2",
875*56f57cffSIan Rogers        "EventName": "RESOURCE_STALLS.RS",
876*56f57cffSIan 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*56f57cffSIan Rogers        "SampleAfterValue": "2000003",
878*56f57cffSIan Rogers        "UMask": "0x4"
879*56f57cffSIan Rogers    },
880*56f57cffSIan Rogers    {
881*56f57cffSIan Rogers        "BriefDescription": "Cycles stalled due to no store buffers available. (not including draining form sync).",
882*56f57cffSIan Rogers        "Counter": "0,1,2,3",
883*56f57cffSIan Rogers        "CounterHTOff": "0,1,2,3,4,5,6,7",
884*56f57cffSIan Rogers        "EventCode": "0xA2",
885*56f57cffSIan Rogers        "EventName": "RESOURCE_STALLS.SB",
886*56f57cffSIan 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*56f57cffSIan Rogers        "SampleAfterValue": "2000003",
888*56f57cffSIan Rogers        "UMask": "0x8"
889*56f57cffSIan Rogers    },
890*56f57cffSIan Rogers    {
89197d00f2dSAndi Kleen        "BriefDescription": "Count cases of saving new LBR",
89297d00f2dSAndi Kleen        "Counter": "0,1,2,3",
893*56f57cffSIan Rogers        "CounterHTOff": "0,1,2,3,4,5,6,7",
894*56f57cffSIan Rogers        "EventCode": "0xCC",
89597d00f2dSAndi Kleen        "EventName": "ROB_MISC_EVENTS.LBR_INSERTS",
89697d00f2dSAndi Kleen        "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.",
89797d00f2dSAndi Kleen        "SampleAfterValue": "2000003",
898*56f57cffSIan Rogers        "UMask": "0x20"
89997d00f2dSAndi Kleen    },
90097d00f2dSAndi Kleen    {
901*56f57cffSIan Rogers        "BriefDescription": "Cycles when Reservation Station (RS) is empty for the thread",
90297d00f2dSAndi Kleen        "Counter": "0,1,2,3",
903*56f57cffSIan Rogers        "CounterHTOff": "0,1,2,3,4,5,6,7",
904*56f57cffSIan Rogers        "EventCode": "0x5E",
905*56f57cffSIan Rogers        "EventName": "RS_EVENTS.EMPTY_CYCLES",
906*56f57cffSIan 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*56f57cffSIan Rogers        "SampleAfterValue": "2000003",
908*56f57cffSIan Rogers        "UMask": "0x1"
909*56f57cffSIan Rogers    },
910*56f57cffSIan Rogers    {
911*56f57cffSIan Rogers        "BriefDescription": "Counts end of periods where the Reservation Station (RS) was empty. Could be useful to precisely locate Frontend Latency Bound issues.",
912*56f57cffSIan Rogers        "Counter": "0,1,2,3",
913*56f57cffSIan Rogers        "CounterHTOff": "0,1,2,3,4,5,6,7",
914*56f57cffSIan Rogers        "CounterMask": "1",
915*56f57cffSIan Rogers        "EdgeDetect": "1",
916*56f57cffSIan Rogers        "EventCode": "0x5E",
917*56f57cffSIan Rogers        "EventName": "RS_EVENTS.EMPTY_END",
918*56f57cffSIan Rogers        "Invert": "1",
919*56f57cffSIan Rogers        "SampleAfterValue": "200003",
920*56f57cffSIan Rogers        "UMask": "0x1"
921*56f57cffSIan Rogers    },
922*56f57cffSIan Rogers    {
923*56f57cffSIan Rogers        "BriefDescription": "Cycles per thread when uops are executed in port 0",
924*56f57cffSIan Rogers        "Counter": "0,1,2,3",
925*56f57cffSIan Rogers        "CounterHTOff": "0,1,2,3,4,5,6,7",
926*56f57cffSIan Rogers        "EventCode": "0xA1",
927*56f57cffSIan Rogers        "EventName": "UOPS_DISPATCHED_PORT.PORT_0",
928*56f57cffSIan 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*56f57cffSIan Rogers        "SampleAfterValue": "2000003",
930*56f57cffSIan Rogers        "UMask": "0x1"
931*56f57cffSIan Rogers    },
932*56f57cffSIan Rogers    {
933*56f57cffSIan Rogers        "BriefDescription": "Cycles per thread when uops are executed in port 1",
934*56f57cffSIan Rogers        "Counter": "0,1,2,3",
935*56f57cffSIan Rogers        "CounterHTOff": "0,1,2,3,4,5,6,7",
936*56f57cffSIan Rogers        "EventCode": "0xA1",
937*56f57cffSIan Rogers        "EventName": "UOPS_DISPATCHED_PORT.PORT_1",
938*56f57cffSIan 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*56f57cffSIan Rogers        "SampleAfterValue": "2000003",
940*56f57cffSIan Rogers        "UMask": "0x2"
941*56f57cffSIan Rogers    },
942*56f57cffSIan Rogers    {
943*56f57cffSIan Rogers        "BriefDescription": "Cycles per thread when uops are executed in port 2",
944*56f57cffSIan Rogers        "Counter": "0,1,2,3",
945*56f57cffSIan Rogers        "CounterHTOff": "0,1,2,3,4,5,6,7",
946*56f57cffSIan Rogers        "EventCode": "0xA1",
947*56f57cffSIan Rogers        "EventName": "UOPS_DISPATCHED_PORT.PORT_2",
948*56f57cffSIan 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*56f57cffSIan Rogers        "SampleAfterValue": "2000003",
950*56f57cffSIan Rogers        "UMask": "0x4"
951*56f57cffSIan Rogers    },
952*56f57cffSIan Rogers    {
953*56f57cffSIan Rogers        "BriefDescription": "Cycles per thread when uops are executed in port 3",
954*56f57cffSIan Rogers        "Counter": "0,1,2,3",
955*56f57cffSIan Rogers        "CounterHTOff": "0,1,2,3,4,5,6,7",
956*56f57cffSIan Rogers        "EventCode": "0xA1",
957*56f57cffSIan Rogers        "EventName": "UOPS_DISPATCHED_PORT.PORT_3",
958*56f57cffSIan 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*56f57cffSIan Rogers        "SampleAfterValue": "2000003",
960*56f57cffSIan Rogers        "UMask": "0x8"
961*56f57cffSIan Rogers    },
962*56f57cffSIan Rogers    {
963*56f57cffSIan Rogers        "BriefDescription": "Cycles per thread when uops are executed in port 4",
964*56f57cffSIan Rogers        "Counter": "0,1,2,3",
965*56f57cffSIan Rogers        "CounterHTOff": "0,1,2,3,4,5,6,7",
966*56f57cffSIan Rogers        "EventCode": "0xA1",
967*56f57cffSIan Rogers        "EventName": "UOPS_DISPATCHED_PORT.PORT_4",
968*56f57cffSIan 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*56f57cffSIan Rogers        "SampleAfterValue": "2000003",
970*56f57cffSIan Rogers        "UMask": "0x10"
971*56f57cffSIan Rogers    },
972*56f57cffSIan Rogers    {
973*56f57cffSIan Rogers        "BriefDescription": "Cycles per thread when uops are executed in port 5",
974*56f57cffSIan Rogers        "Counter": "0,1,2,3",
975*56f57cffSIan Rogers        "CounterHTOff": "0,1,2,3,4,5,6,7",
976*56f57cffSIan Rogers        "EventCode": "0xA1",
977*56f57cffSIan Rogers        "EventName": "UOPS_DISPATCHED_PORT.PORT_5",
978*56f57cffSIan 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*56f57cffSIan Rogers        "SampleAfterValue": "2000003",
980*56f57cffSIan Rogers        "UMask": "0x20"
981*56f57cffSIan Rogers    },
982*56f57cffSIan Rogers    {
983*56f57cffSIan Rogers        "BriefDescription": "Cycles per thread when uops are executed in port 6",
984*56f57cffSIan Rogers        "Counter": "0,1,2,3",
985*56f57cffSIan Rogers        "CounterHTOff": "0,1,2,3,4,5,6,7",
986*56f57cffSIan Rogers        "EventCode": "0xA1",
987*56f57cffSIan Rogers        "EventName": "UOPS_DISPATCHED_PORT.PORT_6",
988*56f57cffSIan 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*56f57cffSIan Rogers        "SampleAfterValue": "2000003",
990*56f57cffSIan Rogers        "UMask": "0x40"
991*56f57cffSIan Rogers    },
992*56f57cffSIan Rogers    {
993*56f57cffSIan Rogers        "BriefDescription": "Cycles per thread when uops are executed in port 7",
994*56f57cffSIan Rogers        "Counter": "0,1,2,3",
995*56f57cffSIan Rogers        "CounterHTOff": "0,1,2,3,4,5,6,7",
996*56f57cffSIan Rogers        "EventCode": "0xA1",
997*56f57cffSIan Rogers        "EventName": "UOPS_DISPATCHED_PORT.PORT_7",
998*56f57cffSIan 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*56f57cffSIan Rogers        "SampleAfterValue": "2000003",
1000*56f57cffSIan Rogers        "UMask": "0x80"
1001*56f57cffSIan Rogers    },
1002*56f57cffSIan Rogers    {
1003*56f57cffSIan Rogers        "BriefDescription": "Number of uops executed on the core.",
1004*56f57cffSIan Rogers        "Counter": "0,1,2,3",
1005*56f57cffSIan Rogers        "CounterHTOff": "0,1,2,3,4,5,6,7",
1006*56f57cffSIan Rogers        "EventCode": "0xB1",
1007*56f57cffSIan Rogers        "EventName": "UOPS_EXECUTED.CORE",
1008*56f57cffSIan Rogers        "PublicDescription": "Number of uops executed from any thread.",
1009*56f57cffSIan Rogers        "SampleAfterValue": "2000003",
1010*56f57cffSIan Rogers        "UMask": "0x2"
1011*56f57cffSIan Rogers    },
1012*56f57cffSIan Rogers    {
1013*56f57cffSIan Rogers        "BriefDescription": "Cycles at least 1 micro-op is executed from any thread on physical core.",
1014*56f57cffSIan Rogers        "Counter": "0,1,2,3",
1015*56f57cffSIan Rogers        "CounterHTOff": "0,1,2,3,4,5,6,7",
1016*56f57cffSIan Rogers        "CounterMask": "1",
1017*56f57cffSIan Rogers        "EventCode": "0xb1",
1018*56f57cffSIan Rogers        "EventName": "UOPS_EXECUTED.CORE_CYCLES_GE_1",
1019*56f57cffSIan Rogers        "SampleAfterValue": "2000003",
1020*56f57cffSIan Rogers        "UMask": "0x2"
1021*56f57cffSIan Rogers    },
1022*56f57cffSIan Rogers    {
1023*56f57cffSIan Rogers        "BriefDescription": "Cycles at least 2 micro-op is executed from any thread on physical core.",
1024*56f57cffSIan Rogers        "Counter": "0,1,2,3",
1025*56f57cffSIan Rogers        "CounterHTOff": "0,1,2,3,4,5,6,7",
1026*56f57cffSIan Rogers        "CounterMask": "2",
1027*56f57cffSIan Rogers        "EventCode": "0xb1",
1028*56f57cffSIan Rogers        "EventName": "UOPS_EXECUTED.CORE_CYCLES_GE_2",
1029*56f57cffSIan Rogers        "SampleAfterValue": "2000003",
1030*56f57cffSIan Rogers        "UMask": "0x2"
1031*56f57cffSIan Rogers    },
1032*56f57cffSIan Rogers    {
1033*56f57cffSIan Rogers        "BriefDescription": "Cycles at least 3 micro-op is executed from any thread on physical core.",
1034*56f57cffSIan Rogers        "Counter": "0,1,2,3",
1035*56f57cffSIan Rogers        "CounterHTOff": "0,1,2,3,4,5,6,7",
1036*56f57cffSIan Rogers        "CounterMask": "3",
1037*56f57cffSIan Rogers        "EventCode": "0xb1",
1038*56f57cffSIan Rogers        "EventName": "UOPS_EXECUTED.CORE_CYCLES_GE_3",
1039*56f57cffSIan Rogers        "SampleAfterValue": "2000003",
1040*56f57cffSIan Rogers        "UMask": "0x2"
1041*56f57cffSIan Rogers    },
1042*56f57cffSIan Rogers    {
1043*56f57cffSIan Rogers        "BriefDescription": "Cycles at least 4 micro-op is executed from any thread on physical core.",
1044*56f57cffSIan Rogers        "Counter": "0,1,2,3",
1045*56f57cffSIan Rogers        "CounterHTOff": "0,1,2,3,4,5,6,7",
1046*56f57cffSIan Rogers        "CounterMask": "4",
1047*56f57cffSIan Rogers        "EventCode": "0xb1",
1048*56f57cffSIan Rogers        "EventName": "UOPS_EXECUTED.CORE_CYCLES_GE_4",
1049*56f57cffSIan Rogers        "SampleAfterValue": "2000003",
1050*56f57cffSIan Rogers        "UMask": "0x2"
1051*56f57cffSIan Rogers    },
1052*56f57cffSIan Rogers    {
1053*56f57cffSIan Rogers        "BriefDescription": "Cycles with no micro-ops executed from any thread on physical core.",
1054*56f57cffSIan Rogers        "Counter": "0,1,2,3",
1055*56f57cffSIan Rogers        "CounterHTOff": "0,1,2,3,4,5,6,7",
1056*56f57cffSIan Rogers        "EventCode": "0xb1",
1057*56f57cffSIan Rogers        "EventName": "UOPS_EXECUTED.CORE_CYCLES_NONE",
1058*56f57cffSIan Rogers        "Invert": "1",
1059*56f57cffSIan Rogers        "SampleAfterValue": "2000003",
1060*56f57cffSIan Rogers        "UMask": "0x2"
1061*56f57cffSIan Rogers    },
1062*56f57cffSIan Rogers    {
1063*56f57cffSIan Rogers        "BriefDescription": "Cycles where at least 1 uop was executed per-thread.",
1064*56f57cffSIan Rogers        "Counter": "0,1,2,3",
1065*56f57cffSIan Rogers        "CounterHTOff": "0,1,2,3",
1066*56f57cffSIan Rogers        "CounterMask": "1",
1067*56f57cffSIan Rogers        "EventCode": "0xB1",
1068*56f57cffSIan Rogers        "EventName": "UOPS_EXECUTED.CYCLES_GE_1_UOP_EXEC",
1069*56f57cffSIan Rogers        "SampleAfterValue": "2000003",
1070*56f57cffSIan Rogers        "UMask": "0x1"
1071*56f57cffSIan Rogers    },
1072*56f57cffSIan Rogers    {
1073*56f57cffSIan Rogers        "BriefDescription": "Cycles where at least 2 uops were executed per-thread.",
1074*56f57cffSIan Rogers        "Counter": "0,1,2,3",
1075*56f57cffSIan Rogers        "CounterHTOff": "0,1,2,3",
1076*56f57cffSIan Rogers        "CounterMask": "2",
1077*56f57cffSIan Rogers        "EventCode": "0xB1",
1078*56f57cffSIan Rogers        "EventName": "UOPS_EXECUTED.CYCLES_GE_2_UOPS_EXEC",
1079*56f57cffSIan Rogers        "SampleAfterValue": "2000003",
1080*56f57cffSIan Rogers        "UMask": "0x1"
1081*56f57cffSIan Rogers    },
1082*56f57cffSIan Rogers    {
1083*56f57cffSIan Rogers        "BriefDescription": "Cycles where at least 3 uops were executed per-thread.",
1084*56f57cffSIan Rogers        "Counter": "0,1,2,3",
1085*56f57cffSIan Rogers        "CounterHTOff": "0,1,2,3",
1086*56f57cffSIan Rogers        "CounterMask": "3",
1087*56f57cffSIan Rogers        "EventCode": "0xB1",
1088*56f57cffSIan Rogers        "EventName": "UOPS_EXECUTED.CYCLES_GE_3_UOPS_EXEC",
1089*56f57cffSIan Rogers        "SampleAfterValue": "2000003",
1090*56f57cffSIan Rogers        "UMask": "0x1"
1091*56f57cffSIan Rogers    },
1092*56f57cffSIan Rogers    {
1093*56f57cffSIan Rogers        "BriefDescription": "Cycles where at least 4 uops were executed per-thread.",
1094*56f57cffSIan Rogers        "Counter": "0,1,2,3",
1095*56f57cffSIan Rogers        "CounterHTOff": "0,1,2,3",
1096*56f57cffSIan Rogers        "CounterMask": "4",
1097*56f57cffSIan Rogers        "EventCode": "0xB1",
1098*56f57cffSIan Rogers        "EventName": "UOPS_EXECUTED.CYCLES_GE_4_UOPS_EXEC",
1099*56f57cffSIan Rogers        "SampleAfterValue": "2000003",
1100*56f57cffSIan Rogers        "UMask": "0x1"
1101*56f57cffSIan Rogers    },
1102*56f57cffSIan Rogers    {
1103*56f57cffSIan Rogers        "BriefDescription": "Counts number of cycles no uops were dispatched to be executed on this thread.",
1104*56f57cffSIan Rogers        "Counter": "0,1,2,3",
1105*56f57cffSIan Rogers        "CounterHTOff": "0,1,2,3",
1106*56f57cffSIan Rogers        "CounterMask": "1",
1107*56f57cffSIan Rogers        "EventCode": "0xB1",
1108*56f57cffSIan Rogers        "EventName": "UOPS_EXECUTED.STALL_CYCLES",
1109*56f57cffSIan Rogers        "Invert": "1",
1110*56f57cffSIan Rogers        "PublicDescription": "This event counts cycles during which no uops were dispatched from the Reservation Station (RS) per thread.",
1111*56f57cffSIan Rogers        "SampleAfterValue": "2000003",
1112*56f57cffSIan Rogers        "UMask": "0x1"
1113*56f57cffSIan Rogers    },
1114*56f57cffSIan Rogers    {
1115*56f57cffSIan Rogers        "BriefDescription": "Counts the number of uops to be executed per-thread each cycle.",
1116*56f57cffSIan Rogers        "Counter": "0,1,2,3",
1117*56f57cffSIan Rogers        "CounterHTOff": "0,1,2,3,4,5,6,7",
1118*56f57cffSIan Rogers        "EventCode": "0xB1",
1119*56f57cffSIan Rogers        "EventName": "UOPS_EXECUTED.THREAD",
1120*56f57cffSIan Rogers        "PublicDescription": "Number of uops to be executed per-thread each cycle.",
1121*56f57cffSIan Rogers        "SampleAfterValue": "2000003",
1122*56f57cffSIan Rogers        "UMask": "0x1"
1123*56f57cffSIan Rogers    },
1124*56f57cffSIan Rogers    {
1125*56f57cffSIan Rogers        "BriefDescription": "Cycles per thread when uops are executed in port 0",
1126*56f57cffSIan Rogers        "Counter": "0,1,2,3",
1127*56f57cffSIan Rogers        "CounterHTOff": "0,1,2,3,4,5,6,7",
1128*56f57cffSIan Rogers        "EventCode": "0xA1",
1129*56f57cffSIan Rogers        "EventName": "UOPS_EXECUTED_PORT.PORT_0",
1130*56f57cffSIan 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*56f57cffSIan Rogers        "SampleAfterValue": "2000003",
1132*56f57cffSIan Rogers        "UMask": "0x1"
1133*56f57cffSIan Rogers    },
1134*56f57cffSIan Rogers    {
1135*56f57cffSIan Rogers        "AnyThread": "1",
1136*56f57cffSIan Rogers        "BriefDescription": "Cycles per core when uops are exectuted in port 0.",
1137*56f57cffSIan Rogers        "Counter": "0,1,2,3",
1138*56f57cffSIan Rogers        "CounterHTOff": "0,1,2,3,4,5,6,7",
1139*56f57cffSIan Rogers        "EventCode": "0xA1",
1140*56f57cffSIan Rogers        "EventName": "UOPS_EXECUTED_PORT.PORT_0_CORE",
1141*56f57cffSIan Rogers        "SampleAfterValue": "2000003",
1142*56f57cffSIan Rogers        "UMask": "0x1"
1143*56f57cffSIan Rogers    },
1144*56f57cffSIan Rogers    {
1145*56f57cffSIan Rogers        "BriefDescription": "Cycles per thread when uops are executed in port 1",
1146*56f57cffSIan Rogers        "Counter": "0,1,2,3",
1147*56f57cffSIan Rogers        "CounterHTOff": "0,1,2,3,4,5,6,7",
1148*56f57cffSIan Rogers        "EventCode": "0xA1",
1149*56f57cffSIan Rogers        "EventName": "UOPS_EXECUTED_PORT.PORT_1",
1150*56f57cffSIan 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*56f57cffSIan Rogers        "SampleAfterValue": "2000003",
1152*56f57cffSIan Rogers        "UMask": "0x2"
1153*56f57cffSIan Rogers    },
1154*56f57cffSIan Rogers    {
1155*56f57cffSIan Rogers        "AnyThread": "1",
1156*56f57cffSIan Rogers        "BriefDescription": "Cycles per core when uops are exectuted in port 1.",
1157*56f57cffSIan Rogers        "Counter": "0,1,2,3",
1158*56f57cffSIan Rogers        "CounterHTOff": "0,1,2,3,4,5,6,7",
1159*56f57cffSIan Rogers        "EventCode": "0xA1",
1160*56f57cffSIan Rogers        "EventName": "UOPS_EXECUTED_PORT.PORT_1_CORE",
1161*56f57cffSIan Rogers        "SampleAfterValue": "2000003",
1162*56f57cffSIan Rogers        "UMask": "0x2"
1163*56f57cffSIan Rogers    },
1164*56f57cffSIan Rogers    {
1165*56f57cffSIan Rogers        "BriefDescription": "Cycles per thread when uops are executed in port 2",
1166*56f57cffSIan Rogers        "Counter": "0,1,2,3",
1167*56f57cffSIan Rogers        "CounterHTOff": "0,1,2,3,4,5,6,7",
1168*56f57cffSIan Rogers        "EventCode": "0xA1",
1169*56f57cffSIan Rogers        "EventName": "UOPS_EXECUTED_PORT.PORT_2",
1170*56f57cffSIan 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*56f57cffSIan Rogers        "SampleAfterValue": "2000003",
1172*56f57cffSIan Rogers        "UMask": "0x4"
1173*56f57cffSIan Rogers    },
1174*56f57cffSIan Rogers    {
1175*56f57cffSIan Rogers        "AnyThread": "1",
1176*56f57cffSIan Rogers        "BriefDescription": "Cycles per core when uops are dispatched to port 2.",
1177*56f57cffSIan Rogers        "Counter": "0,1,2,3",
1178*56f57cffSIan Rogers        "CounterHTOff": "0,1,2,3,4,5,6,7",
1179*56f57cffSIan Rogers        "EventCode": "0xA1",
1180*56f57cffSIan Rogers        "EventName": "UOPS_EXECUTED_PORT.PORT_2_CORE",
1181*56f57cffSIan Rogers        "SampleAfterValue": "2000003",
1182*56f57cffSIan Rogers        "UMask": "0x4"
1183*56f57cffSIan Rogers    },
1184*56f57cffSIan Rogers    {
1185*56f57cffSIan Rogers        "BriefDescription": "Cycles per thread when uops are executed in port 3",
1186*56f57cffSIan Rogers        "Counter": "0,1,2,3",
1187*56f57cffSIan Rogers        "CounterHTOff": "0,1,2,3,4,5,6,7",
1188*56f57cffSIan Rogers        "EventCode": "0xA1",
1189*56f57cffSIan Rogers        "EventName": "UOPS_EXECUTED_PORT.PORT_3",
1190*56f57cffSIan 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*56f57cffSIan Rogers        "SampleAfterValue": "2000003",
1192*56f57cffSIan Rogers        "UMask": "0x8"
1193*56f57cffSIan Rogers    },
1194*56f57cffSIan Rogers    {
1195*56f57cffSIan Rogers        "AnyThread": "1",
1196*56f57cffSIan Rogers        "BriefDescription": "Cycles per core when uops are dispatched to port 3.",
1197*56f57cffSIan Rogers        "Counter": "0,1,2,3",
1198*56f57cffSIan Rogers        "CounterHTOff": "0,1,2,3,4,5,6,7",
1199*56f57cffSIan Rogers        "EventCode": "0xA1",
1200*56f57cffSIan Rogers        "EventName": "UOPS_EXECUTED_PORT.PORT_3_CORE",
1201*56f57cffSIan Rogers        "SampleAfterValue": "2000003",
1202*56f57cffSIan Rogers        "UMask": "0x8"
1203*56f57cffSIan Rogers    },
1204*56f57cffSIan Rogers    {
1205*56f57cffSIan Rogers        "BriefDescription": "Cycles per thread when uops are executed in port 4",
1206*56f57cffSIan Rogers        "Counter": "0,1,2,3",
1207*56f57cffSIan Rogers        "CounterHTOff": "0,1,2,3,4,5,6,7",
1208*56f57cffSIan Rogers        "EventCode": "0xA1",
1209*56f57cffSIan Rogers        "EventName": "UOPS_EXECUTED_PORT.PORT_4",
1210*56f57cffSIan 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*56f57cffSIan Rogers        "SampleAfterValue": "2000003",
1212*56f57cffSIan Rogers        "UMask": "0x10"
1213*56f57cffSIan Rogers    },
1214*56f57cffSIan Rogers    {
1215*56f57cffSIan Rogers        "AnyThread": "1",
1216*56f57cffSIan Rogers        "BriefDescription": "Cycles per core when uops are exectuted in port 4.",
1217*56f57cffSIan Rogers        "Counter": "0,1,2,3",
1218*56f57cffSIan Rogers        "CounterHTOff": "0,1,2,3,4,5,6,7",
1219*56f57cffSIan Rogers        "EventCode": "0xA1",
1220*56f57cffSIan Rogers        "EventName": "UOPS_EXECUTED_PORT.PORT_4_CORE",
1221*56f57cffSIan Rogers        "SampleAfterValue": "2000003",
1222*56f57cffSIan Rogers        "UMask": "0x10"
1223*56f57cffSIan Rogers    },
1224*56f57cffSIan Rogers    {
1225*56f57cffSIan Rogers        "BriefDescription": "Cycles per thread when uops are executed in port 5",
1226*56f57cffSIan Rogers        "Counter": "0,1,2,3",
1227*56f57cffSIan Rogers        "CounterHTOff": "0,1,2,3,4,5,6,7",
1228*56f57cffSIan Rogers        "EventCode": "0xA1",
1229*56f57cffSIan Rogers        "EventName": "UOPS_EXECUTED_PORT.PORT_5",
1230*56f57cffSIan 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*56f57cffSIan Rogers        "SampleAfterValue": "2000003",
1232*56f57cffSIan Rogers        "UMask": "0x20"
1233*56f57cffSIan Rogers    },
1234*56f57cffSIan Rogers    {
1235*56f57cffSIan Rogers        "AnyThread": "1",
1236*56f57cffSIan Rogers        "BriefDescription": "Cycles per core when uops are exectuted in port 5.",
1237*56f57cffSIan Rogers        "Counter": "0,1,2,3",
1238*56f57cffSIan Rogers        "CounterHTOff": "0,1,2,3,4,5,6,7",
1239*56f57cffSIan Rogers        "EventCode": "0xA1",
1240*56f57cffSIan Rogers        "EventName": "UOPS_EXECUTED_PORT.PORT_5_CORE",
1241*56f57cffSIan Rogers        "SampleAfterValue": "2000003",
1242*56f57cffSIan Rogers        "UMask": "0x20"
1243*56f57cffSIan Rogers    },
1244*56f57cffSIan Rogers    {
1245*56f57cffSIan Rogers        "BriefDescription": "Cycles per thread when uops are executed in port 6",
1246*56f57cffSIan Rogers        "Counter": "0,1,2,3",
1247*56f57cffSIan Rogers        "CounterHTOff": "0,1,2,3,4,5,6,7",
1248*56f57cffSIan Rogers        "EventCode": "0xA1",
1249*56f57cffSIan Rogers        "EventName": "UOPS_EXECUTED_PORT.PORT_6",
1250*56f57cffSIan 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*56f57cffSIan Rogers        "SampleAfterValue": "2000003",
1252*56f57cffSIan Rogers        "UMask": "0x40"
1253*56f57cffSIan Rogers    },
1254*56f57cffSIan Rogers    {
1255*56f57cffSIan Rogers        "AnyThread": "1",
1256*56f57cffSIan Rogers        "BriefDescription": "Cycles per core when uops are exectuted in port 6.",
1257*56f57cffSIan Rogers        "Counter": "0,1,2,3",
1258*56f57cffSIan Rogers        "CounterHTOff": "0,1,2,3,4,5,6,7",
1259*56f57cffSIan Rogers        "EventCode": "0xA1",
1260*56f57cffSIan Rogers        "EventName": "UOPS_EXECUTED_PORT.PORT_6_CORE",
1261*56f57cffSIan Rogers        "SampleAfterValue": "2000003",
1262*56f57cffSIan Rogers        "UMask": "0x40"
1263*56f57cffSIan Rogers    },
1264*56f57cffSIan Rogers    {
1265*56f57cffSIan Rogers        "BriefDescription": "Cycles per thread when uops are executed in port 7",
1266*56f57cffSIan Rogers        "Counter": "0,1,2,3",
1267*56f57cffSIan Rogers        "CounterHTOff": "0,1,2,3,4,5,6,7",
1268*56f57cffSIan Rogers        "EventCode": "0xA1",
1269*56f57cffSIan Rogers        "EventName": "UOPS_EXECUTED_PORT.PORT_7",
1270*56f57cffSIan 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*56f57cffSIan Rogers        "SampleAfterValue": "2000003",
1272*56f57cffSIan Rogers        "UMask": "0x80"
1273*56f57cffSIan Rogers    },
1274*56f57cffSIan Rogers    {
1275*56f57cffSIan Rogers        "AnyThread": "1",
1276*56f57cffSIan Rogers        "BriefDescription": "Cycles per core when uops are dispatched to port 7.",
1277*56f57cffSIan Rogers        "Counter": "0,1,2,3",
1278*56f57cffSIan Rogers        "CounterHTOff": "0,1,2,3,4,5,6,7",
1279*56f57cffSIan Rogers        "EventCode": "0xA1",
1280*56f57cffSIan Rogers        "EventName": "UOPS_EXECUTED_PORT.PORT_7_CORE",
1281*56f57cffSIan Rogers        "SampleAfterValue": "2000003",
1282*56f57cffSIan Rogers        "UMask": "0x80"
1283*56f57cffSIan Rogers    },
1284*56f57cffSIan Rogers    {
1285*56f57cffSIan Rogers        "BriefDescription": "Uops that Resource Allocation Table (RAT) issues to Reservation Station (RS)",
1286*56f57cffSIan Rogers        "Counter": "0,1,2,3",
1287*56f57cffSIan Rogers        "CounterHTOff": "0,1,2,3,4,5,6,7",
1288*56f57cffSIan Rogers        "EventCode": "0x0E",
1289*56f57cffSIan Rogers        "EventName": "UOPS_ISSUED.ANY",
1290*56f57cffSIan Rogers        "PublicDescription": "This event counts the number of Uops issued by the Resource Allocation Table (RAT) to the reservation station (RS).",
1291*56f57cffSIan Rogers        "SampleAfterValue": "2000003",
1292*56f57cffSIan Rogers        "UMask": "0x1"
1293*56f57cffSIan Rogers    },
1294*56f57cffSIan Rogers    {
1295*56f57cffSIan Rogers        "BriefDescription": "Number of flags-merge uops being allocated. Such uops considered perf sensitive; added by GSR u-arch.",
1296*56f57cffSIan Rogers        "Counter": "0,1,2,3",
1297*56f57cffSIan Rogers        "CounterHTOff": "0,1,2,3,4,5,6,7",
1298*56f57cffSIan Rogers        "EventCode": "0x0E",
1299*56f57cffSIan Rogers        "EventName": "UOPS_ISSUED.FLAGS_MERGE",
1300*56f57cffSIan Rogers        "PublicDescription": "Number of flags-merge uops being allocated. Such uops considered perf sensitive\n added by GSR u-arch.",
1301*56f57cffSIan Rogers        "SampleAfterValue": "2000003",
1302*56f57cffSIan Rogers        "UMask": "0x10"
1303*56f57cffSIan Rogers    },
1304*56f57cffSIan Rogers    {
1305*56f57cffSIan Rogers        "BriefDescription": "Number of Multiply packed/scalar single precision uops allocated.",
1306*56f57cffSIan Rogers        "Counter": "0,1,2,3",
1307*56f57cffSIan Rogers        "CounterHTOff": "0,1,2,3,4,5,6,7",
1308*56f57cffSIan Rogers        "EventCode": "0x0E",
1309*56f57cffSIan Rogers        "EventName": "UOPS_ISSUED.SINGLE_MUL",
1310*56f57cffSIan Rogers        "SampleAfterValue": "2000003",
1311*56f57cffSIan Rogers        "UMask": "0x40"
1312*56f57cffSIan Rogers    },
1313*56f57cffSIan Rogers    {
1314*56f57cffSIan 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*56f57cffSIan Rogers        "Counter": "0,1,2,3",
1316*56f57cffSIan Rogers        "CounterHTOff": "0,1,2,3,4,5,6,7",
1317*56f57cffSIan Rogers        "EventCode": "0x0E",
1318*56f57cffSIan Rogers        "EventName": "UOPS_ISSUED.SLOW_LEA",
1319*56f57cffSIan Rogers        "SampleAfterValue": "2000003",
1320*56f57cffSIan Rogers        "UMask": "0x20"
1321*56f57cffSIan Rogers    },
1322*56f57cffSIan Rogers    {
1323*56f57cffSIan Rogers        "BriefDescription": "Cycles when Resource Allocation Table (RAT) does not issue Uops to Reservation Station (RS) for the thread",
1324*56f57cffSIan Rogers        "Counter": "0,1,2,3",
1325*56f57cffSIan Rogers        "CounterHTOff": "0,1,2,3",
1326*56f57cffSIan Rogers        "CounterMask": "1",
1327*56f57cffSIan Rogers        "EventCode": "0x0E",
1328*56f57cffSIan Rogers        "EventName": "UOPS_ISSUED.STALL_CYCLES",
1329*56f57cffSIan Rogers        "Invert": "1",
1330*56f57cffSIan 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*56f57cffSIan Rogers        "SampleAfterValue": "2000003",
1332*56f57cffSIan Rogers        "UMask": "0x1"
1333*56f57cffSIan Rogers    },
1334*56f57cffSIan Rogers    {
1335*56f57cffSIan Rogers        "BriefDescription": "Actually retired uops.",
1336*56f57cffSIan Rogers        "Counter": "0,1,2,3",
1337*56f57cffSIan Rogers        "CounterHTOff": "0,1,2,3,4,5,6,7",
1338*56f57cffSIan Rogers        "EventCode": "0xC2",
1339*56f57cffSIan Rogers        "EventName": "UOPS_RETIRED.ALL",
1340*56f57cffSIan Rogers        "PEBS": "1",
1341*56f57cffSIan 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*56f57cffSIan Rogers        "SampleAfterValue": "2000003",
1343*56f57cffSIan Rogers        "UMask": "0x1"
1344*56f57cffSIan Rogers    },
1345*56f57cffSIan Rogers    {
1346*56f57cffSIan Rogers        "BriefDescription": "Retirement slots used.",
1347*56f57cffSIan Rogers        "Counter": "0,1,2,3",
1348*56f57cffSIan Rogers        "CounterHTOff": "0,1,2,3,4,5,6,7",
1349*56f57cffSIan Rogers        "EventCode": "0xC2",
1350*56f57cffSIan Rogers        "EventName": "UOPS_RETIRED.RETIRE_SLOTS",
1351*56f57cffSIan Rogers        "PEBS": "1",
1352*56f57cffSIan Rogers        "PublicDescription": "This event counts the number of retirement slots used.",
1353*56f57cffSIan Rogers        "SampleAfterValue": "2000003",
1354*56f57cffSIan Rogers        "UMask": "0x2"
1355*56f57cffSIan Rogers    },
1356*56f57cffSIan Rogers    {
1357*56f57cffSIan Rogers        "BriefDescription": "Cycles without actually retired uops.",
1358*56f57cffSIan Rogers        "Counter": "0,1,2,3",
1359*56f57cffSIan Rogers        "CounterHTOff": "0,1,2,3",
1360*56f57cffSIan Rogers        "CounterMask": "1",
1361*56f57cffSIan Rogers        "EventCode": "0xC2",
1362*56f57cffSIan Rogers        "EventName": "UOPS_RETIRED.STALL_CYCLES",
1363*56f57cffSIan Rogers        "Invert": "1",
1364*56f57cffSIan Rogers        "PublicDescription": "This event counts cycles without actually retired uops.",
1365*56f57cffSIan Rogers        "SampleAfterValue": "2000003",
1366*56f57cffSIan Rogers        "UMask": "0x1"
1367*56f57cffSIan Rogers    },
1368*56f57cffSIan Rogers    {
1369*56f57cffSIan Rogers        "BriefDescription": "Cycles with less than 10 actually retired uops.",
1370*56f57cffSIan Rogers        "Counter": "0,1,2,3",
1371*56f57cffSIan Rogers        "CounterHTOff": "0,1,2,3",
1372*56f57cffSIan Rogers        "CounterMask": "10",
1373*56f57cffSIan Rogers        "EventCode": "0xC2",
1374*56f57cffSIan Rogers        "EventName": "UOPS_RETIRED.TOTAL_CYCLES",
1375*56f57cffSIan Rogers        "Invert": "1",
1376*56f57cffSIan Rogers        "PublicDescription": "Number of cycles using always true condition (uops_ret < 16) applied to non PEBS uops retired event.",
1377*56f57cffSIan Rogers        "SampleAfterValue": "2000003",
1378*56f57cffSIan Rogers        "UMask": "0x1"
137919c0389bSAndi Kleen    }
138019c0389bSAndi Kleen]