Received: by 2002:a05:7412:b995:b0:f9:9502:5bb8 with SMTP id it21csp7411206rdb; Wed, 3 Jan 2024 15:32:31 -0800 (PST) X-Google-Smtp-Source: AGHT+IExOH5ry+P+jDO5p0Dxj5AAD8U2sNP80V5IFlAVEdDxIxpTLVYJVBTZ1Kr1RXpcnjpm/djD X-Received: by 2002:a05:620a:390f:b0:781:bb0f:dd8b with SMTP id qr15-20020a05620a390f00b00781bb0fdd8bmr6918244qkn.21.1704324751209; Wed, 03 Jan 2024 15:32:31 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1704324751; cv=none; d=google.com; s=arc-20160816; b=syA+CFVqSR0A9jhl9yh/2vJlK1oCzyotc6VOsk4A6xrKVY0TL8uKjJO7ChVY189Fqw 8z/g/83m1CHJNnN62+IMf+VxKpezAs1rFPjr7yk5xsYf8rkKSjdlNzGcsjttbyoEQ209 RLDM4+gHMkQ9/BHnvfKHPzeZBLIvipTOLqy7yb3ezHRoqxD5zf8TpKUUQ8D0zYleFHoe E2WfQmgOPTzdBB/jPzGQfQProK9a+C9nQdchi698ntM3j16H0G14EogglzPoddBuPkCV 1+KtKJMIJCuy3amY5NL6JeIosBWmBbgBwu8LBjz/w1zblpaVc89XzVovcxzlH/xFMss6 Zd0A== ARC-Message-Signature: i=1; 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:message-id:date:subject:to:from :feedback-id:dkim-signature:dkim-signature; bh=fBlTY1O1StgZyteJRwSj0WOCCgegue7fpMlq4tQR6pE=; fh=mtp7yDJRvDWtvOq4u3kgPUPzmdFtTZbTH3FqufAknPQ=; b=pOAdSmqFtuNV+Ls/BbXrRkp1ObRKPNHjpl6os7UlPLfK70FhGYn1KuNl7OvIjJf8Fh yk+2wZHERdMUdiX7k/qMU0n7DwRp7Oxoc19yfUT1SL8BLUXi8xxFt3K9ya9T9FFt8Ym7 FlWlIDO1Kl0xFEOmlL/yVZAzx4moHMo9Fx8onI9Co4pqOomlBl2ChcsBoiCv8LzjhrfS X6QcLZmPyQ2Wpi/C+kbP34eGBj6daN75bXvTu2Q6cjCMnS/vHUkjJg5bhYAyl8gT8At2 sZ7t64lWSd4HY1Xi1OM8TjsdWn9SGsDJIJOkK3eg1aFIipIAOfaRNjUkQuxfsURbOt+w V06A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@dxuuu.xyz header.s=fm1 header.b=lJYbtwRp; dkim=pass header.i=@messagingengine.com header.s=fm2 header.b=bkEYNB6m; spf=pass (google.com: domain of linux-kernel+bounces-16121-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-16121-linux.lists.archive=gmail.com@vger.kernel.org" Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [147.75.199.223]) by mx.google.com with ESMTPS id y20-20020a05620a44d400b0078132af37adsi28596601qkp.175.2024.01.03.15.32.31 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 03 Jan 2024 15:32:31 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-16121-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) client-ip=147.75.199.223; Authentication-Results: mx.google.com; dkim=pass header.i=@dxuuu.xyz header.s=fm1 header.b=lJYbtwRp; dkim=pass header.i=@messagingengine.com header.s=fm2 header.b=bkEYNB6m; spf=pass (google.com: domain of linux-kernel+bounces-16121-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-16121-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 ny.mirrors.kernel.org (Postfix) with ESMTPS id E4DD51C2493A for ; Wed, 3 Jan 2024 23:32:30 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 0388D200A5; Wed, 3 Jan 2024 23:32:15 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=dxuuu.xyz header.i=@dxuuu.xyz header.b="lJYbtwRp"; dkim=pass (2048-bit key) header.d=messagingengine.com header.i=@messagingengine.com header.b="bkEYNB6m" X-Original-To: linux-kernel@vger.kernel.org Received: from wout4-smtp.messagingengine.com (wout4-smtp.messagingengine.com [64.147.123.20]) (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 557D81F607; Wed, 3 Jan 2024 23:32:12 +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 127D03200A61; Wed, 3 Jan 2024 18:32:09 -0500 (EST) Received: from mailfrontend2 ([10.202.2.163]) by compute6.internal (MEProxy); Wed, 03 Jan 2024 18:32:11 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=dxuuu.xyz; h=cc :content-transfer-encoding:content-type:date:date:from:from :in-reply-to:message-id:mime-version:reply-to:subject:subject:to :to; s=fm1; t=1704324729; x=1704411129; bh=fBlTY1O1StgZyteJRwSj0 WOCCgegue7fpMlq4tQR6pE=; b=lJYbtwRpU+dVyyJzJZGCzGN92FAzyXisdOTyA hga+Tz/oNJxJ3/vh/ENWw6VHA+9HerOrPM2yWKDSKa04HVB3afWClfUwTaAtFILW OOVdYMb3RS7WYs0cPfNNo/UZh0rAW6MwxJFDMOxHBIHXACpAM3WNV/bs0rxvDBBj GGHGGty44rb3NCzCrLoYZRXL72lVlXj0gf3g6rWQUy1UjZo3Ifu4q9QhgmHzssry WN/qaTsiffEf1EDV1rHDW/plzF8viJ497gnxWhdrOnnKviF3QxnTaFMD8DHcWi4j +0GbOI3AcpHRe4idSw13HwvflHAZYyOVVWd+rhnaTiuXyjVvg== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-transfer-encoding:content-type :date:date:feedback-id:feedback-id:from:from:in-reply-to :message-id:mime-version:reply-to:subject:subject:to:to :x-me-proxy:x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s= fm2; t=1704324729; x=1704411129; bh=fBlTY1O1StgZyteJRwSj0WOCCgeg ue7fpMlq4tQR6pE=; b=bkEYNB6mF2hRhn3oPBkxEv4MTis76LQX6kxIG4Z0a6O8 23WlTBLrL4m/EbFGIxviTL79olTDxMSHWoK7u5IxthjrQXU02MP8fVR8cEHO+s3z h8von97bCIEtyKs9dVGqsTso2HX2723lGaEJ4DG9E3VuEupuwDZ9ImKTyv6mHiqP wuOuteLGQc8bzh+zQfHLyBvqgY03UkxiOnIeaQST+5haxhjaEnRa2cWZ0ZH2VtaB xJAiTBX7cdldtYW6XK3hKhIJwA2WtWLJps3e0b9RRiYcZfCwinXmUFCGzKY9UGcZ iRKgeAvxv5v7eXLQegka4wpUNzFHNkzVJlpd+Y9hfw== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvkedrvdegiedguddtucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucgfrhhlucfvnfffucdljedtmdenucfjughrpefhvf fufffkofgggfestdekredtredttdenucfhrhhomhepffgrnhhivghlucgiuhcuoegugihu segugihuuhhurdighiiiqeenucggtffrrghtthgvrhhnpeeifffgledvffeitdeljedvte effeeivdefheeiveevjeduieeigfetieevieffffenucevlhhushhtvghrufhiiigvpedt necurfgrrhgrmhepmhgrihhlfhhrohhmpegugihusegugihuuhhurdighiii X-ME-Proxy: Feedback-ID: i6a694271:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Wed, 3 Jan 2024 18:32:07 -0500 (EST) From: Daniel Xu To: coreteam@netfilter.org, netdev@vger.kernel.org, cgroups@vger.kernel.org, linux-input@vger.kernel.org, linux-trace-kernel@vger.kernel.org, linux-stm32@st-md-mailman.stormreply.com, linux-kselftest@vger.kernel.org, fsverity@lists.linux.dev, netfilter-devel@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, bpf@vger.kernel.org, alexei.starovoitov@gmail.com, olsajiri@gmail.com, quentin@isovalent.com, alan.maguire@oracle.com, memxor@gmail.com Subject: [PATCH bpf-next 0/2] Annotate kfuncs in .BTF_ids section Date: Wed, 3 Jan 2024 16:31:54 -0700 Message-ID: X-Mailer: git-send-email 2.42.1 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit 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 2's description. Daniel Xu (2): bpf: btf: Support optional flags for BTF_SET8 sets bpf: treewide: Annotate BPF kfuncs in BTF drivers/hid/bpf/hid_bpf_dispatch.c | 4 ++-- fs/verity/measure.c | 2 +- include/linux/btf_ids.h | 17 ++++++++++++----- kernel/bpf/btf.c | 3 +++ kernel/bpf/cpumask.c | 2 +- kernel/bpf/helpers.c | 4 ++-- kernel/bpf/map_iter.c | 2 +- kernel/cgroup/rstat.c | 2 +- kernel/trace/bpf_trace.c | 4 ++-- net/bpf/test_run.c | 4 ++-- net/core/filter.c | 8 ++++---- net/core/xdp.c | 2 +- net/ipv4/bpf_tcp_ca.c | 2 +- net/ipv4/fou_bpf.c | 2 +- net/ipv4/tcp_bbr.c | 2 +- net/ipv4/tcp_cubic.c | 2 +- net/ipv4/tcp_dctcp.c | 2 +- net/netfilter/nf_conntrack_bpf.c | 2 +- net/netfilter/nf_nat_bpf.c | 2 +- net/xfrm/xfrm_interface_bpf.c | 2 +- net/xfrm/xfrm_state_bpf.c | 2 +- .../selftests/bpf/bpf_testmod/bpf_testmod.c | 2 +- 22 files changed, 42 insertions(+), 32 deletions(-) -- 2.42.1