svn commit: r282701 - stable/10/cddl/lib/libdtrace
George V. Neville-Neil
gnn at FreeBSD.org
Sat May 9 22:59:13 UTC 2015
Author: gnn
Date: Sat May 9 22:59:11 2015
New Revision: 282701
URL: https://svnweb.freebsd.org/changeset/base/282701
Log:
MFC: 273293
Update the TCP structure used by DTrace to show the smoothed RTT.
This will allow similar functionality to SIFTR to be built with DTrace.
Submitted by: Grenville Armitage
Modified:
stable/10/cddl/lib/libdtrace/tcp.d
Directory Properties:
stable/10/ (props changed)
Modified: stable/10/cddl/lib/libdtrace/tcp.d
==============================================================================
--- stable/10/cddl/lib/libdtrace/tcp.d Sat May 9 22:48:48 2015 (r282700)
+++ stable/10/cddl/lib/libdtrace/tcp.d Sat May 9 22:59:11 2015 (r282701)
@@ -116,6 +116,7 @@ typedef struct tcpsinfo {
uint32_t tcps_rto; /* round-trip timeout, msec */
uint32_t tcps_mss; /* max segment size */
int tcps_retransmit; /* retransmit send event, boolean */
+ int tcps_srtt; /* smoothed RTT in units of (TCP_RTT_SCALE*hz) */
} tcpsinfo_t;
/*
@@ -200,6 +201,7 @@ translator tcpsinfo_t < struct tcpcb *p
tcps_rto = p == NULL ? -1 : (p->t_rxtcur * 1000) / `hz;
tcps_mss = p == NULL ? -1 : p->t_maxseg;
tcps_retransmit = p == NULL ? -1 : p->t_rxtshift > 0 ? 1 : 0;
+ tcps_srtt = p == NULL ? -1 : p->t_srtt; /* smoothed RTT in units of (TCP_RTT_SCALE*hz) */
};
#pragma D binding "1.0" translator
More information about the svn-src-stable-10
mailing list