This is the mail archive of the systemtap@sourceware.org mailing list for the systemtap project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: SystemTap


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]