mirror of
https://github.com/ivuorinen/cheatsheet-tldr.git
synced 2026-02-19 17:50:28 +00:00
Update cheatsheets
This commit is contained in:
34
tldr/linux/trace-cmd-record
Normal file
34
tldr/linux/trace-cmd-record
Normal file
@@ -0,0 +1,34 @@
|
||||
---
|
||||
syntax: markdown
|
||||
tags: [tldr, linux]
|
||||
source: https://github.com/tldr-pages/tldr.git
|
||||
---
|
||||
# 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}}`
|
||||
Reference in New Issue
Block a user