From b80e42444a0add45a63ad0f83a2bdfc3afad1ed9 Mon Sep 17 00:00:00 2001 From: hunt Date: Wed, 1 Feb 2006 22:15:59 +0000 Subject: 2006-02-01 Martin Hunt * stapfuncs.5.in: Document is_return(), returnval() and probefunc(). * testsuite/buildok/syscall.stp: Basic syscall test. --- testsuite/buildok/syscall.stp | 8 ++++++++ 1 file changed, 8 insertions(+) create mode 100755 testsuite/buildok/syscall.stp (limited to 'testsuite') 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) +} -- cgit