selftests/bpf: Enable kptr_xchg_inline test for arm64
authorHou Tao <houtao1@huawei.com>
Fri, 19 Jan 2024 10:25:29 +0000 (18:25 +0800)
committerAlexei Starovoitov <ast@kernel.org>
Tue, 23 Jan 2024 23:11:23 +0000 (15:11 -0800)
Now arm64 bpf jit has enable bpf_jit_supports_ptr_xchg(), so enable
the test for arm64 as well.

Signed-off-by: Hou Tao <houtao1@huawei.com>
Link: https://lore.kernel.org/r/20240119102529.99581-3-houtao@huaweicloud.com
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
tools/testing/selftests/bpf/prog_tests/kptr_xchg_inline.c

index 5a4bee1cf9707c2bcb47a95f64bebf16012d56f0..15144943e88b7e7b7a823d108aa81287545d0b4d 100644 (file)
@@ -13,7 +13,7 @@ void test_kptr_xchg_inline(void)
        unsigned int cnt;
        int err;
 
-#if !defined(__x86_64__)
+#if !(defined(__x86_64__) || defined(__aarch64__))
        test__skip();
        return;
 #endif