xref: /freebsd/lib/libpmc/pmu-events/arch/x86/jaketown/uncore-power.json (revision a4adfaf712694ce7923d5309cf87d0cd2a598953)
1[
2    {
3        "BriefDescription": "PCU clock ticks. Use to get percentages of PCU cycles events",
4        "Counter": "0,1,2,3",
5        "EventName": "UNC_P_CLOCKTICKS",
6        "PerPkg": "1",
7        "Unit": "PCU"
8    },
9    {
10        "BriefDescription": "Counts the number of cycles that the uncore was running at a frequency greater than or equal to the frequency that is configured in the filter.  (filter_band0=XXX with XXX in 100Mhz units). One can also use inversion (filter_inv=1) to track cycles when we were less than the configured frequency",
11        "Counter": "0,1,2,3",
12        "EventCode": "0xb",
13        "EventName": "UNC_P_FREQ_BAND0_CYCLES",
14        "MetricExpr": "(UNC_P_FREQ_BAND0_CYCLES / UNC_P_CLOCKTICKS) * 100.",
15        "MetricName": "freq_band0_cycles %",
16        "PerPkg": "1",
17        "Unit": "PCU"
18    },
19    {
20        "BriefDescription": "Counts the number of cycles that the uncore was running at a frequency greater than or equal to the frequency that is configured in the filter.  (filter_band1=XXX with XXX in 100Mhz units). One can also use inversion (filter_inv=1) to track cycles when we were less than the configured frequency",
21        "Counter": "0,1,2,3",
22        "EventCode": "0xc",
23        "EventName": "UNC_P_FREQ_BAND1_CYCLES",
24        "MetricExpr": "(UNC_P_FREQ_BAND1_CYCLES / UNC_P_CLOCKTICKS) * 100.",
25        "MetricName": "freq_band1_cycles %",
26        "PerPkg": "1",
27        "Unit": "PCU"
28    },
29    {
30        "BriefDescription": "Counts the number of cycles that the uncore was running at a frequency greater than or equal to the frequency that is configured in the filter.  (filter_band2=XXX with XXX in 100Mhz units). One can also use inversion (filter_inv=1) to track cycles when we were less than the configured frequency",
31        "Counter": "0,1,2,3",
32        "EventCode": "0xd",
33        "EventName": "UNC_P_FREQ_BAND2_CYCLES",
34        "MetricExpr": "(UNC_P_FREQ_BAND2_CYCLES / UNC_P_CLOCKTICKS) * 100.",
35        "MetricName": "freq_band2_cycles %",
36        "PerPkg": "1",
37        "Unit": "PCU"
38    },
39    {
40        "BriefDescription": "Counts the number of cycles that the uncore was running at a frequency greater than or equal to the frequency that is configured in the filter.  (filter_band3=XXX, with XXX in 100Mhz units). One can also use inversion (filter_inv=1) to track cycles when we were less than the configured frequency",
41        "Counter": "0,1,2,3",
42        "EventCode": "0xe",
43        "EventName": "UNC_P_FREQ_BAND3_CYCLES",
44        "MetricExpr": "(UNC_P_FREQ_BAND3_CYCLES / UNC_P_CLOCKTICKS) * 100.",
45        "MetricName": "freq_band3_cycles %",
46        "PerPkg": "1",
47        "Unit": "PCU"
48    },
49    {
50        "BriefDescription": "Counts the number of times that the uncore transitioned a frequency greater than or equal to the frequency that is configured in the filter.  (filter_band0=XXX with XXX in 100Mhz units). One can also use inversion (filter_inv=1) to track cycles when we were less than the configured frequency. Derived from unc_p_freq_band0_cycles",
51        "Counter": "0,1,2,3",
52        "EventCode": "0xb",
53        "EventName": "UNC_P_FREQ_BAND0_TRANSITIONS",
54        "Filter": "edge=1",
55        "MetricExpr": "(UNC_P_FREQ_BAND0_CYCLES / UNC_P_CLOCKTICKS) * 100.",
56        "MetricName": "freq_band0_cycles %",
57        "PerPkg": "1",
58        "Unit": "PCU"
59    },
60    {
61        "BriefDescription": "Counts the number of times that the uncore transitioned to a frequency greater than or equal to the frequency that is configured in the filter.  (filter_band1=XXX with XXX in 100Mhz units). One can also use inversion (filter_inv=1) to track cycles when we were less than the configured frequency. Derived from unc_p_freq_band1_cycles",
62        "Counter": "0,1,2,3",
63        "EventCode": "0xc",
64        "EventName": "UNC_P_FREQ_BAND1_TRANSITIONS",
65        "Filter": "edge=1",
66        "MetricExpr": "(UNC_P_FREQ_BAND1_CYCLES / UNC_P_CLOCKTICKS) * 100.",
67        "MetricName": "freq_band1_cycles %",
68        "PerPkg": "1",
69        "Unit": "PCU"
70    },
71    {
72        "BriefDescription": "Counts the number of cycles that the uncore transitioned to a frequency greater than or equal to the frequency that is configured in the filter.  (filter_band2=XXX with XXX in 100Mhz units). One can also use inversion (filter_inv=1) to track cycles when we were less than the configured frequency. Derived from unc_p_freq_band2_cycles",
73        "Counter": "0,1,2,3",
74        "EventCode": "0xd",
75        "EventName": "UNC_P_FREQ_BAND2_TRANSITIONS",
76        "Filter": "edge=1",
77        "MetricExpr": "(UNC_P_FREQ_BAND2_CYCLES / UNC_P_CLOCKTICKS) * 100.",
78        "MetricName": "freq_band2_cycles %",
79        "PerPkg": "1",
80        "Unit": "PCU"
81    },
82    {
83        "BriefDescription": "Counts the number of cycles that the uncore transitioned to a frequency greater than or equal to the frequency that is configured in the filter.  (filter_band3=XXX, with XXX in 100Mhz units). One can also use inversion (filter_inv=1) to track cycles when we were less than the configured frequency. Derived from unc_p_freq_band3_cycles",
84        "Counter": "0,1,2,3",
85        "EventCode": "0xe",
86        "EventName": "UNC_P_FREQ_BAND3_TRANSITIONS",
87        "Filter": "edge=1",
88        "MetricExpr": "(UNC_P_FREQ_BAND3_CYCLES / UNC_P_CLOCKTICKS) * 100.",
89        "MetricName": "freq_band3_cycles %",
90        "PerPkg": "1",
91        "Unit": "PCU"
92    },
93    {
94        "BriefDescription": "This is an occupancy event that tracks the number of cores that are in C0.  It can be used by itself to get the average number of cores in C0, with threshholding to generate histograms, or with other PCU events and occupancy triggering to capture other details",
95        "Counter": "0,1,2,3",
96        "EventCode": "0x80",
97        "EventName": "UNC_P_POWER_STATE_OCCUPANCY.CORES_C0",
98        "Filter": "occ_sel=1",
99        "MetricExpr": "(UNC_P_POWER_STATE_OCCUPANCY.CORES_C0 / UNC_P_CLOCKTICKS) * 100.",
100        "MetricName": "power_state_occupancy.cores_c0 %",
101        "PerPkg": "1",
102        "Unit": "PCU"
103    },
104    {
105        "BriefDescription": "This is an occupancy event that tracks the number of cores that are in C3.  It can be used by itself to get the average number of cores in C0, with threshholding to generate histograms, or with other PCU events and occupancy triggering to capture other details",
106        "Counter": "0,1,2,3",
107        "EventCode": "0x80",
108        "EventName": "UNC_P_POWER_STATE_OCCUPANCY.CORES_C3",
109        "Filter": "occ_sel=2",
110        "MetricExpr": "(UNC_P_POWER_STATE_OCCUPANCY.CORES_C3 / UNC_P_CLOCKTICKS) * 100.",
111        "MetricName": "power_state_occupancy.cores_c3 %",
112        "PerPkg": "1",
113        "Unit": "PCU"
114    },
115    {
116        "BriefDescription": "This is an occupancy event that tracks the number of cores that are in C6.  It can be used by itself to get the average number of cores in C0, with threshholding to generate histograms, or with other PCU events ",
117        "Counter": "0,1,2,3",
118        "EventCode": "0x80",
119        "EventName": "UNC_P_POWER_STATE_OCCUPANCY.CORES_C6",
120        "Filter": "occ_sel=3",
121        "MetricExpr": "(UNC_P_POWER_STATE_OCCUPANCY.CORES_C6 / UNC_P_CLOCKTICKS) * 100.",
122        "MetricName": "power_state_occupancy.cores_c6 %",
123        "PerPkg": "1",
124        "Unit": "PCU"
125    },
126    {
127        "BriefDescription": "Counts the number of cycles that we are in external PROCHOT mode.  This mode is triggered when a sensor off the die determines that something off-die (like DRAM) is too hot and must throttle to avoid damaging the chip",
128        "Counter": "0,1,2,3",
129        "EventCode": "0xa",
130        "EventName": "UNC_P_PROCHOT_EXTERNAL_CYCLES",
131        "MetricExpr": "(UNC_P_PROCHOT_EXTERNAL_CYCLES / UNC_P_CLOCKTICKS) * 100.",
132        "MetricName": "prochot_external_cycles %",
133        "PerPkg": "1",
134        "Unit": "PCU"
135    },
136    {
137        "BriefDescription": "Counts the number of cycles when temperature is the upper limit on frequency",
138        "Counter": "0,1,2,3",
139        "EventCode": "0x4",
140        "EventName": "UNC_P_FREQ_MAX_LIMIT_THERMAL_CYCLES",
141        "MetricExpr": "(UNC_P_FREQ_MAX_LIMIT_THERMAL_CYCLES / UNC_P_CLOCKTICKS) * 100.",
142        "MetricName": "freq_max_limit_thermal_cycles %",
143        "PerPkg": "1",
144        "Unit": "PCU"
145    },
146    {
147        "BriefDescription": "Counts the number of cycles when the OS is the upper limit on frequency",
148        "Counter": "0,1,2,3",
149        "EventCode": "0x6",
150        "EventName": "UNC_P_FREQ_MAX_OS_CYCLES",
151        "MetricExpr": "(UNC_P_FREQ_MAX_OS_CYCLES / UNC_P_CLOCKTICKS) * 100.",
152        "MetricName": "freq_max_os_cycles %",
153        "PerPkg": "1",
154        "Unit": "PCU"
155    },
156    {
157        "BriefDescription": "Counts the number of cycles when power is the upper limit on frequency",
158        "Counter": "0,1,2,3",
159        "EventCode": "0x5",
160        "EventName": "UNC_P_FREQ_MAX_POWER_CYCLES",
161        "MetricExpr": "(UNC_P_FREQ_MAX_POWER_CYCLES / UNC_P_CLOCKTICKS) * 100.",
162        "MetricName": "freq_max_power_cycles %",
163        "PerPkg": "1",
164        "Unit": "PCU"
165    },
166    {
167        "BriefDescription": "Counts the number of cycles when current is the upper limit on frequency",
168        "Counter": "0,1,2,3",
169        "EventCode": "0x7",
170        "EventName": "UNC_P_FREQ_MAX_CURRENT_CYCLES",
171        "MetricExpr": "(UNC_P_FREQ_MAX_CURRENT_CYCLES / UNC_P_CLOCKTICKS) * 100.",
172        "MetricName": "freq_max_current_cycles %",
173        "PerPkg": "1",
174        "Unit": "PCU"
175    },
176    {
177        "BriefDescription": "Cycles spent changing Frequency",
178        "Counter": "0,1,2,3",
179        "EventName": "UNC_P_FREQ_TRANS_CYCLES",
180        "MetricExpr": "(UNC_P_FREQ_TRANS_CYCLES / UNC_P_CLOCKTICKS) * 100.",
181        "MetricName": "freq_trans_cycles %",
182        "PerPkg": "1",
183        "Unit": "PCU"
184    },
185    {
186        "BriefDescription": "Counts the number of cycles that the uncore was running at a frequency greater than or equal to 1.2Ghz. Derived from unc_p_freq_band0_cycles",
187        "Counter": "0,1,2,3",
188        "EventCode": "0xb",
189        "EventName": "UNC_P_FREQ_GE_1200MHZ_CYCLES",
190        "Filter": "filter_band0=12",
191        "MetricExpr": "(UNC_P_FREQ_GE_1200MHZ_CYCLES / UNC_P_CLOCKTICKS) * 100.",
192        "MetricName": "freq_ge_1200mhz_cycles %",
193        "PerPkg": "1",
194        "Unit": "PCU"
195    },
196    {
197        "BriefDescription": "Counts the number of cycles that the uncore was running at a frequency greater than or equal to 2Ghz. Derived from unc_p_freq_band1_cycles",
198        "Counter": "0,1,2,3",
199        "EventCode": "0xc",
200        "EventName": "UNC_P_FREQ_GE_2000MHZ_CYCLES",
201        "Filter": "filter_band1=20",
202        "MetricExpr": "(UNC_P_FREQ_GE_2000MHZ_CYCLES / UNC_P_CLOCKTICKS) * 100.",
203        "MetricName": "freq_ge_2000mhz_cycles %",
204        "PerPkg": "1",
205        "Unit": "PCU"
206    },
207    {
208        "BriefDescription": "Counts the number of cycles that the uncore was running at a frequency greater than or equal to 3Ghz. Derived from unc_p_freq_band2_cycles",
209        "Counter": "0,1,2,3",
210        "EventCode": "0xd",
211        "EventName": "UNC_P_FREQ_GE_3000MHZ_CYCLES",
212        "Filter": "filter_band2=30",
213        "MetricExpr": "(UNC_P_FREQ_GE_3000MHZ_CYCLES / UNC_P_CLOCKTICKS) * 100.",
214        "MetricName": "freq_ge_3000mhz_cycles %",
215        "PerPkg": "1",
216        "Unit": "PCU"
217    },
218    {
219        "BriefDescription": "Counts the number of cycles that the uncore was running at a frequency greater than or equal to 4Ghz. Derived from unc_p_freq_band3_cycles",
220        "Counter": "0,1,2,3",
221        "EventCode": "0xe",
222        "EventName": "UNC_P_FREQ_GE_4000MHZ_CYCLES",
223        "Filter": "filter_band3=40",
224        "MetricExpr": "(UNC_P_FREQ_GE_4000MHZ_CYCLES / UNC_P_CLOCKTICKS) * 100.",
225        "MetricName": "freq_ge_4000mhz_cycles %",
226        "PerPkg": "1",
227        "Unit": "PCU"
228    },
229    {
230        "BriefDescription": "Counts the number of times that the uncore transitioned to a frequency greater than or equal to 1.2Ghz. Derived from unc_p_freq_band0_cycles",
231        "Counter": "0,1,2,3",
232        "EventCode": "0xb",
233        "EventName": "UNC_P_FREQ_GE_1200MHZ_TRANSITIONS",
234        "Filter": "edge=1,filter_band0=12",
235        "MetricExpr": "(UNC_P_FREQ_GE_1200MHZ_CYCLES / UNC_P_CLOCKTICKS) * 100.",
236        "MetricName": "freq_ge_1200mhz_cycles %",
237        "PerPkg": "1",
238        "Unit": "PCU"
239    },
240    {
241        "BriefDescription": "Counts the number of times that the uncore transitioned to a frequency greater than or equal to 2Ghz. Derived from unc_p_freq_band1_cycles",
242        "Counter": "0,1,2,3",
243        "EventCode": "0xc",
244        "EventName": "UNC_P_FREQ_GE_2000MHZ_TRANSITIONS",
245        "Filter": "edge=1,filter_band1=20",
246        "MetricExpr": "(UNC_P_FREQ_GE_2000MHZ_CYCLES / UNC_P_CLOCKTICKS) * 100.",
247        "MetricName": "freq_ge_2000mhz_cycles %",
248        "PerPkg": "1",
249        "Unit": "PCU"
250    },
251    {
252        "BriefDescription": "Counts the number of cycles that the uncore transitioned to a frequency greater than or equal to 3Ghz. Derived from unc_p_freq_band2_cycles",
253        "Counter": "0,1,2,3",
254        "EventCode": "0xd",
255        "EventName": "UNC_P_FREQ_GE_3000MHZ_TRANSITIONS",
256        "Filter": "edge=1,filter_band2=30",
257        "MetricExpr": "(UNC_P_FREQ_GE_3000MHZ_CYCLES / UNC_P_CLOCKTICKS) * 100.",
258        "MetricName": "freq_ge_3000mhz_cycles %",
259        "PerPkg": "1",
260        "Unit": "PCU"
261    },
262    {
263        "BriefDescription": "Counts the number of cycles that the uncore transitioned to a frequency greater than or equal to 4Ghz. Derived from unc_p_freq_band3_cycles",
264        "Counter": "0,1,2,3",
265        "EventCode": "0xe",
266        "EventName": "UNC_P_FREQ_GE_4000MHZ_TRANSITIONS",
267        "Filter": "edge=1,filter_band3=40",
268        "MetricExpr": "(UNC_P_FREQ_GE_4000MHZ_CYCLES / UNC_P_CLOCKTICKS) * 100.",
269        "MetricName": "freq_ge_4000mhz_cycles %",
270        "PerPkg": "1",
271        "Unit": "PCU"
272    }
273]
274