-
-
Notifications
You must be signed in to change notification settings - Fork 4.7k
trace-cmd-{list, record, report}: add page, tracecmd: refresh page #17264
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
Show all changes
11 commits
Select commit
Hold shift + click to select a range
6af817d
trace-cmd: add pages
Harrisonust 6e559ad
Update pages/linux/trace-cmd-list.md
Harrisonust 4ba2b5b
Update pages/linux/trace-cmd-list.md
Harrisonust ebcf768
Update pages/linux/trace-cmd-record.md
Harrisonust 6593e89
Update pages/linux/trace-cmd-report.md
Harrisonust b0cc197
Update pages/linux/trace-cmd.md
Harrisonust d4aa038
update plugin list
Harrisonust aea048c
fix typo
Harrisonust d0c0948
fix typo
Harrisonust 0e402a4
update plugin list
Harrisonust c79815e
commands should be run as root
Harrisonust File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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` |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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}}` |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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}}` |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,33 +1,37 @@ | ||
# 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` |
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.