| 1 |
title: Monitoring Reads and Writes to a File |
| 2 |
name: inodewatch.stp |
| 3 |
version: 1.0 |
| 4 |
author: anonymous |
| 5 |
keywords: io |
| 6 |
subsystem: io |
| 7 |
status: production |
| 8 |
exit: user-controlled |
| 9 |
output: trace |
| 10 |
scope: system-wide |
| 11 |
description: The inodewatch.stp outputs the executable name and process id each time a read or write occurs to the specified inode on the specified major/minor device. |
| 12 |
test_check: stap -p4 inodewatch.stp 0x08 0x01 100 |
| 13 |
test_installcheck: stap inodewatch.stp 0x08 0x01 100 -T 1 |