diff options
Diffstat (limited to 'testsuite/systemtap.samples/ioblocktest.stp')
-rw-r--r-- | testsuite/systemtap.samples/ioblocktest.stp | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/testsuite/systemtap.samples/ioblocktest.stp b/testsuite/systemtap.samples/ioblocktest.stp new file mode 100644 index 00000000..1386903c --- /dev/null +++ b/testsuite/systemtap.samples/ioblocktest.stp @@ -0,0 +1,14 @@ +#! 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) +} |