Re: [PATCH bpf-next v2 8/8] tools: bpftool: support pretty print with kind_flag set

2018-12-15 Thread Yonghong Song
On 12/15/18 1:49 PM, Martin Lau wrote: > On Fri, Dec 14, 2018 at 03:34:34PM -0800, Yonghong Song wrote: >> The following example shows map pretty print with structures >> which include bitfield members. >> >>enum A { A1, A2, A3, A4, A5 }; >>typedef enum A ___A; >>struct tmp_t { >>

Re: [PATCH bpf-next v2 8/8] tools: bpftool: support pretty print with kind_flag set

2018-12-15 Thread Martin Lau
On Fri, Dec 14, 2018 at 03:34:34PM -0800, Yonghong Song wrote: > The following example shows map pretty print with structures > which include bitfield members. > > enum A { A1, A2, A3, A4, A5 }; > typedef enum A ___A; > struct tmp_t { >char a1:4; >int a2:4; >int :4;

[PATCH bpf-next v2 8/8] tools: bpftool: support pretty print with kind_flag set

2018-12-14 Thread Yonghong Song
The following example shows map pretty print with structures which include bitfield members. enum A { A1, A2, A3, A4, A5 }; typedef enum A ___A; struct tmp_t { char a1:4; int a2:4; int :4; __u32 a3:4; int b; ___A b1:4; enum A b2:4; }; st