☰
Debian Codegraph
@
5.5-1
5.4-1
/
/
testsuite
/
systemtap.examples
/
io
/
inodewatch.stp
☽
☼
testsuite/systemtap.examples/io/inodewatch.stp
code
plain
raw
1
#! /usr/bin/env stap
2
3
probe vfs.{write,read}
4
{
5
# dev and ino are defined by vfs.write and vfs.read
6
if (dev == MKDEV($1,$2) # major/minor device
7
&& ino == $3)
8
printf ("%s(%d) %s 0x%x/%u\n",
9
execname(), pid(), ppfunc(), dev, ino)
10
}