summaryrefslogtreecommitdiffstats
path: root/testsuite/systemtap.examples/io/mbrwatch.stp
diff options
context:
space:
mode:
Diffstat (limited to 'testsuite/systemtap.examples/io/mbrwatch.stp')
-rwxr-xr-xtestsuite/systemtap.examples/io/mbrwatch.stp9
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..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()
+ }
+}