tools/bpf: test kernel bpffs map pretty print with struct kind_flag
authorYonghong Song <yhs@fb.com>
Sun, 16 Dec 2018 06:13:56 +0000 (22:13 -0800)
committerDaniel Borkmann <daniel@iogearbox.net>
Tue, 18 Dec 2018 00:12:00 +0000 (01:12 +0100)
commitd0ebce687edc5d5a899b3de6b1adbfa0c5b64021
tree7d293fefc4feb90b5ab42c03b165e7f1816ff8c8
parentcd9de5d3d64b472f67a5ac8520f79ce42f7583b8
tools/bpf: test kernel bpffs map pretty print with struct kind_flag

The new tests are added to test bpffs map pretty print in kernel with kind_flag
for structure type.

  $ test_btf -p
  ......
  BTF pretty print array(#1)......OK
  BTF pretty print array(#2)......OK
  PASS:8 SKIP:0 FAIL:0

Acked-by: Martin KaFai Lau <kafai@fb.com>
Signed-off-by: Yonghong Song <yhs@fb.com>
Signed-off-by: Daniel Borkmann <daniel@iogearbox.net>
tools/testing/selftests/bpf/test_btf.c