3 # Calin-Andrei Burloiu, 2011, calin.burloiu@gmail.com
5 # This script is used by SystemTap to hook the moments when TCP system calls
6 # tcp_sendmsg (net/ipv4/tcp_output.c) and tcp_transmit_skb
7 # (net/ipv4/tcp_output.c) are called and logs them to the output file.
8 # The output is going to be processed in the handle packets client script.
13 if (pid() == target())
14 printf("%d %s -> %s\n", gettimeofday_ns(), thread_indent(1), probefunc())
17 probe kernel.function("tcp_sendmsg@net/ipv4/tcp.c")
22 probe kernel.function("tcp_transmit_skb@net/ipv4/tcp_output.c")