File tree Expand file tree Collapse file tree 4 files changed +76
-9
lines changed Expand file tree Collapse file tree 4 files changed +76
-9
lines changed Original file line number Diff line number Diff line change
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 `
Original file line number Diff line number Diff line change
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}} `
Original file line number Diff line number Diff line change
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}} `
Original file line number Diff line number Diff line change 1
1
# trace-cmd
2
2
3
3
> 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 ` .
5
5
> More information: < https://manned.org/trace-cmd > .
6
6
7
7
- Display the status of tracing system:
8
8
9
- ` trace-cmd stat `
9
+ ` sudo trace-cmd stat`
10
10
11
11
- List available tracers:
12
12
13
- ` trace-cmd list -t `
13
+ ` sudo trace-cmd list -t`
14
14
15
15
- Start tracing with a specific plugin:
16
16
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|... }}`
18
18
19
19
- View the trace output:
20
20
21
- ` trace-cmd show `
21
+ ` sudo trace-cmd show`
22
22
23
23
- Stop the tracing but retain the buffers:
24
24
25
- ` trace-cmd stop `
25
+ ` sudo trace-cmd stop`
26
26
27
27
- Clear the trace buffers:
28
28
29
- ` trace-cmd clear `
29
+ ` sudo trace-cmd clear`
30
30
31
- - Clear the trace buffers and stop tracing :
31
+ - Record a trace:
32
32
33
- ` trace-cmd reset `
33
+ ` sudo trace-cmd record `
34
+
35
+ - Display the recorded trace:
36
+
37
+ ` sudo trace-cmd report `
You can’t perform that action at this time.
0 commit comments