BPF List
 help / color / mirror / Atom feed
* [PATCH bpf-next 0/2] bpftool: Support symbolic map creation flags
@ 2026-09-06 17:07 Tianyi Chen
  2026-09-06 17:07 ` [PATCH bpf-next 1/2] bpftool: Accept " Tianyi Chen
                   ` (2 more replies)
  0 siblings, 3 replies; 16+ messages in thread
From: Tianyi Chen @ 2026-09-06 17:07 UTC (permalink / raw)
  To: bpf
  Cc: Tianyi Chen, Quentin Monnet, Alexei Starovoitov, Daniel Borkmann,
	Andrii Nakryiko, Eduard Zingerman, Kumar Kartikeya Dwivedi,
	Martin KaFai Lau, Song Liu, Yonghong Song, Jiri Olsa,
	Emil Tsalapatis, Ihor Solodrai, Shuah Khan, linux-kernel,
	linux-kselftest

This series adds comma-separated BPF_F_* names to map create flags,
while retaining base-0 numeric input. It also documents the syntax,
completes names within lists, and tests the resulting kernel map flags
and invalid-input diagnostics.

This addresses the map creation part of:
https://github.com/libbpf/bpftool/issues/57

The series is based on bpf-next and is independent of the ring buffer
and batch-dump series sent alongside it.

Validation:
- Full bpftool build and focused BPF selftests build with LLVM 20.
- All 29 bpftool_map_flags subtests passed in an x86-64 KVM guest
  running Linux 7.3.0-rc1, using a bpftool built with only this series.
- Bash syntax and actual completion candidates checked with and without
  comma in COMP_WORDBREAKS; bpftool-map man page generated successfully.

Only focused BPF tests were run; this does not claim a full BPF selftest
suite run. Strict checkpatch has no errors or checks; its new-file
warning is covered by the existing BPF/selftests MAINTAINERS patterns.


Integration check: these three independent series also applied and built
together with my previously posted recursive map-dump v2 series. The
combined 64 subtests passed with no skips or failures in the same guest.

Tianyi Chen (2):
  bpftool: Accept symbolic map creation flags
  selftests/bpf: Cover symbolic bpftool map creation flags

 .../bpf/bpftool/Documentation/bpftool-map.rst | 13 ++-
 tools/bpf/bpftool/bash-completion/bpftool     | 25 ++++-
 tools/bpf/bpftool/map.c                       | 77 ++++++++++++++-
 .../bpf/prog_tests/bpftool_map_flags.c        | 99 +++++++++++++++++++
 4 files changed, 208 insertions(+), 6 deletions(-)
 create mode 100644 tools/testing/selftests/bpf/prog_tests/bpftool_map_flags.c

-- 
2.55.0


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

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

Thread overview: 16+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-09-06 17:07 [PATCH bpf-next 0/2] bpftool: Support symbolic map creation flags Tianyi Chen
2026-09-06 17:07 ` [PATCH bpf-next 1/2] bpftool: Accept " Tianyi Chen
2026-09-06 18:16   ` bot+bpf-ci
2026-09-06 17:07 ` [PATCH bpf-next 2/2] selftests/bpf: Cover symbolic bpftool " Tianyi Chen
2026-09-07  1:20 ` [PATCH bpf-next v2 0/2] bpftool: Support symbolic " Tianyi Chen
2026-09-07  1:20   ` [PATCH bpf-next v2 1/2] bpftool: Accept " Tianyi Chen
2026-09-07  2:04     ` bot+bpf-ci
2026-09-07  1:20   ` [PATCH bpf-next v2 2/2] selftests/bpf: Cover symbolic bpftool " Tianyi Chen
2026-09-07  2:04     ` bot+bpf-ci
2026-09-07  2:15   ` [PATCH bpf-next v3 0/2] bpftool: Support symbolic " Tianyi Chen
2026-09-07  2:15     ` [PATCH bpf-next v3 1/2] bpftool: Accept " Tianyi Chen
2026-09-07  4:25       ` bot+bpf-ci
2026-09-07  5:14         ` Tianyi Chen
2026-09-07  2:15     ` [PATCH bpf-next v3 2/2] selftests/bpf: Cover symbolic bpftool " Tianyi Chen
     [not found]       ` <88e01da6d4b68aae7b8df6c0956b78f082bcedab7eb588631405031f1425b146@mail.kernel.org>
2026-09-07  5:15         ` [bpf-next,v3,1/2] bpftool: Accept symbolic " Tianyi Chen
2026-09-11  2:53           ` Tianyi Chen

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