xref: /freebsd/lib/libpmc/pmu-events/arch/x86/goldmontplus/virtual-memory.json (revision 18f21f0355481283ceef0ec10e99554f44c205c2)
1[
2    {
3        "CollectPEBSRecord": "1",
4        "PublicDescription": "Counts page walks completed due to demand data loads (including SW prefetches) whose address translations missed in all TLB levels and were mapped to 4K pages.  The page walks can end with or without a page fault.",
5        "EventCode": "0x08",
6        "Counter": "0,1,2,3",
7        "UMask": "0x2",
8        "PEBScounters": "0,1,2,3",
9        "EventName": "DTLB_LOAD_MISSES.WALK_COMPLETED_4K",
10        "PDIR_COUNTER": "na",
11        "SampleAfterValue": "200003",
12        "BriefDescription": "Page walk completed due to a demand load to a 4K page"
13    },
14    {
15        "CollectPEBSRecord": "1",
16        "PublicDescription": "Counts page walks completed due to demand data loads (including SW prefetches) whose address translations missed in all TLB levels and were mapped to 2M or 4M pages.  The page walks can end with or without a page fault.",
17        "EventCode": "0x08",
18        "Counter": "0,1,2,3",
19        "UMask": "0x4",
20        "PEBScounters": "0,1,2,3",
21        "EventName": "DTLB_LOAD_MISSES.WALK_COMPLETED_2M_4M",
22        "PDIR_COUNTER": "na",
23        "SampleAfterValue": "200003",
24        "BriefDescription": "Page walk completed due to a demand load to a 2M or 4M page"
25    },
26    {
27        "CollectPEBSRecord": "1",
28        "PublicDescription": "Counts page walks completed due to demand data loads (including SW prefetches) whose address translations missed in all TLB levels and were mapped to 1GB pages.  The page walks can end with or without a page fault.",
29        "EventCode": "0x08",
30        "Counter": "0,1,2,3",
31        "UMask": "0x8",
32        "PEBScounters": "0,1,2,3",
33        "EventName": "DTLB_LOAD_MISSES.WALK_COMPLETED_1GB",
34        "PDIR_COUNTER": "na",
35        "SampleAfterValue": "200003",
36        "BriefDescription": "Page walk completed due to a demand load to a 1GB page"
37    },
38    {
39        "CollectPEBSRecord": "1",
40        "PublicDescription": "Counts once per cycle for each page walk occurring due to a load (demand data loads or SW prefetches). Includes cycles spent traversing the Extended Page Table (EPT). Average cycles per walk can be calculated by dividing by the number of walks.",
41        "EventCode": "0x08",
42        "Counter": "0,1,2,3",
43        "UMask": "0x10",
44        "PEBScounters": "0,1,2,3",
45        "EventName": "DTLB_LOAD_MISSES.WALK_PENDING",
46        "PDIR_COUNTER": "na",
47        "SampleAfterValue": "200003",
48        "BriefDescription": "Page walks outstanding due to a demand load every cycle."
49    },
50    {
51        "CollectPEBSRecord": "1",
52        "PublicDescription": "Counts page walks completed due to demand data stores whose address translations missed in the TLB and were mapped to 4K pages.  The page walks can end with or without a page fault.",
53        "EventCode": "0x49",
54        "Counter": "0,1,2,3",
55        "UMask": "0x2",
56        "PEBScounters": "0,1,2,3",
57        "EventName": "DTLB_STORE_MISSES.WALK_COMPLETED_4K",
58        "PDIR_COUNTER": "na",
59        "SampleAfterValue": "2000003",
60        "BriefDescription": "Page walk completed due to a demand data store to a 4K page"
61    },
62    {
63        "CollectPEBSRecord": "1",
64        "PublicDescription": "Counts page walks completed due to demand data stores whose address translations missed in the TLB and were mapped to 2M or 4M pages.  The page walks can end with or without a page fault.",
65        "EventCode": "0x49",
66        "Counter": "0,1,2,3",
67        "UMask": "0x4",
68        "PEBScounters": "0,1,2,3",
69        "EventName": "DTLB_STORE_MISSES.WALK_COMPLETED_2M_4M",
70        "PDIR_COUNTER": "na",
71        "SampleAfterValue": "2000003",
72        "BriefDescription": "Page walk completed due to a demand data store to a 2M or 4M page"
73    },
74    {
75        "CollectPEBSRecord": "1",
76        "PublicDescription": "Counts page walks completed due to demand data stores whose address translations missed in the TLB and were mapped to 1GB pages.  The page walks can end with or without a page fault.",
77        "EventCode": "0x49",
78        "Counter": "0,1,2,3",
79        "UMask": "0x8",
80        "PEBScounters": "0,1,2,3",
81        "EventName": "DTLB_STORE_MISSES.WALK_COMPLETED_1GB",
82        "PDIR_COUNTER": "na",
83        "SampleAfterValue": "2000003",
84        "BriefDescription": "Page walk completed due to a demand data store to a 1GB page"
85    },
86    {
87        "CollectPEBSRecord": "1",
88        "PublicDescription": "Counts once per cycle for each page walk occurring due to a demand data store. Includes cycles spent traversing the Extended Page Table (EPT). Average cycles per walk can be calculated by dividing by the number of walks.",
89        "EventCode": "0x49",
90        "Counter": "0,1,2,3",
91        "UMask": "0x10",
92        "PEBScounters": "0,1,2,3",
93        "EventName": "DTLB_STORE_MISSES.WALK_PENDING",
94        "PDIR_COUNTER": "na",
95        "SampleAfterValue": "200003",
96        "BriefDescription": "Page walks outstanding due to a demand data store every cycle."
97    },
98    {
99        "CollectPEBSRecord": "1",
100        "PublicDescription": "Counts once per cycle for each page walk only while traversing the Extended Page Table (EPT), and does not count during the rest of the translation.  The EPT is used for translating Guest-Physical Addresses to Physical Addresses for Virtual Machine Monitors (VMMs).  Average cycles per walk can be calculated by dividing the count by number of walks.",
101        "EventCode": "0x4F",
102        "Counter": "0,1,2,3",
103        "UMask": "0x10",
104        "PEBScounters": "0,1,2,3",
105        "EventName": "EPT.WALK_PENDING",
106        "PDIR_COUNTER": "na",
107        "SampleAfterValue": "200003",
108        "BriefDescription": "Page walks outstanding due to walking the EPT every cycle"
109    },
110    {
111        "CollectPEBSRecord": "1",
112        "PublicDescription": "Counts the number of times the machine was unable to find a translation in the Instruction Translation Lookaside Buffer (ITLB) for a linear address of an instruction fetch.  It counts when new translation are filled into the ITLB.  The event is speculative in nature, but will not count translations (page walks) that are begun and not finished, or translations that are finished but not filled into the ITLB.",
113        "EventCode": "0x81",
114        "Counter": "0,1,2,3",
115        "UMask": "0x4",
116        "PEBScounters": "0,1,2,3",
117        "EventName": "ITLB.MISS",
118        "PDIR_COUNTER": "na",
119        "SampleAfterValue": "200003",
120        "BriefDescription": "ITLB misses"
121    },
122    {
123        "CollectPEBSRecord": "1",
124        "PublicDescription": "Counts page walks completed due to instruction fetches whose address translations missed in the TLB and were mapped to 4K pages.  The page walks can end with or without a page fault.",
125        "EventCode": "0x85",
126        "Counter": "0,1,2,3",
127        "UMask": "0x2",
128        "PEBScounters": "0,1,2,3",
129        "EventName": "ITLB_MISSES.WALK_COMPLETED_4K",
130        "PDIR_COUNTER": "na",
131        "SampleAfterValue": "2000003",
132        "BriefDescription": "Page walk completed due to an instruction fetch in a 4K page"
133    },
134    {
135        "CollectPEBSRecord": "1",
136        "PublicDescription": "Counts page walks completed due to instruction fetches whose address translations missed in the TLB and were mapped to 2M or 4M pages.  The page walks can end with or without a page fault.",
137        "EventCode": "0x85",
138        "Counter": "0,1,2,3",
139        "UMask": "0x4",
140        "PEBScounters": "0,1,2,3",
141        "EventName": "ITLB_MISSES.WALK_COMPLETED_2M_4M",
142        "PDIR_COUNTER": "na",
143        "SampleAfterValue": "2000003",
144        "BriefDescription": "Page walk completed due to an instruction fetch in a 2M or 4M page"
145    },
146    {
147        "CollectPEBSRecord": "1",
148        "PublicDescription": "Counts page walks completed due to instruction fetches whose address translations missed in the TLB and were mapped to 1GB pages.  The page walks can end with or without a page fault.",
149        "EventCode": "0x85",
150        "Counter": "0,1,2,3",
151        "UMask": "0x8",
152        "PEBScounters": "0,1,2,3",
153        "EventName": "ITLB_MISSES.WALK_COMPLETED_1GB",
154        "PDIR_COUNTER": "na",
155        "SampleAfterValue": "2000003",
156        "BriefDescription": "Page walk completed due to an instruction fetch in a 1GB page"
157    },
158    {
159        "CollectPEBSRecord": "1",
160        "PublicDescription": "Counts once per cycle for each page walk occurring due to an instruction fetch. Includes cycles spent traversing the Extended Page Table (EPT). Average cycles per walk can be calculated by dividing by the number of walks.",
161        "EventCode": "0x85",
162        "Counter": "0,1,2,3",
163        "UMask": "0x10",
164        "PEBScounters": "0,1,2,3",
165        "EventName": "ITLB_MISSES.WALK_PENDING",
166        "PDIR_COUNTER": "na",
167        "SampleAfterValue": "200003",
168        "BriefDescription": "Page walks outstanding due to an instruction fetch every cycle."
169    },
170    {
171        "CollectPEBSRecord": "1",
172        "PublicDescription": "Counts STLB flushes.  The TLBs are flushed on instructions like INVLPG and MOV to CR3.",
173        "EventCode": "0xBD",
174        "Counter": "0,1,2,3",
175        "UMask": "0x20",
176        "PEBScounters": "0,1,2,3",
177        "EventName": "TLB_FLUSHES.STLB_ANY",
178        "PDIR_COUNTER": "na",
179        "SampleAfterValue": "20003",
180        "BriefDescription": "STLB flushes"
181    },
182    {
183        "PEBS": "2",
184        "CollectPEBSRecord": "2",
185        "PublicDescription": "Counts load uops retired that caused a DTLB miss.",
186        "EventCode": "0xD0",
187        "Counter": "0,1,2,3",
188        "UMask": "0x11",
189        "PEBScounters": "0,1,2,3",
190        "EventName": "MEM_UOPS_RETIRED.DTLB_MISS_LOADS",
191        "SampleAfterValue": "200003",
192        "BriefDescription": "Load uops retired that missed the DTLB (Precise event capable)",
193        "Data_LA": "1"
194    },
195    {
196        "PEBS": "2",
197        "CollectPEBSRecord": "2",
198        "PublicDescription": "Counts store uops retired that caused a DTLB miss.",
199        "EventCode": "0xD0",
200        "Counter": "0,1,2,3",
201        "UMask": "0x12",
202        "PEBScounters": "0,1,2,3",
203        "EventName": "MEM_UOPS_RETIRED.DTLB_MISS_STORES",
204        "SampleAfterValue": "200003",
205        "BriefDescription": "Store uops retired that missed the DTLB (Precise event capable)",
206        "Data_LA": "1"
207    },
208    {
209        "PEBS": "2",
210        "CollectPEBSRecord": "2",
211        "PublicDescription": "Counts uops retired that had a DTLB miss on load, store or either.  Note that when two distinct memory operations to the same page miss the DTLB, only one of them will be recorded as a DTLB miss.",
212        "EventCode": "0xD0",
213        "Counter": "0,1,2,3",
214        "UMask": "0x13",
215        "PEBScounters": "0,1,2,3",
216        "EventName": "MEM_UOPS_RETIRED.DTLB_MISS",
217        "SampleAfterValue": "200003",
218        "BriefDescription": "Memory uops retired that missed the DTLB (Precise event capable)",
219        "Data_LA": "1"
220    }
221]