Lines Matching +full:self +full:- +full:working +full:- +full:mode

1 perf-trace(1)
5 ----
6 perf-trace - strace inspired tool
9 --------
15 -----------
20 This is a live mode tool in addition to working with perf.data files like
22 but the session needs to include the raw_syscalls events (-e 'raw_syscalls:*').
30 -------
32 -a::
33 --all-cpus::
34 System-wide collection from all CPUs.
36 -e::
37 --expr::
38 --event::
45 --filter=<filter>::
46 Event filter. This option should follow an event selector (-e) which
50 -D msecs::
51 --delay msecs::
55 -o::
56 --output=::
59 -p::
60 --pid=::
63 -t::
64 --tid=::
67 -u::
68 --uid=::
71 -G::
72 --cgroup::
78 perf trace -G A -e sched:*switch
83 perf trace -e sched:*switch -G A
91 perf trace -G A -e sched:*switch -G B
96 --filter-pids=::
99 -v::
100 --verbose::
103 --no-inherit::
106 -m::
107 --mmap-pages=::
109 specification in bytes with appended unit character - B/K/M/G.
110 The size is rounded up to the nearest power-of-two page value.
112 -C::
113 --cpu::
115 comma-separated list with no space: 0,1. Ranges of CPUs are specified with -: 0-2.
116 In per-thread mode with inheritance mode on (default), Events are captured only when
119 --duration::
122 --sched::
125 --failure::
128 -i::
129 --input::
132 -T::
133 --time::
136 --comm::
137 Show process COMM right beside its ID, on by default, disable with --no-comm.
139 -s::
140 --summary::
144 -S::
145 --with-summary::
149 --errno-summary::
150 To be used with -s or -S, to show stats for the errnos experienced by
151 syscalls, using only this option will trigger --summary.
153 --summary-mode=mode::
154 To be used with -s or -S, to select how to show summary. By default it'll
158 --tool_stats::
159 Show tool stats such as number of times fd->pathname was discovered thru
162 -f::
163 --force::
166 -F=[all|min|maj]::
167 --pf=[all|min|maj]::
171 --syscalls::
173 --no-syscalls.
175 --call-graph [mode,type,min[,limit],order[,key][,branch]]::
176 Setup and enable call-graph (stack chain/backtrace) recording.
177 See `--call-graph` section in perf-record and perf-report
179 are 'dwarf' and 'lbr', where available, try: 'perf trace --call-graph dwarf'.
181 Using this will, for the root user, bump the value of --mmap-pages to 4
182 times the maximum for non-root users, based on the kernel.perf_event_mlock_kb
183 sysctl. This is done only if the user doesn't specify a --mmap-pages value.
185 --kernel-syscall-graph::
188 --max-events=N::
189 Stop after processing N events. Note that strace-like events are considered
193 --switch-on EVENT_NAME::
196 --switch-off EVENT_NAME::
199 --show-on-off-events::
200 Show the --switch-on/off events too.
202 --max-stack::
207 knobs in --call-graph dwarf.
209 Implies '--call-graph dwarf' when --call-graph not present on the
213 live sessions (without --input/-i), 127 otherwise.
215 --min-stack::
219 Implies '--call-graph dwarf' when --call-graph not present on the
222 --print-sample::
226 --proc-map-timeout::
227 When processing pre-existing threads /proc/XXX/mmap, it may take a long time,
231 --sort-events::
236 --libtraceevent_print::
238 the same beautifiers used in the strace-like enter+exit lines to augment the
241 --force-btf::
242 Use btf_dump to pretty print syscall argument data, instead of using hand-crafted pretty
243 printers. This option is intended for testing BTF integration in perf trace. btf_dump-based
244 pretty-printing serves as a fallback to hand-crafted pretty printers, as the latter can
245 better pretty-print integer flags and struct pointers.
247 --bpf-summary::
248 Collect system call statistics in BPF. This is only for live mode and
249 works well with -s/--summary option where no argument information is
254 ----------
260 - min/maj indicates whether fault event is minor or major;
261 - ip.symbol shows symbol for instruction pointer (the code that generated the
263 - addr.dso shows DSO for the faulted address;
264 - map type is either 'd' for non-executable maps or 'x' for executable maps;
265 - addr level is either 'k' for kernel dso or '.' for user dso.
272 When --verbose specified, perf trace tries to print all available information
276 --------
280 $ perf trace --no-syscalls -F
284 $ perf trace -F all
286 …1416.547 ( 0.000 ms): python/20235 majfault [CRYPTO_push_info_+0x0] => /lib/x86_64-linux-gnu/libcr…
293 $ perf trace -e open* --max-events 4
294 [root@jouet perf]# trace -e open* --max-events 4
295 2272.992 ( 0.037 ms): gnome-shell/1370 openat(dfd: CWD, filename: /proc/self/stat) = 31
296 2277.481 ( 0.139 ms): gnome-shell/3039 openat(dfd: CWD, filename: /proc/self/stat) = 65
297 3026.398 ( 0.076 ms): gnome-shell/3039 openat(dfd: CWD, filename: /proc/self/stat) = 65
303 # perf trace -F min --max-stack=7 --max-events 1 sleep 1
316 # perf trace -F min --call-graph=dwarf --max-events 1 --cpu 0
330 [0x18b26e6bc2bd] (/tmp/perf-17136.map)
337 …# perf trace -e sched:*switch/nr=2/,block:*_plug/nr=4/,block:*_unplug/nr=1/,net:*dev_queue/nr=3,ma…
340 254.198 irq/50-iwlwifi/680 net:net_dev_queue:dev=wlp3s0 skbaddr=0xffff93498051f600 len=66
348 4466.094 jbd2/dm-2-8/748 block:block_plug:[jbd2/dm-2-8]
354 --------
355 linkperf:perf-record[1], linkperf:perf-script[1]