BPF List
 help / color / mirror / Atom feed
* [PATCH bpf-next v2 0/2] selftests/bpf: Fix uprobe_autoattach test
@ 2026-11-28  9:10 Tiezhu Yang
  2026-11-28  9:10 ` [PATCH bpf-next v2 1/2] selftests/bpf: Move FUNC_REG_ARG_CNT to bpf_arch_regs.h Tiezhu Yang
  2026-11-28  9:10 ` [PATCH bpf-next v2 2/2] selftests/bpf: Define FUNC_REG_ARG_CNT for LoongArch Tiezhu Yang
  0 siblings, 2 replies; 4+ messages in thread
From: Tiezhu Yang @ 2026-11-28  9:10 UTC (permalink / raw)
  To: Alexei Starovoitov, Daniel Borkmann, Andrii Nakryiko,
	Eduard Zingerman, Kumar Kartikeya Dwivedi
  Cc: bpf, linux-kernel

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


^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2026-11-28 17:53 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-11-28  9:10 [PATCH bpf-next v2 0/2] selftests/bpf: Fix uprobe_autoattach test Tiezhu Yang
2026-11-28  9:10 ` [PATCH bpf-next v2 1/2] selftests/bpf: Move FUNC_REG_ARG_CNT to bpf_arch_regs.h Tiezhu Yang
2026-11-28 17:53   ` Alexei Starovoitov
2026-11-28  9:10 ` [PATCH bpf-next v2 2/2] selftests/bpf: Define FUNC_REG_ARG_CNT for LoongArch Tiezhu Yang

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox