]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commit
tools/bpf: add bpffs pretty print btf test for hash/lru_hash maps
authorYonghong Song <yhs@fb.com>
Thu, 9 Aug 2018 15:55:21 +0000 (08:55 -0700)
committerDaniel Borkmann <daniel@iogearbox.net>
Fri, 10 Aug 2018 18:54:07 +0000 (20:54 +0200)
commitaf2a81dab44758de0b94679615ea75e8ee30aace
tree007389b3325d0ab9c5ce2a15f8b2116e1fbf34c8
parent699c86d6ec21d0f885d12800249d138659de8489
tools/bpf: add bpffs pretty print btf test for hash/lru_hash maps

Pretty print tests for hash/lru_hash maps are added in test_btf.c.
The btf type blob is the same as pretty print array map test.
The test result:
  $ mount -t bpf bpf /sys/fs/bpf
  $ ./test_btf -p
    BTF pretty print array......OK
    BTF pretty print hash......OK
    BTF pretty print lru hash......OK
    PASS:3 SKIP:0 FAIL:0

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