probing based on kernel source
Ananth N Mavinakayanahalli
ananth@in.ibm.com
Tue Sep 9 06:07:00 GMT 2008
On Tue, Sep 09, 2008 at 02:54:06PM +0900, Jun Koi wrote:
> On Tue, Sep 9, 2008 at 1:55 PM, Ananth N Mavinakayanahalli
> <ananth@in.ibm.com> wrote:
> > On Tue, Sep 09, 2008 at 01:46:13PM +0900, Jun Koi wrote:
> >> Hi,
> >>
> >> Is it possible to probe a place coresponding to a particular line of a
> >> particular file in Linux kernel souce code? If so, what is the syntax?
> >
> > See
> > http://sourceware.org/systemtap/langref/node6.html#SECTION00062200000000000000
> >
> > If the particular line you are trying to probe can't be probed due to
> > compiler optimizations, etc., stap will give you alternatives too.
>
> So I suppose that stap returns a list of (kernel) addresses that might
> be suitable to put the probe? If so, how can we know which one is
> correct??
Please try the suggestion.. it returns alternative line numbers not
virtual addresses, and that, only if your specified line number can't be
probed. In that case, you'll need to take the call which one of the
alternatives is appropriate.
Ananth
More information about the Systemtap
mailing list