]> git.baikalelectronics.ru Git - kernel.git/commit
bpftool: fix BTF raw dump of FWD's fwd_kind
authorAndrii Nakryiko <andriin@fb.com>
Fri, 17 May 2019 06:21:29 +0000 (23:21 -0700)
committerDaniel Borkmann <daniel@iogearbox.net>
Fri, 17 May 2019 12:21:29 +0000 (14:21 +0200)
commit9c955ebd9ac7d48a4a92435098ffab66b6293777
tree74efef8330fb7833afe1ae0a50b110b6f410bb6d
parent5959fb9cf2401692b3d5b7ee14a07783e7ee3ac1
bpftool: fix BTF raw dump of FWD's fwd_kind

kflag bit determines whether FWD is for struct or union. Use that bit.

Fixes: ee1c26e3f31b ("bpftool: add ability to dump BTF types")
Signed-off-by: Andrii Nakryiko <andriin@fb.com>
Signed-off-by: Daniel Borkmann <daniel@iogearbox.net>
tools/bpf/bpftool/btf.c