]> www.infradead.org Git - users/dwmw2/linux.git/commitdiff
selftests/bpf: Enable inline bpf_kptr_xchg() test for RV64
authorPu Lehui <pulehui@huawei.com>
Tue, 30 Jan 2024 12:46:59 +0000 (12:46 +0000)
committerDaniel Borkmann <daniel@iogearbox.net>
Thu, 1 Feb 2024 10:35:48 +0000 (11:35 +0100)
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
tools/testing/selftests/bpf/prog_tests/kptr_xchg_inline.c

index 15144943e88b7e7b7a823d108aa81287545d0b4d..7def158da9eb715c80d1915ec102ce62448a1660 100644 (file)
@@ -13,7 +13,8 @@ void test_kptr_xchg_inline(void)
        unsigned int cnt;
        int err;
 
-#if !(defined(__x86_64__) || defined(__aarch64__))
+#if !(defined(__x86_64__) || defined(__aarch64__) || \
+      (defined(__riscv) && __riscv_xlen == 64))
        test__skip();
        return;
 #endif