summaryrefslogtreecommitdiffstats
path: root/examples/socket-trace.stp
blob: e574205a63301e121ad410a130717e3502dd1dfc (plain)
1
2
3
4
5
6
7
#! /usr/bin/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())
}