trace-cmd-record
TLDR
Record with specific plugin
SYNOPSIS
trace-cmd record [OPTIONS]
DESCRIPTION
trace-cmd record captures kernel trace events to a file (trace.dat by default). It configures the Ftrace framework, starts tracing, and saves the results for later analysis with trace-cmd report.
Various options allow filtering by function, process, or executable, and limiting trace depth to reduce data volume.
PARAMETERS
-p PLUGIN
Use specified tracer plugin-F EXECUTABLE
Trace only the specified executable-g FUNCTION
Trace specified function-n FUNCTION
Exclude function from trace--max-graph-depth DEPTH
Limit function call graph depth-P PID
Trace specified process ID
CAVEATS
Requires root privileges. Large traces consume significant disk space. High-frequency tracing impacts system performance. Output file can grow quickly.
SEE ALSO
trace-cmd(1), trace-cmd-list(1), trace-cmd-report(1)
