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

