commands.sh

trace-cmd record

linux

Capture kernel trace events. See also: `trace-cmd list`, `trace-cmd report`.

More info →

Examples (6)

Record a trace with a specific plugin

Record a trace of a specific executable

sudo trace-cmd record -F executable

Record a trace of a specific function

Exclude a specific function from the trace

Limit the function call graph depth

sudo trace-cmd record --max-graph-depth depth

Record a trace from a specific process ID

made by @shridhargupta | data from tldr-pages