#! stap global teststr probe begin { log("systemtap starting probe") } probe ioblock.request { teststr = sprintf("ioblock: %s\t%d\t%s\t%d\n", devname, sector, bio_rw_str(rw), rw) } probe ioblock.end { teststr = sprintf("ioblock: %s\t%d\t%s\t%d\n", devname, sector, bio_rw_str(rw), rw) } probe end { log("systemtap ending probe") printf("%s\n", teststr) }