Re: [PATCH bpf-next 1/2] btf: allow mmap of vmlinux btf
From: Lorenz Bauer
Date: Fri May 02 2025 - 06:20:04 EST
On Thu, May 1, 2025 at 9:26 PM Alexei Starovoitov
<alexei.starovoitov@xxxxxxxxx> wrote:
> > +
> > + return vm_iomap_memory(vma, virt_to_phys(__start_BTF), btf_size);
>
> and this one should probably be vm_insert_pages().
> Since it's not an IO area.
FYI I went with open coding with remap_pfn_range since that allows me
to avoid struct page.
Lorenz