summaryrefslogtreecommitdiffstats
path: root/testsuite/systemtap.base/kfunct.stp
blob: 93031395125133a460ac568c6c52ad8fcb1296cb (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
/*
 * kfunct.stp
 *
 * Very simple function to test that systemtap can generate a kernel module,
 * install it, and get some output.
 */

global count

probe begin
{
	println("systemtap starting probe")
}

probe kernel.function("schedule")
{
	++count;
}

probe end
{
	println("systemtap ending probe")
	printf("count = %d\n", count)
}