/* * kmodule.stp * * Simple function to test that systemtap can generate instument a module * function, install it, and get some output. */ global count probe begin { println("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 { println("systemtap ending probe") println("count = " . sprint(count)); }