summaryrefslogtreecommitdiffstats
path: root/testsuite/semok/nodwf01.stp
blob: c7a08f2a61cb2c01a8d2d843372394363ad58819 (plain)
1
2
3
4
5
6
7
8
9
10
11
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()
}
'