Received: by 2002:ab2:68c1:0:b0:1fd:9a81:d0e4 with SMTP id e1csp241953lqp; Sat, 8 Jun 2024 14:17:31 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCVXMQ61ejcDQ5E0ian8DQy+bQXqa9W9KlTmrS1F/LItpw0OwVuYmwNagMvnqCxR5CsssPvZd26IAZ5Q3JEf2DGdLQ3pEmAQ39BqSGzG5g== X-Google-Smtp-Source: AGHT+IHzLBLTSM9ILy7QM3XhIMZgHc8EA4HsqIkMN/duOMAW5zs5fW8pIXItj7lPF2aJBuFPrYto X-Received: by 2002:a17:902:d342:b0:1f6:f0ff:47a7 with SMTP id d9443c01a7336-1f6f0ff486amr23102355ad.63.1717881451675; Sat, 08 Jun 2024 14:17:31 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1717881451; cv=pass; d=google.com; s=arc-20160816; b=BrPvO5/xua5UR+QMlkp7sTyIXxw6KxkWT1hp1pIDx9aeFaF8yoLOmuJFnBXQcZ0lWw inTCmpkTtPhvBWyTjShZcBS0MzeHIcHYDmwMG1x/SMP9hNOuVo6dFmbfCOLNlhwR2wV6 IRvoikSsvxEVrpveBBYyLFgUfelBYz9K72NCyPBKfz971orcFDRRBorebiM/9afL3aGi Gc/0OBBzl6Vp7KR20ukTlEb8qH2wjC3snA1d+BTcYI/hq0r2lr9OQn17QPjZmaJVKNYN JjN6tQHcNN/2/plOGysD9NuoYbeCQ17Y2Xd1tPAtDYZArLt4N+2LdTZZnIrMgTYg/b3v XUQw== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:in-reply-to:message-id :date:subject:cc:to:from:feedback-id:dkim-signature:dkim-signature; bh=dNoqM9yUBbQMzeaSLcHCs4sJAJfrhZjPdHSkRVvF74M=; fh=T6WyPxwB4rmdHWrUl2plzQG6oL0le617UPNPIwq7ieE=; b=WUWx/kfJO/RS5ldGwlUYLsQ6vRClKjKJV88Ebq6jT3WeOV3X6WJDOocHmwL2IcBl7k s8dSWCtv71f+fLifzPtiRcCraGLRqY7cMyh1PQ63MMsq6J9CiIY622iXbSjSQGfKpeNf 4VPUSGWu1qng9w5pCfsyBdQlB/p2FTsU9l4V40Yy3O3m4iWq2bGmYQ+VnQW5HRVynmIF UChJrrMPnDxDdbeKNGTB7Qjz6q8ViHbCwMp0++bJjh3qYJCmALOwI7BTvYIqz4cU9Blu tudfzMuPC80Yg1EEPD0ZqlSZs1jorKE0G5EUHdTkACd1ZTDSeuUbcQUixOi1wfZ4kGKi qV1g==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@dxuuu.xyz header.s=fm3 header.b=KUW8o2cv; dkim=pass header.i=@messagingengine.com header.s=fm1 header.b="offyt/m9"; arc=pass (i=1 spf=pass spfdomain=dxuuu.xyz dkim=pass dkdomain=dxuuu.xyz dkim=pass dkdomain=messagingengine.com); spf=pass (google.com: domain of linux-kernel+bounces-207192-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-207192-linux.lists.archive=gmail.com@vger.kernel.org" Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [147.75.48.161]) by mx.google.com with ESMTPS id d9443c01a7336-1f6bd76097csi50961485ad.5.2024.06.08.14.17.31 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 08 Jun 2024 14:17:31 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-207192-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) client-ip=147.75.48.161; Authentication-Results: mx.google.com; dkim=pass header.i=@dxuuu.xyz header.s=fm3 header.b=KUW8o2cv; dkim=pass header.i=@messagingengine.com header.s=fm1 header.b="offyt/m9"; arc=pass (i=1 spf=pass spfdomain=dxuuu.xyz dkim=pass dkdomain=dxuuu.xyz dkim=pass dkdomain=messagingengine.com); spf=pass (google.com: domain of linux-kernel+bounces-207192-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-207192-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 sy.mirrors.kernel.org (Postfix) with ESMTPS id CF7E0B219B6 for ; Sat, 8 Jun 2024 21:17:04 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 4F40D3F9FB; Sat, 8 Jun 2024 21:16:29 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=dxuuu.xyz header.i=@dxuuu.xyz header.b="KUW8o2cv"; dkim=pass (2048-bit key) header.d=messagingengine.com header.i=@messagingengine.com header.b="offyt/m9" Received: from wflow3-smtp.messagingengine.com (wflow3-smtp.messagingengine.com [64.147.123.138]) (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 CE6E938DFC; Sat, 8 Jun 2024 21:16:26 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=64.147.123.138 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717881388; cv=none; b=tCfFwcyR/DC73ZSJQxUj6GCn4dkUPTjQ9m5KBcSGjNnk+7it592VXyur8t+CXh7XYTTpVBpP/Bf5JM8/JZ9P+EJHnq5tI/YDUJ29fHlBdTRqfozJa+7v61iyN7NE0DP0nUvX0yR9mg26ABowXMNhwddPgDcRzmBZTigY9/X1tkY= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717881388; c=relaxed/simple; bh=1FRkFYg7zJUaVztTqTnCYCJuFjfosSHb1IhPIMtuyEU=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=CzHZFWi91lzXW+eKVr/pH0qzNibwbFF0G+OiUNk/0wDQBR8IUqCnW8zzZMfQ6SLR9fRsSEMbnfuzfFtxXTcg+H9PP5ET2F5YLS0xvjUZqLew0Har5DIFVbAmYkk6QWa0XPfwq156gJI8AJxkNEiMztFAkruRgW6JO6bporuHiww= 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=KUW8o2cv; dkim=pass (2048-bit key) header.d=messagingengine.com header.i=@messagingengine.com header.b=offyt/m9; arc=none smtp.client-ip=64.147.123.138 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 compute7.internal (compute7.nyi.internal [10.202.2.48]) by mailflow.west.internal (Postfix) with ESMTP id 87B662CC00F7; Sat, 8 Jun 2024 17:16:24 -0400 (EDT) Received: from mailfrontend1 ([10.202.2.162]) by compute7.internal (MEProxy); Sat, 08 Jun 2024 17:16:26 -0400 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=1717881384; x= 1717888584; bh=dNoqM9yUBbQMzeaSLcHCs4sJAJfrhZjPdHSkRVvF74M=; b=K UW8o2cvldfiFYewxTjNGCf3beDdjxES/7DW7sWIf5iMZM3utHXj6A4tAIuPsKINq t5sar/wOvWcmc40SSUvxf+zUfOXo/3VvXazS2HNjA9fnRrOJFTMsqKLSRPlMBaKK tp/gk3KCbi87GscYNAaBtdZm1d5wGqa3/zCkcEg74Aqh8quLH2WL5Mmy9vDh/pWi vQ3AAMNRbW6+bsmZu9pNQq/Up67/dFfJyshM2HDKEhgYgFd7eeMCChsZ3RM1CBqE FzjZyysiEDT1SsQ+fTWPYcJl+G8/+Ckb7+FgZb1yM88O2AcHQl35+C7rDrvuNXQT smoznf4B4xpQkD+kp9scw== 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-proxy :x-me-sender:x-me-sender:x-sasl-enc; s=fm1; t=1717881384; x= 1717888584; bh=dNoqM9yUBbQMzeaSLcHCs4sJAJfrhZjPdHSkRVvF74M=; b=o ffyt/m94C4wDE2RO3ycituRWO3mNoFpHGvFvykeOyDXSaN1fXB9m2KRlS/wYCsK2 hx3x0mixTVjp0jZRWEts20SL4kNZpb3E4UmDeL3/VnJY4uoRWCWgGBu9gPWEGBJI qb4XkD+jvHvP2GvZQr/J96E9BHELCwojWi2opeDhD0pTIKP6xFIO7VuhsusbpPYI cCQMVmgBMtun1oHvxYJ8AEvZI9+ktn8TSOvf2MvR1VpPHy/yD7A2cOCK9V8yZ6YY 8pg7I6d1v4IJ6Q3ttbBqLAbNcOnzNWQd6GSGJ5f5Y7zxGbQOSMVkCUTF5h7wfNXJ QpwCu3kSRlnszT3FErV0Q== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvledrfedtgedgleegucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucgfrhhlucfvnfffucdlfeehmdenucfjughrpefhvf evufffkffojghfggfgsedtkeertdertddtnecuhfhrohhmpeffrghnihgvlhcuighuuceo ugiguhesugiguhhuuhdrgiihiieqnecuggftrfgrthhtvghrnhepleeiudehhfetffeiud dtjefguddtkeduleeuleevkeejiedtfeeuuedtleehvdefnecuffhomhgrihhnpehkvghr nhgvlhdrohhrghenucevlhhushhtvghrufhiiigvpedtnecurfgrrhgrmhepmhgrihhlfh hrohhmpegugihusegugihuuhhurdighiii X-ME-Proxy: Feedback-ID: i6a694271:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Sat, 8 Jun 2024 17:16:21 -0400 (EDT) From: Daniel Xu To: ast@kernel.org, daniel@iogearbox.net, masahiroy@kernel.org, andrii@kernel.org, olsajiri@gmail.com, quentin@isovalent.com, alan.maguire@oracle.com, acme@kernel.org, eddyz87@gmail.com Cc: nathan@kernel.org, nicolas@fjasle.eu, martin.lau@linux.dev, song@kernel.org, yonghong.song@linux.dev, john.fastabend@gmail.com, kpsingh@kernel.org, sdf@google.com, haoluo@google.com, jolsa@kernel.org, linux-kbuild@vger.kernel.org, bpf@vger.kernel.org, linux-kernel@vger.kernel.org, kernel-team@meta.com Subject: [PATCH bpf-next v4 01/12] kbuild: bpf: Tell pahole to DECL_TAG kfuncs Date: Sat, 8 Jun 2024 15:15:57 -0600 Message-ID: X-Mailer: git-send-email 2.44.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: 8bit With [0], pahole can now discover kfuncs and inject DECL_TAG into BTF. With this commit, we will start shipping said DECL_TAGs to downstream consumers if pahole supports it. This is useful for feature probing kfuncs as well as generating compilable prototypes. This is particularly important as kfuncs do not have stable ABI. [0]: https://git.kernel.org/pub/scm/devel/pahole/pahole.git/commit/?h=next&id=72e88f29c6f7e14201756e65bd66157427a61aaf Signed-off-by: Daniel Xu --- scripts/Makefile.btf | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/Makefile.btf b/scripts/Makefile.btf index bca8a8f26ea4..2597e3d4d6e0 100644 --- a/scripts/Makefile.btf +++ b/scripts/Makefile.btf @@ -19,7 +19,7 @@ pahole-flags-$(call test-ge, $(pahole-ver), 125) += --skip_encoding_btf_inconsis else # Switch to using --btf_features for v1.26 and later. -pahole-flags-$(call test-ge, $(pahole-ver), 126) = -j --btf_features=encode_force,var,float,enum64,decl_tag,type_tag,optimized_func,consistent_func +pahole-flags-$(call test-ge, $(pahole-ver), 126) = -j --btf_features=encode_force,var,float,enum64,decl_tag,type_tag,optimized_func,consistent_func,decl_tag_kfuncs endif -- 2.44.0