From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-pz2-f7.google.com (mail-pz2-f7.google.com [74.125.228.7]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 251473E49E2 for ; Fri, 11 Sep 2026 02:50:52 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=74.125.228.7 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1789095054; cv=none; b=KL8lWo7IEdARDOa1RMjhkHSFdW2SbMRnU66FfQuAiDZ5EDBU844aLAkskuw0EGYWti8T6nVYyIgx8sGwZG3bSEWR/dDLrXTJPNudgFUmNmrLE27EP6KJ29X3RBtXNOSwPuWWxksS1t49LsbBKpeWhjE6phpl4OgnwKf4FmItQHo= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1789095054; c=relaxed/simple; bh=epmlN9OVx9BrZJP/DwEn2fIy+3NjmkMOFdqRGbLZu6c=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=OUJk4GDac6L/tbmONyF4bOgUO5vYLhrIzIvSDabPSE9A7ShOxthI6jJoju7yYIyTXIyNtKTWY8EmjxGLNPdnc62LiFVkPrQUa/WeAmQknRus4Tvg0WdtiUt95wxZvXarfKfEvyg3YhRB9UPFeROOYgtkQZl1peEaUuoBa+XLswU= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com; spf=pass smtp.mailfrom=gmail.com; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b=OykOHBF0; arc=none smtp.client-ip=74.125.228.7 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="OykOHBF0" Received: by mail-pz2-f7.google.com with SMTP id 41be03b00d2f7-cc1ddb3ba3eso203421a12.1 for ; Thu, 10 Sep 2026 19:50:52 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20251104; t=1789095052; x=1789699852; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to:content-type; bh=wqyR2wao86Q9nPBO5k9SKbv+jrQgU0fSqFyrHKM0Jqo=; b=OykOHBF01ggKcAbZAG3N4O+BakrrhbuOstf3jHIeb3RBAjiJIpA3M8lwyxddpjhpcU Q0/9EvbygE+9gzUP8I3bWlireoLoZ51H5IzwZeVuTv6lJx4HrGnhpo6tmtpBZc1ENxrw PkvdZuQ1rcHlGbWelAfnl76jgkvML045KH/YBh4OQJ2G7MXw15Z7nRJFnkCorfLRHOTo z+KO/5iGmxGX7NvsaCTyxyM40cdQyPxn9N9sw2h1xPIMcHstufGo6qHQj9ORRhQ6tqX4 Dom38DjyLPFV3/Mw88JhFLubC7GggDpprfzqPGCs4rTopUpFHIWiLYF2xhyoy83962sC /0Hw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1789095052; x=1789699852; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-gg:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to:content-type; bh=wqyR2wao86Q9nPBO5k9SKbv+jrQgU0fSqFyrHKM0Jqo=; b=KNytjU+cZIDs/hYIj9+y4caV0Vw5qpwlh75S+84AelODJIb9oHxHBdWBHZ63wQvVda 0HY/AgE8VWa7rDu9ILho+P1Id3zKRwJiQLoMhzyZyWBIFDChH6sCGQ8fmiMbM+YNPUlF 2F2nbQ7gJsbB0PrLIy10scW/bsEQ+43ioCeJF5e+5aJBYtiCDxKJ9q2DR3WyRInjfpdP 9pAE8iMpZS7VSVdYHYA9igHR3KSrkZum8bcVyNHFt3JSHMUmzNV+vMdoSHygNp4tN/7I vXd2HhrKXoLN6zdPKu/qM7cLD/Smu689ALnl7C0jG8YyX48SWD0ilCLNl47buJgijhXy Asgg== X-Forwarded-Encrypted: i=1; AKwUvBw9d5imTqAaPsah69w+78ZQoVI06uFmBEi/QOj/WvqOQFXaXjAVAtB1UERNs9rTps8sLq3gsyzjVA5taRZIIFw=@vger.kernel.org X-Gm-Message-State: AFuF++luKj6hcWIfAMB3k9MH1CJ97VCj7dAq8WvFvNnvcjlIFsqQGDX0 kM72Ms0yV8sbYEafUt8u0iGpSaY4LhSGxtB8OHwGwcmdoJ9t26RimdSl X-Gm-Gg: AYBFou2Rb9wlRVS05lKfURIFHXfhRaPJF/YUhirkpHkRMrxLNwFyT+gBO7m6kvhb32c p0j3UOiP3/0rabWELNP+58E7OqeJSmgBOXGWOuyDeBuEzUtOAwpx3Rbl3SFPGTgfSUnKkLtAptW mLeH7vKDUBYkI2Si2A13B0SYJpFy2kFWVeaPHkH9l5eaYa7BqsB0vM1qMlO69kGzaiEIm3jYsog YDqMX6bMBB0X44cjdQjVederWqhcTzJkNq6w+tLwFFD7mOGhXpoqk05ouN+gMoVepBrV7qFloJo d6lPC2GpqPOmXfY8fjkH+XXQL0u7mngFrAyKKwgqJnR2UGUUEyFkBtqd3CmIQYCQkTj8bviuGRz gIa4UpkX1T8ijBtXgIOsIbNaQ9xSZJ4LK8WCMjY45QnipdPaFnBRDwaHElfgzgKLFmf4uR5YsR6 61UvgGf2AP1ENmZiyHIpxc1X6i53Ya+QIFJrOeU+87rdj0LgOf6zmb109H6u5KEQIn X-Received: by 2002:a05:6a00:218e:b0:857:72f8:dc94 with SMTP id d2e1a72fcca58-86b31dfa566mr3130465b3a.21.1789095052137; Thu, 10 Sep 2026 19:50:52 -0700 (PDT) Received: from 192.168.5.7 ([69.5.53.41]) by smtp.gmail.com with ESMTPSA id d2e1a72fcca58-86b29bb8f28sm385299b3a.40.2026.09.10.19.50.48 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 10 Sep 2026 19:50:51 -0700 (PDT) From: Tianyi Chen To: qmo@kernel.org, bpf@vger.kernel.org Cc: andrii@kernel.org, eddyz87@gmail.com, ihor.solodrai@linux.dev, linux-kselftest@vger.kernel.org Subject: [PATCH bpf-next v4 0/2] bpftool: Support symbolic map creation flags Date: Fri, 11 Sep 2026 10:50:42 +0800 Message-ID: <20260911025044.190540-1-diannaaav@gmail.com> X-Mailer: git-send-email 2.55.0 Precedence: bulk X-Mailing-List: linux-kselftest@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Add comma-separated BPF_F_* names to map create flags while retaining base-0 numeric input, with matching documentation, completion and tests. Changes in v4: - Add FLAGS to the map-create synopsis in the manual. - Rebase onto current bpf-next and shorten the commit descriptions. - Use Assisted-by: LLM. The v3 parser, shared feature-list table and completion behavior are unchanged. Earlier requested functional changes were included in v2/v3. v3: https://lore.kernel.org/r/178874713816.1519295.5079603775338308680.flags-v3-0@tychen.cc Request: https://github.com/libbpf/bpftool/issues/57 The previous version's CI PR expired after repeated "Patch is empty" reports. The revised series applies cleanly to the current tree and is sent as a new thread using git format-patch and git send-email. Validation: - Built bpftool and its manual pages, and built the focused selftest runner with LLVM 20. - All 29 bpftool_map_flags subtests passed with no skips or failures in an x86-64 KVM guest running Linux 7.3.0-rc2 from current bpf/master. - The four bpftool series were tested together: all 69 subtests passed. The cpumask suite (36 subtests) and test_maps also passed with no skips. - Bash syntax and the existing bpftool synchronization checks passed. This was a focused run; unrelated selftests requiring unavailable kernel features were excluded from the build with PERMISSIVE=1. Tianyi Chen (2): bpftool: Accept symbolic map creation flags selftests/bpf: Cover symbolic bpftool map creation flags .../bpftool/Documentation/bpftool-feature.rst | 10 +- .../bpf/bpftool/Documentation/bpftool-map.rst | 14 ++- tools/bpf/bpftool/bash-completion/bpftool | 22 +++- tools/bpf/bpftool/feature.c | 7 +- tools/bpf/bpftool/main.h | 1 + tools/bpf/bpftool/map.c | 85 ++++++++++++++- .../bpf/prog_tests/bpftool_map_flags.c | 100 ++++++++++++++++++ 7 files changed, 226 insertions(+), 13 deletions(-) create mode 100644 tools/testing/selftests/bpf/prog_tests/bpftool_map_flags.c base-commit: af0b84a9215d951d16f26b7ee34353b970cf5d4e -- 2.55.0