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/index.html | 3 + testsuite/systemtap.examples/index.txt | 8 + testsuite/systemtap.examples/keyword-index.html | 6 + testsuite/systemtap.examples/keyword-index.txt | 16 + .../systemtap.examples/network/tcp_trace.meta | 14 + testsuite/systemtap.examples/network/tcp_trace.stp | 744 +++++++++++++++++++++ testsuite/systemtap.examples/network/tcp_trace.txt | 26 + 7 files changed, 817 insertions(+) create mode 100644 testsuite/systemtap.examples/network/tcp_trace.meta create mode 100755 testsuite/systemtap.examples/network/tcp_trace.stp create mode 100644 testsuite/systemtap.examples/network/tcp_trace.txt (limited to 'testsuite/systemtap.examples') diff --git a/testsuite/systemtap.examples/index.html b/testsuite/systemtap.examples/index.html index 66118bfc..b0d70509 100644 --- a/testsuite/systemtap.examples/index.html +++ b/testsuite/systemtap.examples/index.html @@ -139,6 +139,9 @@ keywords: NETWORK network/tcp_connections.stp - Track Creation of Incoming TCP Connections
keywords: NETWORK TCP SOCKET

The tcp_connections.stp script prints information for each new incoming TCP connection accepted by the computer. The information includes the UID, the command accepting the connection, the PID of the command, the port the connection is on, and the IP address of the originator of the request.

+
  • network/tcp_trace.stp - Tcp connection tracing utility.
    +keywords: NETWORK TRACE
    +

    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.

  • network/tcpdumplike.stp - Dump of Received TCP Packets
    keywords: NETWORK TRAFFIC

    The tcpdumplike.stp prints out a line for each TCP packet received. Each line includes the source and destination IP addresses, the source and destination ports, and flags.

  • diff --git a/testsuite/systemtap.examples/index.txt b/testsuite/systemtap.examples/index.txt index cb2b10d3..29ca3c7d 100644 --- a/testsuite/systemtap.examples/index.txt +++ b/testsuite/systemtap.examples/index.txt @@ -317,6 +317,14 @@ keywords: network tcp socket originator of the request. +network/tcp_trace.stp - Tcp connection tracing utility. +keywords: network trace + + 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. + + network/tcpdumplike.stp - Dump of Received TCP Packets keywords: network traffic diff --git a/testsuite/systemtap.examples/keyword-index.html b/testsuite/systemtap.examples/keyword-index.html index 2aad9adf..f66269a2 100644 --- a/testsuite/systemtap.examples/keyword-index.html +++ b/testsuite/systemtap.examples/keyword-index.html @@ -249,6 +249,9 @@ keywords: NETWORK network/tcp_connections.stp - Track Creation of Incoming TCP Connections
    keywords: NETWORK TCP SOCKET

    The tcp_connections.stp script prints information for each new incoming TCP connection accepted by the computer. The information includes the UID, the command accepting the connection, the PID of the command, the port the connection is on, and the IP address of the originator of the request.

    +
  • network/tcp_trace.stp - Tcp connection tracing utility.
    +keywords: NETWORK TRACE
    +

    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.

  • network/tcpdumplike.stp - Dump of Received TCP Packets
    keywords: NETWORK TRAFFIC

    The tcpdumplike.stp prints out a line for each TCP packet received. Each line includes the source and destination IP addresses, the source and destination ports, and flags.

  • @@ -435,6 +438,9 @@ keywords: PROCESS general/para-callgraph.stp - Callgraph tracing with arguments
    keywords: TRACE CALLGRAPH

    Print a timed per-thread callgraph, complete with function parameters and return values. The first parameter names the function probe points to trace. The optional second parameter names the probe points for trigger functions, which acts to enable tracing for only those functions that occur while the current thread is nested within the trigger.

    +
  • network/tcp_trace.stp - Tcp connection tracing utility.
    +keywords: NETWORK TRACE
    +

    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.

  • TRACEPOINT