Re: [PATCH bpf-next v3 3/3] libbpf: Use mmap to parse vmlinux BTF from sysfs

2025-05-06 Thread Andrii Nakryiko
On Mon, May 5, 2025 at 11:39 AM Lorenz Bauer wrote: > > Teach libbpf to use mmap when parsing vmlinux BTF from /sys. We don't > apply this to fall-back paths on the regular file system because there > is no way to ensure that modifications underlying the MAP_PRIVATE > mapping are not visible to th

[PATCH bpf-next v3 3/3] libbpf: Use mmap to parse vmlinux BTF from sysfs

2025-05-05 Thread Lorenz Bauer
Teach libbpf to use mmap when parsing vmlinux BTF from /sys. We don't apply this to fall-back paths on the regular file system because there is no way to ensure that modifications underlying the MAP_PRIVATE mapping are not visible to the process. Signed-off-by: Lorenz Bauer --- tools/lib/bpf/btf