Re: [PATCH bpf-next] btf: Remove the dependency on BPF_SYSCALL

Thomas Weißschuh <[email protected]> Mon, 3 Aug 2026 10:59:10 +0200
Newsgroups org.kernel.vger.bpf,org.kernel.vger.linux-kernel
Message-ID <20260803105558-f788c3d1-b159-4a79-ab22-3d784322dbbf@linutronix.de>
On Mon, Aug 03, 2026 at 09:52:39AM +0200, Thomas Weißschuh wrote:
> BTF has become useful without the BPF syscall being present.
> It is used by debuggers and introspection tools like pahole.
> The dependency prevents the usage of BTF without pulling in the
> rest of the BPF subsystem.
> 
> Remove the dependency.

Please disregard this patch.
Sashiko found a few valid issues:

https://sashiko.dev/#/patchset/20260803-btf-dep-bpf-syscall-v1-1-a03291e27888%40linutronix.de

The patch somehow passed the 0day bot. I'll investigate.

Also pahole is perfectly fine using DWARF debug data.
If no debug information is available at all, it prints an error about
missing BTF information, which confused me.


Thomas