xref: /freebsd/lib/libpmc/pmu-events/arch/x86/icelake/pipeline.json (revision 52d973f52c07b94909a6487be373c269988dc151)
192b14858SMatt Macy[
292b14858SMatt Macy    {
3*52d973f5SAlexander Motin        "BriefDescription": "Mispredicted indirect CALL instructions retired.",
492b14858SMatt Macy        "CollectPEBSRecord": "2",
592b14858SMatt Macy        "Counter": "0,1,2,3,4,5,6,7",
6*52d973f5SAlexander Motin        "EventCode": "0xc5",
7*52d973f5SAlexander Motin        "EventName": "BR_MISP_RETIRED.INDIRECT_CALL",
8*52d973f5SAlexander Motin        "PEBS": "1",
992b14858SMatt Macy        "PEBScounters": "0,1,2,3,4,5,6,7",
10*52d973f5SAlexander Motin        "PublicDescription": "Counts retired mispredicted indirect (near taken) CALL instructions, including both register and memory indirect.",
11*52d973f5SAlexander Motin        "SampleAfterValue": "50021",
12*52d973f5SAlexander Motin        "UMask": "0x2"
1392b14858SMatt Macy    },
1492b14858SMatt Macy    {
15*52d973f5SAlexander Motin        "BriefDescription": "Number of uops executed on the core.",
1692b14858SMatt Macy        "CollectPEBSRecord": "2",
1792b14858SMatt Macy        "Counter": "0,1,2,3,4,5,6,7",
1892b14858SMatt Macy        "EventCode": "0xB1",
1992b14858SMatt Macy        "EventName": "UOPS_EXECUTED.CORE",
20*52d973f5SAlexander Motin        "PEBScounters": "0,1,2,3,4,5,6,7",
21*52d973f5SAlexander Motin        "PublicDescription": "Counts the number of uops executed from any thread.",
2292b14858SMatt Macy        "SampleAfterValue": "2000003",
23*52d973f5SAlexander Motin        "Speculative": "1",
24*52d973f5SAlexander Motin        "UMask": "0x2"
2592b14858SMatt Macy    },
2692b14858SMatt Macy    {
27*52d973f5SAlexander Motin        "BriefDescription": "Number of uops executed on port 4 and 9",
2892b14858SMatt Macy        "CollectPEBSRecord": "2",
2992b14858SMatt Macy        "Counter": "0,1,2,3,4,5,6,7",
30*52d973f5SAlexander Motin        "EventCode": "0xa1",
31*52d973f5SAlexander Motin        "EventName": "UOPS_DISPATCHED.PORT_4_9",
3292b14858SMatt Macy        "PEBScounters": "0,1,2,3,4,5,6,7",
33*52d973f5SAlexander Motin        "PublicDescription": "Counts, on the per-thread basis, cycles during which at least one uop is dispatched from the Reservation Station (RS) to ports 5 and 9.",
3492b14858SMatt Macy        "SampleAfterValue": "2000003",
35*52d973f5SAlexander Motin        "Speculative": "1",
36*52d973f5SAlexander Motin        "UMask": "0x10"
3792b14858SMatt Macy    },
3892b14858SMatt Macy    {
39*52d973f5SAlexander Motin        "BriefDescription": "Counts the number of uops to be executed per-thread each cycle.",
4092b14858SMatt Macy        "CollectPEBSRecord": "2",
4192b14858SMatt Macy        "Counter": "0,1,2,3,4,5,6,7",
42*52d973f5SAlexander Motin        "EventCode": "0xb1",
43*52d973f5SAlexander Motin        "EventName": "UOPS_EXECUTED.THREAD",
4492b14858SMatt Macy        "PEBScounters": "0,1,2,3,4,5,6,7",
4592b14858SMatt Macy        "SampleAfterValue": "2000003",
46*52d973f5SAlexander Motin        "Speculative": "1",
47*52d973f5SAlexander Motin        "UMask": "0x1"
4892b14858SMatt Macy    },
4992b14858SMatt Macy    {
50*52d973f5SAlexander Motin        "BriefDescription": "Not taken branch instructions retired.",
5192b14858SMatt Macy        "CollectPEBSRecord": "2",
5292b14858SMatt Macy        "Counter": "0,1,2,3,4,5,6,7",
5392b14858SMatt Macy        "EventCode": "0xc4",
5492b14858SMatt Macy        "EventName": "BR_INST_RETIRED.COND_NTAKEN",
55*52d973f5SAlexander Motin        "PEBS": "1",
56*52d973f5SAlexander Motin        "PEBScounters": "0,1,2,3,4,5,6,7",
57*52d973f5SAlexander Motin        "PublicDescription": "Counts not taken branch instructions retired.",
5892b14858SMatt Macy        "SampleAfterValue": "400009",
59*52d973f5SAlexander Motin        "UMask": "0x10"
6092b14858SMatt Macy    },
6192b14858SMatt Macy    {
62*52d973f5SAlexander Motin        "BriefDescription": "Uops inserted at issue-stage in order to preserve upper bits of vector registers.",
6392b14858SMatt Macy        "CollectPEBSRecord": "2",
64*52d973f5SAlexander Motin        "Counter": "0,1,2,3,4,5,6,7",
65*52d973f5SAlexander Motin        "EventCode": "0x0e",
66*52d973f5SAlexander Motin        "EventName": "UOPS_ISSUED.VECTOR_WIDTH_MISMATCH",
67*52d973f5SAlexander Motin        "PEBScounters": "0,1,2,3,4,5,6,7",
68*52d973f5SAlexander Motin        "PublicDescription": "Counts the number of Blend Uops issued by the Resource Allocation Table (RAT) to the reservation station (RS) in order to preserve upper bits of vector registers. Starting with the Skylake microarchitecture, these Blend uops are needed since every Intel SSE instruction executed in Dirty Upper State needs to preserve bits 128-255 of the destination register. For more information, refer to Mixing Intel AVX and Intel SSE Code section of the Optimization Guide.",
69*52d973f5SAlexander Motin        "SampleAfterValue": "100003",
70*52d973f5SAlexander Motin        "Speculative": "1",
71*52d973f5SAlexander Motin        "UMask": "0x2"
72*52d973f5SAlexander Motin    },
73*52d973f5SAlexander Motin    {
74*52d973f5SAlexander Motin        "BriefDescription": "Counts number of cycles no uops were dispatched to be executed on this thread.",
75*52d973f5SAlexander Motin        "CollectPEBSRecord": "2",
76*52d973f5SAlexander Motin        "Counter": "0,1,2,3,4,5,6,7",
77*52d973f5SAlexander Motin        "CounterMask": "1",
78*52d973f5SAlexander Motin        "EventCode": "0xB1",
79*52d973f5SAlexander Motin        "EventName": "UOPS_EXECUTED.STALL_CYCLES",
80*52d973f5SAlexander Motin        "Invert": "1",
81*52d973f5SAlexander Motin        "PEBScounters": "0,1,2,3,4,5,6,7",
82*52d973f5SAlexander Motin        "PublicDescription": "Counts cycles during which no uops were dispatched from the Reservation Station (RS) per thread.",
83*52d973f5SAlexander Motin        "SampleAfterValue": "2000003",
84*52d973f5SAlexander Motin        "Speculative": "1",
85*52d973f5SAlexander Motin        "UMask": "0x1"
86*52d973f5SAlexander Motin    },
87*52d973f5SAlexander Motin    {
88*52d973f5SAlexander Motin        "BriefDescription": "All indirect branch instructions retired (excluding RETs. TSX aborts are considered indirect branch).",
89*52d973f5SAlexander Motin        "CollectPEBSRecord": "2",
90*52d973f5SAlexander Motin        "Counter": "0,1,2,3,4,5,6,7",
9192b14858SMatt Macy        "EventCode": "0xc4",
9292b14858SMatt Macy        "EventName": "BR_INST_RETIRED.INDIRECT",
93*52d973f5SAlexander Motin        "PEBS": "1",
94*52d973f5SAlexander Motin        "PEBScounters": "0,1,2,3,4,5,6,7",
95*52d973f5SAlexander Motin        "PublicDescription": "Counts all indirect branch instructions retired (excluding RETs. TSX aborts is considered indirect branch).",
9692b14858SMatt Macy        "SampleAfterValue": "100003",
97*52d973f5SAlexander Motin        "UMask": "0x80"
9892b14858SMatt Macy    },
9992b14858SMatt Macy    {
100*52d973f5SAlexander Motin        "BriefDescription": "Cycles total of 4 uops are executed on all ports and Reservation Station was not empty.",
10192b14858SMatt Macy        "CollectPEBSRecord": "2",
10292b14858SMatt Macy        "Counter": "0,1,2,3,4,5,6,7",
103*52d973f5SAlexander Motin        "EventCode": "0xa6",
104*52d973f5SAlexander Motin        "EventName": "EXE_ACTIVITY.4_PORTS_UTIL",
10592b14858SMatt Macy        "PEBScounters": "0,1,2,3,4,5,6,7",
106*52d973f5SAlexander Motin        "PublicDescription": "Cycles total of 4 uops are executed on all ports and Reservation Station (RS) was not empty.",
10792b14858SMatt Macy        "SampleAfterValue": "2000003",
108*52d973f5SAlexander Motin        "Speculative": "1",
109*52d973f5SAlexander Motin        "UMask": "0x10"
11092b14858SMatt Macy    },
11192b14858SMatt Macy    {
112*52d973f5SAlexander Motin        "BriefDescription": "Number of uops executed on port 2 and 3",
11392b14858SMatt Macy        "CollectPEBSRecord": "2",
114*52d973f5SAlexander Motin        "Counter": "0,1,2,3,4,5,6,7",
115*52d973f5SAlexander Motin        "EventCode": "0xa1",
116*52d973f5SAlexander Motin        "EventName": "UOPS_DISPATCHED.PORT_2_3",
117*52d973f5SAlexander Motin        "PEBScounters": "0,1,2,3,4,5,6,7",
118*52d973f5SAlexander Motin        "PublicDescription": "Counts, on the per-thread basis, cycles during which at least one uop is dispatched from the Reservation Station (RS) to ports 2 and 3.",
119*52d973f5SAlexander Motin        "SampleAfterValue": "2000003",
120*52d973f5SAlexander Motin        "Speculative": "1",
121*52d973f5SAlexander Motin        "UMask": "0x4"
122*52d973f5SAlexander Motin    },
123*52d973f5SAlexander Motin    {
124*52d973f5SAlexander Motin        "BriefDescription": "Taken branch instructions retired.",
125*52d973f5SAlexander Motin        "CollectPEBSRecord": "2",
126*52d973f5SAlexander Motin        "Counter": "0,1,2,3,4,5,6,7",
127*52d973f5SAlexander Motin        "EventCode": "0xc4",
128*52d973f5SAlexander Motin        "EventName": "BR_INST_RETIRED.NEAR_TAKEN",
129*52d973f5SAlexander Motin        "PEBS": "1",
130*52d973f5SAlexander Motin        "PEBScounters": "0,1,2,3,4,5,6,7",
131*52d973f5SAlexander Motin        "PublicDescription": "Counts taken branch instructions retired.",
132*52d973f5SAlexander Motin        "SampleAfterValue": "400009",
133*52d973f5SAlexander Motin        "UMask": "0x20"
134*52d973f5SAlexander Motin    },
135*52d973f5SAlexander Motin    {
136*52d973f5SAlexander Motin        "BriefDescription": "Counts the number of demand load dispatches that hit L1D fill buffer (FB) allocated for software prefetch.",
137*52d973f5SAlexander Motin        "CollectPEBSRecord": "2",
13892b14858SMatt Macy        "Counter": "0,1,2,3",
139*52d973f5SAlexander Motin        "EventCode": "0x4c",
140*52d973f5SAlexander Motin        "EventName": "LOAD_HIT_PREFETCH.SWPF",
14192b14858SMatt Macy        "PEBScounters": "0,1,2,3",
142*52d973f5SAlexander Motin        "PublicDescription": "Counts all not software-prefetch load dispatches that hit the fill buffer (FB) allocated for the software prefetch. It can also be incremented by some lock instructions. So it should only be used with profiling so that the locks can be excluded by ASM (Assembly File) inspection of the nearby instructions.",
14392b14858SMatt Macy        "SampleAfterValue": "100003",
144*52d973f5SAlexander Motin        "Speculative": "1",
145*52d973f5SAlexander Motin        "UMask": "0x1"
14692b14858SMatt Macy    },
14792b14858SMatt Macy    {
148*52d973f5SAlexander Motin        "BriefDescription": "Number of uops executed on port 1",
14992b14858SMatt Macy        "CollectPEBSRecord": "2",
15092b14858SMatt Macy        "Counter": "0,1,2,3,4,5,6,7",
151*52d973f5SAlexander Motin        "EventCode": "0xa1",
152*52d973f5SAlexander Motin        "EventName": "UOPS_DISPATCHED.PORT_1",
15392b14858SMatt Macy        "PEBScounters": "0,1,2,3,4,5,6,7",
154*52d973f5SAlexander Motin        "PublicDescription": "Counts, on the per-thread basis, cycles during which at least one uop is dispatched from the Reservation Station (RS) to port 1.",
15592b14858SMatt Macy        "SampleAfterValue": "2000003",
156*52d973f5SAlexander Motin        "Speculative": "1",
157*52d973f5SAlexander Motin        "UMask": "0x2"
158*52d973f5SAlexander Motin    },
159*52d973f5SAlexander Motin    {
160*52d973f5SAlexander Motin        "BriefDescription": "Number of Uops delivered by the LSD.",
161*52d973f5SAlexander Motin        "CollectPEBSRecord": "2",
162*52d973f5SAlexander Motin        "Counter": "0,1,2,3",
163*52d973f5SAlexander Motin        "EventCode": "0xa8",
164*52d973f5SAlexander Motin        "EventName": "LSD.UOPS",
165*52d973f5SAlexander Motin        "PEBScounters": "0,1,2,3",
166*52d973f5SAlexander Motin        "PublicDescription": "Counts the number of uops delivered to the back-end by the LSD(Loop Stream Detector).",
167*52d973f5SAlexander Motin        "SampleAfterValue": "2000003",
168*52d973f5SAlexander Motin        "Speculative": "1",
169*52d973f5SAlexander Motin        "UMask": "0x1"
170*52d973f5SAlexander Motin    },
171*52d973f5SAlexander Motin    {
172*52d973f5SAlexander Motin        "BriefDescription": "Number of uops executed on port 5",
173*52d973f5SAlexander Motin        "CollectPEBSRecord": "2",
174*52d973f5SAlexander Motin        "Counter": "0,1,2,3,4,5,6,7",
175*52d973f5SAlexander Motin        "EventCode": "0xa1",
176*52d973f5SAlexander Motin        "EventName": "UOPS_DISPATCHED.PORT_5",
177*52d973f5SAlexander Motin        "PEBScounters": "0,1,2,3,4,5,6,7",
178*52d973f5SAlexander Motin        "PublicDescription": "Counts, on the per-thread basis, cycles during which at least one uop is dispatched from the Reservation Station (RS) to port 5.",
179*52d973f5SAlexander Motin        "SampleAfterValue": "2000003",
180*52d973f5SAlexander Motin        "Speculative": "1",
181*52d973f5SAlexander Motin        "UMask": "0x20"
182*52d973f5SAlexander Motin    },
183*52d973f5SAlexander Motin    {
184*52d973f5SAlexander Motin        "BriefDescription": "Number of uops executed on port 6",
185*52d973f5SAlexander Motin        "CollectPEBSRecord": "2",
186*52d973f5SAlexander Motin        "Counter": "0,1,2,3,4,5,6,7",
187*52d973f5SAlexander Motin        "EventCode": "0xa1",
188*52d973f5SAlexander Motin        "EventName": "UOPS_DISPATCHED.PORT_6",
189*52d973f5SAlexander Motin        "PEBScounters": "0,1,2,3,4,5,6,7",
190*52d973f5SAlexander Motin        "PublicDescription": "Counts, on the per-thread basis, cycles during which at least one uop is dispatched from the Reservation Station (RS) to port 6.",
191*52d973f5SAlexander Motin        "SampleAfterValue": "2000003",
192*52d973f5SAlexander Motin        "Speculative": "1",
193*52d973f5SAlexander Motin        "UMask": "0x40"
194*52d973f5SAlexander Motin    },
195*52d973f5SAlexander Motin    {
196*52d973f5SAlexander Motin        "BriefDescription": "Cycles Uops delivered by the LSD, but didn't come from the decoder.",
197*52d973f5SAlexander Motin        "CollectPEBSRecord": "2",
198*52d973f5SAlexander Motin        "Counter": "0,1,2,3",
199*52d973f5SAlexander Motin        "CounterMask": "1",
200*52d973f5SAlexander Motin        "EventCode": "0xA8",
201*52d973f5SAlexander Motin        "EventName": "LSD.CYCLES_ACTIVE",
202*52d973f5SAlexander Motin        "PEBScounters": "0,1,2,3",
203*52d973f5SAlexander Motin        "PublicDescription": "Counts the cycles when at least one uop is delivered by the LSD (Loop-stream detector).",
204*52d973f5SAlexander Motin        "SampleAfterValue": "2000003",
205*52d973f5SAlexander Motin        "Speculative": "1",
206*52d973f5SAlexander Motin        "UMask": "0x1"
207*52d973f5SAlexander Motin    },
208*52d973f5SAlexander Motin    {
209*52d973f5SAlexander Motin        "BriefDescription": "Core cycles the allocator was stalled due to recovery from earlier clear event for this thread",
210*52d973f5SAlexander Motin        "CollectPEBSRecord": "2",
211*52d973f5SAlexander Motin        "Counter": "0,1,2,3,4,5,6,7",
212*52d973f5SAlexander Motin        "EventCode": "0x0D",
213*52d973f5SAlexander Motin        "EventName": "INT_MISC.RECOVERY_CYCLES",
214*52d973f5SAlexander Motin        "PEBScounters": "0,1,2,3,4,5,6,7",
215*52d973f5SAlexander Motin        "PublicDescription": "Counts core cycles when the Resource allocator was stalled due to recovery from an earlier branch misprediction or machine clear event.",
216*52d973f5SAlexander Motin        "SampleAfterValue": "500009",
217*52d973f5SAlexander Motin        "Speculative": "1",
218*52d973f5SAlexander Motin        "UMask": "0x1"
219*52d973f5SAlexander Motin    },
220*52d973f5SAlexander Motin    {
221*52d973f5SAlexander Motin        "BriefDescription": "Cycles where the Store Buffer was full and no loads caused an execution stall.",
222*52d973f5SAlexander Motin        "CollectPEBSRecord": "2",
223*52d973f5SAlexander Motin        "Counter": "0,1,2,3,4,5,6,7",
224*52d973f5SAlexander Motin        "CounterMask": "2",
225*52d973f5SAlexander Motin        "EventCode": "0xA6",
226*52d973f5SAlexander Motin        "EventName": "EXE_ACTIVITY.BOUND_ON_STORES",
227*52d973f5SAlexander Motin        "PEBScounters": "0,1,2,3,4,5,6,7",
228*52d973f5SAlexander Motin        "PublicDescription": "Counts cycles where the Store Buffer was full and no loads caused an execution stall.",
229*52d973f5SAlexander Motin        "SampleAfterValue": "1000003",
230*52d973f5SAlexander Motin        "Speculative": "1",
231*52d973f5SAlexander Motin        "UMask": "0x40"
232*52d973f5SAlexander Motin    },
233*52d973f5SAlexander Motin    {
234*52d973f5SAlexander Motin        "BriefDescription": "Core crystal clock cycles when the thread is unhalted.",
235*52d973f5SAlexander Motin        "CollectPEBSRecord": "2",
236*52d973f5SAlexander Motin        "Counter": "0,1,2,3,4,5,6,7",
237*52d973f5SAlexander Motin        "EventCode": "0x3C",
238*52d973f5SAlexander Motin        "EventName": "CPU_CLK_UNHALTED.REF_XCLK",
239*52d973f5SAlexander Motin        "PEBScounters": "0,1,2,3,4,5,6,7",
240*52d973f5SAlexander Motin        "PublicDescription": "Counts core crystal clock cycles when the thread is unhalted.",
241*52d973f5SAlexander Motin        "SampleAfterValue": "25003",
242*52d973f5SAlexander Motin        "Speculative": "1",
243*52d973f5SAlexander Motin        "UMask": "0x1"
244*52d973f5SAlexander Motin    },
245*52d973f5SAlexander Motin    {
246*52d973f5SAlexander Motin        "BriefDescription": "Stalls caused by changing prefix length of the instruction.",
247*52d973f5SAlexander Motin        "CollectPEBSRecord": "2",
248*52d973f5SAlexander Motin        "Counter": "0,1,2,3",
249*52d973f5SAlexander Motin        "EventCode": "0x87",
250*52d973f5SAlexander Motin        "EventName": "ILD_STALL.LCP",
251*52d973f5SAlexander Motin        "PEBScounters": "0,1,2,3",
252*52d973f5SAlexander Motin        "PublicDescription": "Counts cycles that the Instruction Length decoder (ILD) stalls occurred due to dynamically changing prefix length of the decoded instruction (by operand size prefix instruction 0x66, address size prefix instruction 0x67 or REX.W for Intel64). Count is proportional to the number of prefixes in a 16B-line. This may result in a three-cycle penalty for each LCP (Length changing prefix) in a 16-byte chunk.",
253*52d973f5SAlexander Motin        "SampleAfterValue": "500009",
254*52d973f5SAlexander Motin        "Speculative": "1",
255*52d973f5SAlexander Motin        "UMask": "0x1"
256*52d973f5SAlexander Motin    },
257*52d973f5SAlexander Motin    {
258*52d973f5SAlexander Motin        "BriefDescription": "False dependencies in MOB due to partial compare on address.",
259*52d973f5SAlexander Motin        "CollectPEBSRecord": "2",
260*52d973f5SAlexander Motin        "Counter": "0,1,2,3",
261*52d973f5SAlexander Motin        "EventCode": "0x07",
262*52d973f5SAlexander Motin        "EventName": "LD_BLOCKS_PARTIAL.ADDRESS_ALIAS",
263*52d973f5SAlexander Motin        "PEBScounters": "0,1,2,3",
264*52d973f5SAlexander Motin        "PublicDescription": "Counts the number of times a load got blocked due to false dependencies in MOB due to partial compare on address.",
265*52d973f5SAlexander Motin        "SampleAfterValue": "100003",
266*52d973f5SAlexander Motin        "Speculative": "1",
267*52d973f5SAlexander Motin        "UMask": "0x1"
268*52d973f5SAlexander Motin    },
269*52d973f5SAlexander Motin    {
270*52d973f5SAlexander Motin        "BriefDescription": "Cycles when Reservation Station (RS) is empty for the thread",
271*52d973f5SAlexander Motin        "CollectPEBSRecord": "2",
272*52d973f5SAlexander Motin        "Counter": "0,1,2,3,4,5,6,7",
273*52d973f5SAlexander Motin        "EventCode": "0x5e",
274*52d973f5SAlexander Motin        "EventName": "RS_EVENTS.EMPTY_CYCLES",
275*52d973f5SAlexander Motin        "PEBScounters": "0,1,2,3,4,5,6,7",
276*52d973f5SAlexander Motin        "PublicDescription": "Counts cycles during which the reservation station (RS) is empty for this logical processor. This is usually caused when the front-end pipeline runs into stravation periods (e.g. branch mispredictions or i-cache misses)",
277*52d973f5SAlexander Motin        "SampleAfterValue": "1000003",
278*52d973f5SAlexander Motin        "Speculative": "1",
279*52d973f5SAlexander Motin        "UMask": "0x1"
280*52d973f5SAlexander Motin    },
281*52d973f5SAlexander Motin    {
282*52d973f5SAlexander Motin        "BriefDescription": "Loads blocked due to overlapping with a preceding store that cannot be forwarded.",
283*52d973f5SAlexander Motin        "CollectPEBSRecord": "2",
284*52d973f5SAlexander Motin        "Counter": "0,1,2,3",
285*52d973f5SAlexander Motin        "EventCode": "0x03",
286*52d973f5SAlexander Motin        "EventName": "LD_BLOCKS.STORE_FORWARD",
287*52d973f5SAlexander Motin        "PEBScounters": "0,1,2,3",
288*52d973f5SAlexander Motin        "PublicDescription": "Counts the number of times where store forwarding was prevented for a load operation. The most common case is a load blocked due to the address of memory access (partially) overlapping with a preceding uncompleted store. Note: See the table of not supported store forwards in the Optimization Guide.",
289*52d973f5SAlexander Motin        "SampleAfterValue": "100003",
290*52d973f5SAlexander Motin        "Speculative": "1",
291*52d973f5SAlexander Motin        "UMask": "0x2"
292*52d973f5SAlexander Motin    },
293*52d973f5SAlexander Motin    {
294*52d973f5SAlexander Motin        "BriefDescription": "Cycles without actually retired uops.",
295*52d973f5SAlexander Motin        "CollectPEBSRecord": "2",
296*52d973f5SAlexander Motin        "Counter": "0,1,2,3,4,5,6,7",
297*52d973f5SAlexander Motin        "CounterMask": "1",
298*52d973f5SAlexander Motin        "EventCode": "0xc2",
299*52d973f5SAlexander Motin        "EventName": "UOPS_RETIRED.STALL_CYCLES",
300*52d973f5SAlexander Motin        "Invert": "1",
301*52d973f5SAlexander Motin        "PEBScounters": "0,1,2,3,4,5,6,7",
302*52d973f5SAlexander Motin        "PublicDescription": "This event counts cycles without actually retired uops.",
303*52d973f5SAlexander Motin        "SampleAfterValue": "1000003",
304*52d973f5SAlexander Motin        "Speculative": "1",
305*52d973f5SAlexander Motin        "UMask": "0x2"
306*52d973f5SAlexander Motin    },
307*52d973f5SAlexander Motin    {
308*52d973f5SAlexander Motin        "BriefDescription": "Far branch instructions retired.",
309*52d973f5SAlexander Motin        "CollectPEBSRecord": "2",
310*52d973f5SAlexander Motin        "Counter": "0,1,2,3,4,5,6,7",
311*52d973f5SAlexander Motin        "EventCode": "0xc4",
312*52d973f5SAlexander Motin        "EventName": "BR_INST_RETIRED.FAR_BRANCH",
313*52d973f5SAlexander Motin        "PEBS": "1",
314*52d973f5SAlexander Motin        "PEBScounters": "0,1,2,3,4,5,6,7",
315*52d973f5SAlexander Motin        "PublicDescription": "Counts far branch instructions retired.",
316*52d973f5SAlexander Motin        "SampleAfterValue": "100007",
317*52d973f5SAlexander Motin        "UMask": "0x40"
318*52d973f5SAlexander Motin    },
319*52d973f5SAlexander Motin    {
320*52d973f5SAlexander Motin        "BriefDescription": "Cycles while memory subsystem has an outstanding load.",
321*52d973f5SAlexander Motin        "CollectPEBSRecord": "2",
322*52d973f5SAlexander Motin        "Counter": "0,1,2,3,4,5,6,7",
323*52d973f5SAlexander Motin        "CounterMask": "16",
324*52d973f5SAlexander Motin        "EventCode": "0xA3",
325*52d973f5SAlexander Motin        "EventName": "CYCLE_ACTIVITY.CYCLES_MEM_ANY",
326*52d973f5SAlexander Motin        "PEBScounters": "0,1,2,3,4,5,6,7",
327*52d973f5SAlexander Motin        "SampleAfterValue": "1000003",
328*52d973f5SAlexander Motin        "Speculative": "1",
329*52d973f5SAlexander Motin        "UMask": "0x10"
330*52d973f5SAlexander Motin    },
331*52d973f5SAlexander Motin    {
332*52d973f5SAlexander Motin        "BriefDescription": "Number of instructions retired. Fixed Counter - architectural event",
333*52d973f5SAlexander Motin        "CollectPEBSRecord": "2",
334*52d973f5SAlexander Motin        "Counter": "32",
335*52d973f5SAlexander Motin        "EventName": "INST_RETIRED.ANY",
336*52d973f5SAlexander Motin        "PEBS": "1",
337*52d973f5SAlexander Motin        "PEBScounters": "32",
338*52d973f5SAlexander Motin        "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.",
339*52d973f5SAlexander Motin        "SampleAfterValue": "2000003",
340*52d973f5SAlexander Motin        "UMask": "0x1"
341*52d973f5SAlexander Motin    },
342*52d973f5SAlexander Motin    {
343*52d973f5SAlexander Motin        "BriefDescription": "Counts cycles where the pipeline is stalled due to serializing operations.",
344*52d973f5SAlexander Motin        "CollectPEBSRecord": "2",
345*52d973f5SAlexander Motin        "Counter": "0,1,2,3,4,5,6,7",
346*52d973f5SAlexander Motin        "EventCode": "0xa2",
347*52d973f5SAlexander Motin        "EventName": "RESOURCE_STALLS.SCOREBOARD",
348*52d973f5SAlexander Motin        "PEBScounters": "0,1,2,3,4,5,6,7",
349*52d973f5SAlexander Motin        "SampleAfterValue": "100003",
350*52d973f5SAlexander Motin        "Speculative": "1",
351*52d973f5SAlexander Motin        "UMask": "0x2"
352*52d973f5SAlexander Motin    },
353*52d973f5SAlexander Motin    {
354*52d973f5SAlexander Motin        "BriefDescription": "Increments whenever there is an update to the LBR array.",
355*52d973f5SAlexander Motin        "CollectPEBSRecord": "2",
356*52d973f5SAlexander Motin        "Counter": "0,1,2,3,4,5,6,7",
357*52d973f5SAlexander Motin        "EventCode": "0xcc",
358*52d973f5SAlexander Motin        "EventName": "MISC_RETIRED.LBR_INSERTS",
359*52d973f5SAlexander Motin        "PEBScounters": "0,1,2,3,4,5,6,7",
360*52d973f5SAlexander Motin        "PublicDescription": "Increments when an entry is added to the Last Branch Record (LBR) array (or removed from the array in case of RETURNs in call stack mode). The event requires LBR enable via IA32_DEBUGCTL MSR and branch type selection via MSR_LBR_SELECT.",
361*52d973f5SAlexander Motin        "SampleAfterValue": "100003",
362*52d973f5SAlexander Motin        "UMask": "0x20"
363*52d973f5SAlexander Motin    },
364*52d973f5SAlexander Motin    {
365*52d973f5SAlexander Motin        "BriefDescription": "Number of instructions retired. General Counter - architectural event",
366*52d973f5SAlexander Motin        "CollectPEBSRecord": "2",
367*52d973f5SAlexander Motin        "Counter": "0,1,2,3,4,5,6,7",
368*52d973f5SAlexander Motin        "EventCode": "0xc0",
369*52d973f5SAlexander Motin        "EventName": "INST_RETIRED.ANY_P",
370*52d973f5SAlexander Motin        "PEBS": "1",
371*52d973f5SAlexander Motin        "PEBScounters": "0,1,2,3,4,5,6,7",
372*52d973f5SAlexander Motin        "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.",
373*52d973f5SAlexander Motin        "SampleAfterValue": "2000003"
374*52d973f5SAlexander Motin    },
375*52d973f5SAlexander Motin    {
376*52d973f5SAlexander Motin        "BriefDescription": "Counts the number of x87 uops dispatched.",
377*52d973f5SAlexander Motin        "CollectPEBSRecord": "2",
378*52d973f5SAlexander Motin        "Counter": "0,1,2,3,4,5,6,7",
379*52d973f5SAlexander Motin        "EventCode": "0xB1",
380*52d973f5SAlexander Motin        "EventName": "UOPS_EXECUTED.X87",
381*52d973f5SAlexander Motin        "PEBScounters": "0,1,2,3,4,5,6,7",
382*52d973f5SAlexander Motin        "PublicDescription": "Counts the number of x87 uops executed.",
383*52d973f5SAlexander Motin        "SampleAfterValue": "2000003",
384*52d973f5SAlexander Motin        "Speculative": "1",
385*52d973f5SAlexander Motin        "UMask": "0x10"
386*52d973f5SAlexander Motin    },
387*52d973f5SAlexander Motin    {
388*52d973f5SAlexander Motin        "BriefDescription": "Cycles at least 2 micro-op is executed from any thread on physical core.",
389*52d973f5SAlexander Motin        "CollectPEBSRecord": "2",
390*52d973f5SAlexander Motin        "Counter": "0,1,2,3,4,5,6,7",
391*52d973f5SAlexander Motin        "CounterMask": "2",
392*52d973f5SAlexander Motin        "EventCode": "0xB1",
393*52d973f5SAlexander Motin        "EventName": "UOPS_EXECUTED.CORE_CYCLES_GE_2",
394*52d973f5SAlexander Motin        "PEBScounters": "0,1,2,3,4,5,6,7",
395*52d973f5SAlexander Motin        "PublicDescription": "Counts cycles when at least 2 micro-ops are executed from any thread on physical core.",
396*52d973f5SAlexander Motin        "SampleAfterValue": "2000003",
397*52d973f5SAlexander Motin        "Speculative": "1",
398*52d973f5SAlexander Motin        "UMask": "0x2"
399*52d973f5SAlexander Motin    },
400*52d973f5SAlexander Motin    {
401*52d973f5SAlexander Motin        "BriefDescription": "Cycles stalled due to no store buffers available. (not including draining form sync).",
402*52d973f5SAlexander Motin        "CollectPEBSRecord": "2",
403*52d973f5SAlexander Motin        "Counter": "0,1,2,3,4,5,6,7",
404*52d973f5SAlexander Motin        "EventCode": "0xa2",
405*52d973f5SAlexander Motin        "EventName": "RESOURCE_STALLS.SB",
406*52d973f5SAlexander Motin        "PEBScounters": "0,1,2,3,4,5,6,7",
407*52d973f5SAlexander Motin        "PublicDescription": "Counts allocation stall cycles caused by the store buffer (SB) being full. This counts cycles that the pipeline back-end blocked uop delivery from the front-end.",
408*52d973f5SAlexander Motin        "SampleAfterValue": "100003",
409*52d973f5SAlexander Motin        "Speculative": "1",
410*52d973f5SAlexander Motin        "UMask": "0x8"
411*52d973f5SAlexander Motin    },
412*52d973f5SAlexander Motin    {
413*52d973f5SAlexander Motin        "BriefDescription": "The number of times that split load operations are temporarily blocked because all resources for handling the split accesses are in use.",
414*52d973f5SAlexander Motin        "CollectPEBSRecord": "2",
415*52d973f5SAlexander Motin        "Counter": "0,1,2,3",
416*52d973f5SAlexander Motin        "EventCode": "0x03",
417*52d973f5SAlexander Motin        "EventName": "LD_BLOCKS.NO_SR",
418*52d973f5SAlexander Motin        "PEBScounters": "0,1,2,3",
419*52d973f5SAlexander Motin        "PublicDescription": "Counts the number of times that split load operations are temporarily blocked because all resources for handling the split accesses are in use.",
420*52d973f5SAlexander Motin        "SampleAfterValue": "100003",
421*52d973f5SAlexander Motin        "Speculative": "1",
422*52d973f5SAlexander Motin        "UMask": "0x8"
423*52d973f5SAlexander Motin    },
424*52d973f5SAlexander Motin    {
425*52d973f5SAlexander Motin        "BriefDescription": "Number of machine clears (nukes) of any type.",
426*52d973f5SAlexander Motin        "CollectPEBSRecord": "2",
427*52d973f5SAlexander Motin        "Counter": "0,1,2,3,4,5,6,7",
428*52d973f5SAlexander Motin        "CounterMask": "1",
429*52d973f5SAlexander Motin        "EdgeDetect": "1",
430*52d973f5SAlexander Motin        "EventCode": "0xc3",
431*52d973f5SAlexander Motin        "EventName": "MACHINE_CLEARS.COUNT",
432*52d973f5SAlexander Motin        "PEBScounters": "0,1,2,3,4,5,6,7",
433*52d973f5SAlexander Motin        "PublicDescription": "Counts the number of machine clears (nukes) of any type.",
434*52d973f5SAlexander Motin        "SampleAfterValue": "100003",
435*52d973f5SAlexander Motin        "Speculative": "1",
436*52d973f5SAlexander Motin        "UMask": "0x1"
437*52d973f5SAlexander Motin    },
438*52d973f5SAlexander Motin    {
439*52d973f5SAlexander Motin        "BriefDescription": "Number of near branch instructions retired that were mispredicted and taken.",
440*52d973f5SAlexander Motin        "CollectPEBSRecord": "2",
441*52d973f5SAlexander Motin        "Counter": "0,1,2,3,4,5,6,7",
442*52d973f5SAlexander Motin        "EventCode": "0xc5",
443*52d973f5SAlexander Motin        "EventName": "BR_MISP_RETIRED.NEAR_TAKEN",
444*52d973f5SAlexander Motin        "PEBS": "1",
445*52d973f5SAlexander Motin        "PEBScounters": "0,1,2,3,4,5,6,7",
446*52d973f5SAlexander Motin        "PublicDescription": "Counts number of near branch instructions retired that were mispredicted and taken.",
447*52d973f5SAlexander Motin        "SampleAfterValue": "50021",
448*52d973f5SAlexander Motin        "UMask": "0x20"
449*52d973f5SAlexander Motin    },
450*52d973f5SAlexander Motin    {
451*52d973f5SAlexander Motin        "BriefDescription": "Return instructions retired.",
452*52d973f5SAlexander Motin        "CollectPEBSRecord": "2",
453*52d973f5SAlexander Motin        "Counter": "0,1,2,3,4,5,6,7",
454*52d973f5SAlexander Motin        "EventCode": "0xc4",
455*52d973f5SAlexander Motin        "EventName": "BR_INST_RETIRED.NEAR_RETURN",
456*52d973f5SAlexander Motin        "PEBS": "1",
457*52d973f5SAlexander Motin        "PEBScounters": "0,1,2,3,4,5,6,7",
458*52d973f5SAlexander Motin        "PublicDescription": "Counts return instructions retired.",
459*52d973f5SAlexander Motin        "SampleAfterValue": "100007",
460*52d973f5SAlexander Motin        "UMask": "0x8"
461*52d973f5SAlexander Motin    },
462*52d973f5SAlexander Motin    {
463*52d973f5SAlexander Motin        "BriefDescription": "Cycles when divide unit is busy executing divide or square root operations.",
464*52d973f5SAlexander Motin        "CollectPEBSRecord": "2",
465*52d973f5SAlexander Motin        "Counter": "0,1,2,3,4,5,6,7",
466*52d973f5SAlexander Motin        "CounterMask": "1",
467*52d973f5SAlexander Motin        "EventCode": "0x14",
468*52d973f5SAlexander Motin        "EventName": "ARITH.DIVIDER_ACTIVE",
469*52d973f5SAlexander Motin        "PEBScounters": "0,1,2,3,4,5,6,7",
470*52d973f5SAlexander Motin        "PublicDescription": "Counts cycles when divide unit is busy executing divide or square root operations. Accounts for integer and floating-point operations.",
471*52d973f5SAlexander Motin        "SampleAfterValue": "1000003",
472*52d973f5SAlexander Motin        "Speculative": "1",
473*52d973f5SAlexander Motin        "UMask": "0x9"
474*52d973f5SAlexander Motin    },
475*52d973f5SAlexander Motin    {
476*52d973f5SAlexander Motin        "BriefDescription": "Cycles total of 1 uop is executed on all ports and Reservation Station was not empty.",
477*52d973f5SAlexander Motin        "CollectPEBSRecord": "2",
478*52d973f5SAlexander Motin        "Counter": "0,1,2,3,4,5,6,7",
479*52d973f5SAlexander Motin        "EventCode": "0xa6",
480*52d973f5SAlexander Motin        "EventName": "EXE_ACTIVITY.1_PORTS_UTIL",
481*52d973f5SAlexander Motin        "PEBScounters": "0,1,2,3,4,5,6,7",
482*52d973f5SAlexander Motin        "PublicDescription": "Counts cycles during which a total of 1 uop was executed on all ports and Reservation Station (RS) was not empty.",
483*52d973f5SAlexander Motin        "SampleAfterValue": "2000003",
484*52d973f5SAlexander Motin        "Speculative": "1",
485*52d973f5SAlexander Motin        "UMask": "0x2"
486*52d973f5SAlexander Motin    },
487*52d973f5SAlexander Motin    {
488*52d973f5SAlexander Motin        "BriefDescription": "Cycles without actually retired instructions.",
489*52d973f5SAlexander Motin        "CollectPEBSRecord": "2",
490*52d973f5SAlexander Motin        "Counter": "0,1,2,3,4,5,6,7",
491*52d973f5SAlexander Motin        "CounterMask": "1",
492*52d973f5SAlexander Motin        "EventCode": "0xc0",
493*52d973f5SAlexander Motin        "EventName": "INST_RETIRED.STALL_CYCLES",
494*52d973f5SAlexander Motin        "Invert": "1",
495*52d973f5SAlexander Motin        "PEBScounters": "0,1,2,3,4,5,6,7",
496*52d973f5SAlexander Motin        "PublicDescription": "This event counts cycles without actually retired instructions.",
497*52d973f5SAlexander Motin        "SampleAfterValue": "1000003",
498*52d973f5SAlexander Motin        "Speculative": "1",
499*52d973f5SAlexander Motin        "UMask": "0x1"
500*52d973f5SAlexander Motin    },
501*52d973f5SAlexander Motin    {
502*52d973f5SAlexander Motin        "BriefDescription": "Mispredicted non-taken conditional branch instructions retired.",
503*52d973f5SAlexander Motin        "CollectPEBSRecord": "2",
504*52d973f5SAlexander Motin        "Counter": "0,1,2,3,4,5,6,7",
505*52d973f5SAlexander Motin        "EventCode": "0xc5",
506*52d973f5SAlexander Motin        "EventName": "BR_MISP_RETIRED.COND_NTAKEN",
507*52d973f5SAlexander Motin        "PEBS": "1",
508*52d973f5SAlexander Motin        "PEBScounters": "0,1,2,3,4,5,6,7",
509*52d973f5SAlexander Motin        "PublicDescription": "Counts the number of conditional branch instructions retired that were mispredicted and the branch direction was not taken.",
510*52d973f5SAlexander Motin        "SampleAfterValue": "50021",
511*52d973f5SAlexander Motin        "UMask": "0x10"
512*52d973f5SAlexander Motin    },
513*52d973f5SAlexander Motin    {
514*52d973f5SAlexander Motin        "BriefDescription": "Core cycles when the thread is not in halt state",
515*52d973f5SAlexander Motin        "CollectPEBSRecord": "2",
516*52d973f5SAlexander Motin        "Counter": "33",
517*52d973f5SAlexander Motin        "EventName": "CPU_CLK_UNHALTED.THREAD",
518*52d973f5SAlexander Motin        "PEBScounters": "33",
519*52d973f5SAlexander Motin        "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.",
520*52d973f5SAlexander Motin        "SampleAfterValue": "2000003",
521*52d973f5SAlexander Motin        "Speculative": "1",
522*52d973f5SAlexander Motin        "UMask": "0x2"
523*52d973f5SAlexander Motin    },
524*52d973f5SAlexander Motin    {
525*52d973f5SAlexander Motin        "BriefDescription": "Taken conditional branch instructions retired.",
526*52d973f5SAlexander Motin        "CollectPEBSRecord": "2",
527*52d973f5SAlexander Motin        "Counter": "0,1,2,3,4,5,6,7",
528*52d973f5SAlexander Motin        "EventCode": "0xc4",
529*52d973f5SAlexander Motin        "EventName": "BR_INST_RETIRED.COND_TAKEN",
530*52d973f5SAlexander Motin        "PEBS": "1",
531*52d973f5SAlexander Motin        "PEBScounters": "0,1,2,3,4,5,6,7",
532*52d973f5SAlexander Motin        "PublicDescription": "Counts taken conditional branch instructions retired.",
533*52d973f5SAlexander Motin        "SampleAfterValue": "400009",
534*52d973f5SAlexander Motin        "UMask": "0x1"
535*52d973f5SAlexander Motin    },
536*52d973f5SAlexander Motin    {
537*52d973f5SAlexander Motin        "BriefDescription": "Direct and indirect near call instructions retired.",
538*52d973f5SAlexander Motin        "CollectPEBSRecord": "2",
539*52d973f5SAlexander Motin        "Counter": "0,1,2,3,4,5,6,7",
540*52d973f5SAlexander Motin        "EventCode": "0xc4",
541*52d973f5SAlexander Motin        "EventName": "BR_INST_RETIRED.NEAR_CALL",
542*52d973f5SAlexander Motin        "PEBS": "1",
543*52d973f5SAlexander Motin        "PEBScounters": "0,1,2,3,4,5,6,7",
544*52d973f5SAlexander Motin        "PublicDescription": "Counts both direct and indirect near call instructions retired.",
545*52d973f5SAlexander Motin        "SampleAfterValue": "100007",
546*52d973f5SAlexander Motin        "UMask": "0x2"
547*52d973f5SAlexander Motin    },
548*52d973f5SAlexander Motin    {
549*52d973f5SAlexander Motin        "BriefDescription": "Cycles at least 4 micro-op is executed from any thread on physical core.",
550*52d973f5SAlexander Motin        "CollectPEBSRecord": "2",
551*52d973f5SAlexander Motin        "Counter": "0,1,2,3,4,5,6,7",
552*52d973f5SAlexander Motin        "CounterMask": "4",
553*52d973f5SAlexander Motin        "EventCode": "0xB1",
554*52d973f5SAlexander Motin        "EventName": "UOPS_EXECUTED.CORE_CYCLES_GE_4",
555*52d973f5SAlexander Motin        "PEBScounters": "0,1,2,3,4,5,6,7",
556*52d973f5SAlexander Motin        "PublicDescription": "Counts cycles when at least 4 micro-ops are executed from any thread on physical core.",
557*52d973f5SAlexander Motin        "SampleAfterValue": "2000003",
558*52d973f5SAlexander Motin        "Speculative": "1",
559*52d973f5SAlexander Motin        "UMask": "0x2"
560*52d973f5SAlexander Motin    },
561*52d973f5SAlexander Motin    {
562*52d973f5SAlexander Motin        "BriefDescription": "Precise instruction retired event with a reduced effect of PEBS shadow in IP distribution",
563*52d973f5SAlexander Motin        "CollectPEBSRecord": "2",
564*52d973f5SAlexander Motin        "Counter": "32",
565*52d973f5SAlexander Motin        "EventName": "INST_RETIRED.PREC_DIST",
566*52d973f5SAlexander Motin        "PEBS": "1",
567*52d973f5SAlexander Motin        "PEBScounters": "32",
568*52d973f5SAlexander Motin        "PublicDescription": "A version of INST_RETIRED that allows for a more unbiased distribution of samples across instructions retired. It utilizes the Precise Distribution of Instructions Retired (PDIR) feature to mitigate some bias in how retired instructions get sampled. Use on Fixed Counter 0.",
569*52d973f5SAlexander Motin        "SampleAfterValue": "2000003",
570*52d973f5SAlexander Motin        "UMask": "0x1"
571*52d973f5SAlexander Motin    },
572*52d973f5SAlexander Motin    {
573*52d973f5SAlexander Motin        "BriefDescription": "Total execution stalls.",
574*52d973f5SAlexander Motin        "CollectPEBSRecord": "2",
575*52d973f5SAlexander Motin        "Counter": "0,1,2,3,4,5,6,7",
576*52d973f5SAlexander Motin        "CounterMask": "4",
577*52d973f5SAlexander Motin        "EventCode": "0xa3",
578*52d973f5SAlexander Motin        "EventName": "CYCLE_ACTIVITY.STALLS_TOTAL",
579*52d973f5SAlexander Motin        "PEBScounters": "0,1,2,3,4,5,6,7",
580*52d973f5SAlexander Motin        "SampleAfterValue": "1000003",
581*52d973f5SAlexander Motin        "Speculative": "1",
582*52d973f5SAlexander Motin        "UMask": "0x4"
583*52d973f5SAlexander Motin    },
584*52d973f5SAlexander Motin    {
585*52d973f5SAlexander Motin        "BriefDescription": "Execution stalls while L1 cache miss demand load is outstanding.",
586*52d973f5SAlexander Motin        "CollectPEBSRecord": "2",
587*52d973f5SAlexander Motin        "Counter": "0,1,2,3",
588*52d973f5SAlexander Motin        "CounterMask": "12",
589*52d973f5SAlexander Motin        "EventCode": "0xA3",
590*52d973f5SAlexander Motin        "EventName": "CYCLE_ACTIVITY.STALLS_L1D_MISS",
591*52d973f5SAlexander Motin        "PEBScounters": "0,1,2,3",
592*52d973f5SAlexander Motin        "SampleAfterValue": "1000003",
593*52d973f5SAlexander Motin        "Speculative": "1",
594*52d973f5SAlexander Motin        "UMask": "0xc"
595*52d973f5SAlexander Motin    },
596*52d973f5SAlexander Motin    {
597*52d973f5SAlexander Motin        "BriefDescription": "Number of retired PAUSE instructions. This event is not supported on first SKL and KBL products.",
598*52d973f5SAlexander Motin        "CollectPEBSRecord": "2",
599*52d973f5SAlexander Motin        "Counter": "0,1,2,3,4,5,6,7",
600*52d973f5SAlexander Motin        "EventCode": "0xcc",
601*52d973f5SAlexander Motin        "EventName": "MISC_RETIRED.PAUSE_INST",
602*52d973f5SAlexander Motin        "PublicDescription": "Counts number of retired PAUSE instructions. This event is not supported on first SKL and KBL products.",
603*52d973f5SAlexander Motin        "SampleAfterValue": "100003",
604*52d973f5SAlexander Motin        "UMask": "0x40"
605*52d973f5SAlexander Motin    },
606*52d973f5SAlexander Motin    {
607*52d973f5SAlexander Motin        "BriefDescription": "Self-modifying code (SMC) detected.",
608*52d973f5SAlexander Motin        "CollectPEBSRecord": "2",
609*52d973f5SAlexander Motin        "Counter": "0,1,2,3,4,5,6,7",
610*52d973f5SAlexander Motin        "EventCode": "0xc3",
611*52d973f5SAlexander Motin        "EventName": "MACHINE_CLEARS.SMC",
612*52d973f5SAlexander Motin        "PEBScounters": "0,1,2,3,4,5,6,7",
613*52d973f5SAlexander Motin        "PublicDescription": "Counts self-modifying code (SMC) detected, which causes a machine clear.",
614*52d973f5SAlexander Motin        "SampleAfterValue": "100003",
615*52d973f5SAlexander Motin        "Speculative": "1",
616*52d973f5SAlexander Motin        "UMask": "0x4"
617*52d973f5SAlexander Motin    },
618*52d973f5SAlexander Motin    {
619*52d973f5SAlexander Motin        "BriefDescription": "Uops that RAT issues to RS",
620*52d973f5SAlexander Motin        "CollectPEBSRecord": "2",
621*52d973f5SAlexander Motin        "Counter": "0,1,2,3,4,5,6,7",
622*52d973f5SAlexander Motin        "EventCode": "0x0e",
623*52d973f5SAlexander Motin        "EventName": "UOPS_ISSUED.ANY",
624*52d973f5SAlexander Motin        "PEBScounters": "0,1,2,3,4,5,6,7",
625*52d973f5SAlexander Motin        "PublicDescription": "Counts the number of uops that the Resource Allocation Table (RAT) issues to the Reservation Station (RS).",
626*52d973f5SAlexander Motin        "SampleAfterValue": "2000003",
627*52d973f5SAlexander Motin        "Speculative": "1",
628*52d973f5SAlexander Motin        "UMask": "0x1"
629*52d973f5SAlexander Motin    },
630*52d973f5SAlexander Motin    {
631*52d973f5SAlexander Motin        "BriefDescription": "Execution stalls while L2 cache miss demand load is outstanding.",
632*52d973f5SAlexander Motin        "CollectPEBSRecord": "2",
633*52d973f5SAlexander Motin        "Counter": "0,1,2,3",
634*52d973f5SAlexander Motin        "CounterMask": "5",
635*52d973f5SAlexander Motin        "EventCode": "0xa3",
636*52d973f5SAlexander Motin        "EventName": "CYCLE_ACTIVITY.STALLS_L2_MISS",
637*52d973f5SAlexander Motin        "PEBScounters": "0,1,2,3",
638*52d973f5SAlexander Motin        "SampleAfterValue": "1000003",
639*52d973f5SAlexander Motin        "Speculative": "1",
640*52d973f5SAlexander Motin        "UMask": "0x5"
641*52d973f5SAlexander Motin    },
642*52d973f5SAlexander Motin    {
643*52d973f5SAlexander Motin        "BriefDescription": "Reference cycles when the core is not in halt state.",
644*52d973f5SAlexander Motin        "CollectPEBSRecord": "2",
645*52d973f5SAlexander Motin        "Counter": "34",
646*52d973f5SAlexander Motin        "EventName": "CPU_CLK_UNHALTED.REF_TSC",
647*52d973f5SAlexander Motin        "PEBScounters": "34",
648*52d973f5SAlexander Motin        "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. This event has a constant ratio with the CPU_CLK_UNHALTED.REF_XCLK event. 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.",
649*52d973f5SAlexander Motin        "SampleAfterValue": "2000003",
650*52d973f5SAlexander Motin        "Speculative": "1",
651*52d973f5SAlexander Motin        "UMask": "0x3"
652*52d973f5SAlexander Motin    },
653*52d973f5SAlexander Motin    {
654*52d973f5SAlexander Motin        "BriefDescription": "Cycles the Backend cluster is recovering after a miss-speculation or a Store Buffer or Load Buffer drain stall.",
655*52d973f5SAlexander Motin        "CollectPEBSRecord": "2",
656*52d973f5SAlexander Motin        "Counter": "0,1,2,3,4,5,6,7",
657*52d973f5SAlexander Motin        "CounterMask": "1",
658*52d973f5SAlexander Motin        "EventCode": "0x0D",
659*52d973f5SAlexander Motin        "EventName": "INT_MISC.ALL_RECOVERY_CYCLES",
660*52d973f5SAlexander Motin        "PEBScounters": "0,1,2,3,4,5,6,7",
661*52d973f5SAlexander Motin        "PublicDescription": "Counts cycles the Backend cluster is recovering after a miss-speculation or a Store Buffer or Load Buffer drain stall.",
662*52d973f5SAlexander Motin        "SampleAfterValue": "2000003",
663*52d973f5SAlexander Motin        "Speculative": "1",
664*52d973f5SAlexander Motin        "UMask": "0x3"
665*52d973f5SAlexander Motin    },
666*52d973f5SAlexander Motin    {
667*52d973f5SAlexander Motin        "BriefDescription": "Cycles total of 2 uops are executed on all ports and Reservation Station was not empty.",
668*52d973f5SAlexander Motin        "CollectPEBSRecord": "2",
669*52d973f5SAlexander Motin        "Counter": "0,1,2,3,4,5,6,7",
670*52d973f5SAlexander Motin        "EventCode": "0xa6",
671*52d973f5SAlexander Motin        "EventName": "EXE_ACTIVITY.2_PORTS_UTIL",
672*52d973f5SAlexander Motin        "PEBScounters": "0,1,2,3,4,5,6,7",
673*52d973f5SAlexander Motin        "PublicDescription": "Counts cycles during which a total of 2 uops were executed on all ports and Reservation Station (RS) was not empty.",
674*52d973f5SAlexander Motin        "SampleAfterValue": "2000003",
675*52d973f5SAlexander Motin        "Speculative": "1",
676*52d973f5SAlexander Motin        "UMask": "0x4"
677*52d973f5SAlexander Motin    },
678*52d973f5SAlexander Motin    {
679*52d973f5SAlexander Motin        "BriefDescription": "Cycles total of 3 uops are executed on all ports and Reservation Station was not empty.",
680*52d973f5SAlexander Motin        "CollectPEBSRecord": "2",
681*52d973f5SAlexander Motin        "Counter": "0,1,2,3,4,5,6,7",
682*52d973f5SAlexander Motin        "EventCode": "0xa6",
683*52d973f5SAlexander Motin        "EventName": "EXE_ACTIVITY.3_PORTS_UTIL",
684*52d973f5SAlexander Motin        "PEBScounters": "0,1,2,3,4,5,6,7",
685*52d973f5SAlexander Motin        "PublicDescription": "Cycles total of 3 uops are executed on all ports and Reservation Station (RS) was not empty.",
686*52d973f5SAlexander Motin        "SampleAfterValue": "2000003",
687*52d973f5SAlexander Motin        "Speculative": "1",
688*52d973f5SAlexander Motin        "UMask": "0x8"
689*52d973f5SAlexander Motin    },
690*52d973f5SAlexander Motin    {
691*52d973f5SAlexander Motin        "BriefDescription": "Cycles while L1 cache miss demand load is outstanding.",
692*52d973f5SAlexander Motin        "CollectPEBSRecord": "2",
693*52d973f5SAlexander Motin        "Counter": "0,1,2,3",
694*52d973f5SAlexander Motin        "CounterMask": "8",
695*52d973f5SAlexander Motin        "EventCode": "0xA3",
696*52d973f5SAlexander Motin        "EventName": "CYCLE_ACTIVITY.CYCLES_L1D_MISS",
697*52d973f5SAlexander Motin        "PEBScounters": "0,1,2,3",
698*52d973f5SAlexander Motin        "SampleAfterValue": "1000003",
699*52d973f5SAlexander Motin        "Speculative": "1",
700*52d973f5SAlexander Motin        "UMask": "0x8"
701*52d973f5SAlexander Motin    },
702*52d973f5SAlexander Motin    {
703*52d973f5SAlexander Motin        "BriefDescription": "Counts cycles after recovery from a branch misprediction or machine clear till the first uop is issued from the resteered path.",
704*52d973f5SAlexander Motin        "CollectPEBSRecord": "2",
705*52d973f5SAlexander Motin        "Counter": "0,1,2,3,4,5,6,7",
706*52d973f5SAlexander Motin        "EventCode": "0x0d",
707*52d973f5SAlexander Motin        "EventName": "INT_MISC.CLEAR_RESTEER_CYCLES",
708*52d973f5SAlexander Motin        "PEBScounters": "0,1,2,3,4,5,6,7",
709*52d973f5SAlexander Motin        "PublicDescription": "Cycles after recovery from a branch misprediction or machine clear till the first uop is issued from the resteered path.",
710*52d973f5SAlexander Motin        "SampleAfterValue": "500009",
711*52d973f5SAlexander Motin        "Speculative": "1",
712*52d973f5SAlexander Motin        "UMask": "0x80"
713*52d973f5SAlexander Motin    },
714*52d973f5SAlexander Motin    {
715*52d973f5SAlexander Motin        "BriefDescription": "Cycles with less than 10 actually retired uops.",
716*52d973f5SAlexander Motin        "CollectPEBSRecord": "2",
717*52d973f5SAlexander Motin        "Counter": "0,1,2,3,4,5,6,7",
718*52d973f5SAlexander Motin        "CounterMask": "10",
719*52d973f5SAlexander Motin        "EventCode": "0xc2",
720*52d973f5SAlexander Motin        "EventName": "UOPS_RETIRED.TOTAL_CYCLES",
721*52d973f5SAlexander Motin        "Invert": "1",
722*52d973f5SAlexander Motin        "PEBScounters": "0,1,2,3,4,5,6,7",
723*52d973f5SAlexander Motin        "PublicDescription": "Counts the number of cycles using always true condition (uops_ret < 16) applied to non PEBS uops retired event.",
724*52d973f5SAlexander Motin        "SampleAfterValue": "1000003",
725*52d973f5SAlexander Motin        "UMask": "0x2"
726*52d973f5SAlexander Motin    },
727*52d973f5SAlexander Motin    {
728*52d973f5SAlexander Motin        "BriefDescription": "All branch instructions retired.",
729*52d973f5SAlexander Motin        "CollectPEBSRecord": "2",
730*52d973f5SAlexander Motin        "Counter": "0,1,2,3,4,5,6,7",
731*52d973f5SAlexander Motin        "EventCode": "0xc4",
732*52d973f5SAlexander Motin        "EventName": "BR_INST_RETIRED.ALL_BRANCHES",
733*52d973f5SAlexander Motin        "PEBS": "1",
734*52d973f5SAlexander Motin        "PEBScounters": "0,1,2,3,4,5,6,7",
735*52d973f5SAlexander Motin        "PublicDescription": "Counts all branch instructions retired.",
736*52d973f5SAlexander Motin        "SampleAfterValue": "400009"
737*52d973f5SAlexander Motin    },
738*52d973f5SAlexander Motin    {
739*52d973f5SAlexander Motin        "BriefDescription": "Counts end of periods where the Reservation Station (RS) was empty.",
740*52d973f5SAlexander Motin        "CollectPEBSRecord": "2",
741*52d973f5SAlexander Motin        "Counter": "0,1,2,3,4,5,6,7",
742*52d973f5SAlexander Motin        "CounterMask": "1",
743*52d973f5SAlexander Motin        "EdgeDetect": "1",
744*52d973f5SAlexander Motin        "EventCode": "0x5E",
745*52d973f5SAlexander Motin        "EventName": "RS_EVENTS.EMPTY_END",
746*52d973f5SAlexander Motin        "Invert": "1",
747*52d973f5SAlexander Motin        "PEBScounters": "0,1,2,3,4,5,6,7",
748*52d973f5SAlexander Motin        "PublicDescription": "Counts end of periods where the Reservation Station (RS) was empty. Could be useful to closely sample on front-end latency issues (see the FRONTEND_RETIRED event of designated precise events)",
749*52d973f5SAlexander Motin        "SampleAfterValue": "100003",
750*52d973f5SAlexander Motin        "Speculative": "1",
751*52d973f5SAlexander Motin        "UMask": "0x1"
752*52d973f5SAlexander Motin    },
753*52d973f5SAlexander Motin    {
754*52d973f5SAlexander Motin        "BriefDescription": "Cycle counts are evenly distributed between active threads in the Core.",
755*52d973f5SAlexander Motin        "CollectPEBSRecord": "2",
756*52d973f5SAlexander Motin        "Counter": "0,1,2,3,4,5,6,7",
757*52d973f5SAlexander Motin        "EventCode": "0xec",
758*52d973f5SAlexander Motin        "EventName": "CPU_CLK_UNHALTED.DISTRIBUTED",
759*52d973f5SAlexander Motin        "PEBScounters": "0,1,2,3,4,5,6,7",
760*52d973f5SAlexander Motin        "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.",
761*52d973f5SAlexander Motin        "SampleAfterValue": "2000003",
762*52d973f5SAlexander Motin        "Speculative": "1",
763*52d973f5SAlexander Motin        "UMask": "0x2"
764*52d973f5SAlexander Motin    },
765*52d973f5SAlexander Motin    {
766*52d973f5SAlexander Motin        "BriefDescription": "Core crystal clock cycles when this thread is unhalted and the other thread is halted.",
767*52d973f5SAlexander Motin        "CollectPEBSRecord": "2",
768*52d973f5SAlexander Motin        "Counter": "0,1,2,3,4,5,6,7",
769*52d973f5SAlexander Motin        "EventCode": "0x3C",
770*52d973f5SAlexander Motin        "EventName": "CPU_CLK_UNHALTED.ONE_THREAD_ACTIVE",
771*52d973f5SAlexander Motin        "PEBScounters": "0,1,2,3,4,5,6,7",
772*52d973f5SAlexander Motin        "PublicDescription": "Counts Core crystal clock cycles when current thread is unhalted and the other thread is halted.",
773*52d973f5SAlexander Motin        "SampleAfterValue": "25003",
774*52d973f5SAlexander Motin        "Speculative": "1",
775*52d973f5SAlexander Motin        "UMask": "0x2"
776*52d973f5SAlexander Motin    },
777*52d973f5SAlexander Motin    {
778*52d973f5SAlexander Motin        "BriefDescription": "Thread cycles when thread is not in halt state",
779*52d973f5SAlexander Motin        "CollectPEBSRecord": "2",
780*52d973f5SAlexander Motin        "Counter": "0,1,2,3,4,5,6,7",
781*52d973f5SAlexander Motin        "EventCode": "0x3C",
782*52d973f5SAlexander Motin        "EventName": "CPU_CLK_UNHALTED.THREAD_P",
783*52d973f5SAlexander Motin        "PEBScounters": "0,1,2,3,4,5,6,7",
784*52d973f5SAlexander Motin        "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.",
785*52d973f5SAlexander Motin        "SampleAfterValue": "2000003",
786*52d973f5SAlexander Motin        "Speculative": "1"
787*52d973f5SAlexander Motin    },
788*52d973f5SAlexander Motin    {
789*52d973f5SAlexander Motin        "BriefDescription": "Mispredicted conditional branch instructions retired.",
790*52d973f5SAlexander Motin        "CollectPEBSRecord": "2",
791*52d973f5SAlexander Motin        "Counter": "0,1,2,3,4,5,6,7",
792*52d973f5SAlexander Motin        "EventCode": "0xc5",
793*52d973f5SAlexander Motin        "EventName": "BR_MISP_RETIRED.COND",
794*52d973f5SAlexander Motin        "PEBS": "1",
795*52d973f5SAlexander Motin        "PEBScounters": "0,1,2,3,4,5,6,7",
796*52d973f5SAlexander Motin        "PublicDescription": "Counts mispredicted conditional branch instructions retired.",
797*52d973f5SAlexander Motin        "SampleAfterValue": "50021",
798*52d973f5SAlexander Motin        "UMask": "0x11"
799*52d973f5SAlexander Motin    },
800*52d973f5SAlexander Motin    {
801*52d973f5SAlexander Motin        "BriefDescription": "Number of uops executed on port 0",
802*52d973f5SAlexander Motin        "CollectPEBSRecord": "2",
803*52d973f5SAlexander Motin        "Counter": "0,1,2,3,4,5,6,7",
804*52d973f5SAlexander Motin        "EventCode": "0xa1",
805*52d973f5SAlexander Motin        "EventName": "UOPS_DISPATCHED.PORT_0",
806*52d973f5SAlexander Motin        "PEBScounters": "0,1,2,3,4,5,6,7",
807*52d973f5SAlexander Motin        "PublicDescription": "Counts, on the per-thread basis, cycles during which at least one uop is dispatched from the Reservation Station (RS) to port 0.",
808*52d973f5SAlexander Motin        "SampleAfterValue": "2000003",
809*52d973f5SAlexander Motin        "Speculative": "1",
810*52d973f5SAlexander Motin        "UMask": "0x1"
811*52d973f5SAlexander Motin    },
812*52d973f5SAlexander Motin    {
813*52d973f5SAlexander Motin        "BriefDescription": "Conditional branch instructions retired.",
814*52d973f5SAlexander Motin        "CollectPEBSRecord": "2",
815*52d973f5SAlexander Motin        "Counter": "0,1,2,3,4,5,6,7",
816*52d973f5SAlexander Motin        "EventCode": "0xc4",
817*52d973f5SAlexander Motin        "EventName": "BR_INST_RETIRED.COND",
818*52d973f5SAlexander Motin        "PEBS": "1",
819*52d973f5SAlexander Motin        "PEBScounters": "0,1,2,3,4,5,6,7",
820*52d973f5SAlexander Motin        "PublicDescription": "Counts conditional branch instructions retired.",
821*52d973f5SAlexander Motin        "SampleAfterValue": "400009",
822*52d973f5SAlexander Motin        "UMask": "0x11"
823*52d973f5SAlexander Motin    },
824*52d973f5SAlexander Motin    {
825*52d973f5SAlexander Motin        "BriefDescription": "Retirement slots used.",
826*52d973f5SAlexander Motin        "CollectPEBSRecord": "2",
827*52d973f5SAlexander Motin        "Counter": "0,1,2,3,4,5,6,7",
828*52d973f5SAlexander Motin        "EventCode": "0xc2",
829*52d973f5SAlexander Motin        "EventName": "UOPS_RETIRED.SLOTS",
830*52d973f5SAlexander Motin        "PEBScounters": "0,1,2,3,4,5,6,7",
831*52d973f5SAlexander Motin        "PublicDescription": "Counts the retirement slots used each cycle.",
832*52d973f5SAlexander Motin        "SampleAfterValue": "2000003",
833*52d973f5SAlexander Motin        "UMask": "0x2"
834*52d973f5SAlexander Motin    },
835*52d973f5SAlexander Motin    {
836*52d973f5SAlexander Motin        "BriefDescription": "Cycles optimal number of Uops delivered by the LSD, but did not come from the decoder.",
837*52d973f5SAlexander Motin        "CollectPEBSRecord": "2",
838*52d973f5SAlexander Motin        "Counter": "0,1,2,3",
839*52d973f5SAlexander Motin        "CounterMask": "5",
840*52d973f5SAlexander Motin        "EventCode": "0xa8",
841*52d973f5SAlexander Motin        "EventName": "LSD.CYCLES_OK",
842*52d973f5SAlexander Motin        "PEBScounters": "0,1,2,3",
843*52d973f5SAlexander Motin        "PublicDescription": "Counts the cycles when optimal number of uops is delivered by the LSD (Loop-stream detector).",
844*52d973f5SAlexander Motin        "SampleAfterValue": "2000003",
845*52d973f5SAlexander Motin        "Speculative": "1",
846*52d973f5SAlexander Motin        "UMask": "0x1"
847*52d973f5SAlexander Motin    },
848*52d973f5SAlexander Motin    {
849*52d973f5SAlexander Motin        "BriefDescription": "Core crystal clock cycles. Cycle counts are evenly distributed between active threads in the Core.",
850*52d973f5SAlexander Motin        "CollectPEBSRecord": "2",
851*52d973f5SAlexander Motin        "Counter": "0,1,2,3,4,5,6,7",
852*52d973f5SAlexander Motin        "EventCode": "0x3c",
853*52d973f5SAlexander Motin        "EventName": "CPU_CLK_UNHALTED.REF_DISTRIBUTED",
854*52d973f5SAlexander Motin        "PEBScounters": "0,1,2,3,4,5,6,7",
855*52d973f5SAlexander Motin        "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.",
856*52d973f5SAlexander Motin        "SampleAfterValue": "2000003",
857*52d973f5SAlexander Motin        "Speculative": "1",
858*52d973f5SAlexander Motin        "UMask": "0x8"
859*52d973f5SAlexander Motin    },
860*52d973f5SAlexander Motin    {
861*52d973f5SAlexander Motin        "BriefDescription": "Cycles where at least 3 uops were executed per-thread",
862*52d973f5SAlexander Motin        "CollectPEBSRecord": "2",
863*52d973f5SAlexander Motin        "Counter": "0,1,2,3,4,5,6,7",
864*52d973f5SAlexander Motin        "CounterMask": "3",
865*52d973f5SAlexander Motin        "EventCode": "0xb1",
866*52d973f5SAlexander Motin        "EventName": "UOPS_EXECUTED.CYCLES_GE_3",
867*52d973f5SAlexander Motin        "PEBScounters": "0,1,2,3,4,5,6,7",
868*52d973f5SAlexander Motin        "PublicDescription": "Cycles where at least 3 uops were executed per-thread.",
869*52d973f5SAlexander Motin        "SampleAfterValue": "2000003",
870*52d973f5SAlexander Motin        "Speculative": "1",
871*52d973f5SAlexander Motin        "UMask": "0x1"
872*52d973f5SAlexander Motin    },
873*52d973f5SAlexander Motin    {
874*52d973f5SAlexander Motin        "BriefDescription": "Cycles where at least 2 uops were executed per-thread",
875*52d973f5SAlexander Motin        "CollectPEBSRecord": "2",
876*52d973f5SAlexander Motin        "Counter": "0,1,2,3,4,5,6,7",
877*52d973f5SAlexander Motin        "CounterMask": "2",
878*52d973f5SAlexander Motin        "EventCode": "0xb1",
879*52d973f5SAlexander Motin        "EventName": "UOPS_EXECUTED.CYCLES_GE_2",
880*52d973f5SAlexander Motin        "PEBScounters": "0,1,2,3,4,5,6,7",
881*52d973f5SAlexander Motin        "PublicDescription": "Cycles where at least 2 uops were executed per-thread.",
882*52d973f5SAlexander Motin        "SampleAfterValue": "2000003",
883*52d973f5SAlexander Motin        "Speculative": "1",
884*52d973f5SAlexander Motin        "UMask": "0x1"
885*52d973f5SAlexander Motin    },
886*52d973f5SAlexander Motin    {
887*52d973f5SAlexander Motin        "BriefDescription": "Cycles where at least 1 uop was executed per-thread",
888*52d973f5SAlexander Motin        "CollectPEBSRecord": "2",
889*52d973f5SAlexander Motin        "Counter": "0,1,2,3,4,5,6,7",
890*52d973f5SAlexander Motin        "CounterMask": "1",
891*52d973f5SAlexander Motin        "EventCode": "0xb1",
892*52d973f5SAlexander Motin        "EventName": "UOPS_EXECUTED.CYCLES_GE_1",
893*52d973f5SAlexander Motin        "PEBScounters": "0,1,2,3,4,5,6,7",
894*52d973f5SAlexander Motin        "PublicDescription": "Cycles where at least 1 uop was executed per-thread.",
895*52d973f5SAlexander Motin        "SampleAfterValue": "2000003",
896*52d973f5SAlexander Motin        "Speculative": "1",
897*52d973f5SAlexander Motin        "UMask": "0x1"
898*52d973f5SAlexander Motin    },
899*52d973f5SAlexander Motin    {
900*52d973f5SAlexander Motin        "BriefDescription": "Cycles where at least 4 uops were executed per-thread",
901*52d973f5SAlexander Motin        "CollectPEBSRecord": "2",
902*52d973f5SAlexander Motin        "Counter": "0,1,2,3,4,5,6,7",
903*52d973f5SAlexander Motin        "CounterMask": "4",
904*52d973f5SAlexander Motin        "EventCode": "0xb1",
905*52d973f5SAlexander Motin        "EventName": "UOPS_EXECUTED.CYCLES_GE_4",
906*52d973f5SAlexander Motin        "PEBScounters": "0,1,2,3,4,5,6,7",
907*52d973f5SAlexander Motin        "PublicDescription": "Cycles where at least 4 uops were executed per-thread.",
908*52d973f5SAlexander Motin        "SampleAfterValue": "2000003",
909*52d973f5SAlexander Motin        "Speculative": "1",
910*52d973f5SAlexander Motin        "UMask": "0x1"
911*52d973f5SAlexander Motin    },
912*52d973f5SAlexander Motin    {
913*52d973f5SAlexander Motin        "BriefDescription": "Cycles while L2 cache miss demand load is outstanding.",
914*52d973f5SAlexander Motin        "CollectPEBSRecord": "2",
915*52d973f5SAlexander Motin        "Counter": "0,1,2,3",
916*52d973f5SAlexander Motin        "CounterMask": "1",
917*52d973f5SAlexander Motin        "EventCode": "0xA3",
918*52d973f5SAlexander Motin        "EventName": "CYCLE_ACTIVITY.CYCLES_L2_MISS",
919*52d973f5SAlexander Motin        "PEBScounters": "0,1,2,3",
920*52d973f5SAlexander Motin        "SampleAfterValue": "1000003",
921*52d973f5SAlexander Motin        "Speculative": "1",
922*52d973f5SAlexander Motin        "UMask": "0x1"
923*52d973f5SAlexander Motin    },
924*52d973f5SAlexander Motin    {
925*52d973f5SAlexander Motin        "BriefDescription": "Cycles when RAT does not issue Uops to RS for the thread",
926*52d973f5SAlexander Motin        "CollectPEBSRecord": "2",
927*52d973f5SAlexander Motin        "Counter": "0,1,2,3,4,5,6,7",
928*52d973f5SAlexander Motin        "CounterMask": "1",
929*52d973f5SAlexander Motin        "EventCode": "0x0E",
930*52d973f5SAlexander Motin        "EventName": "UOPS_ISSUED.STALL_CYCLES",
931*52d973f5SAlexander Motin        "Invert": "1",
932*52d973f5SAlexander Motin        "PEBScounters": "0,1,2,3,4,5,6,7",
933*52d973f5SAlexander Motin        "PublicDescription": "Counts cycles during which the Resource Allocation Table (RAT) does not issue any Uops to the reservation station (RS) for the current thread.",
934*52d973f5SAlexander Motin        "SampleAfterValue": "1000003",
935*52d973f5SAlexander Motin        "Speculative": "1",
936*52d973f5SAlexander Motin        "UMask": "0x1"
937*52d973f5SAlexander Motin    },
938*52d973f5SAlexander Motin    {
939*52d973f5SAlexander Motin        "BriefDescription": "Cycles at least 3 micro-op is executed from any thread on physical core.",
940*52d973f5SAlexander Motin        "CollectPEBSRecord": "2",
941*52d973f5SAlexander Motin        "Counter": "0,1,2,3,4,5,6,7",
942*52d973f5SAlexander Motin        "CounterMask": "3",
943*52d973f5SAlexander Motin        "EventCode": "0xB1",
944*52d973f5SAlexander Motin        "EventName": "UOPS_EXECUTED.CORE_CYCLES_GE_3",
945*52d973f5SAlexander Motin        "PEBScounters": "0,1,2,3,4,5,6,7",
946*52d973f5SAlexander Motin        "PublicDescription": "Counts cycles when at least 3 micro-ops are executed from any thread on physical core.",
947*52d973f5SAlexander Motin        "SampleAfterValue": "2000003",
948*52d973f5SAlexander Motin        "Speculative": "1",
949*52d973f5SAlexander Motin        "UMask": "0x2"
950*52d973f5SAlexander Motin    },
951*52d973f5SAlexander Motin    {
952*52d973f5SAlexander Motin        "BriefDescription": "Cycles at least 1 micro-op is executed from any thread on physical core.",
953*52d973f5SAlexander Motin        "CollectPEBSRecord": "2",
954*52d973f5SAlexander Motin        "Counter": "0,1,2,3,4,5,6,7",
955*52d973f5SAlexander Motin        "CounterMask": "1",
956*52d973f5SAlexander Motin        "EventCode": "0xB1",
957*52d973f5SAlexander Motin        "EventName": "UOPS_EXECUTED.CORE_CYCLES_GE_1",
958*52d973f5SAlexander Motin        "PEBScounters": "0,1,2,3,4,5,6,7",
959*52d973f5SAlexander Motin        "PublicDescription": "Counts cycles when at least 1 micro-op is executed from any thread on physical core.",
960*52d973f5SAlexander Motin        "SampleAfterValue": "2000003",
961*52d973f5SAlexander Motin        "Speculative": "1",
962*52d973f5SAlexander Motin        "UMask": "0x2"
963*52d973f5SAlexander Motin    },
964*52d973f5SAlexander Motin    {
965*52d973f5SAlexander Motin        "BriefDescription": "All miss-predicted indirect branch instructions retired (excluding RETs. TSX aborts is considered indirect branch).",
966*52d973f5SAlexander Motin        "CollectPEBSRecord": "2",
967*52d973f5SAlexander Motin        "Counter": "0,1,2,3,4,5,6,7",
968*52d973f5SAlexander Motin        "EventCode": "0xc5",
969*52d973f5SAlexander Motin        "EventName": "BR_MISP_RETIRED.INDIRECT",
970*52d973f5SAlexander Motin        "PEBS": "1",
971*52d973f5SAlexander Motin        "PEBScounters": "0,1,2,3,4,5,6,7",
972*52d973f5SAlexander Motin        "PublicDescription": "Counts all miss-predicted indirect branch instructions retired (excluding RETs. TSX aborts is considered indirect branch).",
973*52d973f5SAlexander Motin        "SampleAfterValue": "50021",
974*52d973f5SAlexander Motin        "UMask": "0x80"
975*52d973f5SAlexander Motin    },
976*52d973f5SAlexander Motin    {
977*52d973f5SAlexander Motin        "BriefDescription": "TMA slots where uops got dropped",
978*52d973f5SAlexander Motin        "CollectPEBSRecord": "2",
979*52d973f5SAlexander Motin        "Counter": "0,1,2,3,4,5,6,7",
980*52d973f5SAlexander Motin        "EventCode": "0x0d",
981*52d973f5SAlexander Motin        "EventName": "INT_MISC.UOP_DROPPING",
982*52d973f5SAlexander Motin        "PEBScounters": "0,1,2,3,4,5,6,7",
983*52d973f5SAlexander Motin        "PublicDescription": "Estimated number of Top-down Microarchitecture Analysis slots that got dropped due to non front-end reasons",
984*52d973f5SAlexander Motin        "SampleAfterValue": "1000003",
985*52d973f5SAlexander Motin        "Speculative": "1",
986*52d973f5SAlexander Motin        "UMask": "0x10"
987*52d973f5SAlexander Motin    },
988*52d973f5SAlexander Motin    {
989*52d973f5SAlexander Motin        "BriefDescription": "Execution stalls while memory subsystem has an outstanding load.",
990*52d973f5SAlexander Motin        "CollectPEBSRecord": "2",
991*52d973f5SAlexander Motin        "Counter": "0,1,2,3,4,5,6,7",
992*52d973f5SAlexander Motin        "CounterMask": "20",
993*52d973f5SAlexander Motin        "EventCode": "0xa3",
994*52d973f5SAlexander Motin        "EventName": "CYCLE_ACTIVITY.STALLS_MEM_ANY",
995*52d973f5SAlexander Motin        "PEBScounters": "0,1,2,3,4,5,6,7",
996*52d973f5SAlexander Motin        "SampleAfterValue": "1000003",
997*52d973f5SAlexander Motin        "Speculative": "1",
998*52d973f5SAlexander Motin        "UMask": "0x14"
999*52d973f5SAlexander Motin    },
1000*52d973f5SAlexander Motin    {
1001*52d973f5SAlexander Motin        "BriefDescription": "Number of uops executed on port 7 and 8",
1002*52d973f5SAlexander Motin        "CollectPEBSRecord": "2",
1003*52d973f5SAlexander Motin        "Counter": "0,1,2,3,4,5,6,7",
1004*52d973f5SAlexander Motin        "EventCode": "0xa1",
1005*52d973f5SAlexander Motin        "EventName": "UOPS_DISPATCHED.PORT_7_8",
1006*52d973f5SAlexander Motin        "PEBScounters": "0,1,2,3,4,5,6,7",
1007*52d973f5SAlexander Motin        "PublicDescription": "Counts, on the per-thread basis, cycles during which at least one uop is dispatched from the Reservation Station (RS) to ports 7 and 8.",
1008*52d973f5SAlexander Motin        "SampleAfterValue": "2000003",
1009*52d973f5SAlexander Motin        "Speculative": "1",
1010*52d973f5SAlexander Motin        "UMask": "0x80"
1011*52d973f5SAlexander Motin    },
1012*52d973f5SAlexander Motin    {
1013*52d973f5SAlexander Motin        "BriefDescription": "number of branch instructions retired that were mispredicted and taken. Non PEBS",
1014*52d973f5SAlexander Motin        "CollectPEBSRecord": "2",
1015*52d973f5SAlexander Motin        "Counter": "0,1,2,3,4,5,6,7",
1016*52d973f5SAlexander Motin        "EventCode": "0xc5",
1017*52d973f5SAlexander Motin        "EventName": "BR_MISP_RETIRED.COND_TAKEN",
1018*52d973f5SAlexander Motin        "PEBS": "1",
1019*52d973f5SAlexander Motin        "PEBScounters": "0,1,2,3,4,5,6,7",
1020*52d973f5SAlexander Motin        "PublicDescription": "Counts taken conditional mispredicted branch instructions retired.",
1021*52d973f5SAlexander Motin        "SampleAfterValue": "50021",
1022*52d973f5SAlexander Motin        "UMask": "0x1"
1023*52d973f5SAlexander Motin    },
1024*52d973f5SAlexander Motin    {
1025*52d973f5SAlexander Motin        "BriefDescription": "All mispredicted branch instructions retired.",
1026*52d973f5SAlexander Motin        "CollectPEBSRecord": "2",
1027*52d973f5SAlexander Motin        "Counter": "0,1,2,3,4,5,6,7",
1028*52d973f5SAlexander Motin        "EventCode": "0xc5",
1029*52d973f5SAlexander Motin        "EventName": "BR_MISP_RETIRED.ALL_BRANCHES",
1030*52d973f5SAlexander Motin        "PEBS": "1",
1031*52d973f5SAlexander Motin        "PEBScounters": "0,1,2,3,4,5,6,7",
1032*52d973f5SAlexander Motin        "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.",
1033*52d973f5SAlexander Motin        "SampleAfterValue": "50021"
103492b14858SMatt Macy    }
103592b14858SMatt Macy]