Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 10 Apr 2018 15:54:29 +0000 (UTC)
From:      "Jonathan T. Looney" <jtl@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r332379 - head/sys/netinet
Message-ID:  <201804101554.w3AFsTE5048636@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: jtl
Date: Tue Apr 10 15:54:29 2018
New Revision: 332379
URL: https://svnweb.freebsd.org/changeset/base/332379

Log:
  Move the TCP Blackbox Recorder probe in tcp_output.c to be with the
  other tracing/debugging code.
  
  Sponsored by:	Netflix, Inc.

Modified:
  head/sys/netinet/tcp_output.c

Modified: head/sys/netinet/tcp_output.c
==============================================================================
--- head/sys/netinet/tcp_output.c	Tue Apr 10 15:51:37 2018	(r332378)
+++ head/sys/netinet/tcp_output.c	Tue Apr 10 15:54:29 2018	(r332379)
@@ -1311,10 +1311,6 @@ send:
 	}
 #endif
 
-	/* We're getting ready to send; log now. */
-	TCP_LOG_EVENT(tp, th, &so->so_rcv, &so->so_snd, TCP_LOG_OUT, ERRNO_UNK,
-	    len, NULL, false);
-
 	/*
 	 * Enable TSO and specify the size of the segments.
 	 * The TCP pseudo header checksum is always provided.
@@ -1362,6 +1358,10 @@ send:
 	}
 #endif /* TCPDEBUG */
 	TCP_PROBE3(debug__output, tp, th, m);
+
+	/* We're getting ready to send; log now. */
+	TCP_LOG_EVENT(tp, th, &so->so_rcv, &so->so_snd, TCP_LOG_OUT, ERRNO_UNK,
+	    len, NULL, false);
 
 	/*
 	 * Fill in IP length and desired time to live and



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201804101554.w3AFsTE5048636>