From 3620a030bc54971cc4cf85faaff7cb26710cd015 Mon Sep 17 00:00:00 2001 From: "Frank Ch. Eigler" Date: Thu, 8 Oct 2009 17:21:08 -0400 Subject: examples: add mbrwatch sample --- testsuite/systemtap.examples/io/mbrwatch.stp | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100755 testsuite/systemtap.examples/io/mbrwatch.stp (limited to 'testsuite/systemtap.examples/io/mbrwatch.stp') diff --git a/testsuite/systemtap.examples/io/mbrwatch.stp b/testsuite/systemtap.examples/io/mbrwatch.stp new file mode 100755 index 00000000..9d621619 --- /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() + } +} -- cgit