selftests/bpf: Add big-endian support to the ldsx test
authorIlya Leoshkevich <iii@linux.ibm.com>
Tue, 19 Sep 2023 10:09:05 +0000 (12:09 +0200)
committerAlexei Starovoitov <ast@kernel.org>
Thu, 21 Sep 2023 21:21:59 +0000 (14:21 -0700)
commit9873ce2e9c68193371c111a1a9f06064e36b9814
treee26af08779af7169e5da2547bbfaaf54e16886c2
parent6cb66eca36f3c6b37447ca79c6d7fc6db339c23e
selftests/bpf: Add big-endian support to the ldsx test

Prepare the ldsx test to run on big-endian systems by adding the
necessary endianness checks around narrow memory accesses.

Signed-off-by: Ilya Leoshkevich <iii@linux.ibm.com>
Link: https://lore.kernel.org/r/20230919101336.2223655-4-iii@linux.ibm.com
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
tools/testing/selftests/bpf/progs/test_ldsx_insn.c
tools/testing/selftests/bpf/progs/verifier_ldsx.c