hc
2024-02-20 102a0743326a03cd1a1202ceda21e175b7d3575c
kernel/tools/perf/Documentation/perf-list.txt
....@@ -36,6 +36,9 @@
3636 Print how named events are resolved internally into perf events, and also
3737 any extra expressions computed by perf stat.
3838
39
+--deprecated::
40
+Print deprecated events. By default the deprecated events are hidden.
41
+
3942 [[EVENT_MODIFIERS]]
4043 EVENT MODIFIERS
4144 ---------------
....@@ -55,7 +58,7 @@
5558 S - read sample value (PERF_SAMPLE_READ)
5659 D - pin the event to the PMU
5760 W - group is weak and will fallback to non-group if not schedulable,
58
- only supported in 'perf stat' for now.
61
+ e - group or event are exclusive and do not share the PMU
5962
6063 The 'p' modifier can be used for specifying how precise the instruction
6164 address should be. The 'p' modifier can be specified multiple times:
....@@ -112,6 +115,12 @@
112115
113116 perf stat -e r1a8 -a sleep 1
114117 perf record -e r1a8 ...
118
+
119
+It's also possible to use pmu syntax:
120
+
121
+ perf record -e r1a8 -a sleep 1
122
+ perf record -e cpu/r1a8/ ...
123
+ perf record -e cpu/r0x1a8/ ...
115124
116125 You should refer to the processor specific documentation for getting these
117126 details. Some of them are referenced in the SEE ALSO section below.
....@@ -173,7 +182,7 @@
173182 Other PMUs and global measurements are normally root only.
174183 Some event qualifiers, such as "any", are also root only.
175184
176
-This can be overriden by setting the kernel.perf_event_paranoid
185
+This can be overridden by setting the kernel.perf_event_paranoid
177186 sysctl to -1, which allows non root to use these events.
178187
179188 For accessing trace point events perf needs to have read access to
....@@ -199,6 +208,18 @@
199208 also be supplied. For example:
200209
201210 perf stat -C 0 -e 'hv_gpci/dtbp_ptitc,phys_processor_idx=0x2/' ...
211
+
212
+EVENT QUALIFIERS:
213
+
214
+It is also possible to add extra qualifiers to an event:
215
+
216
+percore:
217
+
218
+Sums up the event counts for all hardware threads in a core, e.g.:
219
+
220
+
221
+ perf stat -e cpu/event=0,umask=0x3,percore=1/
222
+
202223
203224 EVENT GROUPS
204225 ------------
....@@ -244,6 +265,9 @@
244265 the first event (the leader) samples, and it only reads the values of the
245266 other events in the group.
246267
268
+However, in the case AUX area events (e.g. Intel PT or CoreSight), the AUX
269
+area event must be the leader, so then the second event samples, not the first.
270
+
247271 OPTIONS
248272 -------
249273