SystemTap
Frank Ch. Eigler
fche@redhat.com
Sat Nov 21 14:48:00 GMT 2009
Hi -
> OK as soon as it works nicely i will add [ubuntu kernel rebuild
> instructions] to the wiki.
Great.
> I am trying out the samples, with one i have troubles, can you run
> inodewatch-simple.stp ?
Not quite; the old scripts transcribed into the documentation fell
behind modern kernels. $file->f_dentry would need to be replaced with
$file->f_path->dentry. The tapset library of script fragments is
meant to hide such changes (see tapset/vfs.stp for example), but that
script must have been written with an older version of the tapset in
mind. With current tapset actually, you'd replace those two whole
$-expressions with:
dev_nr = dev
ino_nr = ino
since vfs.read/.write provide "cooked" dev & ino values.
See $prefix/share/doc/systemtap*/examples for more current samples.
- FChE
More information about the Systemtap
mailing list