Received: by 2002:a25:31c3:0:0:0:0:0 with SMTP id x186csp3718813ybx; Sat, 9 Nov 2019 02:35:44 -0800 (PST) X-Google-Smtp-Source: APXvYqxXxJ1wdGdUuUc4eNBGjRfXjlAtGMQlyLvWUH8z6ByeRJgc1MItjOc5HTMUZoySL5FiX2DJ X-Received: by 2002:aa7:d552:: with SMTP id u18mr15604648edr.86.1573295743947; Sat, 09 Nov 2019 02:35:43 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1573295743; cv=none; d=google.com; s=arc-20160816; b=pVrSN/aS4QLL9hBW9N16zuT9T1107Yy48C5PPXmca+CUb3BaNgsZ31YBtvCxWqW5pp Jh7P4lB3pPu7Gd0Ux48hIbM4WfDadOEMhXoa9E72y4IMvACQi44bLJhI4b050vguZ2tq eOfWMFD4Wt0adLkvFMCERGwCCSQZUky8i+5tkPNknXqyp+7013E+Kmdg/2iBBNArVK7f 3KKXMgjm9LfPB30IpRwHDn2H5tHHXgOur3RGl0MvNSPZYQsUkQxa3DzhJtspCNrwsD/x uYe6KZ/B55VBC7dUZfSmYZoqAHHyCpLqBBviqOJ0BC0PSDiDZsgUU9n+v23bgeq4UYQt N11g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:reply-to:message-id :subject:cc:to:from:date; bh=PyNaoXMMRcvnEoOu5iGnimpi9UA+IH7R2DIkxsytc2c=; b=IOKuBt0xObJ01F7E9gl4oY7GCjvtGkYmP9JFY2Yxy7upR7t6k5pzynEdkA/vi7bvWn +fSt00x36DL2qfS4zoo2fo/4+dC5YmENUgLO1LUInLlSh2fUZNe8LAqIptBEfuH1X3Rn iH0b35Cw7q8cygVQMXhrb9sjb4fPROn5p7BpYTvsIM4PQaQz5ULI92iE4ZhtiplGD39c eIKpne7jF70xtQte3ZPzUFfW0zdVcrrO3UNSdHH4b8Tl/9ZFsaHQ/wqjM/wCIyl9Oqx3 32wS8HULrj/jGhGGBvvhotiFiTPceKzDrpLU4lbFaWm5SuCoC/hyneCBMKB7huCYJ4w5 AJQA== ARC-Authentication-Results: i=1; mx.google.com; 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=fail (p=NONE sp=NONE dis=NONE) header.from=alibaba.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id z3si5332966ejb.42.2019.11.09.02.35.05; Sat, 09 Nov 2019 02:35:43 -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; 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=fail (p=NONE sp=NONE dis=NONE) header.from=alibaba.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726402AbfKIKeL (ORCPT + 99 others); Sat, 9 Nov 2019 05:34:11 -0500 Received: from out30-43.freemail.mail.aliyun.com ([115.124.30.43]:55704 "EHLO out30-43.freemail.mail.aliyun.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726145AbfKIKeL (ORCPT ); Sat, 9 Nov 2019 05:34:11 -0500 X-Alimail-AntiSpam: AC=PASS;BC=-1|-1;BR=01201311R181e4;CH=green;DM=||false|;FP=0|-1|-1|-1|0|-1|-1|-1;HT=e01f04391;MF=tonylu@linux.alibaba.com;NM=1;PH=DS;RN=7;SR=0;TI=SMTPD_---0ThZCqFZ_1573295647; Received: from localhost(mailfrom:tonylu@linux.alibaba.com fp:SMTPD_---0ThZCqFZ_1573295647) by smtp.aliyun-inc.com(127.0.0.1); Sat, 09 Nov 2019 18:34:07 +0800 Date: Sat, 9 Nov 2019 18:34:07 +0800 From: Tony Lu To: Eric Dumazet Cc: edumazet@google.com, rostedt@goodmis.org, mingo@redhat.com, netdev@vger.kernel.org, linux-kernel@vger.kernel.org, Yafang Shao Subject: Re: [PATCH] tcp: remove redundant new line from tcp_event_sk_skb Message-ID: <20191109103407.GA61998@TonyMac-Alibaba> Reply-To: Tony Lu References: <20191108095007.26187-1-tonylu@linux.alibaba.com> <795f4bb1-b40e-1745-0df4-6e55d80d5272@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <795f4bb1-b40e-1745-0df4-6e55d80d5272@gmail.com> User-Agent: Mutt/1.12.2 (2019-09-21) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Thanks for your comments, I am going to append the tag. Cheers, Tony Lu On Fri, Nov 08, 2019 at 04:22:19AM -0800, Eric Dumazet wrote: > > > 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