Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp5089973rwd; Sun, 4 Jun 2023 20:35:17 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ6TP6sw/pmI6kyE2sAhKQvEas7sB8lrE1Sktnxit7r2KzYnh81Frk8Dp0esdCCTLwzT7zM1 X-Received: by 2002:a05:6a00:1996:b0:652:a559:b2c5 with SMTP id d22-20020a056a00199600b00652a559b2c5mr11090830pfl.13.1685936117249; Sun, 04 Jun 2023 20:35:17 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1685936117; cv=none; d=google.com; s=arc-20160816; b=TZCc+65Drghetqio9VTXyoYjqyAbtLPpc0xV3RJIPc/IEPgIgNEfYQscaENCNNGoNz mYrgedDf6NA9jHWTEk4dSUtGRvOCz7DJfbNIHmFixgiPoyonkANU/dQMSp46aoCYIzdW QW09SMzQp8k6SbcUo+7L5Y8JF4CYfZFDp1/O2yuYf7un1K6sr9lJcX3+Kdd7C5Q/p9i4 f4DnXDsKgz5D1Q+/I1im9Xh+GmNKXf3c8o3/6nfC7U/5/hbqcuOFYS+IBQCPfLQM2Sfg 8mLGXqQUsRa2n75mXiKdPea73WjUSbSxoEuWSwJ6jVdRNIu9EDJPPtjOoQj0t+Gv0ZZr jXoA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:cc:to:subject :message-id:date:from:in-reply-to:references:mime-version :dkim-signature; bh=2IVNYUufQ9JCjk49iI258fSjZYigZQWdzvsQcVbQviE=; b=D2Okdp8+VRQ+wl4r+FQkmPpukEUaX4q4YkS5V1SR6aqYRWSlnzyQwO/jkyx4IYCqK8 GbHyFzq2Cg+Y6gcLTk/s6Mcymbzdr4XG9Z1ZXpWD+GBu9FM+MHuMClMkUxxEcvDfcJ+G PvxHAjQADpnF+tloOxoGc88VVwil91tpMwd/GdTypS4zw74NS2hZLfpjHEmzI4rlZHbJ NGJ6G3ynzZzVN7lDuCuQg/HqpSE8hC2jpaCg1SHHIJzUjJ7XPVb1ZS5Kz+yNORxWsI22 i3tzKTf3fpDO38REXKUKUh1zCww3/SWQ5AVtPLO1xMlJn28CYJkys2E1aMWqLajrjQm8 04QQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20221208 header.b=dV4piXu9; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id z17-20020a63b911000000b0052c4e3dafa4si4751479pge.395.2023.06.04.20.35.05; Sun, 04 Jun 2023 20:35:17 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20221208 header.b=dV4piXu9; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231271AbjFECzF (ORCPT + 99 others); Sun, 4 Jun 2023 22:55:05 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56544 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229886AbjFECzD (ORCPT ); Sun, 4 Jun 2023 22:55:03 -0400 Received: from mail-yw1-x1142.google.com (mail-yw1-x1142.google.com [IPv6:2607:f8b0:4864:20::1142]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 6A6E2A9; Sun, 4 Jun 2023 19:55:02 -0700 (PDT) Received: by mail-yw1-x1142.google.com with SMTP id 00721157ae682-568928af8f5so65242317b3.1; Sun, 04 Jun 2023 19:55:02 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1685933701; x=1688525701; 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=2IVNYUufQ9JCjk49iI258fSjZYigZQWdzvsQcVbQviE=; b=dV4piXu9PusE2f0xIH/vuYYIZdmUHuPOvQr2y4/6tZM/3HCW6JWkANpKLIamWlR+En QBAqp0fj1ylVJ9flBMXgLswL4Mba1+U8kXlIXVHKLX/RQGTc/bH8dPhsoQoXNu9hYnoK LXYNp1/JiP77RxyUi2sA4r5LmJ454in3rYb1kcH4rx31l85gOul/8oXTc2yN/7TLPGc7 w2cBC99uUg7+ZeA2MECeBp7Us+A9ag/H2J+buTYBX2zUxn2tgOrMJ+AALc9pDxZqD8xY yqJ8cIMGJZ1YkIls9DlAWl40+NsnRKJo72aF6tpXNEnVewqP4ToM6YMs7YADGn+nznFL o/4w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1685933701; x=1688525701; 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=2IVNYUufQ9JCjk49iI258fSjZYigZQWdzvsQcVbQviE=; b=Z1A5LXKYAyaa1CMatC0mOlcCxkZ8Zuwn0k/4joLghz5xOGdJypgLP4QEyz0zMObRlG NRzGJJvyfdsnN4EyFwOC3YCB9xNncz7g6Jw51EyS0JPjjQ3HaYpcItbRyO6Irpd9Kt1A yrHjycyVtsa1mUGKJmnDVpk9x7AR5fz+VipE3dQwjjZ7mjvfAuEEYLSJfmmCJh/j+ohE gogo0BBvtzyDKuoZUf6itsr1CGuTArX4hxLSzZZutlu5XxVXEP6+0JIDrJhTH1u5l0xa /uQPPhF4/dHB4cQLB0c3U1+yWrnhzSwLlXCyeCWeR9PtqfwOMdbAyw/YupFuHOOrySDI FJlw== X-Gm-Message-State: AC+VfDyLbiy0WKTc8VS1IKq8Wsqyhw0oYU1fFxlOfEYzBK7C7PtOMlQB l4FYvhEd0Anl2eB+66KNMbnWJeUNUR/UFyElvfQ= X-Received: by 2002:a0d:ea45:0:b0:561:9bcc:6c81 with SMTP id t66-20020a0dea45000000b005619bcc6c81mr6969492ywe.24.1685933701633; Sun, 04 Jun 2023 19:55:01 -0700 (PDT) MIME-Version: 1.0 References: <20230602065958.2869555-1-imagedong@tencent.com> <20230602065958.2869555-2-imagedong@tencent.com> In-Reply-To: From: Menglong Dong Date: Mon, 5 Jun 2023 10:54:50 +0800 Message-ID: Subject: Re: [PATCH bpf-next v2 1/5] bpf: make MAX_BPF_FUNC_ARGS 14 To: Simon Horman Cc: Jiri Olsa , "David S. Miller" , David Ahern , Alexei Starovoitov , Daniel Borkmann , Andrii Nakryiko , Martin KaFai Lau , Song Liu , Yonghong Song , KP Singh , Jiri Olsa , X86 ML , Biao Jiang , Network Development , bpf , LKML , "open list:KERNEL SELFTEST FRAMEWORK" Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM, RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Sat, Jun 3, 2023 at 10:13=E2=80=AFPM Simon Horman wrote: > > On Fri, Jun 02, 2023 at 02:59:54PM +0800, menglong8.dong@gmail.com wrote: > > From: Menglong Dong > > > > According to the current kernel version, below is a statistics of the > > function arguments count: > > > > argument count | FUNC_PROTO count > > 7 | 367 > > 8 | 196 > > 9 | 71 > > 10 | 43 > > 11 | 22 > > 12 | 10 > > 13 | 15 > > 14 | 4 > > 15 | 0 > > 16 | 1 > > > > It's hard to statisics the function count, so I use FUNC_PROTO in the b= tf > > of vmlinux instead. The function with 16 arguments is ZSTD_buildCTable(= ), > > which I think can be ignored. > > > > Therefore, let's make the maximum of function arguments count 14. It us= ed > > to be 12, but it seems that there is no harm to make it big enough. > > > > Reviewed-by: Jiang Biao > > Signed-off-by: Menglong Dong > > --- > > include/linux/bpf.h | 9 +++++---- > > 1 file changed, 5 insertions(+), 4 deletions(-) > > > > diff --git a/include/linux/bpf.h b/include/linux/bpf.h > > index f58895830ada..8b997779faf7 100644 > > --- a/include/linux/bpf.h > > +++ b/include/linux/bpf.h > > @@ -961,10 +961,10 @@ enum bpf_cgroup_storage_type { > > > > #define MAX_BPF_CGROUP_STORAGE_TYPE __BPF_CGROUP_STORAGE_MAX > > > > -/* The longest tracepoint has 12 args. > > - * See include/trace/bpf_probe.h > > +/* The maximun number of the kernel function arguments. > > Hi Menglong Dong, > > as it looks like there will be a v3 anyway, please > consider correcting the spelling of maximum. > According to the advice of Alexei Starovoitov, it seems we don't need to modify it here anymore. Anyway, Thank you for reminding me of this spelling mistake :) > ...