Re: [PATCH v4 bpf-next 01/14] libbpf: add helpers for working with BTF types

2019-08-07 Thread Andrii Nakryiko
On Wed, Aug 7, 2019 at 12:31 PM Alexei Starovoitov wrote: > > On Tue, Aug 06, 2019 at 10:37:53PM -0700, Andrii Nakryiko wrote: > > Add lots of frequently used helpers that simplify working with BTF > > types. > > > > Signed-off-by: Andrii Nakryiko > .. > > +/* get bitfield size of a member, assum

Re: [PATCH v4 bpf-next 01/14] libbpf: add helpers for working with BTF types

2019-08-07 Thread Alexei Starovoitov
On Tue, Aug 06, 2019 at 10:37:53PM -0700, Andrii Nakryiko wrote: > Add lots of frequently used helpers that simplify working with BTF > types. > > Signed-off-by: Andrii Nakryiko .. > +/* get bitfield size of a member, assuming t is BTF_KIND_STRUCT or > + * BTF_KIND_UNION. If member is not a bitfi

[PATCH v4 bpf-next 01/14] libbpf: add helpers for working with BTF types

2019-08-06 Thread Andrii Nakryiko
Add lots of frequently used helpers that simplify working with BTF types. Signed-off-by: Andrii Nakryiko --- tools/lib/bpf/btf.h | 176 1 file changed, 176 insertions(+) diff --git a/tools/lib/bpf/btf.h b/tools/lib/bpf/btf.h index 88a52ae56fc6..63c93