Re: [PATCH v2 bpf-next 3/3] libbpf: add BTF-defined map-in-map support

2020-04-28 Thread Andrii Nakryiko
On Tue, Apr 28, 2020 at 11:03 AM Alexei Starovoitov wrote: > > On Mon, Apr 27, 2020 at 11:41:39PM -0700, Andrii Nakryiko wrote: > > diff --git a/tools/lib/bpf/bpf_helpers.h b/tools/lib/bpf/bpf_helpers.h > > index 60aad054eea1..e3a6e9a1f5b4 100644 > > --- a/tools/lib/bpf/bpf_helpers.h > > +++ b/too

Re: [PATCH v2 bpf-next 3/3] libbpf: add BTF-defined map-in-map support

2020-04-28 Thread Alexei Starovoitov
On Mon, Apr 27, 2020 at 11:41:39PM -0700, Andrii Nakryiko wrote: > diff --git a/tools/lib/bpf/bpf_helpers.h b/tools/lib/bpf/bpf_helpers.h > index 60aad054eea1..e3a6e9a1f5b4 100644 > --- a/tools/lib/bpf/bpf_helpers.h > +++ b/tools/lib/bpf/bpf_helpers.h > @@ -12,6 +12,7 @@ > > #define __uint(name,

Re: [PATCH v2 bpf-next 3/3] libbpf: add BTF-defined map-in-map support

2020-04-28 Thread Toke Høiland-Jørgensen
Andrii Nakryiko writes: > As discussed at LPC 2019 ([0]), this patch brings (a quite belated) support > for declarative BTF-defined map-in-map support in libbpf. It allows to define > ARRAY_OF_MAPS and HASH_OF_MAPS BPF maps without any user-space initialization > code involved. > > Additionally,