diff options
author | Yang Jihong <yangjihong1@huawei.com> | 2022-07-09 03:50:18 +0200 |
---|---|---|
committer | Arnaldo Carvalho de Melo <acme@redhat.com> | 2022-07-26 21:01:29 +0200 |
commit | 4f8ae962f0f71c682f97be5a9491694f9fbd814a (patch) | |
tree | b2f2657cd1452831ec50fbbd2cb853c8da68d8b4 /tools/perf/util/kwork.h | |
parent | perf kwork: New tool to trace time properties of kernel work (such as softirq... (diff) | |
download | linux-4f8ae962f0f71c682f97be5a9491694f9fbd814a.tar.xz linux-4f8ae962f0f71c682f97be5a9491694f9fbd814a.zip |
perf kwork: Add irq kwork record support
Record interrupt events irq:irq_handler_entry & irq_handler_exit
Test cases:
# perf kwork record -o perf_kwork.date -- sleep 1
[ perf record: Woken up 0 times to write data ]
[ perf record: Captured and wrote 0.556 MB perf_kwork.date ]
#
# perf evlist -i perf_kwork.date
irq:irq_handler_entry
irq:irq_handler_exit
dummy:HG
# Tip: use 'perf evlist --trace-fields' to show fields for tracepoint events
#
Signed-off-by: Yang Jihong <yangjihong1@huawei.com>
Tested-by: Arnaldo Carvalho de Melo <acme@redhat.com>
Cc: Alexander Shishkin <alexander.shishkin@linux.intel.com>
Cc: Ingo Molnar <mingo@redhat.com>
Cc: Jiri Olsa <jolsa@kernel.org>
Cc: Mark Rutland <mark.rutland@arm.com>
Cc: Namhyung Kim <namhyung@kernel.org>
Cc: Paul Clarke <pc@us.ibm.com>
Cc: Peter Zijlstra <peterz@infradead.org>
Link: https://lore.kernel.org/r/20220709015033.38326-3-yangjihong1@huawei.com
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
Diffstat (limited to 'tools/perf/util/kwork.h')
-rw-r--r-- | tools/perf/util/kwork.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/tools/perf/util/kwork.h b/tools/perf/util/kwork.h index 6950636aab2a..f1d89cb058fc 100644 --- a/tools/perf/util/kwork.h +++ b/tools/perf/util/kwork.h @@ -13,6 +13,7 @@ #include <linux/bitmap.h> enum kwork_class_type { + KWORK_CLASS_IRQ, KWORK_CLASS_MAX, }; |