summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--examples/ChangeLog6
-rw-r--r--examples/socket-trace.stp6
2 files changed, 11 insertions, 1 deletions
diff --git a/examples/ChangeLog b/examples/ChangeLog
index 93896c9b..0d32fe3a 100644
--- a/examples/ChangeLog
+++ b/examples/ChangeLog
@@ -1,3 +1,7 @@
+2007-01-30 Frank Ch. Eigler <fche@elastic.org>
+
+ * socket-trace.stp: Added from the tutorial.
+
2007-01-29 Mike Mason <mmlnx@us.ibm.com>
* socktop, socktop.txt: New example that uses a shell script to process
@@ -15,7 +19,7 @@
2007-01-01 Frank Ch. Eigler <fche@redhat.com>
- * *: Added several .stp/.txt files from the wiki.
+ * *: Added several .stp/.txt files from the wiki.
2006-04-20 Martin Hunt <hunt@redhat.com>
diff --git a/examples/socket-trace.stp b/examples/socket-trace.stp
new file mode 100644
index 00000000..53b69ecc
--- /dev/null
+++ b/examples/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())
+}