/* * 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) }