summaryrefslogtreecommitdiffstats
path: root/testsuite/systemtap.examples/io/mbrwatch.stp
blob: f981073e01d3925deba64131753aab9b26fcabd4 (plain)
1
2
3
4
5
6
7
8
9
#! /usr/bin/env stap

probe ioblock.request {
    if (bdev==bdev_contains && sector<4) {
	printf("device %s sector %d %s, process %s[%d]\n",
		devname, sector, (rw==BIO_READ ? "read":"write"), execname(), pid())
	print_backtrace()
    }
}