perf trace: Augment enum arguments with BTF
Status from this message: Applied the patch 1/8 to perf-tools-next, thanks!
Get series with b4
b4 am [email protected]Versions newest first · linked by author and title
- v5 Latest posting 2/28 patches 28 repliesApplied
- v5 posting 1/28 patches 4 repliesSuperseded
- v4 posting 2/20 of 8 patches 0 repliesSuperseded
Earlier versions · 4
| Version | Posted | Patches | Replies | Status |
|---|---|---|---|---|
| v4 posting 1/2 | 8 patches | 4 replies | Superseded | |
| v3 | 8 patches | 8 replies | Superseded | |
| v2 | 5 patches | 23 replies | Superseded | |
| v1 | 5 patches | 2 replies | Superseded |
Changes in v5 from the cover letter
- Use hardcoded landlock structs and macros for landlock.c workload to make this build in older systems.
Patches in v5 posting 2/2 Applied
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/8 | perf trace: Fix iteration of syscall ids in syscalltbl->entriestools/ tools/ tools/ | +15 | 26 replies | |
| 2/8 | perf trace: BTF-based enum pretty printing for syscall argstools/ | +106 | 0 replies | |
| 3/8 | perf trace: Augment non-syscall tracepoints with enum arguments with BTFtools/ | +22 | 0 replies | |
| 4/8 | perf trace: Filter enum arguments with enum namestools/ | +56 | 0 replies | |
| 5/8 | perf test: Add landlock workloadtools/ tools/ tools/ +1 more | +70 | 0 replies | |
| 6/8 | perf test trace_btf_enum: Add regression test for the BTF augmentation of enums in 'perf trace'tools/ | +61 | 0 replies | |
| 7/8 | perf trace: Introduce trace__btf_scnprintf()tools/ | +27 | 0 replies | |
| 8/8 | perf trace: Remove arg_fmt->is_enum, we can get that from the BTF typetools/ tools/ | +56 | 0 replies |
Reviews trailers per patch
2 of 8 patches have a Reviewed-by or Acked-by of their own; the series has one for all of them.
| Patch | Arnaldo Carvalho de Melo | Howard Chu | Ian Rogers | Jiri Slaby | Namhyung Kim |
|---|---|---|---|---|---|
| Series | R-b | ||||
| 1/8 | T-b | R-b | T-b | A-b | |
| 2/8 | T-b | ||||
| 3/8 | R-b T-b | ||||
| 4/8 | T-b | ||||
| 5/8 | T-b | ||||
| 6/8 | T-b | ||||
| 7/8 | T-b | ||||
| 8/8 | T-b |
Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes. Scroll the table sideways for all 5 reviewers.
Cover letter [PATCH v5 0/8] perf trace: Augment enum arguments with BTF
Changes in v5:
- Use hardcoded landlock structs and macros for landlock.c workload to make this build in older systems.
Changes in v4:
- Fix landlock workload's build error.
Changes in v3:
- Add trace__btf_scnprintf() helper function
- Remove is_enum memeber in struct syscall_arg_fmt, replace it with btf_is_enum()
- Add syscall_arg_fmt__cache_btf_enum() to cache btf_type only
- Resolve NO_LIBBPF=1 build error
- Skip BTF augmentation test if landlock_add_rule syscall and LIBBPF are not available
- Rename landlock.c workload, add a comment to landlock.c workload
- Change the way of skipping 'enum ' prefix
- Add type_name member to struct syscall_arg
Changes in v2:
- Add trace_btf_enum regression test, and landlock workload
v1:
In this patch, BTF is used to turn enum value to the corresponding enum variable name. There is only one system call that uses enum value as its argument, that is landlock_add_rule().
Enum arguments of non-syscall tracepoints can also be augmented, for instance timer:hrtimer_start and timer:hrtimer_init's 'mode' argument.
Arnaldo Carvalho de Melo (2):
perf trace: Introduce trace__btf_scnprintf()
perf trace: Remove arg_fmt->is_enum, we can get that from the BTF type
Howard Chu (6):
perf trace: Fix iteration of syscall ids in syscalltbl->entries perf trace: BTF-based enum pretty printing for syscall args perf trace: Augment non-syscall tracepoints with enum arguments with
BTF
perf trace: Filter enum arguments with enum names
perf test: Add landlock workload
perf test trace_btf_enum: Add regression test for the BTF augmentation
of enums in 'perf trace'
tools/perf/builtin-trace.c | 229 ++++++++++++++++++++--- tools/perf/tests/builtin-test.c | 1 + tools/perf/tests/shell/trace_btf_enum.sh | 61 ++++++ tools/perf/tests/tests.h | 1 + tools/perf/tests/workloads/Build | 2 + tools/perf/tests/workloads/landlock.c | 66 +++++++ tools/perf/trace/beauty/beauty.h | 1 + tools/perf/util/syscalltbl.c | 7 + tools/perf/util/syscalltbl.h | 1 + 9 files changed, 345 insertions(+), 24 deletions(-) create mode 100755 tools/perf/tests/shell/trace_btf_enum.sh create mode 100644 tools/perf/tests/workloads/landlock.c
Signature · 1 line
2.45.2