summaryrefslogtreecommitdiffstats
path: root/testsuite/semok/nodwf04.stp
blob: 84438fdaeed1b30270152b8085f79616173be4eb (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
#!/bin/sh
#
# Like nodwf01.stp, but extract the symbol table from vmlinux.

stap -p2 --ignore-dwarf --kelf -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()
}
'