All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH bpf-next v10 0/4] bpftool: Add recursive map dumping
@ 2026-11-03 19:01 Tianyi Chen
  2026-11-03 19:01 ` [PATCH bpf-next v10 1/4] bpftool: Reset map info before each query in show and dump loops Tianyi Chen
                   ` (3 more replies)
  0 siblings, 4 replies; 8+ messages in thread
From: Tianyi Chen @ 2026-11-03 19:01 UTC (permalink / raw)
  To: bpf
  Cc: qmo, andrii, eddyz87, ihor.solodrai, linux-kselftest,
	skokovmaksimevg, daniel, ast, hi

Rebased on current bpf-next, including Maxim's merged map-dump fixes.
The map-info fix and its tests are separate patches 1-2, included here
so mixed-BTF dumps also work on kernels without the kernel-side fix.

Changes in v10:
- Split the generic info resets from the recursive implementation.
- Rename the recursive test to avoid the upstream test-file collision.
- Preserve Quentin's Fixes/Acked-by tags and update the ENOTSUPP checks
  for the merged error-message formatter.

All 21 focused subtests pass on x86-64 KVM with Linux 7.2.13 and 7.3.0.
The four map-info regressions fail before the fix and pass after it.
All 33 subtests also pass when combined with the batch-dump series.

v9: https://lore.kernel.org/r/20260926014208.24773-1-hi@tychen.cc
Map-info v1: https://lore.kernel.org/r/cover.1790615923.git.hi@tychen.cc

Tianyi Chen (4):
  bpftool: Reset map info before each query in show and dump loops
  selftests/bpf: Check bpftool map info across mixed BTF maps
  bpftool: Add recursive map dumping
  selftests/bpf: Cover recursive bpftool map dumps

 .../bpf/bpftool/Documentation/bpftool-map.rst |  12 +-
 tools/bpf/bpftool/bash-completion/bpftool     |   3 +
 tools/bpf/bpftool/map.c                       | 154 ++++-
 .../prog_tests/bpftool_map_dump_recursive.c   | 605 ++++++++++++++++++
 .../bpf/prog_tests/bpftool_map_info.c         | 127 ++++
 5 files changed, 888 insertions(+), 13 deletions(-)
 create mode 100644 tools/testing/selftests/bpf/prog_tests/bpftool_map_dump_recursive.c
 create mode 100644 tools/testing/selftests/bpf/prog_tests/bpftool_map_info.c


base-commit: cd5bc55288d4fd999595c8f2af6a5408cbe92a52
-- 
2.56.0


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

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

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-11-03 19:01 [PATCH bpf-next v10 0/4] bpftool: Add recursive map dumping Tianyi Chen
2026-11-03 19:01 ` [PATCH bpf-next v10 1/4] bpftool: Reset map info before each query in show and dump loops Tianyi Chen
2026-11-03 19:01 ` [PATCH bpf-next v10 2/4] selftests/bpf: Check bpftool map info across mixed BTF maps Tianyi Chen
2026-11-04  2:27   ` Alexei Starovoitov
2026-11-03 19:01 ` [PATCH bpf-next v10 3/4] bpftool: Add recursive map dumping Tianyi Chen
2026-11-04  2:28   ` Alexei Starovoitov
2026-11-03 19:01 ` [PATCH bpf-next v10 4/4] selftests/bpf: Cover recursive bpftool map dumps Tianyi Chen
2026-11-03 19:38   ` bot+bpf-ci

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.