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
_______________________________________________
svn-src-all@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/svn-src-all
To unsubscribe, send any mail to "svn-src-all-unsubscr...@freebsd.org"

Reply via email to