perf_kwork_report
Analyze kernel work item statistics to locate high-cost interrupt and workqueue handlers by count, runtime, and max latency.
Instructions
Kernel work item statistics: IRQ, softIRQ, and workqueue handlers with count, total runtime, and max latency.
Use this to find the most expensive interrupt handlers or work items.
Key parameters:
sort: 'count', 'runtime', 'max', 'avg'.
name: filter to a specific handler name.
kwork: filter by type -- 'irq', 'softirq', 'workqueue'.
Output: per-handler statistics table. Requires: perf kwork record.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| cpu | No | CPUs to filter | |
| name | No | Filter by work name | |
| sort | No | Sort by key(s): count,runtime,max,avg | |
| time | No | Time span to analyze | |
| force | No | Don't complain, do it | |
| input | Yes | Path to perf.data file | |
| kwork | No | Work type to trace (irq, softirq, workqueue) | |
| symfs | No | Symbol filesystem root | |
| use_bpf | No | Use BPF for tracing | |
| verbose | No | Verbosity level (0-2) | |
| vmlinux | No | vmlinux pathname | |
| kallsyms | No | kallsyms pathname | |
| with_summary | No | Show summary along with detailed output | |
| dump_raw_trace | No | Dump raw trace in ASCII |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |