[PATCH bpf-next v1 0/3] selftests/bpf: Enable instructions array, indirect calls tests for LoongArch

From: Tiezhu Yang

Date: Sun Nov 22 2026 - 23:51:02 EST


Tested on the following unmerged JIT patches:

LoongArch: BPF: Support instructions array, indirect jumps and calls
https://lore.kernel.org/loongarch/20261123043907.20225-1-yangtiezhu@xxxxxxxxxxx/T/#u

here are the test results:

$ sudo ./test_progs -t bpf_insn_array | tail -1
Summary: 1/20 PASSED, 0 SKIPPED, 0/0 FAILED

$ sudo ./test_progs-cpuv4 -t gotox | tail -1
Summary: 2/14 PASSED, 0 SKIPPED, 0/0 FAILED

$ sudo ./test_progs -t callx | tail -1
Summary: 6/89 PASSED, 6 SKIPPED, 0/0 FAILED

Tiezhu Yang (3):
selftests/bpf: Enable instruction array test for LoongArch
selftests/bpf: Allow unaligned access in callx_rodata_misaligned_read
selftests/bpf: Enable callx related testcases for LoongArch

tools/testing/selftests/bpf/prog_tests/bpf_insn_array.c | 2 +-
tools/testing/selftests/bpf/prog_tests/callx_func_ptr_map.c | 2 +-
tools/testing/selftests/bpf/prog_tests/callx_rodata_lskel.c | 2 +-
tools/testing/selftests/bpf/progs/bpf_misc.h | 3 ++-
tools/testing/selftests/bpf/progs/verifier_callx_rodata.c | 1 +
5 files changed, 6 insertions(+), 4 deletions(-)

--
2.42.0