Update cheatsheets

This commit is contained in:
ivuorinen
2025-07-20 00:24:01 +00:00
parent 16134c78d9
commit 1ec3810968
41 changed files with 352 additions and 139 deletions

View File

@@ -6,33 +6,37 @@ source: https://github.com/tldr-pages/tldr.git
# trace-cmd
> Utility to interact with the Ftrace Linux kernel internal tracer.
> This utility only runs as root.
> See also: `trace-cmd list`, `trace-cmd record`, `trace-cmd report`.
> More information: <https://manned.org/trace-cmd>.
- Display the status of tracing system:
`trace-cmd stat`
`sudo trace-cmd stat`
- List available tracers:
`trace-cmd list -t`
`sudo trace-cmd list -t`
- Start tracing with a specific plugin:
`trace-cmd start -p {{timerlat|osnoise|hwlat|blk|mmiotrace|function_graph|wakeup_dl|wakeup_rt|wakeup|function|nop}}`
`sudo trace-cmd start -p {{function|function_graph|preemptirqsoff|irqsoff|preemptoff|wakeup|...}}`
- View the trace output:
`trace-cmd show`
`sudo trace-cmd show`
- Stop the tracing but retain the buffers:
`trace-cmd stop`
`sudo trace-cmd stop`
- Clear the trace buffers:
`trace-cmd clear`
`sudo trace-cmd clear`
- Clear the trace buffers and stop tracing:
- Record a trace:
`trace-cmd reset`
`sudo trace-cmd record`
- Display the recorded trace:
`sudo trace-cmd report`