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.meta | 6 ++++++ 1 file changed, 6 insertions(+) create mode 100644 testsuite/systemtap.examples/io/mbrwatch.meta (limited to 'testsuite/systemtap.examples/io/mbrwatch.meta') diff --git a/testsuite/systemtap.examples/io/mbrwatch.meta b/testsuite/systemtap.examples/io/mbrwatch.meta new file mode 100644 index 00000000..0ff88b13 --- /dev/null +++ b/testsuite/systemtap.examples/io/mbrwatch.meta @@ -0,0 +1,6 @@ +title: Monitor read/write of MBR (boot sector) area of block devices +name: mbrwatch.stp +keywords: io monitoring +description: The mbrwatch.stp script reports any attempted reads/writes of the first few sectors of a raw block device. +test_check: stap -p4 mbrwatch.stp +test_installcheck: stap mbrwatch.stp -c "dd of=/dev/null count=1 if=/dev/`grep -v major /proc/partitions | grep . | awk '{print $4}' | head -1`" -- cgit