summaryrefslogtreecommitdiffstats
path: root/testsuite/systemtap.base/kfunct.stp
blob: 15be51bd31b70feaaef74dbe749dd3bc51d1a45b (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
{
	log("systemtap starting probe")
}

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

probe end
{
	log("systemtap ending probe")
	log("count = " . sprint(count));
}