]> git.hungrycats.org Git - linux/commit
selftests/bpf: Check if distilled base inherits source endianness
authorEduard Zingerman <eddyz87@gmail.com>
Fri, 30 Aug 2024 17:34:06 +0000 (10:34 -0700)
committerAndrii Nakryiko <andrii@kernel.org>
Fri, 30 Aug 2024 18:03:16 +0000 (11:03 -0700)
commit181b0d1af5d5b2ba8996fa715382cbfbfef46b6e
treef04e1c385e3df3656839bf00318a860bce428ebd
parentda18bfa59d403040d8bcba1284285916fe9e4425
selftests/bpf: Check if distilled base inherits source endianness

Create a BTF with endianness different from host, make a distilled
base/split BTF pair from it, dump as raw bytes, import again and
verify that endianness is preserved.

Reviewed-by: Alan Maguire <alan.maguire@oracle.com>
Tested-by: Alan Maguire <alan.maguire@oracle.com>
Signed-off-by: Eduard Zingerman <eddyz87@gmail.com>
Signed-off-by: Andrii Nakryiko <andrii@kernel.org>
Link: https://lore.kernel.org/bpf/20240830173406.1581007-1-eddyz87@gmail.com
tools/testing/selftests/bpf/prog_tests/btf_distill.c