Received: by 2002:a05:7412:bc1a:b0:d7:7d3a:4fe2 with SMTP id ki26csp373127rdb; Sat, 19 Aug 2023 05:24:04 -0700 (PDT) X-Google-Smtp-Source: AGHT+IHJbI7IXNO40I7ZQjxvmottbitYVOTLS8ajm6JxjKoRFbyzYpKOKbicETyFSwrcn6/FZHQv X-Received: by 2002:a05:6a00:2d0c:b0:676:2a5c:7bc5 with SMTP id fa12-20020a056a002d0c00b006762a5c7bc5mr2354115pfb.1.1692447844579; Sat, 19 Aug 2023 05:24:04 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1692447844; cv=none; d=google.com; s=arc-20160816; b=v2IrDV/PkkjR7CoNKcXiWmt8jhYa32WSaATOj86BiVveuISOFffzrDuVyA/P2O10AJ BCCdYfK1wuBCprsKTUkGu8tfnAY6KbEXX+VscNorPG3GPCsTHRtKCpdg22VZiW7GRN46 nH9kuoorrVZiA8ZdgdBUA435ucIALHS3x7DwQ2kmEVEPyPsONU3tQ+13RRu0ZeS/z7s4 YOOxgYKtTf+tchzEyWB3uPYONx0ASpXCmKbm4C14/+fUwhoybuA5a2yW3QtPFo/2fmoy 7+eFWakc33pkuxvQ2gCsGUSqtuEL1hT9/IZPfaXO9ghjHCvLe89wZNQEXTUC5ciUeBl5 NLBg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :content-language:references:cc:to:subject:user-agent:mime-version :date:message-id:feedback-id:dkim-signature:dkim-signature; bh=bqqqxjVQXB11bXS2XPDSYy3H/z1FMuEH1+F+yhBNcXM=; fh=cNybPQPYfdwMsdoGGNnblFiN6NqgiozitKAbxTaPEQM=; b=h11PeVsb4gXeWzVQXAbbeeTCv4fpXFpPcz7cuUJIa/OEDgNnbAUZ2h4a34rBNCiszP yi0QZSRbzRW39RgGUl8CWZscVAQnXz9c4sobCoRkZPkiWPBN+4XjHvUTdX43gSmXaEQZ HqD1pC4UmjghdXLbJ9GvPjf3eUyoY4VIKUb4wLgWVivbtx/zyInGHHSD5DMbi5MEECes e3+1ae79oAZy6iXCPRCZmq1vRTEEeMixLvtUik7iAmOYbiE4ZztBfL6sS1Y6NlSFYduR WEvgZGF/R/csB54q6x3bOVW51SzAjhnNl/XM1h5ShpY094eJpvxy1e5oEyhg6LDXWFpY rxtg== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (expired) header.i=@manjusaka.me header.s=fm3 header.b=SpGcFI9t; dkim=neutral (expired) header.i=@messagingengine.com header.s=fm1 header.b=dSXAhvZy; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [2620:137:e000::1:18]) by mx.google.com with ESMTPS id b16-20020aa78710000000b00689f8ed74efsi3267256pfo.341.2023.08.19.05.24.04 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 19 Aug 2023 05:24:04 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) client-ip=2620:137:e000::1:18; Authentication-Results: mx.google.com; dkim=neutral (expired) header.i=@manjusaka.me header.s=fm3 header.b=SpGcFI9t; dkim=neutral (expired) header.i=@messagingengine.com header.s=fm1 header.b=dSXAhvZy; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 6DE9E81823; Sat, 19 Aug 2023 01:37:11 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1345015AbjHPQ6y (ORCPT + 99 others); Wed, 16 Aug 2023 12:58:54 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34430 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1345055AbjHPQ6e (ORCPT ); Wed, 16 Aug 2023 12:58:34 -0400 Received: from wout2-smtp.messagingengine.com (wout2-smtp.messagingengine.com [64.147.123.25]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E64B81BE7; Wed, 16 Aug 2023 09:58:31 -0700 (PDT) Received: from compute5.internal (compute5.nyi.internal [10.202.2.45]) by mailout.west.internal (Postfix) with ESMTP id 082113200936; Wed, 16 Aug 2023 12:58:26 -0400 (EDT) Received: from mailfrontend2 ([10.202.2.163]) by compute5.internal (MEProxy); Wed, 16 Aug 2023 12:58:28 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=manjusaka.me; h= cc:cc:content-transfer-encoding:content-type:content-type:date :date:from:from:in-reply-to:in-reply-to:message-id:mime-version :references:reply-to:sender:subject:subject:to:to; s=fm3; t= 1692205106; x=1692291506; bh=bqqqxjVQXB11bXS2XPDSYy3H/z1FMuEH1+F +yhBNcXM=; b=SpGcFI9tty5G9XxTIQp3m6j1v9g7Rc+qHIb5y47g7gC6r0+95eY +X+ZSJi+X0Dxakt4z2FYC2C4DqK0ylAhgjHgVdEP2s4W3dL49EhSfVcu1VvvB/Yp iHiffyxaZI6Qz8LlZeX5SwRgnapi5xZqp0wfYFk9C+BbySVny8N8wi+LFBysjpKB LPI1VHIOzflT3dZmwW8wI0GIj1YlhKCQWpBy2mQ1qcnobS1Y1pgxEKcZHvM+HDGC IAN8LTbyBQIHsmu87bLmJFcC0Ctu3mnGAO8N8t5MYvCUyFNApef30btJhD4+pjlx 3QDLHg7vCkw+mUodUjzm+oFT6va+yzeKciQ== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:cc:content-transfer-encoding :content-type:content-type:date:date:feedback-id:feedback-id :from:from:in-reply-to:in-reply-to:message-id:mime-version :references:reply-to:sender:subject:subject:to:to:x-me-proxy :x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s=fm1; t= 1692205106; x=1692291506; bh=bqqqxjVQXB11bXS2XPDSYy3H/z1FMuEH1+F +yhBNcXM=; b=dSXAhvZyD1Sz+sOQ3jiijy0iUP53HYcBiZP2hGb3arMwbXBe7S8 KxRPuWgfAp0WTOQrJBRLRUDkLJ7DO0tXCBgODTGcaZU0FFONSpiIpiOilPzF2aJ4 ZcVMzU6OyGB4JshhmAoM9SmBQttKYuGubGqypLM0+c124+53N1Rb3qq75ECJJOFT Nux9CJL6fjoiCPTY8k5dCL+sCfJZihdtEquH9S2GsPS+G2/javkjTdhTVRS8Bj3I 1tSyjvGtxnoHpwZH384e8BtvEe9VouYSvNsGKh2ZlnXOREIRuGVzTzDJWcdEPsuL vCRTPD4+7620a0NJfy2EK6MMBkoF3mBPw6w== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedviedruddtledguddtlecutefuodetggdotefrod ftvfcurfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfgh necuuegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmd enucfjughrpefkffggfgfuvfevfhfhjggtgfesthejredttddvjeenucfhrhhomhepofgr nhhjuhhsrghkrgcuoehmvgesmhgrnhhjuhhsrghkrgdrmhgvqeenucggtffrrghtthgvrh hnpeehheevjeeiudegledtleevuddufedttdekudfgteejjeetfeejleejffdtvdeugeen ucevlhhushhtvghrufhiiigvpedtnecurfgrrhgrmhepmhgrihhlfhhrohhmpehmvgesmh grnhhjuhhsrghkrgdrmhgv X-ME-Proxy: Feedback-ID: i3ea9498d:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Wed, 16 Aug 2023 12:58:19 -0400 (EDT) Message-ID: <82771f1c-9659-4aaa-bded-62bef6082bf8@manjusaka.me> Date: Thu, 17 Aug 2023 00:58:05 +0800 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH v3] tracepoint: add new `tcp:tcp_ca_event` trace event To: Steven Rostedt Cc: Joe Perches , 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 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> <8b0f2d2b-c5a0-4654-9cc0-78873260a881@manjusaka.me> <20230816110206.13980573@gandalf.local.home> Content-Language: en-US From: Manjusaka In-Reply-To: <20230816110206.13980573@gandalf.local.home> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_BLOCKED, SPF_HELO_PASS,SPF_PASS,URIBL_BLOCKED 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 2023/8/16 23:02, Steven Rostedt wrote: > On Wed, 16 Aug 2023 14:09:06 +0800 > Manjusaka wrote: > >>> +# 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*$/) { >>> >>> >>> >> >> Actually, I'm not sure this is the checkpatch style issue or my code style issue. >> >> Seems wired. > > The TRACE_EVENT() macro has its own style. I need to document it, and > perhaps one day get checkpatch to understand it as well. > > The TRACE_EVENT() typically looks like: > > > TRACE_EVENT(name, > > TP_PROTO(int arg1, struct foo *arg2, struct bar *arg3), > > TP_ARGS(arg1, arg2, arg3), > > TP_STRUCT__entry( > __field( int, field1 ) > __array( char, mystring, MYSTRLEN ) > __string( filename, arg3->name ) > ), > > TP_fast_assign( > __entry->field1 = arg1; > memcpy(__entry->mystring, arg2->string); > __assign_str(filename, arg3->name); > ), > > TP_printk("field1=%d mystring=%s filename=%s", > __entry->field1, __entry->mystring, __get_str(filename)) > ); > > The TP_STRUCT__entry() should be considered more of a "struct" layout than > a macro layout, and that's where checkpatch gets confused. The spacing > makes it much easier to see the fields and their types. > > -- Steve Thanks for the explain! So could I keep the current code without any code style change? I think it would be a good idea to fix the checkpatch.pl script in another patch