6 perf-kwork - Tool to trace/measure kernel work properties (latencies)
11 'perf kwork' {record|report|latency|timehist|top}
15 There are several variants of 'perf kwork':
17 'perf kwork record <command>' to record the kernel work
18 of an arbitrary workload.
20 'perf kwork report' to report the per kwork runtime.
22 'perf kwork latency' to report the per kwork latencies.
24 'perf kwork timehist' provides an analysis of kernel work events.
26 'perf kwork top' to report the task cpu usage.
29 perf kwork record -- sleep 1
38 By default it shows the individual work events such as irq, workqueue,
39 including the run time and delay (time between raise and actually entry):
41 Runtime start Runtime end Cpu Kwork name Runtime Delaytime
42 (TYPE)NAME:NUM (msec) (msec)
43 ----------------- ----------------- ------ ------------------------- ---------- ----------
44 1811186.976062 1811186.976327 [0000] (s)RCU:9 0.266 0.114
45 1811186.978452 1811186.978547 [0000] (s)SCHED:7 0.095 0.171
46 1811186.980327 1811186.980490 [0000] (s)SCHED:7 0.162 0.083
47 1811186.981221 1811186.981271 [0000] (s)SCHED:7 0.050 0.077
48 1811186.984267 1811186.984318 [0000] (s)SCHED:7 0.051 0.075
49 1811186.987252 1811186.987315 [0000] (s)SCHED:7 0.063 0.081
50 1811186.987785 1811186.987843 [0006] (s)RCU:9 0.058 0.645
51 1811186.988319 1811186.988383 [0000] (s)SCHED:7 0.064 0.143
52 1811186.989404 1811186.989607 [0002] (s)TIMER:1 0.203 0.111
53 1811186.989660 1811186.989732 [0002] (s)SCHED:7 0.072 0.310
54 1811186.991295 1811186.991407 [0002] eth0:10 0.112
55 1811186.991639 1811186.991734 [0002] (s)NET_RX:3 0.095 0.277
56 1811186.989860 1811186.991826 [0002] (w)vmstat_shepherd 1.966 0.345
59 Times are in msec.usec.
65 Display verbose dump of the sched data.
69 Don't complain, do it.
73 List of kwork to profile (irq, softirq, workqueue, sched, etc)
77 Be more verbose. (show symbol address, etc)
79 OPTIONS for 'perf kwork report'
80 ----------------------------
84 Use BPF to measure kwork runtime
88 Only show events for the given CPU(s) (comma separated list).
92 Input file name. (default: perf.data unless stdin is a fifo)
96 Only show events for the given name.
100 Sort by key(s): runtime, max, count
104 Show summary with statistics
107 Only analyze samples within given time window: <start>,<stop>. Times
108 have the format seconds.microseconds. If start is not given (i.e., time
109 string is ',x.y') then analysis starts at the beginning of the file. If
110 stop time is not given (i.e, time string is 'x.y,') then analysis goes
113 OPTIONS for 'perf kwork latency'
114 ----------------------------
118 Use BPF to measure kwork latency
122 Only show events for the given CPU(s) (comma separated list).
126 Input file name. (default: perf.data unless stdin is a fifo)
130 Only show events for the given name.
134 Sort by key(s): avg, max, count
137 Only analyze samples within given time window: <start>,<stop>. Times
138 have the format seconds.microseconds. If start is not given (i.e., time
139 string is ',x.y') then analysis starts at the beginning of the file. If
140 stop time is not given (i.e, time string is 'x.y,') then analysis goes
143 OPTIONS for 'perf kwork timehist'
144 ---------------------------------
148 Only show events for the given CPU(s) (comma separated list).
152 Display call chains if present (default off).
156 Input file name. (default: perf.data unless stdin is a fifo)
164 Only show events for the given name.
170 Maximum number of functions to display in backtrace, default 5.
172 --symfs=<directory>::
173 Look for files with symbols relative to this directory.
176 Only analyze samples within given time window: <start>,<stop>. Times
177 have the format seconds.microseconds. If start is not given (i.e., time
178 string is ',x.y') then analysis starts at the beginning of the file. If
179 stop time is not given (i.e, time string is 'x.y,') then analysis goes
182 OPTIONS for 'perf kwork top'
183 ---------------------------------
187 Use BPF to measure task cpu usage.
191 Only show events for the given CPU(s) (comma separated list).
195 Input file name. (default: perf.data unless stdin is a fifo)
199 Only show events for the given name.
203 Sort by key(s): rate, runtime, tid
206 Only analyze samples within given time window: <start>,<stop>. Times
207 have the format seconds.microseconds. If start is not given (i.e., time
208 string is ',x.y') then analysis starts at the beginning of the file. If
209 stop time is not given (i.e, time string is 'x.y,') then analysis goes
214 linkperf:perf-record[1]