diff options
Diffstat (limited to 'testsuite/systemtap.examples/io/mbrwatch.stp')
-rwxr-xr-x | testsuite/systemtap.examples/io/mbrwatch.stp | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/testsuite/systemtap.examples/io/mbrwatch.stp b/testsuite/systemtap.examples/io/mbrwatch.stp new file mode 100755 index 00000000..f981073e --- /dev/null +++ b/testsuite/systemtap.examples/io/mbrwatch.stp @@ -0,0 +1,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() + } +} |