Re: [PATCH v2 bpf-next 6/7] libbpf: support kernel module ksym externs

2021-01-11 Thread Andrii Nakryiko
On Mon, Jan 11, 2021 at 5:34 PM Yonghong Song wrote: > > > > On 1/11/21 1:37 PM, Andrii Nakryiko wrote: > > On Sun, Jan 10, 2021 at 8:15 PM Yonghong Song wrote: > >> > >> > >> > >> On 1/8/21 2:09 PM, Andrii Nakryiko wrote: > >>> Add support for searching for ksym externs not just in vmlinux BTF,

Re: [PATCH v2 bpf-next 6/7] libbpf: support kernel module ksym externs

2021-01-11 Thread Yonghong Song
On 1/11/21 1:37 PM, Andrii Nakryiko wrote: On Sun, Jan 10, 2021 at 8:15 PM Yonghong Song wrote: On 1/8/21 2:09 PM, Andrii Nakryiko wrote: Add support for searching for ksym externs not just in vmlinux BTF, but across all module BTFs, similarly to how it's done for CO-RE relocations. Kern

Re: [PATCH v2 bpf-next 6/7] libbpf: support kernel module ksym externs

2021-01-11 Thread Andrii Nakryiko
On Mon, Jan 11, 2021 at 11:00 AM Hao Luo wrote: > > Acked-by: Hao Luo , with a couple of nits. > > On Fri, Jan 8, 2021 at 2:09 PM Andrii Nakryiko wrote: > > > > Add support for searching for ksym externs not just in vmlinux BTF, but > > across > > all module BTFs, similarly to how it's done for

Re: [PATCH v2 bpf-next 6/7] libbpf: support kernel module ksym externs

2021-01-11 Thread Andrii Nakryiko
On Sun, Jan 10, 2021 at 8:15 PM Yonghong Song wrote: > > > > On 1/8/21 2:09 PM, Andrii Nakryiko wrote: > > Add support for searching for ksym externs not just in vmlinux BTF, but > > across > > all module BTFs, similarly to how it's done for CO-RE relocations. Kernels > > that expose module BTFs

Re: [PATCH v2 bpf-next 6/7] libbpf: support kernel module ksym externs

2021-01-10 Thread Yonghong Song
On 1/8/21 2:09 PM, Andrii Nakryiko wrote: Add support for searching for ksym externs not just in vmlinux BTF, but across all module BTFs, similarly to how it's done for CO-RE relocations. Kernels that expose module BTFs through sysfs are assumed to support new ldimm64 instruction extension wit

[PATCH v2 bpf-next 6/7] libbpf: support kernel module ksym externs

2021-01-08 Thread Andrii Nakryiko
Add support for searching for ksym externs not just in vmlinux BTF, but across all module BTFs, similarly to how it's done for CO-RE relocations. Kernels that expose module BTFs through sysfs are assumed to support new ldimm64 instruction extension with BTF FD provided in insn[1].imm field, so no e