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)
commitce6ec47a10199d5504dc40a4f0069ef1c4878a4a
tree6a83ca8a6c32ed618e5417f068f97d1906ebfca7
parenta80eba20ed596198f0a179466f2944612bcab320
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