Debian Codegraph @

testsuite/systemtap.examples/io/mbrwatch.meta

raw
1 title: Monitor Read/Write of the Boot Sector Area of Block Devices
2 name: mbrwatch.stp
3 version: 1.0
4 author: anonymous
5 keywords: io monitoring disk simple
6 subsystem: io
7 status: proposed
8 exit: user-controlled
9 output: trace
10 scope: system-wide
11 description: The mbrwatch.stp script reports any attempted reads/writes of the first few sectors of a raw block device.
12 test_check: stap -p4 mbrwatch.stp
13 test_installcheck: stap mbrwatch.stp -c "dd of=/dev/null count=1 if=/dev/`grep -v major /proc/partitions | grep . | grep -v 'sr[0-9]' | awk '{print $4}' | head -1`"