Skip to content

Commit e9f7de1

Browse files
HarrisonustManagor
andauthored
trace-cmd-{list, record, report}: add page, tracecmd: refresh page (#17264)
Co-authored-by: Managor <[email protected]>
1 parent 6951722 commit e9f7de1

File tree

4 files changed

+76
-9
lines changed

4 files changed

+76
-9
lines changed

pages/linux/trace-cmd-list.md

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
# trace-cmd list
2+
3+
> Show available tracers, events, or options for tracing.
4+
> See also: `trace-cmd record`, `trace-cmd report`.
5+
> More information: <https://manned.org/trace-cmd-list>.
6+
7+
- List available tracers:
8+
9+
`sudo trace-cmd list -t`
10+
11+
- List available plugins:
12+
13+
`sudo trace-cmd list -p`
14+
15+
- List available events:
16+
17+
`sudo trace-cmd list -e`
18+
19+
- List available functions:
20+
21+
`sudo trace-cmd list -f`

pages/linux/trace-cmd-record.md

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
# trace-cmd record
2+
3+
> Capture kernel trace events.
4+
> See also: `trace-cmd list`, `trace-cmd report`.
5+
> More information: <https://manned.org/trace-cmd-record>.
6+
7+
- Record a trace with a specific plugin:
8+
9+
`sudo trace-cmd record -p {{plugin}}`
10+
11+
- Record a trace of a specific executable:
12+
13+
`sudo trace-cmd record -F {{executable}}`
14+
15+
- Record a trace of a specific function:
16+
17+
`sudo trace-cmd record -g {{function}}`
18+
19+
- Exclude a specific function from the trace:
20+
21+
`sudo trace-cmd record -n {{function}}`
22+
23+
- Limit the function call graph depth:
24+
25+
`sudo trace-cmd record --max-graph-depth {{depth}}`
26+
27+
- Record a trace from a specific process ID:
28+
29+
`sudo trace-cmd record -P {{pid}}`

pages/linux/trace-cmd-report.md

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
# trace-cmd report
2+
3+
> Display recorded trace events.
4+
> See also: `trace-cmd list`, `trace-cmd record`.
5+
> More information: <https://manned.org/trace-cmd-report>.
6+
7+
- Display the recorded trace:
8+
9+
`sudo trace-cmd report`
10+
11+
- Display the recorded trace for a specific CPU:
12+
13+
`sudo trace-cmd report --cpu {{cpu_number}}`

pages/linux/trace-cmd.md

Lines changed: 13 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,33 +1,37 @@
11
# trace-cmd
22

33
> Utility to interact with the Ftrace Linux kernel internal tracer.
4-
> This utility only runs as root.
4+
> See also: `trace-cmd list`, `trace-cmd record`, `trace-cmd report`.
55
> More information: <https://manned.org/trace-cmd>.
66
77
- Display the status of tracing system:
88

9-
`trace-cmd stat`
9+
`sudo trace-cmd stat`
1010

1111
- List available tracers:
1212

13-
`trace-cmd list -t`
13+
`sudo trace-cmd list -t`
1414

1515
- Start tracing with a specific plugin:
1616

17-
`trace-cmd start -p {{timerlat|osnoise|hwlat|blk|mmiotrace|function_graph|wakeup_dl|wakeup_rt|wakeup|function|nop}}`
17+
`sudo trace-cmd start -p {{function|function_graph|preemptirqsoff|irqsoff|preemptoff|wakeup|...}}`
1818

1919
- View the trace output:
2020

21-
`trace-cmd show`
21+
`sudo trace-cmd show`
2222

2323
- Stop the tracing but retain the buffers:
2424

25-
`trace-cmd stop`
25+
`sudo trace-cmd stop`
2626

2727
- Clear the trace buffers:
2828

29-
`trace-cmd clear`
29+
`sudo trace-cmd clear`
3030

31-
- Clear the trace buffers and stop tracing:
31+
- Record a trace:
3232

33-
`trace-cmd reset`
33+
`sudo trace-cmd record`
34+
35+
- Display the recorded trace:
36+
37+
`sudo trace-cmd report`

0 commit comments

Comments
 (0)