Linux Kernel Selftest development
 help / color / mirror / Atom feed
* [PATCH bpf-next v9 0/2] bpftool: Use batch lookups for map dumps
@ 2026-11-04 19:54 Tianyi Chen
  2026-11-04 19:54 ` [PATCH bpf-next v9 1/2] " Tianyi Chen
  2026-11-04 19:54 ` [PATCH bpf-next v9 2/2] selftests/bpf: Check bpftool batch " Tianyi Chen
  0 siblings, 2 replies; 7+ messages in thread
From: Tianyi Chen @ 2026-11-04 19:54 UTC (permalink / raw)
  To: bpf
  Cc: Tianyi Chen, qmo, andrii, eddyz87, ihor.solodrai, linux-kselftest,
	shuah, daniel, ast, alexei.starovoitov

Use batch lookups for map dumps and continue with individual lookups
from the last printed key after any batch error.

Changes in v9 (selftests only):
- Pre-size RHASH maps to keep asynchronous growth out of the
  order-sensitive dump comparisons (Sashiko).
- Correct the explanation of the injected -EBUSY: it exercises fallback,
  but is not the current hash bucket lock failure errno (BPF CI).

Tested in an x86-64 VM: all 16 batch subtests, 100 repetitions of the
RHASH subtest, and the combination with the recursive series pass.

v8: https://lore.kernel.org/r/cover.1793818387.git.hi@tychen.cc

Tianyi Chen (2):
  bpftool: Use batch lookups for map dumps
  selftests/bpf: Check bpftool batch map dumps

 tools/bpf/bpftool/map.c                       |  97 ++++++--
 .../bpf/prog_tests/bpftool_map_batch.c        | 231 ++++++++++++++++++
 .../selftests/bpf/progs/bpftool_map_batch.c   |  42 ++++
 3 files changed, 355 insertions(+), 15 deletions(-)
 create mode 100644 tools/testing/selftests/bpf/prog_tests/bpftool_map_batch.c
 create mode 100644 tools/testing/selftests/bpf/progs/bpftool_map_batch.c


base-commit: 8fb43ffc3327d12d57d3fbe6f4820b5a522de0d1
-- 
2.56.0


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

end of thread, other threads:[~2026-11-10 16:46 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-11-04 19:54 [PATCH bpf-next v9 0/2] bpftool: Use batch lookups for map dumps Tianyi Chen
2026-11-04 19:54 ` [PATCH bpf-next v9 1/2] " Tianyi Chen
2026-11-04 20:31   ` bot+bpf-ci
2026-11-07 13:12     ` Tianyi Chen
2026-11-10 16:46   ` Quentin Monnet
2026-11-04 19:54 ` [PATCH bpf-next v9 2/2] selftests/bpf: Check bpftool batch " Tianyi Chen
2026-11-10 16:46   ` Quentin Monnet

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