diff options
Diffstat (limited to 'systemtap/ioblock_delay/device.sh')
-rwxr-xr-x | systemtap/ioblock_delay/device.sh | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/systemtap/ioblock_delay/device.sh b/systemtap/ioblock_delay/device.sh new file mode 100755 index 0000000..1bb5ba3 --- /dev/null +++ b/systemtap/ioblock_delay/device.sh @@ -0,0 +1,5 @@ +#!/bin/sh + +test -e "/dev/$1" || { echo "USAGE: $0 <devicename without prefix>"; exit 1; } + +stap -c "dd if=\"/dev/$1\" of=/dev/null bs=1M" device.stp "$1" |