summaryrefslogtreecommitdiffstats
path: root/testsuite/semok/nodwf06.stp
blob: d27e3f843651827aa1523f4993f2138a6cf2d5c0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
#!/bin/sh
#
# Test function-name wildcard.
# Like nodwf03.stp, but extract the symbol table from vmlinux.

stap -p2 --ignore-dwarf --kelf -e '
global ncall

probe kernel.function("sys_*") {
	printf("%s called\n", probefunc())
	if (ncall++ > 50)
		exit()
}
'