From 82bbafefff54ad2ec1ea2491ed0a13541047feb8 Mon Sep 17 00:00:00 2001 From: gnn Date: Sat, 9 May 2015 22:59:11 +0000 Subject: [PATCH] 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 git-svn-id: svn://svn.freebsd.org/base/stable/10@282701 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f --- cddl/lib/libdtrace/tcp.d | 2 ++ 1 file changed, 2 insertions(+) diff --git a/cddl/lib/libdtrace/tcp.d b/cddl/lib/libdtrace/tcp.d index da67e9c43..9cf5cb7f0 100644 --- a/cddl/lib/libdtrace/tcp.d +++ b/cddl/lib/libdtrace/tcp.d @@ -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 -- 2.45.0