1
0
Fork 0
mirror of https://github.com/tldr-pages/tldr.git synced 2025-07-29 02:35:27 +02:00
tldr/pages/linux/trace-cmd.md

38 lines
729 B
Markdown
Raw Normal View History

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