From eec2444d9b9d8cd2bf5e7f54d830325c9b2a1c7d Mon Sep 17 00:00:00 2001 From: Chen Pei Date: Mon, 28 Sep 2026 15:18:45 +0800 Subject: [PATCH] selftests/bpf: Enable instruction array test for riscv64 As the riscv64 JIT now supports instruction array (gotox jump tables), enable the corresponding bpf selftest for riscv64. The guard is 64-bit only because the RV32 JIT does not implement gotox. Signed-off-by: Chen Pei Signed-off-by: Alexei Starovoitov Link: https://patch.msgid.link/20260928071845.2432-5-cp0613@linux.alibaba.com --- tools/testing/selftests/bpf/prog_tests/bpf_insn_array.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tools/testing/selftests/bpf/prog_tests/bpf_insn_array.c b/tools/testing/selftests/bpf/prog_tests/bpf_insn_array.c index bfedeed24ac5..4ffe4fe6b78e 100644 --- a/tools/testing/selftests/bpf/prog_tests/bpf_insn_array.c +++ b/tools/testing/selftests/bpf/prog_tests/bpf_insn_array.c @@ -4,7 +4,8 @@ #include #include -#if defined(__x86_64__) || defined(__powerpc__) || defined(__aarch64__) +#if defined(__x86_64__) || defined(__powerpc__) || defined(__aarch64__) || \ + (defined(__riscv) && __riscv_xlen == 64) static int map_create(__u32 map_type, __u32 max_entries) { const char *map_name = "insn_array";