Tracing Functions Called in Network Socket Code
script examples
tracing functions called in network socket code
examples of SystemTap scripts
tracing functions called in network socket code
tracing functions called in network socket code
examples of SystemTap scripts
network socket code, tracing functions called in
examples of SystemTap scripts
functions called in network socket code, tracing
examples of SystemTap scripts
http://sourceware.org/systemtap/examples/network/socket-trace.stp
script examples
net/socket.c, tracing functions from
examples of SystemTap scripts
net/socket.c, tracing functions from
net/socket.c, tracing functions from
examples of SystemTap scripts
This section describes how to trace functions called from the kernel's net/socket.c file. This task helps you identify, in finer detail, how each process interacts with the network at the kernel level.
socket-trace.stp
is identical to , which was earlier used in to illustrate how thread_indent() works.
Sample Output
[...]
0 Xorg(3611): -> sock_poll
3 Xorg(3611): <- sock_poll
0 Xorg(3611): -> sock_poll
3 Xorg(3611): <- sock_poll
0 gnome-terminal(11106): -> sock_poll
5 gnome-terminal(11106): <- sock_poll
0 scim-bridge(3883): -> sock_poll
3 scim-bridge(3883): <- sock_poll
0 scim-bridge(3883): -> sys_socketcall
4 scim-bridge(3883): -> sys_recv
8 scim-bridge(3883): -> sys_recvfrom
12 scim-bridge(3883):-> sock_from_file
16 scim-bridge(3883):<- sock_from_file
20 scim-bridge(3883):-> sock_recvmsg
24 scim-bridge(3883):<- sock_recvmsg
28 scim-bridge(3883): <- sys_recvfrom
31 scim-bridge(3883): <- sys_recv
35 scim-bridge(3883): <- sys_socketcall
[...]
contains a 3-second excerpt of the output for . For more information about the output of this script as provided by thread_indent(), refer to .