[PATCH bpf-next v2 0/2] selftests/bpf: Fix uprobe_autoattach test
From: Tiezhu Yang
Date: Sat Nov 28 2026 - 04:10:33 EST
Changes in v2:
- Move the definitions of FUNC_REG_ARG_CNT into a new shared
header bpf_arch_regs.h instead of including progs/bpf_misc.h
from user-space, and add bpf_arch_regs.h as a dependency of
test_uprobe_autoattach.bpf.o in Makefile.skel.
- Name it bpf_arch_regs.h rather than uprobe_autoattach.h for
better generality, even though it is currently only used by
uprobe_autoattach.
Tiezhu Yang (2):
selftests/bpf: Move FUNC_REG_ARG_CNT to bpf_arch_regs.h
selftests/bpf: Define FUNC_REG_ARG_CNT for LoongArch
tools/testing/selftests/bpf/Makefile.skel | 2 ++
tools/testing/selftests/bpf/bpf_arch_regs.h | 31 +++++++++++++++++++
.../bpf/prog_tests/uprobe_autoattach.c | 1 +
tools/testing/selftests/bpf/progs/bpf_misc.h | 24 --------------
.../bpf/progs/test_uprobe_autoattach.c | 2 +-
5 files changed, 35 insertions(+), 25 deletions(-)
create mode 100644 tools/testing/selftests/bpf/bpf_arch_regs.h
--
2.42.0