diff options
| author | Namhyung Kim <[email protected]> | 2025-06-23 22:57:21 +0000 |
|---|---|---|
| committer | Namhyung Kim <[email protected]> | 2025-06-26 17:31:05 +0000 |
| commit | f6109fb6f5d7fb9403cecfc75302bbf47ed83b8d (patch) | |
| tree | d62a67e486f5198c47d6b64e641cb2153b42ad42 /tools/perf/util/annotate.c | |
| parent | perf test: Change all remaining #!/bin/sh to #!/bin/bash (diff) | |
| download | kernel-f6109fb6f5d7fb9403cecfc75302bbf47ed83b8d.tar.gz kernel-f6109fb6f5d7fb9403cecfc75302bbf47ed83b8d.zip | |
perf trace: Split BPF skel code to util/bpf_trace_augment.c
And make builtin-trace.c less conditional. Dummy functions will be
called when BUILD_BPF_SKEL=0 is used. This makes the builtin-trace.c
slightly smaller and simpler by removing the skeleton and its helpers.
The conditional guard of trace__init_syscalls_bpf_prog_array_maps() is
changed from the HAVE_BPF_SKEL to HAVE_LIBBPF_SUPPORT as it doesn't
have a skeleton in the code directly. And a dummy function is added so
that it can be called unconditionally. The function will succeed only
if the both conditions are true.
Do not include trace_augment.h from the BPF code and move the definition
of TRACE_AUG_MAX_BUF to the BPF directly.
Reviewed-by: Howard Chu <[email protected]>
Tested-by: Arnaldo Carvalho de Melo <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Namhyung Kim <[email protected]>
Diffstat (limited to 'tools/perf/util/annotate.c')
0 files changed, 0 insertions, 0 deletions
