Skip to content

Commit 20054d4

Browse files
peilin-yeKernel Patches Daemon
authored and
Kernel Patches Daemon
committed
selftests/bpf: Enable non-arena load-acquire/store-release selftests for riscv64
For riscv64, enable all BPF_{LOAD_ACQ,STORE_REL} selftests except the arena_atomics/* ones (not guarded behind CAN_USE_LOAD_ACQ_STORE_REL), since arena access is not yet supported. Signed-off-by: Peilin Ye <[email protected]>
1 parent 45c8195 commit 20054d4

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

tools/testing/selftests/bpf/progs/bpf_misc.h

+3-2
Original file line numberDiff line numberDiff line change
@@ -225,8 +225,9 @@
225225
#define CAN_USE_BPF_ST
226226
#endif
227227

228-
#if __clang_major__ >= 18 && defined(ENABLE_ATOMICS_TESTS) && \
229-
(defined(__TARGET_ARCH_arm64) || defined(__TARGET_ARCH_x86))
228+
#if __clang_major__ >= 18 && defined(ENABLE_ATOMICS_TESTS) && \
229+
(defined(__TARGET_ARCH_arm64) || defined(__TARGET_ARCH_x86) || \
230+
(defined(__TARGET_ARCH_riscv) && __riscv_xlen == 64))
230231
#define CAN_USE_LOAD_ACQ_STORE_REL
231232
#endif
232233

0 commit comments

Comments
 (0)