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

2025-05-23 Thread Andrii Nakryiko
On Thu, May 22, 2025 at 4:01 PM Shakeel Butt wrote: > > On Tue, May 20, 2025 at 02:01:17PM +0100, Lorenz Bauer 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 t

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

2025-05-22 Thread Shakeel Butt
On Tue, May 20, 2025 at 02:01:17PM +0100, Lorenz Bauer 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 memor