From 65da5355aa93d507d8ed8ca97ce7bed234af638a Mon Sep 17 00:00:00 2001 From: Jim Keniston Date: Fri, 18 Apr 2008 16:28:55 -0700 Subject: * testsuite/{semok,semko}/nodwf*.stp Shows what we currently can and can't do. --- testsuite/semok/nodwf01.stp | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100755 testsuite/semok/nodwf01.stp (limited to 'testsuite/semok/nodwf01.stp') 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() +} +' -- cgit