1
0
Fork 0
mirror of https://github.com/tldr-pages/tldr.git synced 2025-07-29 04:15:35 +02:00
tldr/pages/linux/trace-cmd-record.md
Harrison e9f7de1a29
trace-cmd-{list, record, report}: add page, tracecmd: refresh page (#17264)
Co-authored-by: Managor <42655600+Managor@users.noreply.github.com>
2025-07-19 18:59:38 +00:00

29 lines
674 B
Markdown

# trace-cmd record
> Capture kernel trace events.
> See also: `trace-cmd list`, `trace-cmd report`.
> More information: <https://manned.org/trace-cmd-record>.
- Record a trace with a specific plugin:
`sudo trace-cmd record -p {{plugin}}`
- Record a trace of a specific executable:
`sudo trace-cmd record -F {{executable}}`
- Record a trace of a specific function:
`sudo trace-cmd record -g {{function}}`
- Exclude a specific function from the trace:
`sudo trace-cmd record -n {{function}}`
- Limit the function call graph depth:
`sudo trace-cmd record --max-graph-depth {{depth}}`
- Record a trace from a specific process ID:
`sudo trace-cmd record -P {{pid}}`