diff options
Diffstat (limited to 'testsuite/semok/nodwf04.stp')
-rwxr-xr-x | testsuite/semok/nodwf04.stp | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/testsuite/semok/nodwf04.stp b/testsuite/semok/nodwf04.stp new file mode 100755 index 00000000..84438fda --- /dev/null +++ b/testsuite/semok/nodwf04.stp @@ -0,0 +1,14 @@ +#!/bin/sh +# +# Like nodwf01.stp, but extract the symbol table from vmlinux. + +stap -p2 --ignore-dwarf --kelf -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() +} +' |