Re: [RFC PATCH] bpftool btf: Add prefix option to dump C

2020-08-06 Thread Andrii Nakryiko
On Thu, Aug 6, 2020 at 12:42 PM Ian Rogers wrote: > > On Thu, Aug 6, 2020 at 10:58 AM Andrii Nakryiko > wrote: > > > > On Fri, Jul 31, 2020 at 8:47 PM Andrii Nakryiko > > wrote: > > > > > > On Fri, Jul 31, 2020 at 6:47 PM Ian Rogers wrote: > > > > > > > > On Tue, Jul 21, 2020 at 11:58 PM Andrii

Re: [RFC PATCH] bpftool btf: Add prefix option to dump C

2020-08-06 Thread Andrii Nakryiko
On Fri, Jul 31, 2020 at 8:47 PM Andrii Nakryiko wrote: > > On Fri, Jul 31, 2020 at 6:47 PM Ian Rogers wrote: > > > > On Tue, Jul 21, 2020 at 11:58 PM Andrii Nakryiko > > wrote: > > > > > > On Tue, Jul 21, 2020 at 10:44 PM Ian Rogers wrote: > > > > > > > > When bpftool dumps types and enum membe

Re: [RFC PATCH] bpftool btf: Add prefix option to dump C

2020-07-31 Thread Andrii Nakryiko
On Fri, Jul 31, 2020 at 6:47 PM Ian Rogers wrote: > > On Tue, Jul 21, 2020 at 11:58 PM Andrii Nakryiko > wrote: > > > > On Tue, Jul 21, 2020 at 10:44 PM Ian Rogers wrote: > > > > > > When bpftool dumps types and enum members into a header file for > > > inclusion the names match those in the ori

Re: [RFC PATCH] bpftool btf: Add prefix option to dump C

2020-07-21 Thread Andrii Nakryiko
On Tue, Jul 21, 2020 at 10:44 PM Ian Rogers wrote: > > When bpftool dumps types and enum members into a header file for > inclusion the names match those in the original source. If the same > header file needs to be included in the original source and the bpf > program, the names of structs, union