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