summaryrefslogtreecommitdiffstats
path: root/testsuite/systemtap.samples/ioblocktest.stp
blob: f8a1c5685e980c768ae2a2c9eb47b559180f03cf (plain)
1
2
3
4
5
6
7
8
9
10
11
12
#! stap
global teststr
probe begin { println("systemtap starting probe") }

probe ioblock.request, ioblock.end {
   teststr = sprintf("ioblock: %s\t%d\t%s\t%d\n", devname, sector,
                      bio_rw_str(rw), bio_rw_num(rw))
}
probe end { 
   println("systemtap ending probe")
   printf("%s", teststr)
}