summaryrefslogtreecommitdiffstats
path: root/testsuite/systemtap.samples/ioblocktest.stp
blob: 43b3e7d0b8105dee79a5849a26b60c11349a45ff (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
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", teststr)
}