Re: [PATCH v2 bpf-next 3/4] libbpf: BTF dumper support for typed data

2021-01-22 Thread Andrii Nakryiko
On Fri, Jan 22, 2021 at 8:31 AM Alan Maguire wrote: > > On Thu, 21 Jan 2021, Andrii Nakryiko wrote: > > > On Wed, Jan 20, 2021 at 10:56 PM Andrii Nakryiko > > wrote: > > > > > > On Sun, Jan 17, 2021 at 2:22 PM Alan Maguire > > > wrote: > > > > > > > > Add a BTF dumper for typed data, so that th

Re: [PATCH v2 bpf-next 3/4] libbpf: BTF dumper support for typed data

2021-01-22 Thread Alan Maguire
On Thu, 21 Jan 2021, Andrii Nakryiko wrote: > On Wed, Jan 20, 2021 at 10:56 PM Andrii Nakryiko > wrote: > > > > On Sun, Jan 17, 2021 at 2:22 PM Alan Maguire > > wrote: > > > > > > Add a BTF dumper for typed data, so that the user can dump a typed > > > version of the data provided. > > > > > >

Re: [PATCH v2 bpf-next 3/4] libbpf: BTF dumper support for typed data

2021-01-21 Thread Andrii Nakryiko
On Wed, Jan 20, 2021 at 10:56 PM Andrii Nakryiko wrote: > > On Sun, Jan 17, 2021 at 2:22 PM Alan Maguire wrote: > > > > Add a BTF dumper for typed data, so that the user can dump a typed > > version of the data provided. > > > > The API is > > > > int btf_dump__emit_type_data(struct btf_dump *d,

Re: [PATCH v2 bpf-next 3/4] libbpf: BTF dumper support for typed data

2021-01-20 Thread Andrii Nakryiko
On Sun, Jan 17, 2021 at 2:22 PM Alan Maguire wrote: > > Add a BTF dumper for typed data, so that the user can dump a typed > version of the data provided. > > The API is > > int btf_dump__emit_type_data(struct btf_dump *d, __u32 id, > const struct btf_dump_emit_type_da

[PATCH v2 bpf-next 3/4] libbpf: BTF dumper support for typed data

2021-01-17 Thread Alan Maguire
Add a BTF dumper for typed data, so that the user can dump a typed version of the data provided. The API is int btf_dump__emit_type_data(struct btf_dump *d, __u32 id, const struct btf_dump_emit_type_data_opts *opts, void *data); ...where