selftests/bpf: Test BTF's handling of endianness
authorAndrii Nakryiko <andriin@fb.com>
Tue, 29 Sep 2020 04:30:46 +0000 (21:30 -0700)
committerAlexei Starovoitov <ast@kernel.org>
Tue, 29 Sep 2020 19:21:23 +0000 (12:21 -0700)
commited9cf248b9498815d4762fe335539210b8a283a9
tree0f0195a16c9ea0b1346e560d9a21e9efff2402ce
parent3289959b97cac205df006fc79c88f042bf2765ab
selftests/bpf: Test BTF's handling of endianness

Add selftests juggling endianness back and forth to validate BTF's handling of
endianness convertions internally.

Signed-off-by: Andrii Nakryiko <andriin@fb.com>
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
Link: https://lore.kernel.org/bpf/20200929043046.1324350-4-andriin@fb.com
tools/testing/selftests/bpf/prog_tests/btf_endian.c [new file with mode: 0644]