Re: [PATCH bpf-next] bpf: log struct/union attribute for forward type

2018-12-18 Thread Daniel Borkmann
On 12/18/2018 10:43 PM, Yonghong Song wrote: > Current btf internal verbose logger logs fwd type as > [2] FWD A type_id=0 > where A is the type name. > > Commit 9d5f9f701b18 ("bpf: btf: fix struct/union/fwd types > with kind_flag") introduced kind_flag which can be used > to distinguish whether

[PATCH bpf-next] bpf: log struct/union attribute for forward type

2018-12-18 Thread Yonghong Song
Current btf internal verbose logger logs fwd type as [2] FWD A type_id=0 where A is the type name. Commit 9d5f9f701b18 ("bpf: btf: fix struct/union/fwd types with kind_flag") introduced kind_flag which can be used to distinguish whether a forward type is a struct or union. Also, "type_id=0" doe