summaryrefslogtreecommitdiffstats
path: root/examples/small_demos
diff options
context:
space:
mode:
authorhunt <hunt>2007-11-09 21:06:11 +0000
committerhunt <hunt>2007-11-09 21:06:11 +0000
commit4405ffef373aa53bfc1e93f70d481dcb095397ed (patch)
tree99f11fada3180f661cfc6dce92f8ce0efd3d194c /examples/small_demos
parent185457afd0b9b00f835e2bedcd6801aae432b699 (diff)
downloadsystemtap-steved-4405ffef373aa53bfc1e93f70d481dcb095397ed.tar.gz
systemtap-steved-4405ffef373aa53bfc1e93f70d481dcb095397ed.tar.xz
systemtap-steved-4405ffef373aa53bfc1e93f70d481dcb095397ed.zip
2007-11-09 Martin Hunt <hunt@redhat.com>
* README: New. * *.stp. Fix path. See PR 4718.
Diffstat (limited to 'examples/small_demos')
-rwxr-xr-xexamples/small_demos/close.stp5
-rwxr-xr-x[-rw-r--r--]examples/small_demos/fileopen.stp7
2 files changed, 11 insertions, 1 deletions
diff --git a/examples/small_demos/close.stp b/examples/small_demos/close.stp
index 53f53b25..7ba2a036 100755
--- a/examples/small_demos/close.stp
+++ b/examples/small_demos/close.stp
@@ -7,3 +7,8 @@ probe syscall.close {
probe syscall.close.return {
printf("%s\n", returnstr(returnp))
}
+
+probe end {
+ printf("DONE\n")
+}
+
diff --git a/examples/small_demos/fileopen.stp b/examples/small_demos/fileopen.stp
index 5d59ee55..c1298f9c 100644..100755
--- a/examples/small_demos/fileopen.stp
+++ b/examples/small_demos/fileopen.stp
@@ -1,9 +1,14 @@
+#! /usr/bin/env stap
+
+#
# fileopen.stp
#
# This is based on dtrace script from
# http://www.gnome.org/~gman/blog/2006/Jan
#
-#stap fileopen.stp -c "zenity --about"
+# stap fileopen.stp -c "zenity --about"
+# or
+# ./fileopen.stp -c "program or script"
global opens