Re: [PATCH bpf-next v2 1/3] btf: allow mmap of vmlinux btf

From: Lorenz Bauer
Date: Fri May 02 2025 - 13:02:00 EST


On Fri, May 2, 2025 at 11:20 AM Lorenz Bauer <lmb@xxxxxxxxxxxxx> wrote:
>
> User space needs access to kernel BTF for many modern features of BPF.
> Right now each process needs to read the BTF blob either in pieces or
> as a whole. Allow mmaping the sysfs file so that processes can directly
> access the memory allocated for it in the kernel.

I just realised that there is also code which exposes module BTF via
sysfs, which my code currently doesn't handle. I'll send a v3.