Received: by 2002:ab2:6a05:0:b0:1f8:1780:a4ed with SMTP id w5csp2233393lqo; Mon, 13 May 2024 11:39:38 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCXN4ZX4iINnK44V+C/TMcfaITzu0MCHhP1ctKeHGLUgnDKsSul8+RDSye65s3IM/Pl8jiZ12qYU2jgjqeUQayPosmuEyN2YhoCYMMj7Rw== X-Google-Smtp-Source: AGHT+IFNkN3v893A7VDyjZW3HAItvvDjIScHbHzazvwqHT1gGVRL1lmKYZAcqCZrTuexmOLKpS/A X-Received: by 2002:a05:6a00:98b:b0:6f4:7297:7bd with SMTP id d2e1a72fcca58-6f4e037d1c7mr10724487b3a.28.1715625577771; Mon, 13 May 2024 11:39:37 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1715625577; cv=pass; d=google.com; s=arc-20160816; b=JV9/UP8AivDOVlj4whUkQYUUIMeSsM1tyEV3fUQRIdF12gd2CdF4zGG1j++6359Q05 4OrKbvNjxPRlY5irMvQK/wx3o8bdJljq4RJQkiV7BLVMVnmKSdPgkRr8+BW5YffECnMg /GMEZGkgEIcwlSM+imeSYutHXwGPmxdppJBwZJkpsm3DfUanTRjV0KPMokqlQPkveow0 ozWU0rBxemeZvqxccXC8IMtcE+ccbeLoPjjqO6IXfHoCXxwIRsNHdUygssBz+nWH2afc wTGWcalU/lZHRWYTtdvzTmdWTfqxZwAMxB3zou6uiBEVvZxJ2Tq/rE3TzntLVhTIsfGS ZhEQ== 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=E8COH8IZC+TlbAgPPssdPSgDjYfCZqEAwY2cntHhuEA=; fh=T6WyPxwB4rmdHWrUl2plzQG6oL0le617UPNPIwq7ieE=; b=hd9uQn9aU/mrMn1Tp6/o5JvS0NvEeUrZMBffvCzvcv5UjtC/pSVRFLTRc8n4KwbO5G EOme2Ipgp+ztCn74xyKGfTLqAJ3UT5fOAHhjeSImRILg56bnygr1CiG8hyHOsCtL5iGW TinHnFeyWzc4RsasORMgzo1BXGZJEOW1GfBs54jxxuZ7o2pTH+b3Za6+lxjoSzK11gN1 JyfholC/cFc4RMY+hacWMG0vaOWTAiw0qTy66Uvm5KrnC1b+9oT/i48ZdW8ykJs+rYYd HW0WcAML42xAu/bsl0O2YsyC15/w5v/1mqB0cWuSxiV6m3vqqiLP4ndaI1pkfXNLH/zm p/GA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@dxuuu.xyz header.s=fm2 header.b=dwiVjUOi; dkim=pass header.i=@messagingengine.com header.s=fm3 header.b=RZD3jzFe; 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-177974-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-177974-linux.lists.archive=gmail.com@vger.kernel.org" Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [139.178.88.99]) by mx.google.com with ESMTPS id d2e1a72fcca58-6f4d2a9725dsi7701613b3a.121.2024.05.13.11.39.37 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 13 May 2024 11:39:37 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-177974-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) client-ip=139.178.88.99; Authentication-Results: mx.google.com; dkim=pass header.i=@dxuuu.xyz header.s=fm2 header.b=dwiVjUOi; dkim=pass header.i=@messagingengine.com header.s=fm3 header.b=RZD3jzFe; 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-177974-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-177974-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 sv.mirrors.kernel.org (Postfix) with ESMTPS id 4E8B82826D3 for ; Mon, 13 May 2024 18:39:37 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 3D96E3F9D9; Mon, 13 May 2024 18:39:19 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=dxuuu.xyz header.i=@dxuuu.xyz header.b="dwiVjUOi"; dkim=pass (2048-bit key) header.d=messagingengine.com header.i=@messagingengine.com header.b="RZD3jzFe" Received: from wflow7-smtp.messagingengine.com (wflow7-smtp.messagingengine.com [64.147.123.142]) (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 B24373C099; Mon, 13 May 2024 18:39:16 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=64.147.123.142 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715625558; cv=none; b=EB4qCFESl7HMAYgQaNMn1qTQ6IL5bPAzlPoZrNGPWXavwY9H0XDIbePlNuiBpl5cpvK87Xp/bw8OPpM7w/GEldV1TEknyoe1TsB4/EMKHHwgj9mNgAduRpfySrkn4pCIDrd8LcbfkGxl7IKYLYVE0QSs2KLrDyziUhWsyvERa08= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715625558; c=relaxed/simple; bh=jPKiXJOmnQNOWhBvYnpso6oXP7ZkLGQqjW8y3RqzOPA=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=FcdGvWIv/6SVu6dbQMxQ9+ndTCj+YPyPcuCM44XvVJvQv9cl5ojJgZjEPnrcLiZJiXXR9VAu7d4c9Q8oXkanv6p1mlkrSfvm9OoZXiG6PlTaszrR1AdosqhOC0GWjpwsnVuOZVxwvW4ACaQBUJ634JBILyzAiIwa5It29PaWkq4= 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=dwiVjUOi; dkim=pass (2048-bit key) header.d=messagingengine.com header.i=@messagingengine.com header.b=RZD3jzFe; arc=none smtp.client-ip=64.147.123.142 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 compute4.internal (compute4.nyi.internal [10.202.2.44]) by mailflow.west.internal (Postfix) with ESMTP id 1B58B2CC0328; Mon, 13 May 2024 14:39:14 -0400 (EDT) Received: from mailfrontend1 ([10.202.2.162]) by compute4.internal (MEProxy); Mon, 13 May 2024 14:39:15 -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=fm2; t=1715625553; x= 1715632753; bh=E8COH8IZC+TlbAgPPssdPSgDjYfCZqEAwY2cntHhuEA=; b=d wiVjUOi/+ghg09jSj01shwt8krvgo55aQzaPUc9fh32xOVtqZB6SzaJ7jwLxrnn6 npU1RKvin/DnzpPXGrCVlsBCs+9aEnZ2LbnXeO7HboavfvdhYs63pteHquTIrEUG ups9zVYK4NrGp9K88HYWkPS6AWHpxK4NSTqw3mqdk+c4GeoYg8fp7MyhY1ntvT6M LS2X0MmRBhbWYsepQ8GHJPrSdoZdxIHiEdh1S5y9NzvMml9uRXUtzMOQUM4Z/moD XSPpbsPFidykiZk78dpgOUo0JO3hNfyIwZo9AY3ifY4Z8UaDWMtTOSdUhfOE7fWO OIQiavgRmqCVsBBb6PlCQ== 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=fm3; t=1715625553; x= 1715632753; bh=E8COH8IZC+TlbAgPPssdPSgDjYfCZqEAwY2cntHhuEA=; b=R ZD3jzFeAjyI+thEnFw5uAI9Wk6Pq3nyO+ELKhud7H7uc3ce11BWVqrh0GkdVBr+B OON0Rsdo7NkZFwLedE7YZhKCo9PUi74N2WTK6ffNz7UiObuFVPstJxZOAigayl/a XuJtrd2oQeloLnpQlJHJVS+exRN2MIsEC54/Dab22Z3lhUF/+9eebyqUfHgkvhfq uF5qRqH7EA1QGavmMs8yLpDwP0oxmt/me7kAHgiPK1NyUU/JFDpI0IQtO0gwkwJA XfIuEFa08vc3zowevAQ+pENtKgPIl9DIhmhPpvDGxt2HhOKhN39rWyULs9UvDBvZ KnZ/ut/7Gpnva+mgj3NhQ== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvledrvdeggedguddvjecutefuodetggdotefrod ftvfcurfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfgh necuuegrihhlohhuthemuceftddtnecufghrlhcuvffnffculdefhedmnecujfgurhephf fvvefufffkofgjfhgggfestdekredtredttdenucfhrhhomhepffgrnhhivghlucgiuhcu oegugihusegugihuuhhurdighiiiqeenucggtffrrghtthgvrhhnpeelieduhefhteffie dutdejgfdutdekudelueelveekjeeitdefueeutdelhedvfeenucffohhmrghinhepkhgv rhhnvghlrdhorhhgnecuvehluhhsthgvrhfuihiivgeptdenucfrrghrrghmpehmrghilh hfrhhomhepugiguhesugiguhhuuhdrgiihii X-ME-Proxy: Feedback-ID: i6a694271:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Mon, 13 May 2024 14:39:11 -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 v3 1/2] kbuild: bpf: Tell pahole to DECL_TAG kfuncs Date: Mon, 13 May 2024 12:38:58 -0600 Message-ID: <09085a7207265b153d0c81eee30906009c66cb82.1715625447.git.dxu@dxuuu.xyz> 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 2d6e5ed9081e..d9ec6c85ffa7 100644 --- a/scripts/Makefile.btf +++ b/scripts/Makefile.btf @@ -21,7 +21,7 @@ endif 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