summaryrefslogtreecommitdiffstats
path: root/testsuite/buildok
diff options
context:
space:
mode:
Diffstat (limited to 'testsuite/buildok')
-rwxr-xr-xtestsuite/buildok/syscall.stp8
1 files changed, 8 insertions, 0 deletions
diff --git a/testsuite/buildok/syscall.stp b/testsuite/buildok/syscall.stp
new file mode 100755
index 00000000..f4f23c62
--- /dev/null
+++ b/testsuite/buildok/syscall.stp
@@ -0,0 +1,8 @@
+#! stap -p4
+
+probe syscall.*, syscall.*.return {
+ if (returnp)
+ printf("%d\n", returnval())
+ else
+ printf("%s (%s) = ", name, argstr)
+}