Re: [PATCH bpf-next 0/4] libbpf: add raw BTF type dumping

2020-09-30 Thread Andrii Nakryiko
On Wed, Sep 30, 2020 at 2:29 PM Alexei Starovoitov wrote: > > On Wed, Sep 30, 2020 at 11:22:50AM -0700, Andrii Nakryiko wrote: > > > > If you are saying it should emit it in Go format, Rust format, or > > other language-specific way, then sure, > > Yes. that's what I'm saying. cloudflare and ciliu

Re: [PATCH bpf-next 0/4] libbpf: add raw BTF type dumping

2020-09-30 Thread Alexei Starovoitov
On Wed, Sep 30, 2020 at 11:22:50AM -0700, Andrii Nakryiko wrote: > > If you are saying it should emit it in Go format, Rust format, or > other language-specific way, then sure, Yes. that's what I'm saying. cloudflare and cilium are favoring golang. Hopefully they can adopt skeleton when it's gen

Re: [PATCH bpf-next 0/4] libbpf: add raw BTF type dumping

2020-09-30 Thread Andrii Nakryiko
On Tue, Sep 29, 2020 at 8:18 PM Alexei Starovoitov wrote: > > On Tue, Sep 29, 2020 at 05:44:48PM -0700, Andrii Nakryiko wrote: > > On Tue, Sep 29, 2020 at 5:03 PM Alexei Starovoitov > > wrote: > > > > > > On Tue, Sep 29, 2020 at 04:28:39PM -0700, Andrii Nakryiko wrote: > > > > Add btf_dump__dump_

Re: [PATCH bpf-next 0/4] libbpf: add raw BTF type dumping

2020-09-29 Thread Alexei Starovoitov
On Tue, Sep 29, 2020 at 05:44:48PM -0700, Andrii Nakryiko wrote: > On Tue, Sep 29, 2020 at 5:03 PM Alexei Starovoitov > wrote: > > > > On Tue, Sep 29, 2020 at 04:28:39PM -0700, Andrii Nakryiko wrote: > > > Add btf_dump__dump_type_raw() API that emits human-readable low-level BTF > > > type > > >

Re: [PATCH bpf-next 0/4] libbpf: add raw BTF type dumping

2020-09-29 Thread Andrii Nakryiko
On Tue, Sep 29, 2020 at 5:03 PM Alexei Starovoitov wrote: > > On Tue, Sep 29, 2020 at 04:28:39PM -0700, Andrii Nakryiko wrote: > > Add btf_dump__dump_type_raw() API that emits human-readable low-level BTF > > type > > information, same as bpftool output. bpftool is not switched to this API > > be

Re: [PATCH bpf-next 0/4] libbpf: add raw BTF type dumping

2020-09-29 Thread Alexei Starovoitov
On Tue, Sep 29, 2020 at 04:28:39PM -0700, Andrii Nakryiko wrote: > Add btf_dump__dump_type_raw() API that emits human-readable low-level BTF type > information, same as bpftool output. bpftool is not switched to this API > because bpftool still needs to perform all the same BTF type processing logi

[PATCH bpf-next 0/4] libbpf: add raw BTF type dumping

2020-09-29 Thread Andrii Nakryiko
Add btf_dump__dump_type_raw() API that emits human-readable low-level BTF type information, same as bpftool output. bpftool is not switched to this API because bpftool still needs to perform all the same BTF type processing logic to do JSON output, so benefits are pretty much zero. Raw BTF type ou