summaryrefslogtreecommitdiffstats
path: root/testsuite/systemtap.samples/ioblocktest.stp
blob: 4aa3c3a93f658efd92611246408ae64527cd891b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
#! stap
global teststr
probe begin { log("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 { 
   log("systemtap ending probe")
   printf("%s", teststr)
}