Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 19 Oct 2014 23:13:17 +0000 (UTC)
From:      "George V. Neville-Neil" <gnn@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r273293 - head/cddl/lib/libdtrace
Message-ID:  <201410192313.s9JNDHh9026655@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: gnn
Date: Sun Oct 19 23:13:16 2014
New Revision: 273293
URL: https://svnweb.freebsd.org/changeset/base/273293

Log:
  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
  MFC after:	2 weeks

Modified:
  head/cddl/lib/libdtrace/tcp.d

Modified: head/cddl/lib/libdtrace/tcp.d
==============================================================================
--- head/cddl/lib/libdtrace/tcp.d	Sun Oct 19 23:05:18 2014	(r273292)
+++ head/cddl/lib/libdtrace/tcp.d	Sun Oct 19 23:13:16 2014	(r273293)
@@ -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; /* XXX */
 	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.6.3" translator



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