diff options
author | Jim Keniston <jkenisto@us.ibm.com> | 2008-04-18 16:28:55 -0700 |
---|---|---|
committer | Jim Keniston <jkenisto@us.ibm.com> | 2008-04-18 16:28:55 -0700 |
commit | 65da5355aa93d507d8ed8ca97ce7bed234af638a (patch) | |
tree | b42b4a867f52df9eb826fa5732fab76a2cf38394 /testsuite/semok/nodwf01.stp | |
parent | 5f0a03a685a11bda62d69588f39e3fc26375d180 (diff) | |
download | systemtap-steved-65da5355aa93d507d8ed8ca97ce7bed234af638a.tar.gz systemtap-steved-65da5355aa93d507d8ed8ca97ce7bed234af638a.tar.xz systemtap-steved-65da5355aa93d507d8ed8ca97ce7bed234af638a.zip |
* testsuite/{semok,semko}/nodwf*.stp
Shows what we currently can and can't do.
Diffstat (limited to 'testsuite/semok/nodwf01.stp')
-rwxr-xr-x | testsuite/semok/nodwf01.stp | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/testsuite/semok/nodwf01.stp b/testsuite/semok/nodwf01.stp new file mode 100755 index 00000000..c7a08f2a --- /dev/null +++ b/testsuite/semok/nodwf01.stp @@ -0,0 +1,12 @@ +#!/bin/sh + +stap -p2 --ignore-vmlinux --kmap=/proc/kallsyms -e ' +global nret + +probe syscall.*.return { + /* NB: $return does NOT currently work here. */ + printf("%s returns %s\n", name, returnstr(2)); + if (nret++ > 50) + exit() +} +' |