Received: by 2002:a25:31c3:0:0:0:0:0 with SMTP id x186csp2436518ybx; Fri, 8 Nov 2019 04:23:17 -0800 (PST) X-Google-Smtp-Source: APXvYqyNbggphcWw52hcHAgrziJVsr/rYD2I+ys9P4H8Yd9rgVbhushqhsmGW5lux8ZRU+UcXDwH X-Received: by 2002:a17:906:f181:: with SMTP id gs1mr8254663ejb.13.1573215797562; Fri, 08 Nov 2019 04:23:17 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1573215797; cv=none; d=google.com; s=arc-20160816; b=uDqxnJaRr+KHi+jhMBQoBxj9dSln7qhRfxE930hQZ2FPtymO5Z5uUmunHLN61pv1Xb W0pMM1ARo+8IyiWzC9UckK4mu4E8e9abyDB0ZJo0AZ35j6WrhHdwXY2cJ44og008WZoy nX07G+7sMsue0DwPlFjDrmPI7TlMdoLG/ivzNYWrEmo+pS/RTiHA5GqZbzR0+ZVcVkYU IWF1GWVww803DhP7Gp6Y2hTrINtwnsjOz0pWFlNLMZHPs4HAEQVvrzOgnfPG8G1OUp2g EjxdDfYlZT7EvtFXFOlxxG9rw2I2/3fMLHlBe0obfX9mca4+SHjQOzigklOx6hq0CuV/ Y9pA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject:dkim-signature; bh=265ilrPyAc+08beKAE2CsGbxxp/QxNAUXvuAhj1glKw=; b=pR8yg48TvEan+pAHpSOHzaz8rBM7M5BigRSsqp3zU9WtK/C7zfUZdjt7jUxf/ZHVTy 2rzsL9qmJ8LHu6oj8+hrH+jSdzwir7OF0u7V5YwPfhM/tqfjvV3mvN/kcTUIxgFb3iM0 QzIO0nLb+ps5xEfz7KMMEhhKehnLICSP7zCsknbyhugaLTg1XCrWepn/uASPgZ+4EqGf 7JFmkTBWa48FP+qjL7Ka1aJDlt3x1e70CcXALfoLvdkpVTftzKU5kBk1Mz1naJk8DiAQ XA9gZzRMEhNCAgF8/hrF0RD7VwyuG8I8aBI2gRyvLI+2x0X85tQju+rdCIEQdrBK0kOe Ws9g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=Xqvv0JCt; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 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 vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id f23si4309948edc.46.2019.11.08.04.22.53; Fri, 08 Nov 2019 04:23:17 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=Xqvv0JCt; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 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 S1732017AbfKHMWX (ORCPT + 99 others); Fri, 8 Nov 2019 07:22:23 -0500 Received: from mail-pg1-f194.google.com ([209.85.215.194]:38816 "EHLO mail-pg1-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727598AbfKHMWX (ORCPT ); Fri, 8 Nov 2019 07:22:23 -0500 Received: by mail-pg1-f194.google.com with SMTP id 15so3857542pgh.5; Fri, 08 Nov 2019 04:22:22 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=subject:to:cc:references:from:message-id:date:user-agent :mime-version:in-reply-to:content-language:content-transfer-encoding; bh=265ilrPyAc+08beKAE2CsGbxxp/QxNAUXvuAhj1glKw=; b=Xqvv0JCtG2UB2ibnORP5AnamGOCO5c5RCClyrHl5tAcm0SKqpjy3Jb8jbFJlv54Gs4 bqs0hUGHEO6qTLaRqH5AmbEl/9BJaRElGMx7JbzJFtcz9suz8bAkY3czNgrYc+gjK3Hq r4jnLqxU9bXeSQi8rzhgeqacY7VO1QZ/o4yvCkvgGPoR8uZKY7Hsc8/tGDxml1w8CO4f NLSht01j9yKBWBUBuUZ6M2oa6XkSnQgB+Rq6ZquOeKVj6EMzVXtMPORtsMosRN0BaDKq kVWHh87zTtyoYmR6jNFcloHsuuQhZcU9ZrnBeljnwt7nvZrOyW0i/O6CZqLFS4krF2ai WD7A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:cc:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=265ilrPyAc+08beKAE2CsGbxxp/QxNAUXvuAhj1glKw=; b=I4O+zwE3QM+9rHbs9b74ihV/fkMwzjIOn5jjxlS79xqCaWIAh9bFT5jFQREYuLdQsU gdMTOYLjvOyoJpLqrhxc3vvpN8LSJGsGfd8FW2tIVfe2EsXzgG6xhpPoc+ujm+29G0Ah geYYOaH0N8ie+boaOXm4Iy44zN9J1dHLpft26d/tI/XJUPTi+Ej/Dy0P8YffDzDQnVhp d525SAHVomZZaYE62NIuGL3OIYsY3ouftxRcRnyiPmMNPUYUypFFNJnqNoLAYPPEM71E B93nfz4RIYDo0TjWp7l/YIkWL7iujmVKNnBTeNMybWr+ezICZa+uM7DHJN6ZCQqzeZbT UmSQ== X-Gm-Message-State: APjAAAWhOrU9Ky9HbHcPbIywzi2Eh/hbFK5FNgwMDHkQ0jm5fi3S1USZ HrpmJJnJxpm7rJvEnFabwlI= X-Received: by 2002:a63:f923:: with SMTP id h35mr11853341pgi.323.1573215742278; Fri, 08 Nov 2019 04:22:22 -0800 (PST) Received: from [192.168.86.235] (c-73-241-150-58.hsd1.ca.comcast.net. [73.241.150.58]) by smtp.gmail.com with ESMTPSA id j23sm5465721pfe.95.2019.11.08.04.22.20 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Fri, 08 Nov 2019 04:22:21 -0800 (PST) Subject: Re: [PATCH] tcp: remove redundant new line from tcp_event_sk_skb To: Tony Lu , edumazet@google.com, rostedt@goodmis.org, mingo@redhat.com Cc: netdev@vger.kernel.org, linux-kernel@vger.kernel.org, Yafang Shao References: <20191108095007.26187-1-tonylu@linux.alibaba.com> From: Eric Dumazet Message-ID: <795f4bb1-b40e-1745-0df4-6e55d80d5272@gmail.com> Date: Fri, 8 Nov 2019 04:22:19 -0800 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.9.0 MIME-Version: 1.0 In-Reply-To: <20191108095007.26187-1-tonylu@linux.alibaba.com> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 11/8/19 1:50 AM, Tony Lu wrote: > This removes '\n' from trace event class tcp_event_sk_skb to avoid > redundant new blank line and make output compact. > > Signed-off-by: Tony Lu > --- > include/trace/events/tcp.h | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/include/trace/events/tcp.h b/include/trace/events/tcp.h > index 2bc9960a31aa..cf97f6339acb 100644 > --- a/include/trace/events/tcp.h > +++ b/include/trace/events/tcp.h > @@ -86,7 +86,7 @@ DECLARE_EVENT_CLASS(tcp_event_sk_skb, > sk->sk_v6_rcv_saddr, sk->sk_v6_daddr); > ), > > - TP_printk("sport=%hu dport=%hu saddr=%pI4 daddr=%pI4 saddrv6=%pI6c daddrv6=%pI6c state=%s\n", > + TP_printk("sport=%hu dport=%hu saddr=%pI4 daddr=%pI4 saddrv6=%pI6c daddrv6=%pI6c state=%s", > __entry->sport, __entry->dport, __entry->saddr, __entry->daddr, > __entry->saddr_v6, __entry->daddr_v6, > show_tcp_state_name(__entry->state)) > This seems good to me. Only few comments : I would add a Fixes: af4325ecc24f ("tcp: expose sk_state in tcp_retransmit_skb tracepoint") And also CC (I just did in this reply) the author of the above patch to make sure nothing unexpected happens. Thanks. Reviewed-by: Eric Dumazet