From nobody Sat Dec 28 19:39:55 2024 Received: from fout-a8-smtp.messagingengine.com (fout-a8-smtp.messagingengine.com [103.168.172.151]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 32E941F470F; Fri, 13 Dec 2024 19:44:33 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=103.168.172.151 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1734119075; cv=none; b=k/Fo3z3Fu0w59rXYjmEiehVz8cP77RB85AnWfZYQiXjUEeuT4bXJ2/QyM7jjEPCfYp81Odcb5mEZ/hirtxr4JXt3vvLo+B6AhiFz9i86+B1CFoodHEC78sPa4KAJ4T+sTFVFk9kEjWeheOXARHWj5NaBX8BTYVOYZjZgOuL3fjw= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1734119075; c=relaxed/simple; bh=4yPh3o5msytngK0b2M7uPcwE2itl/ZpxnSyMzy56frI=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=Z6NtYaXVQQPHLr61iT69uQBUT1VsnFlVCkNmxb/XV6q2Kpf019+pqzbv3fUIzMITqXkqaDumn7vlmyqPQxJhbmSFi9wLEN28X2ymIXKoFGNo/E2lk1FH60Z1lEMUn+vWoxVt/OtQDk8kDSL0tmxlBFBDCQiGhaUik0bXNdIULTA= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=dxuuu.xyz; spf=pass smtp.mailfrom=dxuuu.xyz; dkim=pass (2048-bit key) header.d=dxuuu.xyz header.i=@dxuuu.xyz header.b=Yy6RW/j4; dkim=pass (2048-bit key) header.d=messagingengine.com header.i=@messagingengine.com header.b=uE/ld55m; arc=none smtp.client-ip=103.168.172.151 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=dxuuu.xyz Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=dxuuu.xyz Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=dxuuu.xyz header.i=@dxuuu.xyz header.b="Yy6RW/j4"; dkim=pass (2048-bit key) header.d=messagingengine.com header.i=@messagingengine.com header.b="uE/ld55m" Received: from phl-compute-03.internal (phl-compute-03.phl.internal [10.202.2.43]) by mailfout.phl.internal (Postfix) with ESMTP id 21B221383EA2; Fri, 13 Dec 2024 14:44:33 -0500 (EST) Received: from phl-mailfrontend-02 ([10.202.2.163]) by phl-compute-03.internal (MEProxy); Fri, 13 Dec 2024 14:44:33 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=dxuuu.xyz; h=cc :cc:content-transfer-encoding:content-type:date:date:from:from :in-reply-to:in-reply-to:message-id:mime-version:references :reply-to:subject:subject:to:to; s=fm3; t=1734119073; x= 1734205473; bh=Hqyz5RNb3bsM+MDynbvfut+TaE71hr9iEdgs6WRLNZg=; b=Y y6RW/j4DzmIVsOhUtNyY4kwRgU2nowV3hrmkcOcCyskn5owUGwY9k++uthZVAX5k 7K+LTdhMNPDTILtv0+p0TPimK9/kf4Yh4KVXK2RJdynO3Ep0RoAdqyg7LzaRPGsO yp1b2PIuKexsZimhSkPpfykkEN23YuAXfqbjhiDsINUZL1jzfgTGXnAQB31KB0BN l8D2lX73YkYkLZWflZEnit3PqSpEn5UWcHzLQOaPzRKReVjbgDNmqBCQJpeBReCL wITxuHD/czdEwlb2yA1U/iFU2HeLnXNivudQTdF79+V+k7+LfRgWZO7SC5oGiFHE aUL7SVWyYh56U7XpLlwtQ== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:cc:content-transfer-encoding :content-type:date:date:feedback-id:feedback-id:from:from :in-reply-to:in-reply-to:message-id:mime-version:references :reply-to:subject:subject:to:to:x-me-proxy:x-me-sender :x-me-sender:x-sasl-enc; s=fm1; t=1734119073; x=1734205473; bh=H qyz5RNb3bsM+MDynbvfut+TaE71hr9iEdgs6WRLNZg=; b=uE/ld55mV5AApECKd GD9Kq4A3t64CFfCyFZfplrEd+OkxqpNjLnQiATYpMFJwn/vPCZGHSunJAp92Nc8V J5PTiYrrV/fSKVwbTu2/rzDh2TbLT81cIascAgiWfjwMforTiebRgTiu2j9Uxzod hlRFqNGtIp6KlyV0zXkHLXNuIRyTFlVhEeohqPfT8eDBjXXbFrz1MJCbgW7CmB2k P57nRwKHlF/+UnoT3aTJtaMKsFJRIJSE7We7b+TtZxz4kVqZe5vnL5c3ifkpBW9S Hgp2Z/AHz2iZKQB70cu9iR3PuMzCkaMV6EZwoxhA2pkNo5vytQhEX5SfgipW66Cb c5qeg== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeefuddrkeejgdduvdejucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdggtfgfnhhsuhgsshgtrhhisggvpdfu rfetoffkrfgpnffqhgenuceurghilhhouhhtmecufedttdenucgfrhhlucfvnfffucdlje dtmdenucfjughrpefhvfevufffkffojghfggfgsedtkeertdertddtnecuhfhrohhmpeff rghnihgvlhcuighuuceougiguhesugiguhhuuhdrgiihiieqnecuggftrfgrthhtvghrnh epgfefgfegjefhudeikedvueetffelieefuedvhfehjeeljeejkefgffeghfdttdetnecu vehluhhsthgvrhfuihiivgeptdenucfrrghrrghmpehmrghilhhfrhhomhepugiguhesug iguhhuuhdrgiihiidpnhgspghrtghpthhtohepudekpdhmohguvgepshhmthhpohhuthdp rhgtphhtthhopegurghnihgvlhesihhoghgvrghrsghogidrnhgvthdprhgtphhtthhope hqmhhosehkvghrnhgvlhdrohhrghdprhgtphhtthhopegrnhgurhhiiheskhgvrhhnvghl rdhorhhgpdhrtghpthhtoheprghstheskhgvrhhnvghlrdhorhhgpdhrtghpthhtohepmh grrhhtihhnrdhlrghusehlihhnuhigrdguvghvpdhrtghpthhtohepvgguugihiiekjees ghhmrghilhdrtghomhdprhgtphhtthhopehsohhngheskhgvrhhnvghlrdhorhhgpdhrtg hpthhtohephihonhhghhhonhhgrdhsohhngheslhhinhhugidruggvvhdprhgtphhtthho pehjohhhnhdrfhgrshhtrggsvghnugesghhmrghilhdrtghomh X-ME-Proxy: Feedback-ID: i6a694271:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Fri, 13 Dec 2024 14:44:30 -0500 (EST) From: Daniel Xu To: daniel@iogearbox.net, qmo@kernel.org, andrii@kernel.org, ast@kernel.org Cc: martin.lau@linux.dev, eddyz87@gmail.com, song@kernel.org, yonghong.song@linux.dev, john.fastabend@gmail.com, kpsingh@kernel.org, sdf@fomichev.me, haoluo@google.com, jolsa@kernel.org, bpf@vger.kernel.org, linux-kernel@vger.kernel.org, andrii.nakryiko@gmail.com, antony@phenome.org, toke@kernel.org Subject: [PATCH bpf-next v5 4/4] bpftool: bash: Add bash completion for root_id argument Date: Fri, 13 Dec 2024 12:44:12 -0700 Message-ID: <37016c786620761e621a88240e36f6cb27a8f628.1734119028.git.dxu@dxuuu.xyz> X-Mailer: git-send-email 2.46.0 In-Reply-To: References: Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" This commit updates the bash completion script with the new root_id argument. Signed-off-by: Daniel Xu --- tools/bpf/bpftool/bash-completion/bpftool | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/tools/bpf/bpftool/bash-completion/bpftool b/tools/bpf/bpftool/= bash-completion/bpftool index 0c541498c301..1ce409a6cbd9 100644 --- a/tools/bpf/bpftool/bash-completion/bpftool +++ b/tools/bpf/bpftool/bash-completion/bpftool @@ -930,19 +930,24 @@ _bpftool() format) COMPREPLY=3D( $( compgen -W "c raw" -- "$cur" = ) ) ;; + root_id) + return 0; + ;; c) - COMPREPLY=3D( $( compgen -W "unsorted" -- "$cu= r" ) ) + COMPREPLY=3D( $( compgen -W "unsorted root_id"= -- "$cur" ) ) ;; *) # emit extra options case ${words[3]} in id|file) + COMPREPLY=3D( $( compgen -W "root_id" = -- "$cur" ) ) _bpftool_once_attr 'format' ;; map|prog) if [[ ${words[3]} =3D=3D "map" ]] && [= [ $cword =3D=3D 6 ]]; then COMPREPLY+=3D( $( compgen -W "key = value kv all" -- "$cur" ) ) fi + COMPREPLY=3D( $( compgen -W "root_id" = -- "$cur" ) ) _bpftool_once_attr 'format' ;; *) --=20 2.46.0