summaryrefslogtreecommitdiffstats
path: root/testsuite/semok/nodwf04.stp
diff options
context:
space:
mode:
Diffstat (limited to 'testsuite/semok/nodwf04.stp')
-rwxr-xr-xtestsuite/semok/nodwf04.stp14
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()
+}
+'