summaryrefslogtreecommitdiffstats
path: root/testsuite
diff options
context:
space:
mode:
authorhunt <hunt>2006-02-01 22:15:59 +0000
committerhunt <hunt>2006-02-01 22:15:59 +0000
commitb80e42444a0add45a63ad0f83a2bdfc3afad1ed9 (patch)
treed782529187e8606cdef8b0d5964b9080b49b7d35 /testsuite
parented9eb1787b052dbd53aa2ba98f79bc2e4aba3b75 (diff)
downloadsystemtap-steved-b80e42444a0add45a63ad0f83a2bdfc3afad1ed9.tar.gz
systemtap-steved-b80e42444a0add45a63ad0f83a2bdfc3afad1ed9.tar.xz
systemtap-steved-b80e42444a0add45a63ad0f83a2bdfc3afad1ed9.zip
2006-02-01 Martin Hunt <hunt@redhat.com>
* stapfuncs.5.in: Document is_return(), returnval() and probefunc(). * testsuite/buildok/syscall.stp: Basic syscall test.
Diffstat (limited to 'testsuite')
-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)
+}