Received: by 2002:a05:7412:98c1:b0:fa:551:50a7 with SMTP id kc1csp1514209rdb; Mon, 8 Jan 2024 01:19:14 -0800 (PST) X-Google-Smtp-Source: AGHT+IEPOXpaNrFLllTDz8g+hdZMtNMzF3Ui5g6qheagb2DdBWV8ZGbbbW9KGfZKFaWPZvvFY40t X-Received: by 2002:a17:902:a3c9:b0:1d4:3eb1:1e3 with SMTP id q9-20020a170902a3c900b001d43eb101e3mr3278648plb.13.1704705553782; Mon, 08 Jan 2024 01:19:13 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1704705553; cv=none; d=google.com; s=arc-20160816; b=aHbh14AlQNwS5FRHDAK6VuWRnMWKmcFUfZTOqv/PlR7P2eltMuRc/9w1OAJAgzEVym QySnUmFGSW3Upa3qwyr1HHf4UaOcZrlQ4qJtR5cau1Yc6EApwciTofH+eEMHTyg54PAb rjMBGdA1CNzOc+rcCYl3Gp4N47nwe+hGxcbwcmb0+3nqh6H6z06cXdDhYHBR00YQdG+v 1l4GyoUZEfxMerwBYxVaqypxmcFhZzCyO5FcNyqLbNuw3JHFX7c3XNL/V57o5B8A0ZnE 1OUQ4DHS9SlMugjWXEYGhlHVGe7lpvMyg7QQ0ESRnVvxb4tERo44a0DVmmj5Ha0fc8ns 4loQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:list-unsubscribe:list-subscribe :list-id:precedence:dkim-signature; bh=TQw0PBv7H3F9npAXhHpc/yO+0aZTdw3iW7XYRioBY9M=; fh=CWa4bGNS/qs0but1WL5vNhrk9vEt/gXP02QshfNT1eM=; b=FCsp0uNWcAz0pkJOpL6xqaI/MYU4BBnKYq6bplR6/h99qlkJMVa8FKu9NHiBOLMvT9 0cq6ruB1ctDN6g7ARiq/CS54++J/ASxqMBKXAjk25/QzEK5cimyvJn9SA9JHJLbO0U+w V+jf+zBqQLXRpsTWqHSk75WvZmOAMRbl1ZPOHVgWVWjcLDSXFBAy33AUyQ++86G/8uhb P0riUstF63iU7wBsmf6/VqdniN+dMENgp0kNG1Oqfg1DTsKxzy9kSrd6kKaV9Qp+ekbC 40im8opTw9s8Mo7nxblL7OUgYMeRqkF26H+z67cMyxStcGYpc4qoB15Ql9xWd9KpMHCy SmoA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@isovalent.com header.s=google header.b=MzNX37sC; spf=pass (google.com: domain of linux-kernel+bounces-19258-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-19258-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=isovalent.com Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [2604:1380:40f1:3f00::1]) by mx.google.com with ESMTPS id o3-20020a170902d4c300b001d4e85ef7a7si5521346plg.0.2024.01.08.01.19.13 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 08 Jan 2024 01:19:13 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-19258-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) client-ip=2604:1380:40f1:3f00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@isovalent.com header.s=google header.b=MzNX37sC; spf=pass (google.com: domain of linux-kernel+bounces-19258-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-19258-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=isovalent.com 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 B0E35B21D74 for ; Mon, 8 Jan 2024 09:16:11 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 32F841173A; Mon, 8 Jan 2024 09:16:00 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=isovalent.com header.i=@isovalent.com header.b="MzNX37sC" X-Original-To: linux-kernel@vger.kernel.org Received: from mail-ej1-f41.google.com (mail-ej1-f41.google.com [209.85.218.41]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id A5D2612B87 for ; Mon, 8 Jan 2024 09:15:57 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=isovalent.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=isovalent.com Received: by mail-ej1-f41.google.com with SMTP id a640c23a62f3a-a28f66dc7ffso449397466b.0 for ; Mon, 08 Jan 2024 01:15:57 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=isovalent.com; s=google; t=1704705356; x=1705310156; darn=vger.kernel.org; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=TQw0PBv7H3F9npAXhHpc/yO+0aZTdw3iW7XYRioBY9M=; b=MzNX37sCftG06J7zDqRoVr0ASbCiDMbrmnnww9QwIfjHn6v305+3yC4sf5ZhItJ/P9 dWgD/FpnTIJwHE4ksSWe0LyKUd6OfMRRTu2GsW3LrzyYIlk1hIm1lWPPTQTB7KlqL7yN TZ4o5IaKMtV94FWQY6kwJIi2YrmviStlCIrez+Ok7YKHBE61mw9794RlBmRCxk8r8RUL VrdvaM3wBX128iDc7clv/XxbWwBql1tdTSo4hEdAuX6o0HA2yEC1qaVMYbdyxbkpNlPz Usmp583j3JFO42mG5KGuZPz8LDrv6DbVyXe7CC8l1Vt6gXrWdave70ArygI0WAZ/X/pQ wOmg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1704705356; x=1705310156; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=TQw0PBv7H3F9npAXhHpc/yO+0aZTdw3iW7XYRioBY9M=; b=eXT0b6R/zLuXrFuQ97FBacoTbCkBZ8Q56yqwHEPR75TS4JYimvICaWjoYBuhrx1l9O ISnmTCREphcsmZ+7jBVAf7qauA4VD+WLVxD3TO7TdD+CrQKHTRy27ZFAz29d2VgTAaCf wzA+KrO24thwblatE39ZTMzPc8dAKhPTDdOZ7wPsCNwCkn5ugtKzEG7roGa/m8ACd2Os 75/TSxXU8vsnbK2qkrtbN2aT4OHGJp9n3MoVdjc1zNWLqDK1XONVwX7p2selWnxn8PW/ eHHWQzAsJbAyvDTnU8VSxyvNzs0X6xERrYiEhwbDFNN9jSPjfyGLk11UK9qWGBAHx5vv PGTg== X-Gm-Message-State: AOJu0Yynumq8eMsliYJYYyNfPjjB2ay5gIMmyqjfvS8Jwz/s1DNHy4+h wUivvpEjwIebUeTYfYqtMiQqUInYyHyYNaGRUlC4/C64lkTGGQ== X-Received: by 2002:a17:906:1797:b0:a28:bd9c:8363 with SMTP id t23-20020a170906179700b00a28bd9c8363mr3034170eje.57.1704705356043; Mon, 08 Jan 2024 01:15:56 -0800 (PST) Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 References: In-Reply-To: From: Lorenz Bauer Date: Mon, 8 Jan 2024 10:15:45 +0100 Message-ID: Subject: Re: [PATCH bpf-next v3 0/3] Annotate kfuncs in .BTF_ids section To: Daniel Xu 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, olsajiri@gmail.com, quentin@isovalent.com, alan.maguire@oracle.com, memxor@gmail.com Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable On Sat, Jan 6, 2024 at 7:25=E2=80=AFPM Daniel Xu wrote: > > =3D=3D=3D Description =3D=3D=3D > > 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. This is great, thanks for tackling this. With yout patches we can figure out the full set of kfuncs. Is there a way to extend it so that we can tell which program context a kfunc can be called from?