summaryrefslogtreecommitdiffstats
path: root/testsuite/systemtap.base/kmodule.stp
blob: 9c718f29f38dd53832e5edefa086af4cbde290a0 (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
25
26
27
/*
 * kmodule.stp
 *
 * Simple function to test that systemtap can generate instument a module
 * function, install it, and get some output.
 */

global count

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

probe module("ext3").function("ext3_sync_file") ?,
      module("sd_mod").function("sd_rw_intr") ? ,
      module("ide").function("ide_intr") ?,
      never /* in case the above probes all miss */
{
	++count;
}

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