From 2e2516781661f5a4b41e4dc79d423250e057f271 Mon Sep 17 00:00:00 2001 From: "David J. Wilder" Date: Thu, 8 Oct 2009 11:00:20 -0700 Subject: This script (tcp_trace) can be used to trace tcp connection parameters and state changes. This work was original inspired by Stephen Hemminger's TCP cwnd snooper (net/ipv4/tcp_probe.c). Tcp_trace is a helpful tool for troubleshooting connection performance issues. --- testsuite/systemtap.examples/network/tcp_trace.meta | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 testsuite/systemtap.examples/network/tcp_trace.meta (limited to 'testsuite/systemtap.examples/network/tcp_trace.meta') diff --git a/testsuite/systemtap.examples/network/tcp_trace.meta b/testsuite/systemtap.examples/network/tcp_trace.meta new file mode 100644 index 00000000..2783c89b --- /dev/null +++ b/testsuite/systemtap.examples/network/tcp_trace.meta @@ -0,0 +1,14 @@ +title: Tcp connection tracing utility. +name: tcp_trace.stp +version: 1.0 +author: varuncha@in.ibm.com wilder@us.ibm.com +keywords: network trace +subsystem: network +status: production +exit: user-controlled +output: timed +scope: per-socket +arg_[0-9]+: tcp_trace.stp filter=all|state|txq|rxq|srtt|snd_cwnd|snd_wnd|rexmit|pmtu|ssthresh|timer|rcvwnd [timeout=] [update=change|all] Rule +description: This scripts traces a given tcp connection based on the filter parameters given by the user. The indexing is done by the 4 tuples local address, remote address, local port, remote port. +test_check: stap -p4 tcp_trace.stp +test_installcheck: stap tcp_trace.stp 127.0.0.1:*-127.0.0.1:* timeout=1 -- cgit