diff options
Diffstat (limited to 'examples/small_demos')
-rwxr-xr-x | examples/small_demos/close.stp | 5 | ||||
-rwxr-xr-x[-rw-r--r--] | examples/small_demos/fileopen.stp | 7 |
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 |