selftests/bpf: Add byte swapping selftest
authorAndrii Nakryiko <andriin@fb.com>
Tue, 30 Jun 2020 15:21:25 +0000 (08:21 -0700)
committerDaniel Borkmann <daniel@iogearbox.net>
Wed, 1 Jul 2020 07:06:12 +0000 (09:06 +0200)
commit8c18311067d0f0d5f332b9e1f3859eb15e23332d
treeff8eefe046404af6e56263649e7bbf06e0198748
parent30ad688094bcfe8721bfd4003f6a20c9b6ddf964
selftests/bpf: Add byte swapping selftest

Add simple selftest validating byte swap built-ins and compile-time macros.

Signed-off-by: Andrii Nakryiko <andriin@fb.com>
Signed-off-by: Daniel Borkmann <daniel@iogearbox.net>
Acked-by: Yonghong Song <yhs@fb.com>
Link: https://lore.kernel.org/bpf/20200630152125.3631920-3-andriin@fb.com
tools/testing/selftests/bpf/prog_tests/endian.c [new file with mode: 0644]
tools/testing/selftests/bpf/progs/test_endian.c [new file with mode: 0644]