Messages in this thread | | | From | Alexei Starovoitov <> | Date | Fri, 17 Jan 2020 14:02:58 -0800 | Subject | Re: [PATCH bpf-next v2] libbpf: Load btf_vmlinux only once per object. |
| |
On Fri, Jan 17, 2020 at 1:55 PM Andrii Nakryiko <andrii.nakryiko@gmail.com> wrote: > > On Fri, Jan 17, 2020 at 1:28 PM KP Singh <kpsingh@chromium.org> wrote: > > > > From: KP Singh <kpsingh@google.com> > > > > As more programs (TRACING, STRUCT_OPS, and upcoming LSM) use vmlinux > > BTF information, loading the BTF vmlinux information for every program > > in an object is sub-optimal. The fix was originally proposed in: > > > > https://lore.kernel.org/bpf/CAEf4BzZodr3LKJuM7QwD38BiEH02Cc1UbtnGpVkCJ00Mf+V_Qg@mail.gmail.com/ > > > > The btf_vmlinux is populated in the object if any of the programs in > > the object requires it just before the programs are loaded and freed > > after the programs finish loading. > > > > Reported-by: Andrii Nakryiko <andrii.nakryiko@gmail.com> > > Reviewed-by: Brendan Jackman <jackmanb@chromium.org> > > Signed-off-by: KP Singh <kpsingh@google.com> > > --- > > Looks great! > > Acked-by: Andrii Nakryiko <andriin@fb.com>
Applied. Thanks
| |