Debian Codegraph @

testsuite/systemtap.examples/io/inodewatch.stp

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 }