This is the mail archive of the
systemtap@sourceware.org
mailing list for the systemtap project.
Re: SystemTap
- From: "Frank Ch. Eigler" <fche at redhat dot com>
- To: Frans Verster <fverster at gmail dot com>
- Cc: systemtap at sources dot redhat dot com
- Date: Sat, 21 Nov 2009 09:47:13 -0500
- Subject: Re: SystemTap
- References: <1cd351fc0911180659k7c49c97fk7e0b6463764f3894@mail.gmail.com> <20091118150807.GB12292@redhat.com> <1cd351fc0911180757l128dad05s44a2d689d5489d82@mail.gmail.com> <20091120152420.GD12292@redhat.com> <1cd351fc0911210529p95d3208k35d490d77225d162@mail.gmail.com>
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