Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

selftests/bpf: Enable inline bpf_kptr_xchg() test for RV64

Enable inline bpf_kptr_xchg() test for RV64, and the test have passed as
show below:

Summary: 1/0 PASSED, 0 SKIPPED, 0 FAILED

Signed-off-by: Pu Lehui <pulehui@huawei.com>
Signed-off-by: Daniel Borkmann <daniel@iogearbox.net>
Acked-by: Björn Töpel <bjorn@kernel.org>
Link: https://lore.kernel.org/bpf/20240130124659.670321-3-pulehui@huaweicloud.com

authored by

Pu Lehui and committed by
Daniel Borkmann
994ff2f7 69065aa1

+2 -1
+2 -1
tools/testing/selftests/bpf/prog_tests/kptr_xchg_inline.c
··· 13 13 unsigned int cnt; 14 14 int err; 15 15 16 - #if !(defined(__x86_64__) || defined(__aarch64__)) 16 + #if !(defined(__x86_64__) || defined(__aarch64__) || \ 17 + (defined(__riscv) && __riscv_xlen == 64)) 17 18 test__skip(); 18 19 return; 19 20 #endif