11ab4ef06SIan Rogers[
21ab4ef06SIan Rogers    {
3*dfc83cc8SIan Rogers        "BriefDescription": "Cycles when divide unit is busy executing divide or square root operations.",
4*dfc83cc8SIan Rogers        "CounterMask": "1",
5*dfc83cc8SIan Rogers        "EventCode": "0xb0",
6*dfc83cc8SIan Rogers        "EventName": "ARITH.DIV_ACTIVE",
7*dfc83cc8SIan Rogers        "PublicDescription": "Counts cycles when divide unit is busy executing divide or square root operations. Accounts for integer and floating-point operations.",
8*dfc83cc8SIan Rogers        "SampleAfterValue": "1000003",
9*dfc83cc8SIan Rogers        "UMask": "0x9",
10*dfc83cc8SIan Rogers        "Unit": "cpu_core"
11*dfc83cc8SIan Rogers    },
12*dfc83cc8SIan Rogers    {
13*dfc83cc8SIan Rogers        "BriefDescription": "This event counts the cycles the integer divider is busy.",
14*dfc83cc8SIan Rogers        "CounterMask": "1",
15*dfc83cc8SIan Rogers        "EventCode": "0xb0",
16*dfc83cc8SIan Rogers        "EventName": "ARITH.IDIV_ACTIVE",
17*dfc83cc8SIan Rogers        "SampleAfterValue": "1000003",
18*dfc83cc8SIan Rogers        "UMask": "0x8",
19*dfc83cc8SIan Rogers        "Unit": "cpu_core"
20*dfc83cc8SIan Rogers    },
21*dfc83cc8SIan Rogers    {
22*dfc83cc8SIan Rogers        "BriefDescription": "Number of occurrences where a microcode assist is invoked by hardware.",
23*dfc83cc8SIan Rogers        "EventCode": "0xc1",
24*dfc83cc8SIan Rogers        "EventName": "ASSISTS.ANY",
25*dfc83cc8SIan Rogers        "PublicDescription": "Counts the number of occurrences where a microcode assist is invoked by hardware. Examples include AD (page Access Dirty), FP and AVX related assists.",
26*dfc83cc8SIan Rogers        "SampleAfterValue": "100003",
27*dfc83cc8SIan Rogers        "UMask": "0x1b",
28*dfc83cc8SIan Rogers        "Unit": "cpu_core"
29*dfc83cc8SIan Rogers    },
30*dfc83cc8SIan Rogers    {
311ab4ef06SIan Rogers        "BriefDescription": "Counts the total number of branch instructions retired for all branch types.",
321ab4ef06SIan Rogers        "EventCode": "0xc4",
331ab4ef06SIan Rogers        "EventName": "BR_INST_RETIRED.ALL_BRANCHES",
341ab4ef06SIan Rogers        "PEBS": "1",
35591530c0SIan Rogers        "PublicDescription": "Counts the total number of instructions in which the instruction pointer (IP) of the processor is resteered due to a branch instruction and the branch instruction successfully retires.  All branch type instructions are accounted for.",
361ab4ef06SIan Rogers        "SampleAfterValue": "200003",
371ab4ef06SIan Rogers        "Unit": "cpu_atom"
381ab4ef06SIan Rogers    },
391ab4ef06SIan Rogers    {
405362e4d1SIan Rogers        "BriefDescription": "All branch instructions retired.",
415362e4d1SIan Rogers        "EventCode": "0xc4",
425362e4d1SIan Rogers        "EventName": "BR_INST_RETIRED.ALL_BRANCHES",
435362e4d1SIan Rogers        "PEBS": "1",
44591530c0SIan Rogers        "PublicDescription": "Counts all branch instructions retired.",
455362e4d1SIan Rogers        "SampleAfterValue": "400009",
465362e4d1SIan Rogers        "Unit": "cpu_core"
475362e4d1SIan Rogers    },
485362e4d1SIan Rogers    {
49*dfc83cc8SIan Rogers        "BriefDescription": "Conditional branch instructions retired.",
50*dfc83cc8SIan Rogers        "EventCode": "0xc4",
51*dfc83cc8SIan Rogers        "EventName": "BR_INST_RETIRED.COND",
52*dfc83cc8SIan Rogers        "PEBS": "1",
53*dfc83cc8SIan Rogers        "PublicDescription": "Counts conditional branch instructions retired.",
54*dfc83cc8SIan Rogers        "SampleAfterValue": "400009",
55*dfc83cc8SIan Rogers        "UMask": "0x11",
56*dfc83cc8SIan Rogers        "Unit": "cpu_core"
57*dfc83cc8SIan Rogers    },
58*dfc83cc8SIan Rogers    {
59*dfc83cc8SIan Rogers        "BriefDescription": "Not taken branch instructions retired.",
60*dfc83cc8SIan Rogers        "EventCode": "0xc4",
61*dfc83cc8SIan Rogers        "EventName": "BR_INST_RETIRED.COND_NTAKEN",
62*dfc83cc8SIan Rogers        "PEBS": "1",
63*dfc83cc8SIan Rogers        "PublicDescription": "Counts not taken branch instructions retired.",
64*dfc83cc8SIan Rogers        "SampleAfterValue": "400009",
65*dfc83cc8SIan Rogers        "UMask": "0x10",
66*dfc83cc8SIan Rogers        "Unit": "cpu_core"
67*dfc83cc8SIan Rogers    },
68*dfc83cc8SIan Rogers    {
69*dfc83cc8SIan Rogers        "BriefDescription": "Taken conditional branch instructions retired.",
70*dfc83cc8SIan Rogers        "EventCode": "0xc4",
71*dfc83cc8SIan Rogers        "EventName": "BR_INST_RETIRED.COND_TAKEN",
72*dfc83cc8SIan Rogers        "PEBS": "1",
73*dfc83cc8SIan Rogers        "PublicDescription": "Counts taken conditional branch instructions retired.",
74*dfc83cc8SIan Rogers        "SampleAfterValue": "400009",
75*dfc83cc8SIan Rogers        "UMask": "0x1",
76*dfc83cc8SIan Rogers        "Unit": "cpu_core"
77*dfc83cc8SIan Rogers    },
78*dfc83cc8SIan Rogers    {
79*dfc83cc8SIan Rogers        "BriefDescription": "Counts the number of far branch instructions retired, includes far jump, far call and return, and interrupt call and return.",
80*dfc83cc8SIan Rogers        "EventCode": "0xc4",
81*dfc83cc8SIan Rogers        "EventName": "BR_INST_RETIRED.FAR_BRANCH",
82*dfc83cc8SIan Rogers        "PEBS": "1",
83*dfc83cc8SIan Rogers        "SampleAfterValue": "200003",
84*dfc83cc8SIan Rogers        "UMask": "0xbf",
85*dfc83cc8SIan Rogers        "Unit": "cpu_atom"
86*dfc83cc8SIan Rogers    },
87*dfc83cc8SIan Rogers    {
88*dfc83cc8SIan Rogers        "BriefDescription": "Far branch instructions retired.",
89*dfc83cc8SIan Rogers        "EventCode": "0xc4",
90*dfc83cc8SIan Rogers        "EventName": "BR_INST_RETIRED.FAR_BRANCH",
91*dfc83cc8SIan Rogers        "PEBS": "1",
92*dfc83cc8SIan Rogers        "PublicDescription": "Counts far branch instructions retired.",
93*dfc83cc8SIan Rogers        "SampleAfterValue": "100007",
94*dfc83cc8SIan Rogers        "UMask": "0x40",
95*dfc83cc8SIan Rogers        "Unit": "cpu_core"
96*dfc83cc8SIan Rogers    },
97*dfc83cc8SIan Rogers    {
98*dfc83cc8SIan Rogers        "BriefDescription": "Indirect near branch instructions retired (excluding returns)",
99*dfc83cc8SIan Rogers        "EventCode": "0xc4",
100*dfc83cc8SIan Rogers        "EventName": "BR_INST_RETIRED.INDIRECT",
101*dfc83cc8SIan Rogers        "PEBS": "1",
102*dfc83cc8SIan Rogers        "PublicDescription": "Counts near indirect branch instructions retired excluding returns. TSX abort is an indirect branch.",
103*dfc83cc8SIan Rogers        "SampleAfterValue": "100003",
104*dfc83cc8SIan Rogers        "UMask": "0x80",
105*dfc83cc8SIan Rogers        "Unit": "cpu_core"
106*dfc83cc8SIan Rogers    },
107*dfc83cc8SIan Rogers    {
108*dfc83cc8SIan Rogers        "BriefDescription": "Counts the number of near CALL branch instructions retired.",
109*dfc83cc8SIan Rogers        "EventCode": "0xc4",
110*dfc83cc8SIan Rogers        "EventName": "BR_INST_RETIRED.NEAR_CALL",
111*dfc83cc8SIan Rogers        "PEBS": "1",
112*dfc83cc8SIan Rogers        "SampleAfterValue": "200003",
113*dfc83cc8SIan Rogers        "UMask": "0xf9",
114*dfc83cc8SIan Rogers        "Unit": "cpu_atom"
115*dfc83cc8SIan Rogers    },
116*dfc83cc8SIan Rogers    {
117*dfc83cc8SIan Rogers        "BriefDescription": "Direct and indirect near call instructions retired.",
118*dfc83cc8SIan Rogers        "EventCode": "0xc4",
119*dfc83cc8SIan Rogers        "EventName": "BR_INST_RETIRED.NEAR_CALL",
120*dfc83cc8SIan Rogers        "PEBS": "1",
121*dfc83cc8SIan Rogers        "PublicDescription": "Counts both direct and indirect near call instructions retired.",
122*dfc83cc8SIan Rogers        "SampleAfterValue": "100007",
123*dfc83cc8SIan Rogers        "UMask": "0x2",
124*dfc83cc8SIan Rogers        "Unit": "cpu_core"
125*dfc83cc8SIan Rogers    },
126*dfc83cc8SIan Rogers    {
127*dfc83cc8SIan Rogers        "BriefDescription": "Return instructions retired.",
128*dfc83cc8SIan Rogers        "EventCode": "0xc4",
129*dfc83cc8SIan Rogers        "EventName": "BR_INST_RETIRED.NEAR_RETURN",
130*dfc83cc8SIan Rogers        "PEBS": "1",
131*dfc83cc8SIan Rogers        "PublicDescription": "Counts return instructions retired.",
132*dfc83cc8SIan Rogers        "SampleAfterValue": "100007",
133*dfc83cc8SIan Rogers        "UMask": "0x8",
134*dfc83cc8SIan Rogers        "Unit": "cpu_core"
135*dfc83cc8SIan Rogers    },
136*dfc83cc8SIan Rogers    {
137*dfc83cc8SIan Rogers        "BriefDescription": "Taken branch instructions retired.",
138*dfc83cc8SIan Rogers        "EventCode": "0xc4",
139*dfc83cc8SIan Rogers        "EventName": "BR_INST_RETIRED.NEAR_TAKEN",
140*dfc83cc8SIan Rogers        "PEBS": "1",
141*dfc83cc8SIan Rogers        "PublicDescription": "Counts taken branch instructions retired.",
142*dfc83cc8SIan Rogers        "SampleAfterValue": "400009",
143*dfc83cc8SIan Rogers        "UMask": "0x20",
144*dfc83cc8SIan Rogers        "Unit": "cpu_core"
145*dfc83cc8SIan Rogers    },
146*dfc83cc8SIan Rogers    {
1471ab4ef06SIan Rogers        "BriefDescription": "Counts the total number of mispredicted branch instructions retired for all branch types.",
1481ab4ef06SIan Rogers        "EventCode": "0xc5",
1491ab4ef06SIan Rogers        "EventName": "BR_MISP_RETIRED.ALL_BRANCHES",
1501ab4ef06SIan Rogers        "PEBS": "1",
151591530c0SIan Rogers        "PublicDescription": "Counts the total number of mispredicted branch instructions retired.  All branch type instructions are accounted for.  Prediction of the branch target address enables the processor to begin executing instructions before the non-speculative execution path is known. The branch prediction unit (BPU) predicts the target address based on the instruction pointer (IP) of the branch and on the execution path through which execution reached this IP.    A branch misprediction occurs when the prediction is wrong, and results in discarding all instructions executed in the speculative path and re-fetching from the correct path.",
1521ab4ef06SIan Rogers        "SampleAfterValue": "200003",
1531ab4ef06SIan Rogers        "Unit": "cpu_atom"
1541ab4ef06SIan Rogers    },
1551ab4ef06SIan Rogers    {
1565362e4d1SIan Rogers        "BriefDescription": "All mispredicted branch instructions retired.",
1575362e4d1SIan Rogers        "EventCode": "0xc5",
1585362e4d1SIan Rogers        "EventName": "BR_MISP_RETIRED.ALL_BRANCHES",
1595362e4d1SIan Rogers        "PEBS": "1",
160591530c0SIan Rogers        "PublicDescription": "Counts all the retired branch instructions that were mispredicted by the processor. A branch misprediction occurs when the processor incorrectly predicts the destination of the branch.  When the misprediction is discovered at execution, all the instructions executed in the wrong (speculative) path must be discarded, and the processor must start fetching from the correct path.",
1615362e4d1SIan Rogers        "SampleAfterValue": "400009",
1625362e4d1SIan Rogers        "Unit": "cpu_core"
1635362e4d1SIan Rogers    },
1645362e4d1SIan Rogers    {
165*dfc83cc8SIan Rogers        "BriefDescription": "All mispredicted branch instructions retired. This precise event may be used to get the misprediction cost via the Retire_Latency field of PEBS. It fires on the instruction that immediately follows the mispredicted branch.",
166*dfc83cc8SIan Rogers        "EventCode": "0xc5",
167*dfc83cc8SIan Rogers        "EventName": "BR_MISP_RETIRED.ALL_BRANCHES_COST",
168*dfc83cc8SIan Rogers        "PEBS": "1",
169*dfc83cc8SIan Rogers        "SampleAfterValue": "400009",
170*dfc83cc8SIan Rogers        "UMask": "0x44",
171*dfc83cc8SIan Rogers        "Unit": "cpu_core"
172*dfc83cc8SIan Rogers    },
173*dfc83cc8SIan Rogers    {
174*dfc83cc8SIan Rogers        "BriefDescription": "Counts the number of mispredicted JCC (Jump on Conditional Code) branch instructions retired.",
175*dfc83cc8SIan Rogers        "EventCode": "0xc5",
176*dfc83cc8SIan Rogers        "EventName": "BR_MISP_RETIRED.COND",
177*dfc83cc8SIan Rogers        "PEBS": "1",
178*dfc83cc8SIan Rogers        "SampleAfterValue": "200003",
179*dfc83cc8SIan Rogers        "UMask": "0x7e",
180*dfc83cc8SIan Rogers        "Unit": "cpu_atom"
181*dfc83cc8SIan Rogers    },
182*dfc83cc8SIan Rogers    {
183*dfc83cc8SIan Rogers        "BriefDescription": "Mispredicted conditional branch instructions retired.",
184*dfc83cc8SIan Rogers        "EventCode": "0xc5",
185*dfc83cc8SIan Rogers        "EventName": "BR_MISP_RETIRED.COND",
186*dfc83cc8SIan Rogers        "PEBS": "1",
187*dfc83cc8SIan Rogers        "PublicDescription": "Counts mispredicted conditional branch instructions retired.",
188*dfc83cc8SIan Rogers        "SampleAfterValue": "400009",
189*dfc83cc8SIan Rogers        "UMask": "0x11",
190*dfc83cc8SIan Rogers        "Unit": "cpu_core"
191*dfc83cc8SIan Rogers    },
192*dfc83cc8SIan Rogers    {
193*dfc83cc8SIan Rogers        "BriefDescription": "Mispredicted conditional branch instructions retired. This precise event may be used to get the misprediction cost via the Retire_Latency field of PEBS. It fires on the instruction that immediately follows the mispredicted branch.",
194*dfc83cc8SIan Rogers        "EventCode": "0xc5",
195*dfc83cc8SIan Rogers        "EventName": "BR_MISP_RETIRED.COND_COST",
196*dfc83cc8SIan Rogers        "PEBS": "1",
197*dfc83cc8SIan Rogers        "SampleAfterValue": "400009",
198*dfc83cc8SIan Rogers        "UMask": "0x51",
199*dfc83cc8SIan Rogers        "Unit": "cpu_core"
200*dfc83cc8SIan Rogers    },
201*dfc83cc8SIan Rogers    {
202*dfc83cc8SIan Rogers        "BriefDescription": "Mispredicted non-taken conditional branch instructions retired.",
203*dfc83cc8SIan Rogers        "EventCode": "0xc5",
204*dfc83cc8SIan Rogers        "EventName": "BR_MISP_RETIRED.COND_NTAKEN",
205*dfc83cc8SIan Rogers        "PEBS": "1",
206*dfc83cc8SIan Rogers        "PublicDescription": "Counts the number of conditional branch instructions retired that were mispredicted and the branch direction was not taken.",
207*dfc83cc8SIan Rogers        "SampleAfterValue": "400009",
208*dfc83cc8SIan Rogers        "UMask": "0x10",
209*dfc83cc8SIan Rogers        "Unit": "cpu_core"
210*dfc83cc8SIan Rogers    },
211*dfc83cc8SIan Rogers    {
212*dfc83cc8SIan Rogers        "BriefDescription": "Mispredicted non-taken conditional branch instructions retired. This precise event may be used to get the misprediction cost via the Retire_Latency field of PEBS. It fires on the instruction that immediately follows the mispredicted branch.",
213*dfc83cc8SIan Rogers        "EventCode": "0xc5",
214*dfc83cc8SIan Rogers        "EventName": "BR_MISP_RETIRED.COND_NTAKEN_COST",
215*dfc83cc8SIan Rogers        "PEBS": "1",
216*dfc83cc8SIan Rogers        "SampleAfterValue": "400009",
217*dfc83cc8SIan Rogers        "UMask": "0x50",
218*dfc83cc8SIan Rogers        "Unit": "cpu_core"
219*dfc83cc8SIan Rogers    },
220*dfc83cc8SIan Rogers    {
221*dfc83cc8SIan Rogers        "BriefDescription": "number of branch instructions retired that were mispredicted and taken.",
222*dfc83cc8SIan Rogers        "EventCode": "0xc5",
223*dfc83cc8SIan Rogers        "EventName": "BR_MISP_RETIRED.COND_TAKEN",
224*dfc83cc8SIan Rogers        "PEBS": "1",
225*dfc83cc8SIan Rogers        "PublicDescription": "Counts taken conditional mispredicted branch instructions retired.",
226*dfc83cc8SIan Rogers        "SampleAfterValue": "400009",
227*dfc83cc8SIan Rogers        "UMask": "0x1",
228*dfc83cc8SIan Rogers        "Unit": "cpu_core"
229*dfc83cc8SIan Rogers    },
230*dfc83cc8SIan Rogers    {
231*dfc83cc8SIan Rogers        "BriefDescription": "Mispredicted taken conditional branch instructions retired. This precise event may be used to get the misprediction cost via the Retire_Latency field of PEBS. It fires on the instruction that immediately follows the mispredicted branch.",
232*dfc83cc8SIan Rogers        "EventCode": "0xc5",
233*dfc83cc8SIan Rogers        "EventName": "BR_MISP_RETIRED.COND_TAKEN_COST",
234*dfc83cc8SIan Rogers        "PEBS": "1",
235*dfc83cc8SIan Rogers        "SampleAfterValue": "400009",
236*dfc83cc8SIan Rogers        "UMask": "0x41",
237*dfc83cc8SIan Rogers        "Unit": "cpu_core"
238*dfc83cc8SIan Rogers    },
239*dfc83cc8SIan Rogers    {
240*dfc83cc8SIan Rogers        "BriefDescription": "Counts the number of mispredicted near indirect JMP and near indirect CALL branch instructions retired.",
241*dfc83cc8SIan Rogers        "EventCode": "0xc5",
242*dfc83cc8SIan Rogers        "EventName": "BR_MISP_RETIRED.INDIRECT",
243*dfc83cc8SIan Rogers        "PEBS": "1",
244*dfc83cc8SIan Rogers        "SampleAfterValue": "200003",
245*dfc83cc8SIan Rogers        "UMask": "0xeb",
246*dfc83cc8SIan Rogers        "Unit": "cpu_atom"
247*dfc83cc8SIan Rogers    },
248*dfc83cc8SIan Rogers    {
249*dfc83cc8SIan Rogers        "BriefDescription": "Miss-predicted near indirect branch instructions retired (excluding returns)",
250*dfc83cc8SIan Rogers        "EventCode": "0xc5",
251*dfc83cc8SIan Rogers        "EventName": "BR_MISP_RETIRED.INDIRECT",
252*dfc83cc8SIan Rogers        "PEBS": "1",
253*dfc83cc8SIan Rogers        "PublicDescription": "Counts miss-predicted near indirect branch instructions retired excluding returns. TSX abort is an indirect branch.",
254*dfc83cc8SIan Rogers        "SampleAfterValue": "100003",
255*dfc83cc8SIan Rogers        "UMask": "0x80",
256*dfc83cc8SIan Rogers        "Unit": "cpu_core"
257*dfc83cc8SIan Rogers    },
258*dfc83cc8SIan Rogers    {
259*dfc83cc8SIan Rogers        "BriefDescription": "Counts the number of mispredicted near indirect CALL branch instructions retired.",
260*dfc83cc8SIan Rogers        "EventCode": "0xc5",
261*dfc83cc8SIan Rogers        "EventName": "BR_MISP_RETIRED.INDIRECT_CALL",
262*dfc83cc8SIan Rogers        "PEBS": "1",
263*dfc83cc8SIan Rogers        "SampleAfterValue": "200003",
264*dfc83cc8SIan Rogers        "UMask": "0xfb",
265*dfc83cc8SIan Rogers        "Unit": "cpu_atom"
266*dfc83cc8SIan Rogers    },
267*dfc83cc8SIan Rogers    {
268*dfc83cc8SIan Rogers        "BriefDescription": "Mispredicted indirect CALL retired.",
269*dfc83cc8SIan Rogers        "EventCode": "0xc5",
270*dfc83cc8SIan Rogers        "EventName": "BR_MISP_RETIRED.INDIRECT_CALL",
271*dfc83cc8SIan Rogers        "PEBS": "1",
272*dfc83cc8SIan Rogers        "PublicDescription": "Counts retired mispredicted indirect (near taken) CALL instructions, including both register and memory indirect.",
273*dfc83cc8SIan Rogers        "SampleAfterValue": "400009",
274*dfc83cc8SIan Rogers        "UMask": "0x2",
275*dfc83cc8SIan Rogers        "Unit": "cpu_core"
276*dfc83cc8SIan Rogers    },
277*dfc83cc8SIan Rogers    {
278*dfc83cc8SIan Rogers        "BriefDescription": "Mispredicted indirect CALL retired. This precise event may be used to get the misprediction cost via the Retire_Latency field of PEBS. It fires on the instruction that immediately follows the mispredicted branch.",
279*dfc83cc8SIan Rogers        "EventCode": "0xc5",
280*dfc83cc8SIan Rogers        "EventName": "BR_MISP_RETIRED.INDIRECT_CALL_COST",
281*dfc83cc8SIan Rogers        "PEBS": "1",
282*dfc83cc8SIan Rogers        "SampleAfterValue": "400009",
283*dfc83cc8SIan Rogers        "UMask": "0x42",
284*dfc83cc8SIan Rogers        "Unit": "cpu_core"
285*dfc83cc8SIan Rogers    },
286*dfc83cc8SIan Rogers    {
287*dfc83cc8SIan Rogers        "BriefDescription": "Mispredicted near indirect branch instructions retired (excluding returns). This precise event may be used to get the misprediction cost via the Retire_Latency field of PEBS. It fires on the instruction that immediately follows the mispredicted branch.",
288*dfc83cc8SIan Rogers        "EventCode": "0xc5",
289*dfc83cc8SIan Rogers        "EventName": "BR_MISP_RETIRED.INDIRECT_COST",
290*dfc83cc8SIan Rogers        "PEBS": "1",
291*dfc83cc8SIan Rogers        "SampleAfterValue": "100003",
292*dfc83cc8SIan Rogers        "UMask": "0xc0",
293*dfc83cc8SIan Rogers        "Unit": "cpu_core"
294*dfc83cc8SIan Rogers    },
295*dfc83cc8SIan Rogers    {
296*dfc83cc8SIan Rogers        "BriefDescription": "Number of near branch instructions retired that were mispredicted and taken.",
297*dfc83cc8SIan Rogers        "EventCode": "0xc5",
298*dfc83cc8SIan Rogers        "EventName": "BR_MISP_RETIRED.NEAR_TAKEN",
299*dfc83cc8SIan Rogers        "PEBS": "1",
300*dfc83cc8SIan Rogers        "PublicDescription": "Counts number of near branch instructions retired that were mispredicted and taken.",
301*dfc83cc8SIan Rogers        "SampleAfterValue": "400009",
302*dfc83cc8SIan Rogers        "UMask": "0x20",
303*dfc83cc8SIan Rogers        "Unit": "cpu_core"
304*dfc83cc8SIan Rogers    },
305*dfc83cc8SIan Rogers    {
306*dfc83cc8SIan Rogers        "BriefDescription": "Mispredicted taken near branch instructions retired. This precise event may be used to get the misprediction cost via the Retire_Latency field of PEBS. It fires on the instruction that immediately follows the mispredicted branch.",
307*dfc83cc8SIan Rogers        "EventCode": "0xc5",
308*dfc83cc8SIan Rogers        "EventName": "BR_MISP_RETIRED.NEAR_TAKEN_COST",
309*dfc83cc8SIan Rogers        "PEBS": "1",
310*dfc83cc8SIan Rogers        "SampleAfterValue": "400009",
311*dfc83cc8SIan Rogers        "UMask": "0x60",
312*dfc83cc8SIan Rogers        "Unit": "cpu_core"
313*dfc83cc8SIan Rogers    },
314*dfc83cc8SIan Rogers    {
315*dfc83cc8SIan Rogers        "BriefDescription": "Counts the number of mispredicted near RET branch instructions retired.",
316*dfc83cc8SIan Rogers        "EventCode": "0xc5",
317*dfc83cc8SIan Rogers        "EventName": "BR_MISP_RETIRED.RETURN",
318*dfc83cc8SIan Rogers        "PEBS": "1",
319*dfc83cc8SIan Rogers        "SampleAfterValue": "200003",
320*dfc83cc8SIan Rogers        "UMask": "0xf7",
321*dfc83cc8SIan Rogers        "Unit": "cpu_atom"
322*dfc83cc8SIan Rogers    },
323*dfc83cc8SIan Rogers    {
324*dfc83cc8SIan Rogers        "BriefDescription": "Mispredicted ret instructions retired. This precise event may be used to get the misprediction cost via the Retire_Latency field of PEBS. It fires on the instruction that immediately follows the mispredicted branch.",
325*dfc83cc8SIan Rogers        "EventCode": "0xc5",
326*dfc83cc8SIan Rogers        "EventName": "BR_MISP_RETIRED.RET_COST",
327*dfc83cc8SIan Rogers        "PEBS": "1",
328*dfc83cc8SIan Rogers        "SampleAfterValue": "100007",
329*dfc83cc8SIan Rogers        "UMask": "0x48",
330*dfc83cc8SIan Rogers        "Unit": "cpu_core"
331*dfc83cc8SIan Rogers    },
332*dfc83cc8SIan Rogers    {
3331ab4ef06SIan Rogers        "BriefDescription": "Fixed Counter: Counts the number of unhalted core clock cycles",
3341ab4ef06SIan Rogers        "EventName": "CPU_CLK_UNHALTED.CORE",
3351ab4ef06SIan Rogers        "SampleAfterValue": "2000003",
3361ab4ef06SIan Rogers        "UMask": "0x2",
3371ab4ef06SIan Rogers        "Unit": "cpu_atom"
3381ab4ef06SIan Rogers    },
3391ab4ef06SIan Rogers    {
3401ab4ef06SIan Rogers        "BriefDescription": "Counts the number of unhalted core clock cycles [This event is alias to CPU_CLK_UNHALTED.THREAD_P]",
3411ab4ef06SIan Rogers        "EventCode": "0x3c",
3421ab4ef06SIan Rogers        "EventName": "CPU_CLK_UNHALTED.CORE_P",
3431ab4ef06SIan Rogers        "SampleAfterValue": "2000003",
3441ab4ef06SIan Rogers        "Unit": "cpu_atom"
3451ab4ef06SIan Rogers    },
3461ab4ef06SIan Rogers    {
347*dfc83cc8SIan Rogers        "BriefDescription": "Cycle counts are evenly distributed between active threads in the Core.",
348*dfc83cc8SIan Rogers        "EventCode": "0xec",
349*dfc83cc8SIan Rogers        "EventName": "CPU_CLK_UNHALTED.DISTRIBUTED",
350*dfc83cc8SIan Rogers        "PublicDescription": "This event distributes cycle counts between active hyperthreads, i.e., those in C0.  A hyperthread becomes inactive when it executes the HLT or MWAIT instructions.  If all other hyperthreads are inactive (or disabled or do not exist), all counts are attributed to this hyperthread. To obtain the full count when the Core is active, sum the counts from each hyperthread.",
351*dfc83cc8SIan Rogers        "SampleAfterValue": "2000003",
352*dfc83cc8SIan Rogers        "UMask": "0x2",
353*dfc83cc8SIan Rogers        "Unit": "cpu_core"
354*dfc83cc8SIan Rogers    },
355*dfc83cc8SIan Rogers    {
356*dfc83cc8SIan Rogers        "BriefDescription": "Core crystal clock cycles when this thread is unhalted and the other thread is halted.",
357*dfc83cc8SIan Rogers        "EventCode": "0x3c",
358*dfc83cc8SIan Rogers        "EventName": "CPU_CLK_UNHALTED.ONE_THREAD_ACTIVE",
359*dfc83cc8SIan Rogers        "PublicDescription": "Counts Core crystal clock cycles when current thread is unhalted and the other thread is halted.",
360*dfc83cc8SIan Rogers        "SampleAfterValue": "25003",
361*dfc83cc8SIan Rogers        "UMask": "0x2",
362*dfc83cc8SIan Rogers        "Unit": "cpu_core"
363*dfc83cc8SIan Rogers    },
364*dfc83cc8SIan Rogers    {
365*dfc83cc8SIan Rogers        "BriefDescription": "Core crystal clock cycles. Cycle counts are evenly distributed between active threads in the Core.",
366*dfc83cc8SIan Rogers        "EventCode": "0x3c",
367*dfc83cc8SIan Rogers        "EventName": "CPU_CLK_UNHALTED.REF_DISTRIBUTED",
368*dfc83cc8SIan Rogers        "PublicDescription": "This event distributes Core crystal clock cycle counts between active hyperthreads, i.e., those in C0 sleep-state. A hyperthread becomes inactive when it executes the HLT or MWAIT instructions. If one thread is active in a core, all counts are attributed to this hyperthread. To obtain the full count when the Core is active, sum the counts from each hyperthread.",
369*dfc83cc8SIan Rogers        "SampleAfterValue": "2000003",
370*dfc83cc8SIan Rogers        "UMask": "0x8",
371*dfc83cc8SIan Rogers        "Unit": "cpu_core"
372*dfc83cc8SIan Rogers    },
373*dfc83cc8SIan Rogers    {
3741ab4ef06SIan Rogers        "BriefDescription": "Fixed Counter: Counts the number of unhalted reference clock cycles",
3751ab4ef06SIan Rogers        "EventName": "CPU_CLK_UNHALTED.REF_TSC",
3761ab4ef06SIan Rogers        "SampleAfterValue": "2000003",
3771ab4ef06SIan Rogers        "UMask": "0x3",
3781ab4ef06SIan Rogers        "Unit": "cpu_atom"
3791ab4ef06SIan Rogers    },
3801ab4ef06SIan Rogers    {
3815362e4d1SIan Rogers        "BriefDescription": "Reference cycles when the core is not in halt state.",
3825362e4d1SIan Rogers        "EventName": "CPU_CLK_UNHALTED.REF_TSC",
383591530c0SIan Rogers        "PublicDescription": "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. It is counted on a dedicated fixed counter, leaving the eight programmable counters available for other events. Note: On all current platforms this event stops counting during 'throttling (TM)' states duty off periods the processor is 'halted'.  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.",
3845362e4d1SIan Rogers        "SampleAfterValue": "2000003",
3855362e4d1SIan Rogers        "UMask": "0x3",
3865362e4d1SIan Rogers        "Unit": "cpu_core"
3875362e4d1SIan Rogers    },
3885362e4d1SIan Rogers    {
389*dfc83cc8SIan Rogers        "BriefDescription": "Counts the number of unhalted reference clock cycles at TSC frequency.",
390*dfc83cc8SIan Rogers        "EventCode": "0x3c",
391*dfc83cc8SIan Rogers        "EventName": "CPU_CLK_UNHALTED.REF_TSC_P",
392*dfc83cc8SIan Rogers        "PublicDescription": "Counts the number of reference cycles that the core is not in a halt state. The core enters the halt state when it is running the HLT instruction. This event is not affected by core frequency changes and increments at a fixed frequency that is also used for the Time Stamp Counter (TSC). This event uses a programmable general purpose performance counter.",
393*dfc83cc8SIan Rogers        "SampleAfterValue": "2000003",
394*dfc83cc8SIan Rogers        "UMask": "0x1",
395*dfc83cc8SIan Rogers        "Unit": "cpu_atom"
396*dfc83cc8SIan Rogers    },
397*dfc83cc8SIan Rogers    {
3985362e4d1SIan Rogers        "BriefDescription": "Reference cycles when the core is not in halt state.",
3995362e4d1SIan Rogers        "EventCode": "0x3c",
4005362e4d1SIan Rogers        "EventName": "CPU_CLK_UNHALTED.REF_TSC_P",
401591530c0SIan Rogers        "PublicDescription": "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. It is counted on a dedicated fixed counter, leaving the four (eight when Hyperthreading is disabled) programmable counters available for other events. Note: On all current platforms this event stops counting during 'throttling (TM)' states duty off periods the processor is 'halted'.  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.",
4025362e4d1SIan Rogers        "SampleAfterValue": "2000003",
4035362e4d1SIan Rogers        "UMask": "0x1",
4045362e4d1SIan Rogers        "Unit": "cpu_core"
4055362e4d1SIan Rogers    },
4065362e4d1SIan Rogers    {
4071ab4ef06SIan Rogers        "BriefDescription": "Fixed Counter: Counts the number of unhalted core clock cycles",
4081ab4ef06SIan Rogers        "EventName": "CPU_CLK_UNHALTED.THREAD",
4091ab4ef06SIan Rogers        "SampleAfterValue": "2000003",
4101ab4ef06SIan Rogers        "UMask": "0x2",
4111ab4ef06SIan Rogers        "Unit": "cpu_atom"
4121ab4ef06SIan Rogers    },
4131ab4ef06SIan Rogers    {
4141ab4ef06SIan Rogers        "BriefDescription": "Core cycles when the thread is not in halt state",
4151ab4ef06SIan Rogers        "EventName": "CPU_CLK_UNHALTED.THREAD",
416591530c0SIan Rogers        "PublicDescription": "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 eight programmable counters available for other events.",
4171ab4ef06SIan Rogers        "SampleAfterValue": "2000003",
4181ab4ef06SIan Rogers        "UMask": "0x2",
4191ab4ef06SIan Rogers        "Unit": "cpu_core"
4201ab4ef06SIan Rogers    },
4211ab4ef06SIan Rogers    {
4225362e4d1SIan Rogers        "BriefDescription": "Counts the number of unhalted core clock cycles [This event is alias to CPU_CLK_UNHALTED.CORE_P]",
4231ab4ef06SIan Rogers        "EventCode": "0x3c",
4241ab4ef06SIan Rogers        "EventName": "CPU_CLK_UNHALTED.THREAD_P",
4255362e4d1SIan Rogers        "SampleAfterValue": "2000003",
4265362e4d1SIan Rogers        "Unit": "cpu_atom"
4275362e4d1SIan Rogers    },
4285362e4d1SIan Rogers    {
4295362e4d1SIan Rogers        "BriefDescription": "Thread cycles when thread is not in halt state",
4305362e4d1SIan Rogers        "EventCode": "0x3c",
4315362e4d1SIan Rogers        "EventName": "CPU_CLK_UNHALTED.THREAD_P",
432591530c0SIan 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.",
4331ab4ef06SIan Rogers        "SampleAfterValue": "2000003",
4341ab4ef06SIan Rogers        "Unit": "cpu_core"
4351ab4ef06SIan Rogers    },
4361ab4ef06SIan Rogers    {
437*dfc83cc8SIan Rogers        "BriefDescription": "Cycles while L1 cache miss demand load is outstanding.",
438*dfc83cc8SIan Rogers        "CounterMask": "8",
439*dfc83cc8SIan Rogers        "EventCode": "0xa3",
440*dfc83cc8SIan Rogers        "EventName": "CYCLE_ACTIVITY.CYCLES_L1D_MISS",
441*dfc83cc8SIan Rogers        "SampleAfterValue": "1000003",
442*dfc83cc8SIan Rogers        "UMask": "0x8",
443*dfc83cc8SIan Rogers        "Unit": "cpu_core"
444*dfc83cc8SIan Rogers    },
445*dfc83cc8SIan Rogers    {
446*dfc83cc8SIan Rogers        "BriefDescription": "Cycles while L2 cache miss demand load is outstanding.",
447*dfc83cc8SIan Rogers        "CounterMask": "1",
448*dfc83cc8SIan Rogers        "EventCode": "0xa3",
449*dfc83cc8SIan Rogers        "EventName": "CYCLE_ACTIVITY.CYCLES_L2_MISS",
450*dfc83cc8SIan Rogers        "SampleAfterValue": "1000003",
451*dfc83cc8SIan Rogers        "UMask": "0x1",
452*dfc83cc8SIan Rogers        "Unit": "cpu_core"
453*dfc83cc8SIan Rogers    },
454*dfc83cc8SIan Rogers    {
455*dfc83cc8SIan Rogers        "BriefDescription": "Cycles while memory subsystem has an outstanding load.",
456*dfc83cc8SIan Rogers        "CounterMask": "16",
457*dfc83cc8SIan Rogers        "EventCode": "0xa3",
458*dfc83cc8SIan Rogers        "EventName": "CYCLE_ACTIVITY.CYCLES_MEM_ANY",
459*dfc83cc8SIan Rogers        "SampleAfterValue": "1000003",
460*dfc83cc8SIan Rogers        "UMask": "0x10",
461*dfc83cc8SIan Rogers        "Unit": "cpu_core"
462*dfc83cc8SIan Rogers    },
463*dfc83cc8SIan Rogers    {
464*dfc83cc8SIan Rogers        "BriefDescription": "Execution stalls while L1 cache miss demand load is outstanding.",
465*dfc83cc8SIan Rogers        "CounterMask": "12",
466*dfc83cc8SIan Rogers        "EventCode": "0xa3",
467*dfc83cc8SIan Rogers        "EventName": "CYCLE_ACTIVITY.STALLS_L1D_MISS",
468*dfc83cc8SIan Rogers        "SampleAfterValue": "1000003",
469*dfc83cc8SIan Rogers        "UMask": "0xc",
470*dfc83cc8SIan Rogers        "Unit": "cpu_core"
471*dfc83cc8SIan Rogers    },
472*dfc83cc8SIan Rogers    {
473*dfc83cc8SIan Rogers        "BriefDescription": "Execution stalls while L2 cache miss demand load is outstanding.",
474*dfc83cc8SIan Rogers        "CounterMask": "5",
475*dfc83cc8SIan Rogers        "EventCode": "0xa3",
476*dfc83cc8SIan Rogers        "EventName": "CYCLE_ACTIVITY.STALLS_L2_MISS",
477*dfc83cc8SIan Rogers        "SampleAfterValue": "1000003",
478*dfc83cc8SIan Rogers        "UMask": "0x5",
479*dfc83cc8SIan Rogers        "Unit": "cpu_core"
480*dfc83cc8SIan Rogers    },
481*dfc83cc8SIan Rogers    {
482*dfc83cc8SIan Rogers        "BriefDescription": "Total execution stalls.",
483*dfc83cc8SIan Rogers        "CounterMask": "4",
484*dfc83cc8SIan Rogers        "EventCode": "0xa3",
485*dfc83cc8SIan Rogers        "EventName": "CYCLE_ACTIVITY.STALLS_TOTAL",
486*dfc83cc8SIan Rogers        "SampleAfterValue": "1000003",
487*dfc83cc8SIan Rogers        "UMask": "0x4",
488*dfc83cc8SIan Rogers        "Unit": "cpu_core"
489*dfc83cc8SIan Rogers    },
490*dfc83cc8SIan Rogers    {
491*dfc83cc8SIan Rogers        "BriefDescription": "Cycles total of 1 uop is executed on all ports and Reservation Station was not empty.",
492*dfc83cc8SIan Rogers        "EventCode": "0xa6",
493*dfc83cc8SIan Rogers        "EventName": "EXE_ACTIVITY.1_PORTS_UTIL",
494*dfc83cc8SIan Rogers        "PublicDescription": "Counts cycles during which a total of 1 uop was executed on all ports and Reservation Station (RS) was not empty.",
495*dfc83cc8SIan Rogers        "SampleAfterValue": "2000003",
496*dfc83cc8SIan Rogers        "UMask": "0x2",
497*dfc83cc8SIan Rogers        "Unit": "cpu_core"
498*dfc83cc8SIan Rogers    },
499*dfc83cc8SIan Rogers    {
500*dfc83cc8SIan Rogers        "BriefDescription": "Cycles total of 2 uops are executed on all ports and Reservation Station was not empty.",
501*dfc83cc8SIan Rogers        "EventCode": "0xa6",
502*dfc83cc8SIan Rogers        "EventName": "EXE_ACTIVITY.2_PORTS_UTIL",
503*dfc83cc8SIan Rogers        "PublicDescription": "Counts cycles during which a total of 2 uops were executed on all ports and Reservation Station (RS) was not empty.",
504*dfc83cc8SIan Rogers        "SampleAfterValue": "2000003",
505*dfc83cc8SIan Rogers        "UMask": "0x4",
506*dfc83cc8SIan Rogers        "Unit": "cpu_core"
507*dfc83cc8SIan Rogers    },
508*dfc83cc8SIan Rogers    {
509*dfc83cc8SIan Rogers        "BriefDescription": "Cycles total of 3 uops are executed on all ports and Reservation Station was not empty.",
510*dfc83cc8SIan Rogers        "EventCode": "0xa6",
511*dfc83cc8SIan Rogers        "EventName": "EXE_ACTIVITY.3_PORTS_UTIL",
512*dfc83cc8SIan Rogers        "PublicDescription": "Cycles total of 3 uops are executed on all ports and Reservation Station (RS) was not empty.",
513*dfc83cc8SIan Rogers        "SampleAfterValue": "2000003",
514*dfc83cc8SIan Rogers        "UMask": "0x8",
515*dfc83cc8SIan Rogers        "Unit": "cpu_core"
516*dfc83cc8SIan Rogers    },
517*dfc83cc8SIan Rogers    {
518*dfc83cc8SIan Rogers        "BriefDescription": "Cycles total of 4 uops are executed on all ports and Reservation Station was not empty.",
519*dfc83cc8SIan Rogers        "EventCode": "0xa6",
520*dfc83cc8SIan Rogers        "EventName": "EXE_ACTIVITY.4_PORTS_UTIL",
521*dfc83cc8SIan Rogers        "PublicDescription": "Cycles total of 4 uops are executed on all ports and Reservation Station (RS) was not empty.",
522*dfc83cc8SIan Rogers        "SampleAfterValue": "2000003",
523*dfc83cc8SIan Rogers        "UMask": "0x10",
524*dfc83cc8SIan Rogers        "Unit": "cpu_core"
525*dfc83cc8SIan Rogers    },
526*dfc83cc8SIan Rogers    {
527*dfc83cc8SIan Rogers        "BriefDescription": "Execution stalls while memory subsystem has an outstanding load.",
528*dfc83cc8SIan Rogers        "CounterMask": "5",
529*dfc83cc8SIan Rogers        "EventCode": "0xa6",
530*dfc83cc8SIan Rogers        "EventName": "EXE_ACTIVITY.BOUND_ON_LOADS",
531*dfc83cc8SIan Rogers        "SampleAfterValue": "2000003",
532*dfc83cc8SIan Rogers        "UMask": "0x21",
533*dfc83cc8SIan Rogers        "Unit": "cpu_core"
534*dfc83cc8SIan Rogers    },
535*dfc83cc8SIan Rogers    {
536*dfc83cc8SIan Rogers        "BriefDescription": "Cycles where the Store Buffer was full and no loads caused an execution stall.",
537*dfc83cc8SIan Rogers        "CounterMask": "2",
538*dfc83cc8SIan Rogers        "EventCode": "0xa6",
539*dfc83cc8SIan Rogers        "EventName": "EXE_ACTIVITY.BOUND_ON_STORES",
540*dfc83cc8SIan Rogers        "PublicDescription": "Counts cycles where the Store Buffer was full and no loads caused an execution stall.",
541*dfc83cc8SIan Rogers        "SampleAfterValue": "1000003",
542*dfc83cc8SIan Rogers        "UMask": "0x40",
543*dfc83cc8SIan Rogers        "Unit": "cpu_core"
544*dfc83cc8SIan Rogers    },
545*dfc83cc8SIan Rogers    {
546*dfc83cc8SIan Rogers        "BriefDescription": "Cycles no uop executed while RS was not empty, the SB was not full and there was no outstanding load.",
547*dfc83cc8SIan Rogers        "EventCode": "0xa6",
548*dfc83cc8SIan Rogers        "EventName": "EXE_ACTIVITY.EXE_BOUND_0_PORTS",
549*dfc83cc8SIan Rogers        "PublicDescription": "Number of cycles total of 0 uops executed on all ports, Reservation Station (RS) was not empty, the Store Buffer (SB) was not full and there was no outstanding load.",
550*dfc83cc8SIan Rogers        "SampleAfterValue": "1000003",
551*dfc83cc8SIan Rogers        "UMask": "0x80",
552*dfc83cc8SIan Rogers        "Unit": "cpu_core"
553*dfc83cc8SIan Rogers    },
554*dfc83cc8SIan Rogers    {
555*dfc83cc8SIan Rogers        "BriefDescription": "Instruction decoders utilized in a cycle",
556*dfc83cc8SIan Rogers        "EventCode": "0x75",
557*dfc83cc8SIan Rogers        "EventName": "INST_DECODED.DECODERS",
558*dfc83cc8SIan Rogers        "PublicDescription": "Number of decoders utilized in a cycle when the MITE (legacy decode pipeline) fetches instructions.",
559*dfc83cc8SIan Rogers        "SampleAfterValue": "2000003",
560*dfc83cc8SIan Rogers        "UMask": "0x1",
561*dfc83cc8SIan Rogers        "Unit": "cpu_core"
562*dfc83cc8SIan Rogers    },
563*dfc83cc8SIan Rogers    {
5645362e4d1SIan Rogers        "BriefDescription": "Fixed Counter: Counts the number of instructions retired",
5651ab4ef06SIan Rogers        "EventName": "INST_RETIRED.ANY",
5661ab4ef06SIan Rogers        "PEBS": "1",
5675362e4d1SIan Rogers        "SampleAfterValue": "2000003",
5685362e4d1SIan Rogers        "UMask": "0x1",
5695362e4d1SIan Rogers        "Unit": "cpu_atom"
5705362e4d1SIan Rogers    },
5715362e4d1SIan Rogers    {
5725362e4d1SIan Rogers        "BriefDescription": "Number of instructions retired. Fixed Counter - architectural event",
5735362e4d1SIan Rogers        "EventName": "INST_RETIRED.ANY",
5745362e4d1SIan Rogers        "PEBS": "1",
575591530c0SIan Rogers        "PublicDescription": "Counts the number of X86 instructions retired - an Architectural PerfMon event. Counting continues during hardware interrupts, traps, and inside interrupt handlers. Notes: INST_RETIRED.ANY is counted by a designated fixed counter freeing up programmable counters to count other events. INST_RETIRED.ANY_P is counted by a programmable counter.",
5761ab4ef06SIan Rogers        "SampleAfterValue": "2000003",
5771ab4ef06SIan Rogers        "UMask": "0x1",
5781ab4ef06SIan Rogers        "Unit": "cpu_core"
5791ab4ef06SIan Rogers    },
5801ab4ef06SIan Rogers    {
5815362e4d1SIan Rogers        "BriefDescription": "Counts the number of instructions retired",
5821ab4ef06SIan Rogers        "EventCode": "0xc0",
5831ab4ef06SIan Rogers        "EventName": "INST_RETIRED.ANY_P",
5841ab4ef06SIan Rogers        "PEBS": "1",
5855362e4d1SIan Rogers        "SampleAfterValue": "2000003",
5865362e4d1SIan Rogers        "Unit": "cpu_atom"
5875362e4d1SIan Rogers    },
5885362e4d1SIan Rogers    {
5895362e4d1SIan Rogers        "BriefDescription": "Number of instructions retired. General Counter - architectural event",
5905362e4d1SIan Rogers        "EventCode": "0xc0",
5915362e4d1SIan Rogers        "EventName": "INST_RETIRED.ANY_P",
5925362e4d1SIan Rogers        "PEBS": "1",
593591530c0SIan Rogers        "PublicDescription": "Counts the number of X86 instructions retired - an Architectural PerfMon event. Counting continues during hardware interrupts, traps, and inside interrupt handlers. Notes: INST_RETIRED.ANY is counted by a designated fixed counter freeing up programmable counters to count other events. INST_RETIRED.ANY_P is counted by a programmable counter.",
5941ab4ef06SIan Rogers        "SampleAfterValue": "2000003",
5951ab4ef06SIan Rogers        "Unit": "cpu_core"
5961ab4ef06SIan Rogers    },
5971ab4ef06SIan Rogers    {
598*dfc83cc8SIan Rogers        "BriefDescription": "INST_RETIRED.MACRO_FUSED",
599*dfc83cc8SIan Rogers        "EventCode": "0xc0",
600*dfc83cc8SIan Rogers        "EventName": "INST_RETIRED.MACRO_FUSED",
601*dfc83cc8SIan Rogers        "SampleAfterValue": "2000003",
602*dfc83cc8SIan Rogers        "UMask": "0x10",
603*dfc83cc8SIan Rogers        "Unit": "cpu_core"
604*dfc83cc8SIan Rogers    },
605*dfc83cc8SIan Rogers    {
606*dfc83cc8SIan Rogers        "BriefDescription": "Precise instruction retired with PEBS precise-distribution",
607*dfc83cc8SIan Rogers        "EventName": "INST_RETIRED.PREC_DIST",
608*dfc83cc8SIan Rogers        "PEBS": "1",
609*dfc83cc8SIan Rogers        "PublicDescription": "A version of INST_RETIRED that allows for a precise distribution of samples across instructions retired. It utilizes the Precise Distribution of Instructions Retired (PDIR++) feature to fix bias in how retired instructions get sampled. Use on Fixed Counter 0.",
610*dfc83cc8SIan Rogers        "SampleAfterValue": "2000003",
611*dfc83cc8SIan Rogers        "UMask": "0x1",
612*dfc83cc8SIan Rogers        "Unit": "cpu_core"
613*dfc83cc8SIan Rogers    },
614*dfc83cc8SIan Rogers    {
615*dfc83cc8SIan Rogers        "BriefDescription": "Cycles the Backend cluster is recovering after a miss-speculation or a Store Buffer or Load Buffer drain stall.",
616*dfc83cc8SIan Rogers        "CounterMask": "1",
617*dfc83cc8SIan Rogers        "EventCode": "0xad",
618*dfc83cc8SIan Rogers        "EventName": "INT_MISC.ALL_RECOVERY_CYCLES",
619*dfc83cc8SIan Rogers        "PublicDescription": "Counts cycles the Backend cluster is recovering after a miss-speculation or a Store Buffer or Load Buffer drain stall.",
620*dfc83cc8SIan Rogers        "SampleAfterValue": "2000003",
621*dfc83cc8SIan Rogers        "UMask": "0x3",
622*dfc83cc8SIan Rogers        "Unit": "cpu_core"
623*dfc83cc8SIan Rogers    },
624*dfc83cc8SIan Rogers    {
625*dfc83cc8SIan Rogers        "BriefDescription": "Counts cycles after recovery from a branch misprediction or machine clear till the first uop is issued from the resteered path.",
626*dfc83cc8SIan Rogers        "EventCode": "0xad",
627*dfc83cc8SIan Rogers        "EventName": "INT_MISC.CLEAR_RESTEER_CYCLES",
628*dfc83cc8SIan Rogers        "PublicDescription": "Cycles after recovery from a branch misprediction or machine clear till the first uop is issued from the resteered path.",
629*dfc83cc8SIan Rogers        "SampleAfterValue": "500009",
630*dfc83cc8SIan Rogers        "UMask": "0x80",
631*dfc83cc8SIan Rogers        "Unit": "cpu_core"
632*dfc83cc8SIan Rogers    },
633*dfc83cc8SIan Rogers    {
634*dfc83cc8SIan Rogers        "BriefDescription": "Core cycles the allocator was stalled due to recovery from earlier clear event for this thread",
635*dfc83cc8SIan Rogers        "EventCode": "0xad",
636*dfc83cc8SIan Rogers        "EventName": "INT_MISC.RECOVERY_CYCLES",
637*dfc83cc8SIan Rogers        "PublicDescription": "Counts core cycles when the Resource allocator was stalled due to recovery from an earlier branch misprediction or machine clear event.",
638*dfc83cc8SIan Rogers        "SampleAfterValue": "500009",
639*dfc83cc8SIan Rogers        "UMask": "0x1",
640*dfc83cc8SIan Rogers        "Unit": "cpu_core"
641*dfc83cc8SIan Rogers    },
642*dfc83cc8SIan Rogers    {
643*dfc83cc8SIan Rogers        "BriefDescription": "INT_MISC.UNKNOWN_BRANCH_CYCLES",
644*dfc83cc8SIan Rogers        "EventCode": "0xad",
645*dfc83cc8SIan Rogers        "EventName": "INT_MISC.UNKNOWN_BRANCH_CYCLES",
646*dfc83cc8SIan Rogers        "MSRIndex": "0x3F7",
647*dfc83cc8SIan Rogers        "MSRValue": "0x7",
648*dfc83cc8SIan Rogers        "SampleAfterValue": "1000003",
649*dfc83cc8SIan Rogers        "UMask": "0x40",
650*dfc83cc8SIan Rogers        "Unit": "cpu_core"
651*dfc83cc8SIan Rogers    },
652*dfc83cc8SIan Rogers    {
653*dfc83cc8SIan Rogers        "BriefDescription": "TMA slots where uops got dropped",
654*dfc83cc8SIan Rogers        "EventCode": "0xad",
655*dfc83cc8SIan Rogers        "EventName": "INT_MISC.UOP_DROPPING",
656*dfc83cc8SIan Rogers        "PublicDescription": "Estimated number of Top-down Microarchitecture Analysis slots that got dropped due to non front-end reasons",
657*dfc83cc8SIan Rogers        "SampleAfterValue": "1000003",
658*dfc83cc8SIan Rogers        "UMask": "0x10",
659*dfc83cc8SIan Rogers        "Unit": "cpu_core"
660*dfc83cc8SIan Rogers    },
661*dfc83cc8SIan Rogers    {
662*dfc83cc8SIan Rogers        "BriefDescription": "INT_VEC_RETIRED.128BIT",
663*dfc83cc8SIan Rogers        "EventCode": "0xe7",
664*dfc83cc8SIan Rogers        "EventName": "INT_VEC_RETIRED.128BIT",
665*dfc83cc8SIan Rogers        "SampleAfterValue": "1000003",
666*dfc83cc8SIan Rogers        "UMask": "0x13",
667*dfc83cc8SIan Rogers        "Unit": "cpu_core"
668*dfc83cc8SIan Rogers    },
669*dfc83cc8SIan Rogers    {
670*dfc83cc8SIan Rogers        "BriefDescription": "INT_VEC_RETIRED.256BIT",
671*dfc83cc8SIan Rogers        "EventCode": "0xe7",
672*dfc83cc8SIan Rogers        "EventName": "INT_VEC_RETIRED.256BIT",
673*dfc83cc8SIan Rogers        "SampleAfterValue": "1000003",
674*dfc83cc8SIan Rogers        "UMask": "0xac",
675*dfc83cc8SIan Rogers        "Unit": "cpu_core"
676*dfc83cc8SIan Rogers    },
677*dfc83cc8SIan Rogers    {
678*dfc83cc8SIan Rogers        "BriefDescription": "integer ADD, SUB, SAD 128-bit vector instructions.",
679*dfc83cc8SIan Rogers        "EventCode": "0xe7",
680*dfc83cc8SIan Rogers        "EventName": "INT_VEC_RETIRED.ADD_128",
681*dfc83cc8SIan Rogers        "PublicDescription": "Number of retired integer ADD/SUB (regular or horizontal), SAD 128-bit vector instructions.",
682*dfc83cc8SIan Rogers        "SampleAfterValue": "1000003",
683*dfc83cc8SIan Rogers        "UMask": "0x3",
684*dfc83cc8SIan Rogers        "Unit": "cpu_core"
685*dfc83cc8SIan Rogers    },
686*dfc83cc8SIan Rogers    {
687*dfc83cc8SIan Rogers        "BriefDescription": "integer ADD, SUB, SAD 256-bit vector instructions.",
688*dfc83cc8SIan Rogers        "EventCode": "0xe7",
689*dfc83cc8SIan Rogers        "EventName": "INT_VEC_RETIRED.ADD_256",
690*dfc83cc8SIan Rogers        "PublicDescription": "Number of retired integer ADD/SUB (regular or horizontal), SAD 256-bit vector instructions.",
691*dfc83cc8SIan Rogers        "SampleAfterValue": "1000003",
692*dfc83cc8SIan Rogers        "UMask": "0xc",
693*dfc83cc8SIan Rogers        "Unit": "cpu_core"
694*dfc83cc8SIan Rogers    },
695*dfc83cc8SIan Rogers    {
696*dfc83cc8SIan Rogers        "BriefDescription": "INT_VEC_RETIRED.MUL_256",
697*dfc83cc8SIan Rogers        "EventCode": "0xe7",
698*dfc83cc8SIan Rogers        "EventName": "INT_VEC_RETIRED.MUL_256",
699*dfc83cc8SIan Rogers        "SampleAfterValue": "1000003",
700*dfc83cc8SIan Rogers        "UMask": "0x80",
701*dfc83cc8SIan Rogers        "Unit": "cpu_core"
702*dfc83cc8SIan Rogers    },
703*dfc83cc8SIan Rogers    {
704*dfc83cc8SIan Rogers        "BriefDescription": "INT_VEC_RETIRED.SHUFFLES",
705*dfc83cc8SIan Rogers        "EventCode": "0xe7",
706*dfc83cc8SIan Rogers        "EventName": "INT_VEC_RETIRED.SHUFFLES",
707*dfc83cc8SIan Rogers        "SampleAfterValue": "1000003",
708*dfc83cc8SIan Rogers        "UMask": "0x40",
709*dfc83cc8SIan Rogers        "Unit": "cpu_core"
710*dfc83cc8SIan Rogers    },
711*dfc83cc8SIan Rogers    {
712*dfc83cc8SIan Rogers        "BriefDescription": "INT_VEC_RETIRED.VNNI_128",
713*dfc83cc8SIan Rogers        "EventCode": "0xe7",
714*dfc83cc8SIan Rogers        "EventName": "INT_VEC_RETIRED.VNNI_128",
715*dfc83cc8SIan Rogers        "SampleAfterValue": "1000003",
716*dfc83cc8SIan Rogers        "UMask": "0x10",
717*dfc83cc8SIan Rogers        "Unit": "cpu_core"
718*dfc83cc8SIan Rogers    },
719*dfc83cc8SIan Rogers    {
720*dfc83cc8SIan Rogers        "BriefDescription": "INT_VEC_RETIRED.VNNI_256",
721*dfc83cc8SIan Rogers        "EventCode": "0xe7",
722*dfc83cc8SIan Rogers        "EventName": "INT_VEC_RETIRED.VNNI_256",
723*dfc83cc8SIan Rogers        "SampleAfterValue": "1000003",
724*dfc83cc8SIan Rogers        "UMask": "0x20",
725*dfc83cc8SIan Rogers        "Unit": "cpu_core"
726*dfc83cc8SIan Rogers    },
727*dfc83cc8SIan Rogers    {
728*dfc83cc8SIan Rogers        "BriefDescription": "Counts the number of retired loads that are blocked because it initially appears to be store forward blocked, but subsequently is shown not to be blocked based on 4K alias check.",
729*dfc83cc8SIan Rogers        "EventCode": "0x03",
730*dfc83cc8SIan Rogers        "EventName": "LD_BLOCKS.ADDRESS_ALIAS",
731*dfc83cc8SIan Rogers        "PEBS": "1",
732*dfc83cc8SIan Rogers        "SampleAfterValue": "1000003",
733*dfc83cc8SIan Rogers        "UMask": "0x4",
734*dfc83cc8SIan Rogers        "Unit": "cpu_atom"
735*dfc83cc8SIan Rogers    },
736*dfc83cc8SIan Rogers    {
737*dfc83cc8SIan Rogers        "BriefDescription": "Counts the number of retired loads that are blocked because its address exactly matches an older store whose data is not ready.",
738*dfc83cc8SIan Rogers        "EventCode": "0x03",
739*dfc83cc8SIan Rogers        "EventName": "LD_BLOCKS.DATA_UNKNOWN",
740*dfc83cc8SIan Rogers        "PEBS": "1",
741*dfc83cc8SIan Rogers        "SampleAfterValue": "1000003",
742*dfc83cc8SIan Rogers        "UMask": "0x1",
743*dfc83cc8SIan Rogers        "Unit": "cpu_atom"
744*dfc83cc8SIan Rogers    },
745*dfc83cc8SIan Rogers    {
746*dfc83cc8SIan Rogers        "BriefDescription": "Counts the number of retired loads that are blocked because its address partially overlapped with an older store.",
7471ab4ef06SIan Rogers        "EventCode": "0x03",
7481ab4ef06SIan Rogers        "EventName": "LD_BLOCKS.STORE_FORWARD",
749*dfc83cc8SIan Rogers        "PEBS": "1",
750*dfc83cc8SIan Rogers        "SampleAfterValue": "1000003",
751*dfc83cc8SIan Rogers        "UMask": "0x2",
752*dfc83cc8SIan Rogers        "Unit": "cpu_atom"
753*dfc83cc8SIan Rogers    },
754*dfc83cc8SIan Rogers    {
755*dfc83cc8SIan Rogers        "BriefDescription": "Cycles Uops delivered by the LSD, but didn't come from the decoder.",
756*dfc83cc8SIan Rogers        "CounterMask": "1",
757*dfc83cc8SIan Rogers        "EventCode": "0xa8",
758*dfc83cc8SIan Rogers        "EventName": "LSD.CYCLES_ACTIVE",
759*dfc83cc8SIan Rogers        "PublicDescription": "Counts the cycles when at least one uop is delivered by the LSD (Loop-stream detector).",
760*dfc83cc8SIan Rogers        "SampleAfterValue": "2000003",
761*dfc83cc8SIan Rogers        "UMask": "0x1",
762*dfc83cc8SIan Rogers        "Unit": "cpu_core"
763*dfc83cc8SIan Rogers    },
764*dfc83cc8SIan Rogers    {
765*dfc83cc8SIan Rogers        "BriefDescription": "Cycles optimal number of Uops delivered by the LSD, but did not come from the decoder.",
766*dfc83cc8SIan Rogers        "CounterMask": "6",
767*dfc83cc8SIan Rogers        "EventCode": "0xa8",
768*dfc83cc8SIan Rogers        "EventName": "LSD.CYCLES_OK",
769*dfc83cc8SIan Rogers        "PublicDescription": "Counts the cycles when optimal number of uops is delivered by the LSD (Loop-stream detector).",
770*dfc83cc8SIan Rogers        "SampleAfterValue": "2000003",
771*dfc83cc8SIan Rogers        "UMask": "0x1",
772*dfc83cc8SIan Rogers        "Unit": "cpu_core"
773*dfc83cc8SIan Rogers    },
774*dfc83cc8SIan Rogers    {
775*dfc83cc8SIan Rogers        "BriefDescription": "Number of Uops delivered by the LSD.",
776*dfc83cc8SIan Rogers        "EventCode": "0xa8",
777*dfc83cc8SIan Rogers        "EventName": "LSD.UOPS",
778*dfc83cc8SIan Rogers        "PublicDescription": "Counts the number of uops delivered to the back-end by the LSD(Loop Stream Detector).",
779*dfc83cc8SIan Rogers        "SampleAfterValue": "2000003",
780*dfc83cc8SIan Rogers        "UMask": "0x1",
781*dfc83cc8SIan Rogers        "Unit": "cpu_core"
782*dfc83cc8SIan Rogers    },
783*dfc83cc8SIan Rogers    {
784*dfc83cc8SIan Rogers        "BriefDescription": "Number of machine clears (nukes) of any type.",
785*dfc83cc8SIan Rogers        "CounterMask": "1",
786*dfc83cc8SIan Rogers        "EdgeDetect": "1",
787*dfc83cc8SIan Rogers        "EventCode": "0xc3",
788*dfc83cc8SIan Rogers        "EventName": "MACHINE_CLEARS.COUNT",
789*dfc83cc8SIan Rogers        "PublicDescription": "Counts the number of machine clears (nukes) of any type.",
7901ab4ef06SIan Rogers        "SampleAfterValue": "100003",
791*dfc83cc8SIan Rogers        "UMask": "0x1",
792*dfc83cc8SIan Rogers        "Unit": "cpu_core"
793*dfc83cc8SIan Rogers    },
794*dfc83cc8SIan Rogers    {
795*dfc83cc8SIan Rogers        "BriefDescription": "Counts the number of machine clears due to memory ordering in which an internal load passes an older store within the same CPU.",
796*dfc83cc8SIan Rogers        "EventCode": "0xc3",
797*dfc83cc8SIan Rogers        "EventName": "MACHINE_CLEARS.DISAMBIGUATION",
798*dfc83cc8SIan Rogers        "SampleAfterValue": "20003",
799*dfc83cc8SIan Rogers        "UMask": "0x8",
800*dfc83cc8SIan Rogers        "Unit": "cpu_atom"
801*dfc83cc8SIan Rogers    },
802*dfc83cc8SIan Rogers    {
803*dfc83cc8SIan Rogers        "BriefDescription": "Counts the number of machine clears due to a page fault.  Counts both I-Side and D-Side (Loads/Stores) page faults.  A page fault occurs when either the page is not present, or an access violation occurs.",
804*dfc83cc8SIan Rogers        "EventCode": "0xc3",
805*dfc83cc8SIan Rogers        "EventName": "MACHINE_CLEARS.PAGE_FAULT",
806*dfc83cc8SIan Rogers        "SampleAfterValue": "20003",
807*dfc83cc8SIan Rogers        "UMask": "0x20",
808*dfc83cc8SIan Rogers        "Unit": "cpu_atom"
809*dfc83cc8SIan Rogers    },
810*dfc83cc8SIan Rogers    {
811*dfc83cc8SIan Rogers        "BriefDescription": "Counts the number of machine clears that flush the pipeline and restart the machine with the use of microcode due to SMC, MEMORY_ORDERING, FP_ASSISTS, PAGE_FAULT, DISAMBIGUATION, and FPC_VIRTUAL_TRAP.",
812*dfc83cc8SIan Rogers        "EventCode": "0xc3",
813*dfc83cc8SIan Rogers        "EventName": "MACHINE_CLEARS.SLOW",
814*dfc83cc8SIan Rogers        "SampleAfterValue": "20003",
815*dfc83cc8SIan Rogers        "UMask": "0x6f",
816*dfc83cc8SIan Rogers        "Unit": "cpu_atom"
817*dfc83cc8SIan Rogers    },
818*dfc83cc8SIan Rogers    {
819*dfc83cc8SIan Rogers        "BriefDescription": "Counts the number of machine clears due to program modifying data (self modifying code) within 1K of a recently fetched code page.",
820*dfc83cc8SIan Rogers        "EventCode": "0xc3",
821*dfc83cc8SIan Rogers        "EventName": "MACHINE_CLEARS.SMC",
822*dfc83cc8SIan Rogers        "SampleAfterValue": "20003",
823*dfc83cc8SIan Rogers        "UMask": "0x1",
824*dfc83cc8SIan Rogers        "Unit": "cpu_atom"
825*dfc83cc8SIan Rogers    },
826*dfc83cc8SIan Rogers    {
827*dfc83cc8SIan Rogers        "BriefDescription": "Counts cycles where the pipeline is stalled due to serializing operations.",
828*dfc83cc8SIan Rogers        "EventCode": "0xa2",
829*dfc83cc8SIan Rogers        "EventName": "RESOURCE_STALLS.SCOREBOARD",
830*dfc83cc8SIan Rogers        "SampleAfterValue": "100003",
831*dfc83cc8SIan Rogers        "UMask": "0x2",
8321ab4ef06SIan Rogers        "Unit": "cpu_core"
8331ab4ef06SIan Rogers    },
8341ab4ef06SIan Rogers    {
835591530c0SIan Rogers        "BriefDescription": "This event counts a subset of the Topdown Slots event that were not consumed by the back-end pipeline due to lack of back-end resources, as a result of memory subsystem delays, execution units limitations, or other conditions.",
836591530c0SIan Rogers        "EventCode": "0xa4",
837591530c0SIan Rogers        "EventName": "TOPDOWN.BACKEND_BOUND_SLOTS",
838591530c0SIan Rogers        "PublicDescription": "This event counts a subset of the Topdown Slots event that were not consumed by the back-end pipeline due to lack of back-end resources, as a result of memory subsystem delays, execution units limitations, or other conditions.\nThe count is distributed among unhalted logical processors (hyper-threads) who share the same physical core, in processors that support Intel Hyper-Threading Technology. Software can use this event as the numerator for the Backend Bound metric (or top-level category) of the Top-down Microarchitecture Analysis method.",
839591530c0SIan Rogers        "SampleAfterValue": "10000003",
840591530c0SIan Rogers        "UMask": "0x2",
841591530c0SIan Rogers        "Unit": "cpu_core"
842591530c0SIan Rogers    },
843591530c0SIan Rogers    {
844*dfc83cc8SIan Rogers        "BriefDescription": "TMA slots wasted due to incorrect speculations.",
845*dfc83cc8SIan Rogers        "EventCode": "0xa4",
846*dfc83cc8SIan Rogers        "EventName": "TOPDOWN.BAD_SPEC_SLOTS",
847*dfc83cc8SIan Rogers        "PublicDescription": "Number of slots of TMA method that were wasted due to incorrect speculation. It covers all types of control-flow or data-related mis-speculations.",
848*dfc83cc8SIan Rogers        "SampleAfterValue": "10000003",
849*dfc83cc8SIan Rogers        "UMask": "0x4",
850*dfc83cc8SIan Rogers        "Unit": "cpu_core"
851*dfc83cc8SIan Rogers    },
852*dfc83cc8SIan Rogers    {
853*dfc83cc8SIan Rogers        "BriefDescription": "TMA slots wasted due to incorrect speculation by branch mispredictions",
854*dfc83cc8SIan Rogers        "EventCode": "0xa4",
855*dfc83cc8SIan Rogers        "EventName": "TOPDOWN.BR_MISPREDICT_SLOTS",
856*dfc83cc8SIan Rogers        "PublicDescription": "Number of TMA slots that were wasted due to incorrect speculation by (any type of) branch mispredictions. This event estimates number of speculative operations that were issued but not retired as well as the out-of-order engine recovery past a branch misprediction.",
857*dfc83cc8SIan Rogers        "SampleAfterValue": "10000003",
858*dfc83cc8SIan Rogers        "UMask": "0x8",
859*dfc83cc8SIan Rogers        "Unit": "cpu_core"
860*dfc83cc8SIan Rogers    },
861*dfc83cc8SIan Rogers    {
862*dfc83cc8SIan Rogers        "BriefDescription": "TOPDOWN.MEMORY_BOUND_SLOTS",
863*dfc83cc8SIan Rogers        "EventCode": "0xa4",
864*dfc83cc8SIan Rogers        "EventName": "TOPDOWN.MEMORY_BOUND_SLOTS",
865*dfc83cc8SIan Rogers        "SampleAfterValue": "10000003",
866*dfc83cc8SIan Rogers        "UMask": "0x10",
867*dfc83cc8SIan Rogers        "Unit": "cpu_core"
868*dfc83cc8SIan Rogers    },
869*dfc83cc8SIan Rogers    {
8701ab4ef06SIan Rogers        "BriefDescription": "TMA slots available for an unhalted logical processor. Fixed counter - architectural event",
8711ab4ef06SIan Rogers        "EventName": "TOPDOWN.SLOTS",
872591530c0SIan Rogers        "PublicDescription": "Number of available slots for an unhalted logical processor. The event increments by machine-width of the narrowest pipeline as employed by the Top-down Microarchitecture Analysis method (TMA). The count is distributed among unhalted logical processors (hyper-threads) who share the same physical core. Software can use this event as the denominator for the top-level metrics of the TMA method. This architectural event is counted on a designated fixed counter (Fixed Counter 3).",
8731ab4ef06SIan Rogers        "SampleAfterValue": "10000003",
8741ab4ef06SIan Rogers        "UMask": "0x4",
8751ab4ef06SIan Rogers        "Unit": "cpu_core"
8761ab4ef06SIan Rogers    },
8771ab4ef06SIan Rogers    {
8781ab4ef06SIan Rogers        "BriefDescription": "TMA slots available for an unhalted logical processor. General counter - architectural event",
8791ab4ef06SIan Rogers        "EventCode": "0xa4",
8801ab4ef06SIan Rogers        "EventName": "TOPDOWN.SLOTS_P",
881591530c0SIan Rogers        "PublicDescription": "Counts the number of available slots for an unhalted logical processor. The event increments by machine-width of the narrowest pipeline as employed by the Top-down Microarchitecture Analysis method. The count is distributed among unhalted logical processors (hyper-threads) who share the same physical core.",
8821ab4ef06SIan Rogers        "SampleAfterValue": "10000003",
8831ab4ef06SIan Rogers        "UMask": "0x1",
8841ab4ef06SIan Rogers        "Unit": "cpu_core"
8855362e4d1SIan Rogers    },
8865362e4d1SIan Rogers    {
8875362e4d1SIan Rogers        "BriefDescription": "Counts the number of issue slots that were not consumed by the backend because allocation is stalled due to a mispredicted jump or a machine clear.",
8885362e4d1SIan Rogers        "EventCode": "0x73",
8895362e4d1SIan Rogers        "EventName": "TOPDOWN_BAD_SPECULATION.ALL",
890591530c0SIan Rogers        "PublicDescription": "Counts the total number of issue slots that were not consumed by the backend because allocation is stalled due to a mispredicted jump or a machine clear. Only issue slots wasted due to fast nukes such as memory ordering nukes are counted. Other nukes are not accounted for. Counts all issue slots blocked during this recovery window, including relevant microcode flows, and while uops are not yet available in the instruction queue (IQ) or until an FE_BOUND event occurs besides OTHER and CISC. Also includes the issue slots that were consumed by the backend but were thrown away because they were younger than the mispredict or machine clear.",
8915362e4d1SIan Rogers        "SampleAfterValue": "1000003",
8925362e4d1SIan Rogers        "Unit": "cpu_atom"
8935362e4d1SIan Rogers    },
8945362e4d1SIan Rogers    {
895*dfc83cc8SIan Rogers        "BriefDescription": "Counts the number of issue slots every cycle that were not consumed by the backend due to Fast Nukes such as  Memory Ordering Machine clears and MRN nukes",
896*dfc83cc8SIan Rogers        "EventCode": "0x73",
897*dfc83cc8SIan Rogers        "EventName": "TOPDOWN_BAD_SPECULATION.FASTNUKE",
898*dfc83cc8SIan Rogers        "SampleAfterValue": "1000003",
899*dfc83cc8SIan Rogers        "UMask": "0x2",
900*dfc83cc8SIan Rogers        "Unit": "cpu_atom"
901*dfc83cc8SIan Rogers    },
902*dfc83cc8SIan Rogers    {
903*dfc83cc8SIan Rogers        "BriefDescription": "Counts the total number of issue slots that were not consumed by the backend because allocation is stalled due to a machine clear (nuke) of any kind including memory ordering and memory disambiguation.",
904*dfc83cc8SIan Rogers        "EventCode": "0x73",
905*dfc83cc8SIan Rogers        "EventName": "TOPDOWN_BAD_SPECULATION.MACHINE_CLEARS",
906*dfc83cc8SIan Rogers        "SampleAfterValue": "1000003",
907*dfc83cc8SIan Rogers        "UMask": "0x3",
908*dfc83cc8SIan Rogers        "Unit": "cpu_atom"
909*dfc83cc8SIan Rogers    },
910*dfc83cc8SIan Rogers    {
911*dfc83cc8SIan Rogers        "BriefDescription": "Counts the number of issue slots every cycle that were not consumed by the backend due to a machine clear (nuke).",
912*dfc83cc8SIan Rogers        "EventCode": "0x73",
913*dfc83cc8SIan Rogers        "EventName": "TOPDOWN_BAD_SPECULATION.NUKE",
914*dfc83cc8SIan Rogers        "SampleAfterValue": "1000003",
915*dfc83cc8SIan Rogers        "UMask": "0x1",
916*dfc83cc8SIan Rogers        "Unit": "cpu_atom"
917*dfc83cc8SIan Rogers    },
918*dfc83cc8SIan Rogers    {
9195362e4d1SIan Rogers        "BriefDescription": "Counts the number of retirement slots not consumed due to backend stalls",
9205362e4d1SIan Rogers        "EventCode": "0x74",
9215362e4d1SIan Rogers        "EventName": "TOPDOWN_BE_BOUND.ALL",
9225362e4d1SIan Rogers        "SampleAfterValue": "1000003",
9235362e4d1SIan Rogers        "Unit": "cpu_atom"
9245362e4d1SIan Rogers    },
9255362e4d1SIan Rogers    {
926*dfc83cc8SIan Rogers        "BriefDescription": "Counts the number of issue slots every cycle that were not consumed by the backend due to due to certain allocation restrictions",
927*dfc83cc8SIan Rogers        "EventCode": "0x74",
928*dfc83cc8SIan Rogers        "EventName": "TOPDOWN_BE_BOUND.ALLOC_RESTRICTIONS",
929*dfc83cc8SIan Rogers        "SampleAfterValue": "1000003",
930*dfc83cc8SIan Rogers        "UMask": "0x1",
931*dfc83cc8SIan Rogers        "Unit": "cpu_atom"
932*dfc83cc8SIan Rogers    },
933*dfc83cc8SIan Rogers    {
934*dfc83cc8SIan Rogers        "BriefDescription": "Counts the number of issue slots every cycle that were not consumed by the backend due to mrbl stall.  A 'marble' refers to a physical register file entry, also known as the physical destination (PDST).",
935*dfc83cc8SIan Rogers        "EventCode": "0x74",
936*dfc83cc8SIan Rogers        "EventName": "TOPDOWN_BE_BOUND.REGISTER",
937*dfc83cc8SIan Rogers        "SampleAfterValue": "1000003",
938*dfc83cc8SIan Rogers        "UMask": "0x20",
939*dfc83cc8SIan Rogers        "Unit": "cpu_atom"
940*dfc83cc8SIan Rogers    },
941*dfc83cc8SIan Rogers    {
942*dfc83cc8SIan Rogers        "BriefDescription": "Counts the number of issue slots every cycle that were not consumed by the backend due to iq/jeu scoreboards or ms scb",
943*dfc83cc8SIan Rogers        "EventCode": "0x74",
944*dfc83cc8SIan Rogers        "EventName": "TOPDOWN_BE_BOUND.SERIALIZATION",
945*dfc83cc8SIan Rogers        "SampleAfterValue": "1000003",
946*dfc83cc8SIan Rogers        "UMask": "0x10",
947*dfc83cc8SIan Rogers        "Unit": "cpu_atom"
948*dfc83cc8SIan Rogers    },
949*dfc83cc8SIan Rogers    {
9505362e4d1SIan Rogers        "BriefDescription": "Counts the number of retirement slots not consumed due to front end stalls",
9515362e4d1SIan Rogers        "EventCode": "0x71",
9525362e4d1SIan Rogers        "EventName": "TOPDOWN_FE_BOUND.ALL",
9535362e4d1SIan Rogers        "SampleAfterValue": "1000003",
9545362e4d1SIan Rogers        "Unit": "cpu_atom"
9555362e4d1SIan Rogers    },
9565362e4d1SIan Rogers    {
957*dfc83cc8SIan Rogers        "BriefDescription": "Counts the number of issue slots every cycle that were not delivered by the frontend due to BAClear",
958*dfc83cc8SIan Rogers        "EventCode": "0x71",
959*dfc83cc8SIan Rogers        "EventName": "TOPDOWN_FE_BOUND.BRANCH_DETECT",
960*dfc83cc8SIan Rogers        "SampleAfterValue": "1000003",
961*dfc83cc8SIan Rogers        "UMask": "0x2",
962*dfc83cc8SIan Rogers        "Unit": "cpu_atom"
963*dfc83cc8SIan Rogers    },
964*dfc83cc8SIan Rogers    {
965*dfc83cc8SIan Rogers        "BriefDescription": "Counts the number of issue slots every cycle that were not delivered by the frontend due to BTClear",
966*dfc83cc8SIan Rogers        "EventCode": "0x71",
967*dfc83cc8SIan Rogers        "EventName": "TOPDOWN_FE_BOUND.BRANCH_RESTEER",
968*dfc83cc8SIan Rogers        "SampleAfterValue": "1000003",
969*dfc83cc8SIan Rogers        "UMask": "0x40",
970*dfc83cc8SIan Rogers        "Unit": "cpu_atom"
971*dfc83cc8SIan Rogers    },
972*dfc83cc8SIan Rogers    {
973*dfc83cc8SIan Rogers        "BriefDescription": "Counts the number of issue slots every cycle that were not delivered by the frontend due to ms",
974*dfc83cc8SIan Rogers        "EventCode": "0x71",
975*dfc83cc8SIan Rogers        "EventName": "TOPDOWN_FE_BOUND.CISC",
976*dfc83cc8SIan Rogers        "SampleAfterValue": "1000003",
977*dfc83cc8SIan Rogers        "UMask": "0x1",
978*dfc83cc8SIan Rogers        "Unit": "cpu_atom"
979*dfc83cc8SIan Rogers    },
980*dfc83cc8SIan Rogers    {
981*dfc83cc8SIan Rogers        "BriefDescription": "Counts the number of issue slots every cycle that were not delivered by the frontend due to decode stall",
982*dfc83cc8SIan Rogers        "EventCode": "0x71",
983*dfc83cc8SIan Rogers        "EventName": "TOPDOWN_FE_BOUND.DECODE",
984*dfc83cc8SIan Rogers        "SampleAfterValue": "1000003",
985*dfc83cc8SIan Rogers        "UMask": "0x8",
986*dfc83cc8SIan Rogers        "Unit": "cpu_atom"
987*dfc83cc8SIan Rogers    },
988*dfc83cc8SIan Rogers    {
989*dfc83cc8SIan Rogers        "BriefDescription": "Counts the number of issue slots every cycle that were not delivered by the frontend due to frontend bandwidth restrictions due to decode, predecode, cisc, and other limitations.",
990*dfc83cc8SIan Rogers        "EventCode": "0x71",
991*dfc83cc8SIan Rogers        "EventName": "TOPDOWN_FE_BOUND.FRONTEND_BANDWIDTH",
992*dfc83cc8SIan Rogers        "SampleAfterValue": "1000003",
993*dfc83cc8SIan Rogers        "UMask": "0x8d",
994*dfc83cc8SIan Rogers        "Unit": "cpu_atom"
995*dfc83cc8SIan Rogers    },
996*dfc83cc8SIan Rogers    {
997*dfc83cc8SIan Rogers        "BriefDescription": "Counts the number of issue slots every cycle that were not delivered by the frontend due to latency related stalls including BACLEARs, BTCLEARs, ITLB misses, and ICache misses.",
998*dfc83cc8SIan Rogers        "EventCode": "0x71",
999*dfc83cc8SIan Rogers        "EventName": "TOPDOWN_FE_BOUND.FRONTEND_LATENCY",
1000*dfc83cc8SIan Rogers        "SampleAfterValue": "1000003",
1001*dfc83cc8SIan Rogers        "UMask": "0x72",
1002*dfc83cc8SIan Rogers        "Unit": "cpu_atom"
1003*dfc83cc8SIan Rogers    },
1004*dfc83cc8SIan Rogers    {
1005*dfc83cc8SIan Rogers        "BriefDescription": "This event is deprecated. [This event is alias to TOPDOWN_FE_BOUND.ITLB_MISS]",
1006*dfc83cc8SIan Rogers        "Deprecated": "1",
1007*dfc83cc8SIan Rogers        "EventCode": "0x71",
1008*dfc83cc8SIan Rogers        "EventName": "TOPDOWN_FE_BOUND.ITLB",
1009*dfc83cc8SIan Rogers        "SampleAfterValue": "1000003",
1010*dfc83cc8SIan Rogers        "UMask": "0x10",
1011*dfc83cc8SIan Rogers        "Unit": "cpu_atom"
1012*dfc83cc8SIan Rogers    },
1013*dfc83cc8SIan Rogers    {
1014*dfc83cc8SIan Rogers        "BriefDescription": "Counts the number of issue slots every cycle that were not delivered by the frontend due to itlb miss [This event is alias to TOPDOWN_FE_BOUND.ITLB]",
1015*dfc83cc8SIan Rogers        "EventCode": "0x71",
1016*dfc83cc8SIan Rogers        "EventName": "TOPDOWN_FE_BOUND.ITLB_MISS",
1017*dfc83cc8SIan Rogers        "SampleAfterValue": "1000003",
1018*dfc83cc8SIan Rogers        "UMask": "0x10",
1019*dfc83cc8SIan Rogers        "Unit": "cpu_atom"
1020*dfc83cc8SIan Rogers    },
1021*dfc83cc8SIan Rogers    {
1022*dfc83cc8SIan Rogers        "BriefDescription": "Counts the number of issue slots every cycle that were not delivered by the frontend due to predecode wrong",
1023*dfc83cc8SIan Rogers        "EventCode": "0x71",
1024*dfc83cc8SIan Rogers        "EventName": "TOPDOWN_FE_BOUND.PREDECODE",
1025*dfc83cc8SIan Rogers        "SampleAfterValue": "1000003",
1026*dfc83cc8SIan Rogers        "UMask": "0x4",
1027*dfc83cc8SIan Rogers        "Unit": "cpu_atom"
1028*dfc83cc8SIan Rogers    },
1029*dfc83cc8SIan Rogers    {
10305362e4d1SIan Rogers        "BriefDescription": "Counts the number of consumed retirement slots.  Similar to UOPS_RETIRED.ALL",
10315362e4d1SIan Rogers        "EventCode": "0x72",
10325362e4d1SIan Rogers        "EventName": "TOPDOWN_RETIRING.ALL",
10335362e4d1SIan Rogers        "PEBS": "1",
10345362e4d1SIan Rogers        "SampleAfterValue": "1000003",
10355362e4d1SIan Rogers        "Unit": "cpu_atom"
1036591530c0SIan Rogers    },
1037591530c0SIan Rogers    {
1038*dfc83cc8SIan Rogers        "BriefDescription": "Number of non dec-by-all uops decoded by decoder",
1039*dfc83cc8SIan Rogers        "EventCode": "0x76",
1040*dfc83cc8SIan Rogers        "EventName": "UOPS_DECODED.DEC0_UOPS",
1041*dfc83cc8SIan Rogers        "PublicDescription": "This event counts the number of not dec-by-all uops decoded by decoder 0.",
1042*dfc83cc8SIan Rogers        "SampleAfterValue": "1000003",
1043*dfc83cc8SIan Rogers        "UMask": "0x1",
1044*dfc83cc8SIan Rogers        "Unit": "cpu_core"
1045*dfc83cc8SIan Rogers    },
1046*dfc83cc8SIan Rogers    {
1047*dfc83cc8SIan Rogers        "BriefDescription": "Uops executed on port 0",
1048*dfc83cc8SIan Rogers        "EventCode": "0xb2",
1049*dfc83cc8SIan Rogers        "EventName": "UOPS_DISPATCHED.PORT_0",
1050*dfc83cc8SIan Rogers        "PublicDescription": "Number of uops dispatch to execution  port 0.",
1051*dfc83cc8SIan Rogers        "SampleAfterValue": "2000003",
1052*dfc83cc8SIan Rogers        "UMask": "0x1",
1053*dfc83cc8SIan Rogers        "Unit": "cpu_core"
1054*dfc83cc8SIan Rogers    },
1055*dfc83cc8SIan Rogers    {
1056*dfc83cc8SIan Rogers        "BriefDescription": "Uops executed on port 1",
1057*dfc83cc8SIan Rogers        "EventCode": "0xb2",
1058*dfc83cc8SIan Rogers        "EventName": "UOPS_DISPATCHED.PORT_1",
1059*dfc83cc8SIan Rogers        "PublicDescription": "Number of uops dispatch to execution  port 1.",
1060*dfc83cc8SIan Rogers        "SampleAfterValue": "2000003",
1061*dfc83cc8SIan Rogers        "UMask": "0x2",
1062*dfc83cc8SIan Rogers        "Unit": "cpu_core"
1063*dfc83cc8SIan Rogers    },
1064*dfc83cc8SIan Rogers    {
1065*dfc83cc8SIan Rogers        "BriefDescription": "Uops executed on ports 2, 3 and 10",
1066*dfc83cc8SIan Rogers        "EventCode": "0xb2",
1067*dfc83cc8SIan Rogers        "EventName": "UOPS_DISPATCHED.PORT_2_3_10",
1068*dfc83cc8SIan Rogers        "PublicDescription": "Number of uops dispatch to execution ports 2, 3 and 10",
1069*dfc83cc8SIan Rogers        "SampleAfterValue": "2000003",
1070*dfc83cc8SIan Rogers        "UMask": "0x4",
1071*dfc83cc8SIan Rogers        "Unit": "cpu_core"
1072*dfc83cc8SIan Rogers    },
1073*dfc83cc8SIan Rogers    {
1074*dfc83cc8SIan Rogers        "BriefDescription": "Uops executed on ports 4 and 9",
1075*dfc83cc8SIan Rogers        "EventCode": "0xb2",
1076*dfc83cc8SIan Rogers        "EventName": "UOPS_DISPATCHED.PORT_4_9",
1077*dfc83cc8SIan Rogers        "PublicDescription": "Number of uops dispatch to execution ports 4 and 9",
1078*dfc83cc8SIan Rogers        "SampleAfterValue": "2000003",
1079*dfc83cc8SIan Rogers        "UMask": "0x10",
1080*dfc83cc8SIan Rogers        "Unit": "cpu_core"
1081*dfc83cc8SIan Rogers    },
1082*dfc83cc8SIan Rogers    {
1083*dfc83cc8SIan Rogers        "BriefDescription": "Uops executed on ports 5 and 11",
1084*dfc83cc8SIan Rogers        "EventCode": "0xb2",
1085*dfc83cc8SIan Rogers        "EventName": "UOPS_DISPATCHED.PORT_5_11",
1086*dfc83cc8SIan Rogers        "PublicDescription": "Number of uops dispatch to execution ports 5 and 11",
1087*dfc83cc8SIan Rogers        "SampleAfterValue": "2000003",
1088*dfc83cc8SIan Rogers        "UMask": "0x20",
1089*dfc83cc8SIan Rogers        "Unit": "cpu_core"
1090*dfc83cc8SIan Rogers    },
1091*dfc83cc8SIan Rogers    {
1092*dfc83cc8SIan Rogers        "BriefDescription": "Uops executed on port 6",
1093*dfc83cc8SIan Rogers        "EventCode": "0xb2",
1094*dfc83cc8SIan Rogers        "EventName": "UOPS_DISPATCHED.PORT_6",
1095*dfc83cc8SIan Rogers        "PublicDescription": "Number of uops dispatch to execution  port 6.",
1096*dfc83cc8SIan Rogers        "SampleAfterValue": "2000003",
1097*dfc83cc8SIan Rogers        "UMask": "0x40",
1098*dfc83cc8SIan Rogers        "Unit": "cpu_core"
1099*dfc83cc8SIan Rogers    },
1100*dfc83cc8SIan Rogers    {
1101*dfc83cc8SIan Rogers        "BriefDescription": "Uops executed on ports 7 and 8",
1102*dfc83cc8SIan Rogers        "EventCode": "0xb2",
1103*dfc83cc8SIan Rogers        "EventName": "UOPS_DISPATCHED.PORT_7_8",
1104*dfc83cc8SIan Rogers        "PublicDescription": "Number of uops dispatch to execution  ports 7 and 8.",
1105*dfc83cc8SIan Rogers        "SampleAfterValue": "2000003",
1106*dfc83cc8SIan Rogers        "UMask": "0x80",
1107*dfc83cc8SIan Rogers        "Unit": "cpu_core"
1108*dfc83cc8SIan Rogers    },
1109*dfc83cc8SIan Rogers    {
1110*dfc83cc8SIan Rogers        "BriefDescription": "Number of uops executed on the core.",
1111*dfc83cc8SIan Rogers        "EventCode": "0xb1",
1112*dfc83cc8SIan Rogers        "EventName": "UOPS_EXECUTED.CORE",
1113*dfc83cc8SIan Rogers        "PublicDescription": "Counts the number of uops executed from any thread.",
1114*dfc83cc8SIan Rogers        "SampleAfterValue": "2000003",
1115*dfc83cc8SIan Rogers        "UMask": "0x2",
1116*dfc83cc8SIan Rogers        "Unit": "cpu_core"
1117*dfc83cc8SIan Rogers    },
1118*dfc83cc8SIan Rogers    {
1119*dfc83cc8SIan Rogers        "BriefDescription": "Cycles at least 1 micro-op is executed from any thread on physical core.",
1120*dfc83cc8SIan Rogers        "CounterMask": "1",
1121*dfc83cc8SIan Rogers        "EventCode": "0xb1",
1122*dfc83cc8SIan Rogers        "EventName": "UOPS_EXECUTED.CORE_CYCLES_GE_1",
1123*dfc83cc8SIan Rogers        "PublicDescription": "Counts cycles when at least 1 micro-op is executed from any thread on physical core.",
1124*dfc83cc8SIan Rogers        "SampleAfterValue": "2000003",
1125*dfc83cc8SIan Rogers        "UMask": "0x2",
1126*dfc83cc8SIan Rogers        "Unit": "cpu_core"
1127*dfc83cc8SIan Rogers    },
1128*dfc83cc8SIan Rogers    {
1129*dfc83cc8SIan Rogers        "BriefDescription": "Cycles at least 2 micro-op is executed from any thread on physical core.",
1130*dfc83cc8SIan Rogers        "CounterMask": "2",
1131*dfc83cc8SIan Rogers        "EventCode": "0xb1",
1132*dfc83cc8SIan Rogers        "EventName": "UOPS_EXECUTED.CORE_CYCLES_GE_2",
1133*dfc83cc8SIan Rogers        "PublicDescription": "Counts cycles when at least 2 micro-ops are executed from any thread on physical core.",
1134*dfc83cc8SIan Rogers        "SampleAfterValue": "2000003",
1135*dfc83cc8SIan Rogers        "UMask": "0x2",
1136*dfc83cc8SIan Rogers        "Unit": "cpu_core"
1137*dfc83cc8SIan Rogers    },
1138*dfc83cc8SIan Rogers    {
1139*dfc83cc8SIan Rogers        "BriefDescription": "Cycles at least 3 micro-op is executed from any thread on physical core.",
1140*dfc83cc8SIan Rogers        "CounterMask": "3",
1141*dfc83cc8SIan Rogers        "EventCode": "0xb1",
1142*dfc83cc8SIan Rogers        "EventName": "UOPS_EXECUTED.CORE_CYCLES_GE_3",
1143*dfc83cc8SIan Rogers        "PublicDescription": "Counts cycles when at least 3 micro-ops are executed from any thread on physical core.",
1144*dfc83cc8SIan Rogers        "SampleAfterValue": "2000003",
1145*dfc83cc8SIan Rogers        "UMask": "0x2",
1146*dfc83cc8SIan Rogers        "Unit": "cpu_core"
1147*dfc83cc8SIan Rogers    },
1148*dfc83cc8SIan Rogers    {
1149*dfc83cc8SIan Rogers        "BriefDescription": "Cycles at least 4 micro-op is executed from any thread on physical core.",
1150*dfc83cc8SIan Rogers        "CounterMask": "4",
1151*dfc83cc8SIan Rogers        "EventCode": "0xb1",
1152*dfc83cc8SIan Rogers        "EventName": "UOPS_EXECUTED.CORE_CYCLES_GE_4",
1153*dfc83cc8SIan Rogers        "PublicDescription": "Counts cycles when at least 4 micro-ops are executed from any thread on physical core.",
1154*dfc83cc8SIan Rogers        "SampleAfterValue": "2000003",
1155*dfc83cc8SIan Rogers        "UMask": "0x2",
1156*dfc83cc8SIan Rogers        "Unit": "cpu_core"
1157*dfc83cc8SIan Rogers    },
1158*dfc83cc8SIan Rogers    {
1159*dfc83cc8SIan Rogers        "BriefDescription": "Cycles where at least 1 uop was executed per-thread",
1160*dfc83cc8SIan Rogers        "CounterMask": "1",
1161*dfc83cc8SIan Rogers        "EventCode": "0xb1",
1162*dfc83cc8SIan Rogers        "EventName": "UOPS_EXECUTED.CYCLES_GE_1",
1163*dfc83cc8SIan Rogers        "PublicDescription": "Cycles where at least 1 uop was executed per-thread.",
1164*dfc83cc8SIan Rogers        "SampleAfterValue": "2000003",
1165*dfc83cc8SIan Rogers        "UMask": "0x1",
1166*dfc83cc8SIan Rogers        "Unit": "cpu_core"
1167*dfc83cc8SIan Rogers    },
1168*dfc83cc8SIan Rogers    {
1169*dfc83cc8SIan Rogers        "BriefDescription": "Cycles where at least 2 uops were executed per-thread",
1170*dfc83cc8SIan Rogers        "CounterMask": "2",
1171*dfc83cc8SIan Rogers        "EventCode": "0xb1",
1172*dfc83cc8SIan Rogers        "EventName": "UOPS_EXECUTED.CYCLES_GE_2",
1173*dfc83cc8SIan Rogers        "PublicDescription": "Cycles where at least 2 uops were executed per-thread.",
1174*dfc83cc8SIan Rogers        "SampleAfterValue": "2000003",
1175*dfc83cc8SIan Rogers        "UMask": "0x1",
1176*dfc83cc8SIan Rogers        "Unit": "cpu_core"
1177*dfc83cc8SIan Rogers    },
1178*dfc83cc8SIan Rogers    {
1179*dfc83cc8SIan Rogers        "BriefDescription": "Cycles where at least 3 uops were executed per-thread",
1180*dfc83cc8SIan Rogers        "CounterMask": "3",
1181*dfc83cc8SIan Rogers        "EventCode": "0xb1",
1182*dfc83cc8SIan Rogers        "EventName": "UOPS_EXECUTED.CYCLES_GE_3",
1183*dfc83cc8SIan Rogers        "PublicDescription": "Cycles where at least 3 uops were executed per-thread.",
1184*dfc83cc8SIan Rogers        "SampleAfterValue": "2000003",
1185*dfc83cc8SIan Rogers        "UMask": "0x1",
1186*dfc83cc8SIan Rogers        "Unit": "cpu_core"
1187*dfc83cc8SIan Rogers    },
1188*dfc83cc8SIan Rogers    {
1189*dfc83cc8SIan Rogers        "BriefDescription": "Cycles where at least 4 uops were executed per-thread",
1190*dfc83cc8SIan Rogers        "CounterMask": "4",
1191*dfc83cc8SIan Rogers        "EventCode": "0xb1",
1192*dfc83cc8SIan Rogers        "EventName": "UOPS_EXECUTED.CYCLES_GE_4",
1193*dfc83cc8SIan Rogers        "PublicDescription": "Cycles where at least 4 uops were executed per-thread.",
1194*dfc83cc8SIan Rogers        "SampleAfterValue": "2000003",
1195*dfc83cc8SIan Rogers        "UMask": "0x1",
1196*dfc83cc8SIan Rogers        "Unit": "cpu_core"
1197*dfc83cc8SIan Rogers    },
1198*dfc83cc8SIan Rogers    {
1199*dfc83cc8SIan Rogers        "BriefDescription": "Counts number of cycles no uops were dispatched to be executed on this thread.",
1200*dfc83cc8SIan Rogers        "CounterMask": "1",
1201*dfc83cc8SIan Rogers        "EventCode": "0xb1",
1202*dfc83cc8SIan Rogers        "EventName": "UOPS_EXECUTED.STALLS",
1203*dfc83cc8SIan Rogers        "Invert": "1",
1204*dfc83cc8SIan Rogers        "PublicDescription": "Counts cycles during which no uops were dispatched from the Reservation Station (RS) per thread.",
1205*dfc83cc8SIan Rogers        "SampleAfterValue": "2000003",
1206*dfc83cc8SIan Rogers        "UMask": "0x1",
1207*dfc83cc8SIan Rogers        "Unit": "cpu_core"
1208*dfc83cc8SIan Rogers    },
1209*dfc83cc8SIan Rogers    {
1210*dfc83cc8SIan Rogers        "BriefDescription": "Counts the number of uops to be executed per-thread each cycle.",
1211*dfc83cc8SIan Rogers        "EventCode": "0xb1",
1212*dfc83cc8SIan Rogers        "EventName": "UOPS_EXECUTED.THREAD",
1213*dfc83cc8SIan Rogers        "SampleAfterValue": "2000003",
1214*dfc83cc8SIan Rogers        "UMask": "0x1",
1215*dfc83cc8SIan Rogers        "Unit": "cpu_core"
1216*dfc83cc8SIan Rogers    },
1217*dfc83cc8SIan Rogers    {
1218*dfc83cc8SIan Rogers        "BriefDescription": "Counts the number of x87 uops dispatched.",
1219*dfc83cc8SIan Rogers        "EventCode": "0xb1",
1220*dfc83cc8SIan Rogers        "EventName": "UOPS_EXECUTED.X87",
1221*dfc83cc8SIan Rogers        "PublicDescription": "Counts the number of x87 uops executed.",
1222*dfc83cc8SIan Rogers        "SampleAfterValue": "2000003",
1223*dfc83cc8SIan Rogers        "UMask": "0x10",
1224*dfc83cc8SIan Rogers        "Unit": "cpu_core"
1225*dfc83cc8SIan Rogers    },
1226*dfc83cc8SIan Rogers    {
1227*dfc83cc8SIan Rogers        "BriefDescription": "Counts the number of uops issued by the front end every cycle.",
1228*dfc83cc8SIan Rogers        "EventCode": "0x0e",
1229*dfc83cc8SIan Rogers        "EventName": "UOPS_ISSUED.ANY",
1230*dfc83cc8SIan Rogers        "PublicDescription": "Counts the number of uops issued by the front end every cycle. When 4-uops are requested and only 2-uops are delivered, the event counts 2.  Uops_issued correlates to the number of ROB entries.  If uop takes 2 ROB slots it counts as 2 uops_issued.",
1231*dfc83cc8SIan Rogers        "SampleAfterValue": "1000003",
1232*dfc83cc8SIan Rogers        "Unit": "cpu_atom"
1233*dfc83cc8SIan Rogers    },
1234*dfc83cc8SIan Rogers    {
1235*dfc83cc8SIan Rogers        "BriefDescription": "Uops that RAT issues to RS",
1236*dfc83cc8SIan Rogers        "EventCode": "0xae",
1237*dfc83cc8SIan Rogers        "EventName": "UOPS_ISSUED.ANY",
1238*dfc83cc8SIan Rogers        "PublicDescription": "Counts the number of uops that the Resource Allocation Table (RAT) issues to the Reservation Station (RS).",
1239*dfc83cc8SIan Rogers        "SampleAfterValue": "2000003",
1240*dfc83cc8SIan Rogers        "UMask": "0x1",
1241*dfc83cc8SIan Rogers        "Unit": "cpu_core"
1242*dfc83cc8SIan Rogers    },
1243*dfc83cc8SIan Rogers    {
1244*dfc83cc8SIan Rogers        "BriefDescription": "UOPS_ISSUED.CYCLES",
1245*dfc83cc8SIan Rogers        "CounterMask": "1",
1246*dfc83cc8SIan Rogers        "EventCode": "0xae",
1247*dfc83cc8SIan Rogers        "EventName": "UOPS_ISSUED.CYCLES",
1248*dfc83cc8SIan Rogers        "SampleAfterValue": "2000003",
1249*dfc83cc8SIan Rogers        "UMask": "0x1",
1250*dfc83cc8SIan Rogers        "Unit": "cpu_core"
1251*dfc83cc8SIan Rogers    },
1252*dfc83cc8SIan Rogers    {
1253*dfc83cc8SIan Rogers        "BriefDescription": "Cycles when RAT does not issue Uops to RS for the thread",
1254*dfc83cc8SIan Rogers        "CounterMask": "1",
1255*dfc83cc8SIan Rogers        "EventCode": "0xae",
1256*dfc83cc8SIan Rogers        "EventName": "UOPS_ISSUED.STALLS",
1257*dfc83cc8SIan Rogers        "Invert": "1",
1258*dfc83cc8SIan Rogers        "PublicDescription": "Counts cycles during which the Resource Allocation Table (RAT) does not issue any Uops to the reservation station (RS) for the current thread.",
1259*dfc83cc8SIan Rogers        "SampleAfterValue": "1000003",
1260*dfc83cc8SIan Rogers        "UMask": "0x1",
1261*dfc83cc8SIan Rogers        "Unit": "cpu_core"
1262*dfc83cc8SIan Rogers    },
1263*dfc83cc8SIan Rogers    {
1264*dfc83cc8SIan Rogers        "BriefDescription": "Retired uops except the last uop of each instruction.",
1265*dfc83cc8SIan Rogers        "EventCode": "0xc2",
1266*dfc83cc8SIan Rogers        "EventName": "UOPS_RETIRED.HEAVY",
1267*dfc83cc8SIan Rogers        "PublicDescription": "Counts the number of retired micro-operations (uops) except the last uop of each instruction. An instruction that is decoded into less than two uops does not contribute to the count.",
1268*dfc83cc8SIan Rogers        "SampleAfterValue": "2000003",
1269*dfc83cc8SIan Rogers        "UMask": "0x1",
1270*dfc83cc8SIan Rogers        "Unit": "cpu_core"
1271*dfc83cc8SIan Rogers    },
1272*dfc83cc8SIan Rogers    {
1273*dfc83cc8SIan Rogers        "BriefDescription": "Counts the number of integer divide uops retired.",
1274*dfc83cc8SIan Rogers        "EventCode": "0xc2",
1275*dfc83cc8SIan Rogers        "EventName": "UOPS_RETIRED.IDIV",
1276*dfc83cc8SIan Rogers        "PEBS": "1",
1277*dfc83cc8SIan Rogers        "SampleAfterValue": "2000003",
1278*dfc83cc8SIan Rogers        "UMask": "0x10",
1279*dfc83cc8SIan Rogers        "Unit": "cpu_atom"
1280*dfc83cc8SIan Rogers    },
1281*dfc83cc8SIan Rogers    {
1282*dfc83cc8SIan Rogers        "BriefDescription": "Counts the number of uops that are from the complex flows issued by the micro-sequencer (MS).  This includes uops from flows due to complex instructions, faults, assists, and inserted flows.",
1283*dfc83cc8SIan Rogers        "EventCode": "0xc2",
1284*dfc83cc8SIan Rogers        "EventName": "UOPS_RETIRED.MS",
1285*dfc83cc8SIan Rogers        "PEBS": "1",
1286*dfc83cc8SIan Rogers        "SampleAfterValue": "2000003",
1287*dfc83cc8SIan Rogers        "UMask": "0x1",
1288*dfc83cc8SIan Rogers        "Unit": "cpu_atom"
1289*dfc83cc8SIan Rogers    },
1290*dfc83cc8SIan Rogers    {
1291*dfc83cc8SIan Rogers        "BriefDescription": "UOPS_RETIRED.MS",
1292*dfc83cc8SIan Rogers        "EventCode": "0xc2",
1293*dfc83cc8SIan Rogers        "EventName": "UOPS_RETIRED.MS",
1294*dfc83cc8SIan Rogers        "MSRIndex": "0x3F7",
1295*dfc83cc8SIan Rogers        "MSRValue": "0x8",
1296*dfc83cc8SIan Rogers        "SampleAfterValue": "2000003",
1297*dfc83cc8SIan Rogers        "UMask": "0x4",
1298*dfc83cc8SIan Rogers        "Unit": "cpu_core"
1299*dfc83cc8SIan Rogers    },
1300*dfc83cc8SIan Rogers    {
1301591530c0SIan Rogers        "BriefDescription": "This event counts a subset of the Topdown Slots event that are utilized by operations that eventually get retired (committed) by the processor pipeline. Usually, this event positively correlates with higher performance  for example, as measured by the instructions-per-cycle metric.",
1302591530c0SIan Rogers        "EventCode": "0xc2",
1303591530c0SIan Rogers        "EventName": "UOPS_RETIRED.SLOTS",
1304591530c0SIan Rogers        "PublicDescription": "This event counts a subset of the Topdown Slots event that are utilized by operations that eventually get retired (committed) by the processor pipeline. Usually, this event positively correlates with higher performance  for example, as measured by the instructions-per-cycle metric.\nSoftware can use this event as the numerator for the Retiring metric (or top-level category) of the Top-down Microarchitecture Analysis method.",
1305591530c0SIan Rogers        "SampleAfterValue": "2000003",
1306591530c0SIan Rogers        "UMask": "0x2",
1307591530c0SIan Rogers        "Unit": "cpu_core"
1308*dfc83cc8SIan Rogers    },
1309*dfc83cc8SIan Rogers    {
1310*dfc83cc8SIan Rogers        "BriefDescription": "Cycles with less than 10 actually retired uops.",
1311*dfc83cc8SIan Rogers        "CounterMask": "10",
1312*dfc83cc8SIan Rogers        "EventCode": "0xc2",
1313*dfc83cc8SIan Rogers        "EventName": "UOPS_RETIRED.TOTAL_CYCLES",
1314*dfc83cc8SIan Rogers        "Invert": "1",
1315*dfc83cc8SIan Rogers        "PublicDescription": "Counts the number of cycles using always true condition (uops_ret < 16) applied to non PEBS uops retired event.",
1316*dfc83cc8SIan Rogers        "SampleAfterValue": "1000003",
1317*dfc83cc8SIan Rogers        "UMask": "0x2",
1318*dfc83cc8SIan Rogers        "Unit": "cpu_core"
1319*dfc83cc8SIan Rogers    },
1320*dfc83cc8SIan Rogers    {
1321*dfc83cc8SIan Rogers        "BriefDescription": "Counts the number of x87 uops retired, includes those in ms flows",
1322*dfc83cc8SIan Rogers        "EventCode": "0xc2",
1323*dfc83cc8SIan Rogers        "EventName": "UOPS_RETIRED.X87",
1324*dfc83cc8SIan Rogers        "PEBS": "1",
1325*dfc83cc8SIan Rogers        "SampleAfterValue": "2000003",
1326*dfc83cc8SIan Rogers        "UMask": "0x2",
1327*dfc83cc8SIan Rogers        "Unit": "cpu_atom"
13281ab4ef06SIan Rogers    }
13291ab4ef06SIan Rogers]
1330