Usage: perf trace [] [] or: perf trace [] -- [] or: perf trace record [] [] or: perf trace record [] -- [] -a, --all-cpus system-wide collection from all CPUs -C, --cpu list of cpus to monitor -D, --delay ms to wait before starting measurement after program start -e, --event event/syscall selector. use 'perf list' to list available events -f, --force don't complain, do it -F, --pf Trace pagefaults -G, --cgroup monitor event in cgroup name only -i, --input Analyze events in file -m, --mmap-pages number of mmap data pages -o, --output output file name -p, --pid trace events on existing process id -s, --summary Show only syscall summary with statistics -S, --with-summary Show all syscalls and summary with statistics -t, --tid trace events on existing thread id -T, --time Show full timestamp, not time relative to first start -u, --uid user to profile -v, --verbose be more verbose --call-graph setup and enables call-graph (stack chain/backtrace): record_mode: call graph recording mode (fp|dwarf|lbr) record_size: if record_mode is 'dwarf', max size of stack recording () default: 8192 (bytes) Default: fp --comm show the thread COMM next to its id --duration show only events with duration > N.M ms --errno-summary Show errno stats per syscall, use with -s or -S --expr list of syscalls/events to trace --failure Show only syscalls that failed --filter event filter --filter-pids pids to filter (by the kernel) --force-btf Prefer btf_dump general pretty printerto customized ones --kernel-syscall-graph Show the kernel callchains on the syscall exit path --libtraceevent_print Use libtraceevent to print the tracepoint arguments. --max-events Set the maximum number of events to print, exit after that is reached. --max-stack Set the maximum stack depth when parsing the callchain, anything beyond the specified depth will be ignored. Default: kernel.perf_event_max_stack or 127 --min-stack Set the minimum stack depth when parsing the callchain, anything below the specified depth will be ignored. --no-inherit child tasks do not inherit counters --print-sample print the PERF_RECORD_SAMPLE PERF_SAMPLE_ info, for debugging --proc-map-timeout per thread proc mmap processing timeout in ms --sched show blocking scheduler events --show-on-off-events Show the on/off switch events, used with --switch-on and --switch-off --sort-events Sort batch of events before processing, use if getting out of order events --switch-off Stop considering events after the occurrence of this event --switch-on Consider events after the occurrence of this event --syscalls Trace syscalls --tool_stats show tool stats