Received: by 2002:a05:7412:6592:b0:d7:7d3a:4fe2 with SMTP id m18csp1823284rdg; Sat, 12 Aug 2023 19:38:34 -0700 (PDT) X-Google-Smtp-Source: AGHT+IFPCPISYeS2HTCq+FxyBwRXHpZVxt7NACfhu7u1EcETSPmGUDMIaxibiH185NcGYMVaozmQ X-Received: by 2002:a17:902:bd43:b0:1b8:adea:76d0 with SMTP id b3-20020a170902bd4300b001b8adea76d0mr4563756plx.31.1691894313657; Sat, 12 Aug 2023 19:38:33 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1691894313; cv=none; d=google.com; s=arc-20160816; b=O1JpH6SPetJHhf8fvW1apH4MK/t50FzBSB2dt9zknERaqFjxiqFYb6ZVtSU2VV9yr/ MSLMezp90LgNWrtu2AaleurMw7OxqdXy+D5xK6QbbbB+qxOfFk6UInfbUrkORULEOpEY fbn4HD2ol8HcMKs9fs/xaZDYUqTGbYWTOffjTS6n0erbrUlmCUIv/RvzuKiTUqqW+k5C PH7g/OS4Gkokr8Xa5zwwsv0BtkcbuEBf6ZGpf1uNALkEGdbSXGoFVhy1MV2d9F0czXA1 3YCfI1fdwrRDH1By1DGtkIcHPQj4P3uubIKLkm7NkvX7WwveoqyO1nKBMe6zzYOfh/F8 78CA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:user-agent :content-transfer-encoding:references:in-reply-to:date:cc:to:from :subject:message-id; bh=p+XVA4w3t9iyzAyYDPzNaA1CfqNMauE5krXjcVzDLSg=; fh=QMjBWQN/7cMaJlu1Y4yHkBqydoMFInP5xzsbuHIlewg=; b=bZp5vbOZGr8bA6xKcHQVGoWw1ghb0TblFQXgvCla3J8IlTBufpEk6rrlAM+d2lBxNP E4UCfPl93fo5IGCszVzA7TTUz0r2vwRjpzKUBD0F/EzHqlVbkuEIfjHtmoNVYEDNCFr3 jG5XB9SxFqJwbt3cJs73oo0G60AFNjAydcWcA961mJXwZFjIQItBDCcxRG9IhS4y+w0l iGVJUuG0EOSNw4oawaQRnNY10ZmensBhM7nwDO4Ye7YHKiX0CkUKoQ5qOXnYa2wXpeLI JSCeJ860K5fFvaX2nry2ER44rT9gmV9TBywRUtP7bTWSS/5lcVO8s47FEyLIfDemFgvd webg== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id o15-20020a17090a0a0f00b002680dba282csi5966447pjo.182.2023.08.12.19.38.15; Sat, 12 Aug 2023 19:38:33 -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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230200AbjHMCI0 convert rfc822-to-8bit (ORCPT + 99 others); Sat, 12 Aug 2023 22:08:26 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41664 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229458AbjHMCIZ (ORCPT ); Sat, 12 Aug 2023 22:08:25 -0400 Received: from relay.hostedemail.com (smtprelay0012.hostedemail.com [216.40.44.12]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 4572CB4; Sat, 12 Aug 2023 19:08:27 -0700 (PDT) Received: from omf01.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay08.hostedemail.com (Postfix) with ESMTP id 2925114040F; Sun, 13 Aug 2023 02:08:25 +0000 (UTC) Received: from [HIDDEN] (Authenticated sender: joe@perches.com) by omf01.hostedemail.com (Postfix) with ESMTPA id A38016000F; Sun, 13 Aug 2023 02:08:21 +0000 (UTC) Message-ID: Subject: Re: [PATCH v3] tracepoint: add new `tcp:tcp_ca_event` trace event From: Joe Perches To: Steven Rostedt Cc: Zheao Li , edumazet@google.com, bpf@vger.kernel.org, davem@davemloft.net, dsahern@kernel.org, kuba@kernel.org, linux-kernel@vger.kernel.org, linux-trace-kernel@vger.kernel.org, mhiramat@kernel.org, ncardwell@google.com, netdev@vger.kernel.org, pabeni@redhat.com Date: Sat, 12 Aug 2023 19:08:20 -0700 In-Reply-To: <20230812215327.1dbd30f3@rorschach.local.home> References: <20230812201249.62237-1-me@manjusaka.me> <20230812205905.016106c0@rorschach.local.home> <20230812210140.117da558@rorschach.local.home> <20230812210450.53464a78@rorschach.local.home> <6bfa88099fe13b3fd4077bb3a3e55e3ae04c3b5d.camel@perches.com> <20230812215327.1dbd30f3@rorschach.local.home> Content-Type: text/plain; charset="ISO-8859-1" Content-Transfer-Encoding: 8BIT User-Agent: Evolution 3.48.4 (3.48.4-1.fc38) MIME-Version: 1.0 X-Rspamd-Server: rspamout03 X-Rspamd-Queue-Id: A38016000F X-Stat-Signature: 3k674k5cyum391tkwztpyf6dighwktqn X-Spam-Status: No, score=-0.9 required=5.0 tests=BAYES_00,FORGED_SPF_HELO, RCVD_IN_DNSWL_BLOCKED,RCVD_IN_MSPIKE_H3,RCVD_IN_MSPIKE_WL, SPF_HELO_PASS,SPF_NONE,UNPARSEABLE_RELAY autolearn=no autolearn_force=no version=3.4.6 X-Session-Marker: 6A6F6540706572636865732E636F6D X-Session-ID: U2FsdGVkX1+BdS2QWQ7CIyNzWx+BfWch9SSUrvtweNk= X-HE-Tag: 1691892501-986183 X-HE-Meta: U2FsdGVkX182cJZYs5TTbpuQUYTU8mHjC5KKOJSgqmulNzf/BICLAZ8euaXCM5soosuO+b1scqkNGYRwVuXEzRzlpi8cGffeI3CX5kG4aSTIe0zpDYkJQjar/Q9031i6fECnVUYg+juGws/mF6V6SKrFQu8bwXzl4WEEZ0LDSUJBjndwE5wSY/0yYBX4hHreRjJdj3seZX9VVLlouyQLP//IHyNYgDrv5hgdY4bAxQmBysF8RuPhm3kRkRfJ73d+9w2HUT+R1+YlYerbNotl3H+Z89sfLvDQkyqW0ZovCMSJtzuzUGHpUeQDFT2v5XYj6rapjWQazKtyxv9961n4a8HugqcWNPugjzm+v4u3VE3kJIdE1ns4uW85xOHGwDZe 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, 2023-08-12 at 21:53 -0400, Steven Rostedt wrote: > On Sat, 12 Aug 2023 18:17:17 -0700 > Joe Perches wrote: > > > > I forgot to say "for TRACE_EVENT() macros". This is not about what > > > checkpatch says about other code. > > > > trace has its own code style and checkpatch needs another > > parsing mechanism just for it, including the alignment to > > open parenthesis test. > > If you have a template patch to add the parsing mechanism, I'd be happy > to try to fill in the style. There is no checkpatch mechanism per se. It's all ad-hoc. Perhaps something like this though would work well enough as it just avoids all the other spacing checks and such. --- scripts/checkpatch.pl | 3 +++ 1 file changed, 3 insertions(+) diff --git a/scripts/checkpatch.pl b/scripts/checkpatch.pl index 528f619520eb9..3017f4dd09fd2 100755 --- a/scripts/checkpatch.pl +++ b/scripts/checkpatch.pl @@ -3947,6 +3947,9 @@ sub process { } } +# trace include files use a completely different grammar + next if ($realfile =~ m{(?:include/trace/events/|/trace\.h$/)}); + # check multi-line statement indentation matches previous line if ($perl_version_ok && $prevline =~ /^\+([ \t]*)((?:$c90_Keywords(?:\s+if)\s*)|(?:$Declare\s*)?(?:$Ident|\(\s*\*\s*$Ident\s*\))\s*|(?:\*\s*)*$Lval\s*=\s*$Ident\s*)\(.*(\&\&|\|\||,)\s*$/) {