xref: /freebsd/lib/libpmc/pmu-events/arch/x86/alderlake/memory.json (revision 370e009188ba90c3290b1479aa06ec98b66e140a)
1[
2    {
3        "BriefDescription": "Counts the number of cycles that the head (oldest load) of the load buffer is stalled due to any number of reasons, including an L1 miss, WCB full, pagewalk, store address block or store data block, on a load that retires.",
4        "Counter": "0,1,2,3,4,5",
5        "EventCode": "0x05",
6        "EventName": "LD_HEAD.ANY_AT_RET",
7        "SampleAfterValue": "1000003",
8        "UMask": "0xff",
9        "Unit": "cpu_atom"
10    },
11    {
12        "BriefDescription": "Counts the number of cycles that the head (oldest load) of the load buffer is stalled due to a core bound stall including a store address match, a DTLB miss or a page walk that detains the load from retiring.",
13        "Counter": "0,1,2,3",
14        "EventCode": "0x05",
15        "EventName": "LD_HEAD.L1_BOUND_AT_RET",
16        "SampleAfterValue": "1000003",
17        "UMask": "0xf4",
18        "Unit": "cpu_atom"
19    },
20    {
21        "BriefDescription": "Counts the number of cycles that the head (oldest load) of the load buffer is stalled due to other block cases when load subsequently retires when load subsequently retires.",
22        "CollectPEBSRecord": "2",
23        "Counter": "0,1,2,3,4,5",
24        "EventCode": "0x05",
25        "EventName": "LD_HEAD.OTHER_AT_RET",
26        "PEBScounters": "0,1,2,3,4,5",
27        "SampleAfterValue": "1000003",
28        "UMask": "0xc0",
29        "Unit": "cpu_atom"
30    },
31    {
32        "BriefDescription": "Counts the number of cycles that the head (oldest load) of the load buffer is stalled due to a pagewalk when load subsequently retires.",
33        "CollectPEBSRecord": "2",
34        "Counter": "0,1,2,3,4,5",
35        "EventCode": "0x05",
36        "EventName": "LD_HEAD.PGWALK_AT_RET",
37        "PEBScounters": "0,1,2,3,4,5",
38        "SampleAfterValue": "1000003",
39        "UMask": "0xa0",
40        "Unit": "cpu_atom"
41    },
42    {
43        "BriefDescription": "Counts the number of cycles that the head (oldest load) of the load buffer is stalled due to a store address match when load subsequently retires.",
44        "CollectPEBSRecord": "2",
45        "Counter": "0,1,2,3,4,5",
46        "EventCode": "0x05",
47        "EventName": "LD_HEAD.ST_ADDR_AT_RET",
48        "PEBScounters": "0,1,2,3,4,5",
49        "SampleAfterValue": "1000003",
50        "UMask": "0x84",
51        "Unit": "cpu_atom"
52    },
53    {
54        "BriefDescription": "Counts the number of machine clears due to memory ordering caused by a snoop from an external agent. Does not count internally generated machine clears such as those due to memory disambiguation.",
55        "CollectPEBSRecord": "2",
56        "Counter": "0,1,2,3,4,5",
57        "EventCode": "0xc3",
58        "EventName": "MACHINE_CLEARS.MEMORY_ORDERING",
59        "PEBScounters": "0,1,2,3,4,5",
60        "SampleAfterValue": "20003",
61        "UMask": "0x2",
62        "Unit": "cpu_atom"
63    },
64    {
65        "BriefDescription": "Counts demand data reads that were not supplied by the L3 cache.",
66        "Counter": "0,1,2,3",
67        "EventCode": "0xB7",
68        "EventName": "OCR.DEMAND_DATA_RD.L3_MISS",
69        "MSRIndex": "0x1a6,0x1a7",
70        "MSRValue": "0x3F84400001",
71        "SampleAfterValue": "100003",
72        "UMask": "0x1",
73        "Unit": "cpu_atom"
74    },
75    {
76        "BriefDescription": "Counts demand reads for ownership (RFO) and software prefetches for exclusive ownership (PREFETCHW) that were not supplied by the L3 cache.",
77        "Counter": "0,1,2,3",
78        "EventCode": "0xB7",
79        "EventName": "OCR.DEMAND_RFO.L3_MISS",
80        "MSRIndex": "0x1a6,0x1a7",
81        "MSRValue": "0x3F84400002",
82        "SampleAfterValue": "100003",
83        "UMask": "0x1",
84        "Unit": "cpu_atom"
85    },
86    {
87        "BriefDescription": "Execution stalls while L3 cache miss demand load is outstanding.",
88        "CollectPEBSRecord": "2",
89        "Counter": "0,1,2,3",
90        "CounterMask": "6",
91        "EventCode": "0xa3",
92        "EventName": "CYCLE_ACTIVITY.STALLS_L3_MISS",
93        "PEBScounters": "0,1,2,3",
94        "SampleAfterValue": "1000003",
95        "UMask": "0x6",
96        "Unit": "cpu_core"
97    },
98    {
99        "BriefDescription": "Number of machine clears due to memory ordering conflicts.",
100        "CollectPEBSRecord": "2",
101        "Counter": "0,1,2,3,4,5,6,7",
102        "EventCode": "0xc3",
103        "EventName": "MACHINE_CLEARS.MEMORY_ORDERING",
104        "PEBScounters": "0,1,2,3,4,5,6,7",
105        "SampleAfterValue": "100003",
106        "UMask": "0x2",
107        "Unit": "cpu_core"
108    },
109    {
110        "BriefDescription": "Cycles while L1 cache miss demand load is outstanding.",
111        "CollectPEBSRecord": "2",
112        "Counter": "0,1,2,3",
113        "CounterMask": "2",
114        "EventCode": "0x47",
115        "EventName": "MEMORY_ACTIVITY.CYCLES_L1D_MISS",
116        "PEBScounters": "0,1,2,3",
117        "SampleAfterValue": "1000003",
118        "UMask": "0x2",
119        "Unit": "cpu_core"
120    },
121    {
122        "BriefDescription": "Execution stalls while L1 cache miss demand load is outstanding.",
123        "CollectPEBSRecord": "2",
124        "Counter": "0,1,2,3",
125        "CounterMask": "3",
126        "EventCode": "0x47",
127        "EventName": "MEMORY_ACTIVITY.STALLS_L1D_MISS",
128        "PEBScounters": "0,1,2,3",
129        "SampleAfterValue": "1000003",
130        "UMask": "0x3",
131        "Unit": "cpu_core"
132    },
133    {
134        "BriefDescription": "TBD",
135        "CollectPEBSRecord": "2",
136        "Counter": "0,1,2,3",
137        "CounterMask": "5",
138        "EventCode": "0x47",
139        "EventName": "MEMORY_ACTIVITY.STALLS_L2_MISS",
140        "PEBScounters": "0,1,2,3",
141        "SampleAfterValue": "1000003",
142        "UMask": "0x5",
143        "Unit": "cpu_core"
144    },
145    {
146        "BriefDescription": "TBD",
147        "CollectPEBSRecord": "2",
148        "Counter": "0,1,2,3",
149        "CounterMask": "9",
150        "EventCode": "0x47",
151        "EventName": "MEMORY_ACTIVITY.STALLS_L3_MISS",
152        "PEBScounters": "0,1,2,3",
153        "SampleAfterValue": "1000003",
154        "UMask": "0x9",
155        "Unit": "cpu_core"
156    },
157    {
158        "BriefDescription": "Counts randomly selected loads when the latency from first dispatch to completion is greater than 128 cycles.",
159        "CollectPEBSRecord": "2",
160        "Counter": "1,2,3,4,5,6,7",
161        "Data_LA": "1",
162        "EventCode": "0xcd",
163        "EventName": "MEM_TRANS_RETIRED.LOAD_LATENCY_GT_128",
164        "MSRIndex": "0x3F6",
165        "MSRValue": "0x80",
166        "PEBS": "2",
167        "PEBScounters": "1,2,3,4,5,6,7",
168        "SampleAfterValue": "1009",
169        "TakenAlone": "1",
170        "UMask": "0x1",
171        "Unit": "cpu_core"
172    },
173    {
174        "BriefDescription": "Counts randomly selected loads when the latency from first dispatch to completion is greater than 16 cycles.",
175        "CollectPEBSRecord": "2",
176        "Counter": "1,2,3,4,5,6,7",
177        "Data_LA": "1",
178        "EventCode": "0xcd",
179        "EventName": "MEM_TRANS_RETIRED.LOAD_LATENCY_GT_16",
180        "MSRIndex": "0x3F6",
181        "MSRValue": "0x10",
182        "PEBS": "2",
183        "PEBScounters": "1,2,3,4,5,6,7",
184        "SampleAfterValue": "20011",
185        "TakenAlone": "1",
186        "UMask": "0x1",
187        "Unit": "cpu_core"
188    },
189    {
190        "BriefDescription": "Counts randomly selected loads when the latency from first dispatch to completion is greater than 256 cycles.",
191        "CollectPEBSRecord": "2",
192        "Counter": "1,2,3,4,5,6,7",
193        "Data_LA": "1",
194        "EventCode": "0xcd",
195        "EventName": "MEM_TRANS_RETIRED.LOAD_LATENCY_GT_256",
196        "MSRIndex": "0x3F6",
197        "MSRValue": "0x100",
198        "PEBS": "2",
199        "PEBScounters": "1,2,3,4,5,6,7",
200        "SampleAfterValue": "503",
201        "TakenAlone": "1",
202        "UMask": "0x1",
203        "Unit": "cpu_core"
204    },
205    {
206        "BriefDescription": "Counts randomly selected loads when the latency from first dispatch to completion is greater than 32 cycles.",
207        "CollectPEBSRecord": "2",
208        "Counter": "1,2,3,4,5,6,7",
209        "Data_LA": "1",
210        "EventCode": "0xcd",
211        "EventName": "MEM_TRANS_RETIRED.LOAD_LATENCY_GT_32",
212        "MSRIndex": "0x3F6",
213        "MSRValue": "0x20",
214        "PEBS": "2",
215        "PEBScounters": "1,2,3,4,5,6,7",
216        "SampleAfterValue": "100007",
217        "TakenAlone": "1",
218        "UMask": "0x1",
219        "Unit": "cpu_core"
220    },
221    {
222        "BriefDescription": "Counts randomly selected loads when the latency from first dispatch to completion is greater than 4 cycles.",
223        "CollectPEBSRecord": "2",
224        "Counter": "1,2,3,4,5,6,7",
225        "Data_LA": "1",
226        "EventCode": "0xcd",
227        "EventName": "MEM_TRANS_RETIRED.LOAD_LATENCY_GT_4",
228        "MSRIndex": "0x3F6",
229        "MSRValue": "0x4",
230        "PEBS": "2",
231        "PEBScounters": "1,2,3,4,5,6,7",
232        "SampleAfterValue": "100003",
233        "TakenAlone": "1",
234        "UMask": "0x1",
235        "Unit": "cpu_core"
236    },
237    {
238        "BriefDescription": "Counts randomly selected loads when the latency from first dispatch to completion is greater than 512 cycles.",
239        "CollectPEBSRecord": "2",
240        "Counter": "1,2,3,4,5,6,7",
241        "Data_LA": "1",
242        "EventCode": "0xcd",
243        "EventName": "MEM_TRANS_RETIRED.LOAD_LATENCY_GT_512",
244        "MSRIndex": "0x3F6",
245        "MSRValue": "0x200",
246        "PEBS": "2",
247        "PEBScounters": "1,2,3,4,5,6,7",
248        "SampleAfterValue": "101",
249        "TakenAlone": "1",
250        "UMask": "0x1",
251        "Unit": "cpu_core"
252    },
253    {
254        "BriefDescription": "Counts randomly selected loads when the latency from first dispatch to completion is greater than 64 cycles.",
255        "CollectPEBSRecord": "2",
256        "Counter": "1,2,3,4,5,6,7",
257        "Data_LA": "1",
258        "EventCode": "0xcd",
259        "EventName": "MEM_TRANS_RETIRED.LOAD_LATENCY_GT_64",
260        "MSRIndex": "0x3F6",
261        "MSRValue": "0x40",
262        "PEBS": "2",
263        "PEBScounters": "1,2,3,4,5,6,7",
264        "SampleAfterValue": "2003",
265        "TakenAlone": "1",
266        "UMask": "0x1",
267        "Unit": "cpu_core"
268    },
269    {
270        "BriefDescription": "Counts randomly selected loads when the latency from first dispatch to completion is greater than 8 cycles.",
271        "CollectPEBSRecord": "2",
272        "Counter": "1,2,3,4,5,6,7",
273        "Data_LA": "1",
274        "EventCode": "0xcd",
275        "EventName": "MEM_TRANS_RETIRED.LOAD_LATENCY_GT_8",
276        "MSRIndex": "0x3F6",
277        "MSRValue": "0x8",
278        "PEBS": "2",
279        "PEBScounters": "1,2,3,4,5,6,7",
280        "SampleAfterValue": "50021",
281        "TakenAlone": "1",
282        "UMask": "0x1",
283        "Unit": "cpu_core"
284    },
285    {
286        "BriefDescription": "Retired instructions with at least 1 store uop. This PEBS event is the trigger for stores sampled by the PEBS Store Facility.",
287        "CollectPEBSRecord": "2",
288        "Data_LA": "1",
289        "EventCode": "0xcd",
290        "EventName": "MEM_TRANS_RETIRED.STORE_SAMPLE",
291        "PEBS": "2",
292        "SampleAfterValue": "1000003",
293        "UMask": "0x2",
294        "Unit": "cpu_core"
295    },
296    {
297        "BriefDescription": "Counts demand data reads that were not supplied by the L3 cache.",
298        "Counter": "0,1,2,3",
299        "EventCode": "0x2A,0x2B",
300        "EventName": "OCR.DEMAND_DATA_RD.L3_MISS",
301        "MSRIndex": "0x1a6,0x1a7",
302        "MSRValue": "0x3FBFC00001",
303        "SampleAfterValue": "100003",
304        "UMask": "0x1",
305        "Unit": "cpu_core"
306    },
307    {
308        "BriefDescription": "Counts demand read for ownership (RFO) requests and software prefetches for exclusive ownership (PREFETCHW) that were not supplied by the L3 cache.",
309        "Counter": "0,1,2,3",
310        "EventCode": "0x2A,0x2B",
311        "EventName": "OCR.DEMAND_RFO.L3_MISS",
312        "MSRIndex": "0x1a6,0x1a7",
313        "MSRValue": "0x3FBFC00002",
314        "SampleAfterValue": "100003",
315        "UMask": "0x1",
316        "Unit": "cpu_core"
317    }
318]