Received: by 2002:a05:7412:e794:b0:fa:551:50a7 with SMTP id o20csp2522569rdd; Fri, 12 Jan 2024 12:04:28 -0800 (PST) X-Google-Smtp-Source: AGHT+IEGaC7r0VT3rY1JkwgZbBdqsTPPDVkNhWivhXQAPxGcCxErGT4iLRRbvEmKv2RiKqH4Qahn X-Received: by 2002:a17:906:901:b0:a2b:ea60:f87b with SMTP id i1-20020a170906090100b00a2bea60f87bmr929219ejd.144.1705089868821; Fri, 12 Jan 2024 12:04:28 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1705089868; cv=none; d=google.com; s=arc-20160816; b=QpY9gLGydHwgqwbuGzS8ucwN2Zn29Qnqux+Mr0LSgbMyO+k502j/ZRFRl2jNlQY8NT epUgdit9OB09uikLXVzjQtqIiJcItbtzphOaZSrO9PVniZAAq4IeJ3qtSvYafOXNM67O Cy2LLXboJDiUK2XNs5E9UoNnumBZzaAcTof25jvNLMuhuoGUU+LcCHVz/jmprfIOgEF3 NYcCTegV8LqxkQu4LWiDjkAm+gDuvMcrtKvfzSnnVIucdL/dI5F+xV5udmJRFe4fcmQR PhpiQ6RlAc688ai5HXDP6E4EZXMcHZSUvrcl5FuhT4bhBS6PmlKVB7UQ53OIND8yJJYF pwXg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-disposition:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:message-id:subject:cc :to:from:date:feedback-id:dkim-signature:dkim-signature; bh=+8mz4XZguZin9UP/KR7blhH64FTif6Z1M+wN3fDN6dQ=; fh=cUMJPj0nAKzqtwX1SvDi51wcwwUYSMhIRAEIKyWefWQ=; b=gmXzX0aEDugEQsgiDq3D7CQw9vmxmxCO+IHv9r3Www/1LCXImCu/YjQ5DHyrkzTh/u PZ7Eco+Y5JYetcJjhZ/NBeA60IvSNgh4OclxJfb6mUdUOKrtGCse107pJkN4QTKJmHIz PJivIcn3pebQYcNeuw2PaNSGbyQaoVCQt2kFNcCgezBTF79tu05JWJzd4ovvd3Eixm3y UxwzzgN5AOhwnx5pk07URrKYzEAREDvrSPU6uFxSae6/julS+w4jJg2Gex9Exg6yA7tF o89jEOnePeByshyjI2fKJ7czYOhrwC6TzXPOM3oYx9XGR4DIBS3PmhKc+H7u0ADu4vf5 c+eQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@dxuuu.xyz header.s=fm1 header.b=XKtJaWQ5; dkim=pass header.i=@messagingengine.com header.s=fm2 header.b=q0MxCTl2; spf=pass (google.com: domain of linux-kernel+bounces-25011-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-25011-linux.lists.archive=gmail.com@vger.kernel.org" Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [147.75.80.249]) by mx.google.com with ESMTPS id w4-20020a170906130400b00a2c56489136si1595095ejb.951.2024.01.12.12.04.28 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 12 Jan 2024 12:04:28 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-25011-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) client-ip=147.75.80.249; Authentication-Results: mx.google.com; dkim=pass header.i=@dxuuu.xyz header.s=fm1 header.b=XKtJaWQ5; dkim=pass header.i=@messagingengine.com header.s=fm2 header.b=q0MxCTl2; spf=pass (google.com: domain of linux-kernel+bounces-25011-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-25011-linux.lists.archive=gmail.com@vger.kernel.org" Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by am.mirrors.kernel.org (Postfix) with ESMTPS id 8DE4A1F24F8C for ; Fri, 12 Jan 2024 20:04:28 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 1B7C216439; Fri, 12 Jan 2024 20:04:09 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=dxuuu.xyz header.i=@dxuuu.xyz header.b="XKtJaWQ5"; dkim=pass (2048-bit key) header.d=messagingengine.com header.i=@messagingengine.com header.b="q0MxCTl2" Received: from wout5-smtp.messagingengine.com (wout5-smtp.messagingengine.com [64.147.123.21]) (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 63A1D15ACF; Fri, 12 Jan 2024 20:04:06 +0000 (UTC) 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 Received: from compute6.internal (compute6.nyi.internal [10.202.2.47]) by mailout.west.internal (Postfix) with ESMTP id EAC4E3200AE9; Fri, 12 Jan 2024 15:04:03 -0500 (EST) Received: from mailfrontend2 ([10.202.2.163]) by compute6.internal (MEProxy); Fri, 12 Jan 2024 15:04:05 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=dxuuu.xyz; h=cc :cc:content-type:content-type:date:date:from:from:in-reply-to :in-reply-to:message-id:mime-version:references:reply-to:subject :subject:to:to; s=fm1; t=1705089843; x=1705176243; bh=+8mz4XZguZ in9UP/KR7blhH64FTif6Z1M+wN3fDN6dQ=; b=XKtJaWQ5K8ENuQnLrOOFCe9Oqr N+oxaTUlyPe1bFrj5Ndq8a9kzF/XPvQX6V/zjvpeJFWrKO4IiAz56Im7dS/5tUrg LF9LA2PXRzfpXWbenlCDejl4IS1BT9j3K7syUQeoyl9bti1963hqfi4BGr5C6VIx 7/y6K8qb/pQgvRf8Cc1Z1d99CITcCUaqBgQJ/alRxAxlprAawk1pR5QwDr7e5c/b ianfPN82FOg+0d3pFTd2bCjoiHFs8krGwgd6f9yRPCSGZwV6KTfPmNpAaLrtgvZi YD9Tc+mLGUrXWWGkDNSaLo3Z1GqZdK8IaN4HFZFYb8AxZzOjLh6SgBZS9VNA== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:cc:content-type: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-proxy:x-me-sender:x-me-sender:x-sasl-enc; s= fm2; t=1705089843; x=1705176243; bh=+8mz4XZguZin9UP/KR7blhH64FTi f6Z1M+wN3fDN6dQ=; b=q0MxCTl2AoML2E0BHeGfYNog4xC/sRa8vIfOKKiGddNw 0prH+OWyfMFIyJ2II/bw0Acx5uQfHaBhF0KaGnf4l9MeU5DC8wRMphxLi9FFqupn mdp2kiq0yiIJlmTTPaIo0RfC9hGgujQs71lq2ft23KL2cJCLIGP0nMoXJN6HySnc pHMz5fo0GGhFKXRhBqa1Fw0Rwo/nbPjp3wAVG8IpcYU3ToCvgoUa5JlsPA8dzUN9 J35/kx7dlxio9pAYIzJj4Z+P1/PFaUZ93JOdvKJqO6haIYJ09PELFGwtjX14fylt d8NSFTZNlLWN/+KGSMjW5yQnmel62kXjpV94alsy3w== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvkedrvdeihedgudefudcutefuodetggdotefrod ftvfcurfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfgh necuuegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmd enfghrlhcuvffnffculdejtddmnecujfgurhepfffhvfevuffkfhggtggujgesthdtsfdt tddtvdenucfhrhhomhepffgrnhhivghlucgiuhcuoegugihusegugihuuhhurdighiiiqe enucggtffrrghtthgvrhhnpedvfeekteduudefieegtdehfeffkeeuudekheduffduffff gfegiedttefgvdfhvdenucevlhhushhtvghrufhiiigvpedtnecurfgrrhgrmhepmhgrih hlfhhrohhmpegugihusegugihuuhhurdighiii X-ME-Proxy: Feedback-ID: i6a694271:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Fri, 12 Jan 2024 15:04:00 -0500 (EST) Date: Fri, 12 Jan 2024 13:03:59 -0700 From: Daniel Xu To: Jiri Olsa Cc: linux-input@vger.kernel.org, coreteam@netfilter.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, netfilter-devel@vger.kernel.org, linux-kselftest@vger.kernel.org, linux-trace-kernel@vger.kernel.org, fsverity@lists.linux.dev, bpf@vger.kernel.org, netdev@vger.kernel.org, linux-stm32@st-md-mailman.stormreply.com, cgroups@vger.kernel.org, alexei.starovoitov@gmail.com, quentin@isovalent.com, alan.maguire@oracle.com, memxor@gmail.com Subject: Re: [PATCH bpf-next v3 0/3] Annotate kfuncs in .BTF_ids section Message-ID: <2dhmwvfnnqnlrui2qcr5fob54gdsuse5caievct42trvvia6qe@p24nymz3uttv> References: Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: On Fri, Jan 12, 2024 at 05:20:39PM +0100, Jiri Olsa wrote: > On Sat, Jan 06, 2024 at 11:24:07AM -0700, Daniel Xu wrote: > > === Description === > > > > This is a bpf-treewide change that annotates all kfuncs as such inside > > .BTF_ids. This annotation eventually allows us to automatically generate > > kfunc prototypes from bpftool. > > > > We store this metadata inside a yet-unused flags field inside struct > > btf_id_set8 (thanks Kumar!). pahole will be taught where to look. > > > > More details about the full chain of events are available in commit 3's > > description. > > > > The accompanying pahole changes (still needs some cleanup) can be viewed > > here on this "frozen" branch [0]. > > so the plan is to have bpftool support to generate header file > with detected kfuncs? Yep, that's the major use case. But I see other use cases as well like precision probing of kfuncs. Rather than guess and check which progs can load (in the event of backwards incompatible kfunc changes), programs can look at kfunc type signature thru BTF.