From mboxrd@z Thu Jan 1 00:00:00 1970 From: David Miller Subject: Re: [PATCH v2 net-next] tcp: add tracepoint trace_tcp_retransmit_synack() Date: Fri, 03 Nov 2017 10:13:22 +0900 (KST) Message-ID: <20171103.101322.1439534279100072262.davem@davemloft.net> References: <20171030214135.2444870-1-songliubraving@fb.com> <20171030214135.2444870-2-songliubraving@fb.com> Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit Cc: netdev@vger.kernel.org, alexei.starovoitov@gmail.com, liu.song.a23@gmail.com To: songliubraving@fb.com Return-path: Received: from shards.monkeyblade.net ([184.105.139.130]:60426 "EHLO shards.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932657AbdKCBNZ (ORCPT ); Thu, 2 Nov 2017 21:13:25 -0400 In-Reply-To: <20171030214135.2444870-2-songliubraving@fb.com> Sender: netdev-owner@vger.kernel.org List-ID: From: Song Liu Date: Mon, 30 Oct 2017 14:41:35 -0700 > This tracepoint can be used to trace synack retransmits. It maintains > pointer to struct request_sock. > > We cannot simply reuse trace_tcp_retransmit_skb() here, because the > sk here is the LISTEN socket. The IP addresses and ports should be > extracted from struct request_sock. > > Note that, like many other tracepoints, this patch uses IS_ENABLED > in TP_fast_assign macro, which triggers sparse warning like: > > ./include/trace/events/tcp.h:274:1: error: directive in argument list > ./include/trace/events/tcp.h:281:1: error: directive in argument list > > However, there is no good solution to avoid these warnings. To the > best of our knowledge, these warnings are harmless. > > Signed-off-by: Song Liu > Acked-by: Alexei Starovoitov > Acked-by: Martin KaFai Lau Applied.