summaryrefslogtreecommitdiffstats
path: root/testsuite/systemtap.examples/network/socket-trace.stp
blob: 13ab8e06bddc53e945af38bdc26a33183f3545cb (plain)
1
2
3
4
5
6
7
8
#! /usr/bin/env stap

probe kernel.function("*@net/socket.c").call {
  printf ("%s -> %s\n", thread_indent(1), probefunc())
}
probe kernel.function("*@net/socket.c").return {
  printf ("%s <- %s\n", thread_indent(-1), probefunc())
}