trace-cmd: add page (#7820)

feature/ed-update
Muhammad Falak R Wani 2022-03-21 09:44:10 +05:30 committed by GitHub
parent e3318d87cf
commit f3b986941a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 33 additions and 0 deletions

33
pages/linux/trace-cmd.md Normal file
View File

@ -0,0 +1,33 @@
# trace-cmd
> Utility to interact with the Ftrace Linux kernel internal tracer.
> This utility only runs as root.
> More information: <https://manned.org/trace-cmd>.
- Display the status of tracing system:
`trace-cmd stat`
- List available tracers:
`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}}`
- View the trace output:
`trace-cmd show`
- Stop the tracing but retain the buffers:
`trace-cmd stop`
- Clear the trace buffers:
`trace-cmd clear`
- Clear the trace buffers and stop tracing:
`trace-cmd reset`