Update cheatsheets

This commit is contained in:
ivuorinen
2024-02-21 11:19:49 +00:00
parent 4e88a1b42f
commit 3d653cc7e6
4803 changed files with 127002 additions and 0 deletions

38
linux/trace-cmd Normal file
View File

@@ -0,0 +1,38 @@
---
syntax: markdown
tags: [tldr, linux]
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.
> 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`