1
0
Fork 0
mirror of https://github.com/tldr-pages/tldr.git synced 2025-08-04 22:35:45 +02:00

trace-cmd-{list, record, report}: add page, tracecmd: refresh page (#17264)

Co-authored-by: Managor <42655600+Managor@users.noreply.github.com>
This commit is contained in:
Harrison 2025-07-20 02:59:38 +08:00 committed by GitHub
parent 6951722168
commit e9f7de1a29
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
4 changed files with 76 additions and 9 deletions

View file

@ -0,0 +1,21 @@
# trace-cmd list
> Show available tracers, events, or options for tracing.
> See also: `trace-cmd record`, `trace-cmd report`.
> More information: <https://manned.org/trace-cmd-list>.
- List available tracers:
`sudo trace-cmd list -t`
- List available plugins:
`sudo trace-cmd list -p`
- List available events:
`sudo trace-cmd list -e`
- List available functions:
`sudo trace-cmd list -f`

View file

@ -0,0 +1,29 @@
# 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}}`

View file

@ -0,0 +1,13 @@
# trace-cmd report
> Display recorded trace events.
> See also: `trace-cmd list`, `trace-cmd record`.
> More information: <https://manned.org/trace-cmd-report>.
- Display the recorded trace:
`sudo trace-cmd report`
- Display the recorded trace for a specific CPU:
`sudo trace-cmd report --cpu {{cpu_number}}`

View file

@ -1,33 +1,37 @@
# trace-cmd # trace-cmd
> Utility to interact with the Ftrace Linux kernel internal tracer. > 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>. > More information: <https://manned.org/trace-cmd>.
- Display the status of tracing system: - Display the status of tracing system:
`trace-cmd stat` `sudo trace-cmd stat`
- List available tracers: - List available tracers:
`trace-cmd list -t` `sudo trace-cmd list -t`
- Start tracing with a specific plugin: - 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: - View the trace output:
`trace-cmd show` `sudo trace-cmd show`
- Stop the tracing but retain the buffers: - Stop the tracing but retain the buffers:
`trace-cmd stop` `sudo trace-cmd stop`
- Clear the trace buffers: - 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`