summaryrefslogtreecommitdiffstats
path: root/doc/tutorial/strace-open.stp
diff options
context:
space:
mode:
Diffstat (limited to 'doc/tutorial/strace-open.stp')
-rw-r--r--doc/tutorial/strace-open.stp8
1 files changed, 8 insertions, 0 deletions
diff --git a/doc/tutorial/strace-open.stp b/doc/tutorial/strace-open.stp
new file mode 100644
index 00000000..fb87cec1
--- /dev/null
+++ b/doc/tutorial/strace-open.stp
@@ -0,0 +1,8 @@
+probe syscall.open
+{
+ printf ("%s(%d) open (%s)\n", execname(), pid(), argstr)
+}
+probe timer.ms(4000) # after 4 seconds
+{
+ exit ()
+}