1
0
Fork 0
mirror of https://github.com/tldr-pages/tldr.git synced 2025-07-29 03:35:49 +02:00
tldr/pages/linux/trace-cmd.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

37 lines
729 B
Markdown

# trace-cmd
> Utility to interact with the Ftrace Linux kernel internal tracer.
> See also: `trace-cmd list`, `trace-cmd record`, `trace-cmd report`.
> More information: <https://manned.org/trace-cmd>.
- Display the status of tracing system:
`sudo trace-cmd stat`
- List available tracers:
`sudo trace-cmd list -t`
- Start tracing with a specific plugin:
`sudo trace-cmd start -p {{function|function_graph|preemptirqsoff|irqsoff|preemptoff|wakeup|...}}`
- View the trace output:
`sudo trace-cmd show`
- Stop the tracing but retain the buffers:
`sudo trace-cmd stop`
- Clear the trace buffers:
`sudo trace-cmd clear`
- Record a trace:
`sudo trace-cmd record`
- Display the recorded trace:
`sudo trace-cmd report`