Re: vmlinux BTF as a module (was Re: [PATCH bpf-next v4 0/3] Allow mmap of /sys/kernel/btf/vmlinux)

2025-05-23 Thread Andrii Nakryiko
On Thu, May 22, 2025 at 6:04 PM Alexei Starovoitov wrote: > > On Wed, May 21, 2025 at 8:00 AM Alan Maguire wrote: > > > > > Hi Alan, > > > > > > Thanks for taking a look at this. I've been following your related effort > > > to allow /sys/kernel/btf/vmlinux as a module in support of small systems

Re: vmlinux BTF as a module (was Re: [PATCH bpf-next v4 0/3] Allow mmap of /sys/kernel/btf/vmlinux)

2025-05-22 Thread Alexei Starovoitov
On Wed, May 21, 2025 at 8:00 AM Alan Maguire wrote: > > > Hi Alan, > > > > Thanks for taking a look at this. I've been following your related effort > > to allow /sys/kernel/btf/vmlinux as a module in support of small systems > > with kernel-size constraints, and wondered how this series might aff

vmlinux BTF as a module (was Re: [PATCH bpf-next v4 0/3] Allow mmap of /sys/kernel/btf/vmlinux)

2025-05-21 Thread Alan Maguire
> Hi Alan, > > Thanks for taking a look at this. I've been following your related effort > to allow /sys/kernel/btf/vmlinux as a module in support of small systems > with kernel-size constraints, and wondered how this series might affect > that work? Such support would be well-received in the embe

Re: [PATCH bpf-next v4 0/3] Allow mmap of /sys/kernel/btf/vmlinux

2025-05-20 Thread Tony Ambardar
On Thu, May 15, 2025 at 08:51:45AM +0100, Alan Maguire wrote: > > I'd like to cut down the memory usage of parsing vmlinux BTF in ebpf-go. > > With some upcoming changes the library is sitting at 5MiB for a parse. > > Most of that memory is simply copying the BTF blob into user space. > > By allowi

Re: [PATCH bpf-next v4 0/3] Allow mmap of /sys/kernel/btf/vmlinux

2025-05-15 Thread Alan Maguire
> I'd like to cut down the memory usage of parsing vmlinux BTF in ebpf-go. > With some upcoming changes the library is sitting at 5MiB for a parse. > Most of that memory is simply copying the BTF blob into user space. > By allowing vmlinux BTF to be mmapped read-only into user space I can > cut mem

[PATCH bpf-next v4 0/3] Allow mmap of /sys/kernel/btf/vmlinux

2025-05-10 Thread Lorenz Bauer
I'd like to cut down the memory usage of parsing vmlinux BTF in ebpf-go. With some upcoming changes the library is sitting at 5MiB for a parse. Most of that memory is simply copying the BTF blob into user space. By allowing vmlinux BTF to be mmapped read-only into user space I can cut memory usage