From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id A4056C47DB3 for ; Wed, 31 Jan 2024 11:02:34 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:In-Reply-To:MIME-Version:References: Message-ID:Subject:Cc:To:Date:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=79EF9BQQPWqnfPiv8V9gYjbd6byL0CpcGUcQ/KrFMD0=; b=1mPTiNl1TXQXPw 3wgFETbBmJyhYgyLOhQbHwfKgTX9PZlhEuJFJOEyTxReO9eCqOUsHhHzgQeInasUjR3+VkdbM2PtF GbJ+GwJOJ/qmNDDscou3ng1c+1o8APTBnnrG9XPBeHurqjNQLc0qZsLcdXw5T78EoEdJZNQ9NumvE F4frgke4Yb7qWQ+t/aG4qdORt0wg5kt20SLpo5f0EawnbAMXnqZHEu2fMm/DssQl5yOEScWeMZkLY 4COXjEHiIFYYUiaZly/KXOmMF2rdrcyihyruRwaAJwn1eB7Zpkbqi5GENF+XhHs4I52qdkNIhpq7q V2cYfLPDZt5FwuvSzLAQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1rV8M9-00000002x2U-3lte; Wed, 31 Jan 2024 11:02:13 +0000 Received: from desiato.infradead.org ([2001:8b0:10b:1:d65d:64ff:fe57:4e05]) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1rV7CO-00000002ZTD-2fDP for linux-arm-kernel@bombadil.infradead.org; Wed, 31 Jan 2024 09:48:04 +0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=desiato.20200630; h=In-Reply-To:Content-Type:MIME-Version: References:Message-ID:Subject:Cc:To:Date:From:Sender:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description; bh=/O9XgRbkcBJVk7UwNZF0sbS5DqjZwvxc08GdgHW/6js=; b=IO7Do/M/vC2uxRLSk10ZB3TA99 yWB1Ny44ate3XPJopvMgDvgwCuwdIkdImu+ls3D28DVwRfl9fPZVbh7IF7GRqFnqZwyKm+W9/o0HY m2bOEwrcIWXwQHTwOZIwa7u9aVY07RIzSbcE8zfEWgHLhqcQsfGea9npmCeJXjWqo0yMOUU3EpKzV lVWB8rXlD1WWMq6yHTySa35dDpf5riQoOVOMFopFA7rZN2OmdH0MkWABU0dd12N6VB6+U92X/ZvR4 qdhVeEUj9e734bB2bgPxIJYpPQEAHxsIVkx5CIAxrRVki+9RfhYmXFUlW+3W1yoY2ZknOmrVFZBZ/ +s8EiInw==; Received: from mail-ed1-x536.google.com ([2a00:1450:4864:20::536]) by desiato.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1rV7CF-00000008vf3-23Y3 for linux-arm-kernel@lists.infradead.org; Wed, 31 Jan 2024 09:48:01 +0000 Received: by mail-ed1-x536.google.com with SMTP id 4fb4d7f45d1cf-55f15762840so3033781a12.0 for ; Wed, 31 Jan 2024 01:47:50 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1706694469; x=1707299269; darn=lists.infradead.org; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:date:from:from:to:cc:subject:date:message-id:reply-to; bh=/O9XgRbkcBJVk7UwNZF0sbS5DqjZwvxc08GdgHW/6js=; b=LtVSH/VQZN3kd8M/NdhPXwyrsb8W9/+n7i+ka1ASQPnkC7t0g4iVXv+qLIgf11x/ts Cn/sgxB9JyOkmxV+1d0rJnU242/Gaw3q4iEH8OVG4m9BvQgNj13cYTmfXjrK+6OTq0Vx vrAjgUxGt4o/jE7Uak2VlN6SY3FQZAzrNSOXq0JGECO2mcu8RLHlcqlV+1bD5e577foI TVDhQv8CctxUB5kt2WSYyjcYF68J2EskdokS6nXSZ7Gf5+pJiv3cSP0V2DBZNHa35Fqj vmMeoA6le/Dy5HwJEPN7SeVSU75+vz5KzsYI6C9uZFKA5z6sL79AVBiLD20dhitnfrTV gp+A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1706694469; x=1707299269; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:date:from:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=/O9XgRbkcBJVk7UwNZF0sbS5DqjZwvxc08GdgHW/6js=; b=kSGPuPBSHaTd2qVJRB5E+049mC6avPZJAb60yogVRr11HL9pxposFGpjCGq3zfTkZ6 wtKxKQMKJAuFl0HHN7CssSoGBU7Rxba0AtIVwGZ/+fJDkeJHBd3oBOhGDeYrUVf4c1f3 K4bThNL2n2S4dCb4w4yCntK57Kjtf64Qx63MWlFrQlpaxq4PsbUHQrlMhbbB2FlU6Yll OL6wQMYmopEsywjJlksjt4oUfnxwvuyNxo0UmFx2ArNmZdJ7L0qe3V63PUV2fPRsu4hy 9B/GfZQVbtF7ZzP5sd1iFfnU1N1lXlOHVfPRJU9woOOWYMA5W1fMK6iBRuGhMFWdYokM l4PA== X-Gm-Message-State: AOJu0YxDyFWBQt2c3C6SKr7JNCLdf58L48boaRfzlvV7iz6h6PEkWuDD xBIwGbJza7+glw+XmqBZT4B19WNt8xPuXK5Aa2VabyZUBT2/7ZviTJUsyDce3B4= X-Google-Smtp-Source: AGHT+IG7soa47inYZ5qRD0y2IAxLTuYubf/We9SppnGjsvKB6J8PYmZ+J/JIhIYIFJ4eW+ahV6p0bw== X-Received: by 2002:aa7:d3da:0:b0:55f:4d7e:e4e9 with SMTP id o26-20020aa7d3da000000b0055f4d7ee4e9mr677420edr.21.1706694468728; Wed, 31 Jan 2024 01:47:48 -0800 (PST) X-Forwarded-Encrypted: i=0; AJvYcCWiQ74i0rflV78kHDD47By+VknL25M/waMOcUseNfD20dtrpXOOs6Ao+gTVaS8DbJxsRAeqz0D74nt/JzPKas4fElzSMHU34w5JZzRUGMeCAfihCbaCTiQtK30VNQHIpMClOh/RhgzoLzRD/c1G/GVg0n2Xq1yaP8QSGbquEojq3tT0Ngp9tgp1T6NjSPqpuhw4DhU9xq79sMBc5xVg7kfNgh4MfGP1W3tMOXWVvEe5W0CC5fKzqDdHHTTGS1QOI9O9mpkOaAG0lC3hMGyOu6hJjVOqkDF2AtMfPuS4xMj7fCJjzvqm+cUx7U68p5sHDS08r2ExD56T3alGKXX+JFF294bvkxPJwLkg3PUtv/w5GuijywP9P340TIWpJOibm28GzcD4n7N3R2cWhzhCC1ZRuTsBrBzZlEdQDW2w0kXXeNOVnMvePqRJBle9+Wy7OIKJquy1qbLmRF4/H25zBeTsCAH4Wy9nyUOXN8pxxvIVX7wTkzS+UhPMdncPI31/9xJnRQ52G7Mwr6HgtzhnzFvpG8wDV4yMM1b/N6zfStQBk29H6BbZcak5QEGndd41sRMDxxRDBmN3rlsn5DHQVqMqSulzElZgC/jBr455JmuklDm8/pD/zLy/KjDHB+xhJTLEPbpfOgfZCZyVWspgqXl5Dx0u3G27UtAUjenX6FjpCzau Received: from krava (2001-1ae9-1c2-4c00-726e-c10f-8833-ff22.ip6.tmcz.cz. [2001:1ae9:1c2:4c00:726e:c10f:8833:ff22]) by smtp.gmail.com with ESMTPSA id h11-20020aa7c94b000000b00558a3268bbcsm5651569edt.53.2024.01.31.01.47.47 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 31 Jan 2024 01:47:48 -0800 (PST) From: Jiri Olsa X-Google-Original-From: Jiri Olsa Date: Wed, 31 Jan 2024 10:47:46 +0100 To: Daniel Xu Cc: linux-trace-kernel@vger.kernel.org, coreteam@netfilter.org, bpf@vger.kernel.org, linux-input@vger.kernel.org, cgroups@vger.kernel.org, netdev@vger.kernel.org, linux-stm32@st-md-mailman.stormreply.com, linux-kselftest@vger.kernel.org, linux-doc@vger.kernel.org, fsverity@lists.linux.dev, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, netfilter-devel@vger.kernel.org, alexei.starovoitov@gmail.com, olsajiri@gmail.com, quentin@isovalent.com, alan.maguire@oracle.com, memxor@gmail.com Subject: Re: [PATCH bpf-next v4 0/3] Annotate kfuncs in .BTF_ids section Message-ID: References: MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240131_094757_691558_714D5613 X-CRM114-Status: GOOD ( 17.19 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org On Sun, Jan 28, 2024 at 06:24:05PM -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 and bpftool changes can be viewed > here on these "frozen" branches [0][1]. > > [0]: https://github.com/danobi/pahole/tree/kfunc_btf-v3-mailed > [1]: https://github.com/danobi/linux/tree/kfunc_bpftool-mailed > > === Changelog === > > Changes from v3: > * Rebase to bpf-next and add missing annotation on new kfunc Acked-by: Jiri Olsa jirka > > Changes from v2: > * Only WARN() for vmlinux kfuncs > > Changes from v1: > * Move WARN_ON() up a call level > * Also return error when kfunc set is not properly tagged > * Use BTF_KFUNCS_START/END instead of flags > * Rename BTF_SET8_KFUNC to BTF_SET8_KFUNCS > > Daniel Xu (3): > bpf: btf: Support flags for BTF_SET8 sets > bpf: btf: Add BTF_KFUNCS_START/END macro pair > bpf: treewide: Annotate BPF kfuncs in BTF > > Documentation/bpf/kfuncs.rst | 8 +++---- > drivers/hid/bpf/hid_bpf_dispatch.c | 8 +++---- > fs/verity/measure.c | 4 ++-- > include/linux/btf_ids.h | 21 +++++++++++++++---- > kernel/bpf/btf.c | 8 +++++++ > kernel/bpf/cpumask.c | 4 ++-- > kernel/bpf/helpers.c | 8 +++---- > kernel/bpf/map_iter.c | 4 ++-- > kernel/cgroup/rstat.c | 4 ++-- > kernel/trace/bpf_trace.c | 8 +++---- > net/bpf/test_run.c | 8 +++---- > net/core/filter.c | 20 +++++++++--------- > net/core/xdp.c | 4 ++-- > net/ipv4/bpf_tcp_ca.c | 4 ++-- > net/ipv4/fou_bpf.c | 4 ++-- > net/ipv4/tcp_bbr.c | 4 ++-- > net/ipv4/tcp_cubic.c | 4 ++-- > net/ipv4/tcp_dctcp.c | 4 ++-- > net/netfilter/nf_conntrack_bpf.c | 4 ++-- > net/netfilter/nf_nat_bpf.c | 4 ++-- > net/xfrm/xfrm_interface_bpf.c | 4 ++-- > net/xfrm/xfrm_state_bpf.c | 4 ++-- > .../selftests/bpf/bpf_testmod/bpf_testmod.c | 8 +++---- > 23 files changed, 87 insertions(+), 66 deletions(-) > > -- > 2.42.1 > _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel