Re: [PATCH bpf-next 04/11] libbpf: implement basic split BTF support

2020-11-04 Thread Andrii Nakryiko
On Mon, Nov 2, 2020 at 9:41 PM Song Liu wrote: > > > > > On Nov 2, 2020, at 9:02 PM, Andrii Nakryiko > > wrote: > > > > On Mon, Nov 2, 2020 at 3:24 PM Song Liu wrote: > >> > >> > >> > >>> On Oct 28, 2020, at 5:58 PM, Andrii Nakryiko wrote: > >>> > >> > >> [...] > >> > >>> > >>> BTF deduplicati

Re: [PATCH bpf-next 04/11] libbpf: implement basic split BTF support

2020-11-02 Thread Song Liu
> On Nov 2, 2020, at 9:02 PM, Andrii Nakryiko wrote: > > On Mon, Nov 2, 2020 at 3:24 PM Song Liu wrote: >> >> >> >>> On Oct 28, 2020, at 5:58 PM, Andrii Nakryiko wrote: >>> >> >> [...] >> >>> >>> BTF deduplication is not yet supported for split BTF and support for it will >>> be added

Re: [PATCH bpf-next 04/11] libbpf: implement basic split BTF support

2020-11-02 Thread Andrii Nakryiko
On Mon, Nov 2, 2020 at 3:24 PM Song Liu wrote: > > > > > On Oct 28, 2020, at 5:58 PM, Andrii Nakryiko wrote: > > > > [...] > > > > > BTF deduplication is not yet supported for split BTF and support for it will > > be added in separate patch. > > > > Signed-off-by: Andrii Nakryiko > > Acked-by: S

Re: [PATCH bpf-next 04/11] libbpf: implement basic split BTF support

2020-11-02 Thread Song Liu
> On Oct 28, 2020, at 5:58 PM, Andrii Nakryiko wrote: > [...] > > BTF deduplication is not yet supported for split BTF and support for it will > be added in separate patch. > > Signed-off-by: Andrii Nakryiko Acked-by: Song Liu With a couple nits: > --- > tools/lib/bpf/btf.c | 205

[PATCH bpf-next 04/11] libbpf: implement basic split BTF support

2020-10-28 Thread Andrii Nakryiko
Support split BTF operation, in which one BTF (base BTF) provides basic set of types and strings, while another one (split BTF) builds on top of base's types and strings and adds its own new types and strings. From API standpoint, the fact that the split BTF is built on top of the base BTF is trans