blob: 1386903cc1bea473a275e87503aba9770c31cd12 (
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\n", teststr)
}
|