Re: [PATCH bpf] tools/bpftool: Add/Fix support for modules btf dump

2020-12-07 Thread Saeed Mahameed
On Mon, 2020-12-07 at 22:48 -0800, Andrii Nakryiko wrote: > On Mon, Dec 7, 2020 at 10:45 PM Saeed Mahameed > wrote: > > On Mon, 2020-12-07 at 22:38 -0800, Andrii Nakryiko wrote: > > > On Mon, Dec 7, 2020 at 10:26 PM Saeed Mahameed > > > wrote: > > > > On Mon, 2020-12-07 at 19:14 -0800, Andrii Nak

Re: [PATCH bpf] tools/bpftool: Add/Fix support for modules btf dump

2020-12-07 Thread Andrii Nakryiko
On Mon, Dec 7, 2020 at 10:45 PM Saeed Mahameed wrote: > > On Mon, 2020-12-07 at 22:38 -0800, Andrii Nakryiko wrote: > > On Mon, Dec 7, 2020 at 10:26 PM Saeed Mahameed > > wrote: > > > On Mon, 2020-12-07 at 19:14 -0800, Andrii Nakryiko wrote: > > > > On Sun, Dec 6, 2020 at 9:21 PM wrote: > > > >

Re: [PATCH bpf] tools/bpftool: Add/Fix support for modules btf dump

2020-12-07 Thread Saeed Mahameed
On Mon, 2020-12-07 at 22:38 -0800, Andrii Nakryiko wrote: > On Mon, Dec 7, 2020 at 10:26 PM Saeed Mahameed > wrote: > > On Mon, 2020-12-07 at 19:14 -0800, Andrii Nakryiko wrote: > > > On Sun, Dec 6, 2020 at 9:21 PM wrote: > > > > From: Saeed Mahameed > > > > [...] > > > > > > > > I am not sure

Re: [PATCH bpf] tools/bpftool: Add/Fix support for modules btf dump

2020-12-07 Thread Andrii Nakryiko
On Mon, Dec 7, 2020 at 10:26 PM Saeed Mahameed wrote: > > On Mon, 2020-12-07 at 19:14 -0800, Andrii Nakryiko wrote: > > On Sun, Dec 6, 2020 at 9:21 PM wrote: > > > From: Saeed Mahameed > > > > > > While playing with BTF for modules, i noticed that executing the > > > command: > > > $ bpftool btf

Re: [PATCH bpf] tools/bpftool: Add/Fix support for modules btf dump

2020-12-07 Thread Saeed Mahameed
On Mon, 2020-12-07 at 19:14 -0800, Andrii Nakryiko wrote: > On Sun, Dec 6, 2020 at 9:21 PM wrote: > > From: Saeed Mahameed > > > > While playing with BTF for modules, i noticed that executing the > > command: > > $ bpftool btf dump id > > > > Fails due to lack of information in the BTF data. >

Re: [PATCH bpf] tools/bpftool: Add/Fix support for modules btf dump

2020-12-07 Thread Andrii Nakryiko
On Sun, Dec 6, 2020 at 9:21 PM wrote: > > From: Saeed Mahameed > > While playing with BTF for modules, i noticed that executing the command: > $ bpftool btf dump id > > Fails due to lack of information in the BTF data. > > Maybe I am missing a step but actually adding the support for this is > v

[PATCH bpf] tools/bpftool: Add/Fix support for modules btf dump

2020-12-06 Thread saeed
From: Saeed Mahameed While playing with BTF for modules, i noticed that executing the command: $ bpftool btf dump id Fails due to lack of information in the BTF data. Maybe I am missing a step but actually adding the support for this is very simple. To completely parse modules BTF data, we ne