summaryrefslogtreecommitdiffstats
path: root/doc/tutorial/socket-trace.stp
diff options
context:
space:
mode:
Diffstat (limited to 'doc/tutorial/socket-trace.stp')
-rw-r--r--doc/tutorial/socket-trace.stp6
1 files changed, 6 insertions, 0 deletions
diff --git a/doc/tutorial/socket-trace.stp b/doc/tutorial/socket-trace.stp
new file mode 100644
index 00000000..53b69ecc
--- /dev/null
+++ b/doc/tutorial/socket-trace.stp
@@ -0,0 +1,6 @@
+probe kernel.function("*@net/socket.c") {
+ printf ("%s -> %s\n", thread_indent(1), probefunc())
+}
+probe kernel.function("*@net/socket.c").return {
+ printf ("%s <- %s\n", thread_indent(-1), probefunc())
+}