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/nodwf05.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/nodwf05.stp')
-rwxr-xr-x | testsuite/semok/nodwf05.stp | 46 |
1 files changed, 46 insertions, 0 deletions
diff --git a/testsuite/semok/nodwf05.stp b/testsuite/semok/nodwf05.stp new file mode 100755 index 00000000..d0043eab --- /dev/null +++ b/testsuite/semok/nodwf05.stp @@ -0,0 +1,46 @@ +#!/bin/sh +# +# Like nodwf02.stp, but extract the symbol table from vmlinux. + +stap -p2 --ignore-dwarf --kelf -e ' +global ncall + +/* + * We want + * probe syscall.* + * but in the syscall tapset, the prologue blocks for the following system + * calls contain "if" statements that cause target variables to be read... + * and we cannot evaluate target variables without dwarf. + * bdflush, clock_nanosleep, fork, futex, getrusage, mq_open, open, sysfs + */ +probe + syscall.a*, + /* skip b */ + /* skip c */ + syscall.d*, + syscall.e*, + /* skip f */ + /* skip g */ + /* no h */ + syscall.i*, + /* no j */ + syscall.k*, + syscall.l*, + /* skip m */ + syscall.n*, + /* skip o */ + syscall.p*, + syscall.q*, + syscall.r*, + /* skip s */ + syscall.t*, + syscall.u*, + syscall.v*, + syscall.w* + /* no xyz */ +{ + printf("%s called\n", name) + if (ncall++ > 50) + exit() +} +' |