Re: [PATCH v2] perf trace: Split BPF skel code to util/bpf_trace_augment.c

From: Namhyung Kim
Date: Thu Jun 26 2025 - 13:42:04 EST


On Mon, 23 Jun 2025 15:57:21 -0700, Namhyung Kim wrote:
> 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.
>
> [...]
Applied to perf-tools-next, thanks!

Best regards,
Namhyung