[PATCH v2 0/5] perf trace: Augment enum arguments with BTF
From: Howard Chu
Date: Wed Jun 19 2024 - 04:19:58 EST
changes in v2:
- Move inline landlock_add_rule c code to tests/workloads
- Rename 'enum_aug_prereq' to 'check_vmlinux'
Augment enum arguments in perf trace, including syscall arguments and
non-syscall tracepoint arguments. The augmentation is implemented using
BTF.
This patch series also includes a bug fix by Arnaldo Carvalho de Melo
<acme@xxxxxxxxxx>, which makes more syscalls to be traceable by perf trace.
Test is included.
Howard Chu (5):
perf trace: Fix iteration of syscall ids in syscalltbl->entries
perf trace: Augment enum syscall arguments with BTF
perf trace: Augment enum tracepoint arguments with BTF
perf trace: Filter enum arguments with enum names
perf trace: Add test for enum augmentation
tools/perf/builtin-trace.c | 214 ++++++++++++++++--
tools/perf/tests/builtin-test.c | 1 +
tools/perf/tests/shell/trace_btf_enum.sh | 57 +++++
tools/perf/tests/tests.h | 1 +
tools/perf/tests/workloads/Build | 1 +
.../perf/tests/workloads/landlock_add_rule.c | 32 +++
tools/perf/util/syscalltbl.c | 7 +
tools/perf/util/syscalltbl.h | 1 +
8 files changed, 289 insertions(+), 25 deletions(-)
create mode 100755 tools/perf/tests/shell/trace_btf_enum.sh
create mode 100644 tools/perf/tests/workloads/landlock_add_rule.c
--
2.45.2