]> git.baikalelectronics.ru Git - kernel.git/commit
tools/bpf: refactor test_btf pretty printing for multiple map value formats
authorYonghong Song <yhs@fb.com>
Wed, 16 Jan 2019 01:07:49 +0000 (17:07 -0800)
committerDaniel Borkmann <daniel@iogearbox.net>
Wed, 16 Jan 2019 21:53:44 +0000 (22:53 +0100)
commitfdf78024fddfb951cc2e71688f025b2c8dc7f1aa
tree6a83ca8a6c32ed618e5417f068f97d1906ebfca7
parent0be63c250797502f5b7511ac83ef3a52f50e9fba
tools/bpf: refactor test_btf pretty printing for multiple map value formats

The test_btf pretty print is refactored in order to easily
support multiple map value formats. The next patch will
add __int128 type tests which needs macro guard __SIZEOF_INT128__.
There is no functionality change with this patch.

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