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: probing based on kernel source


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


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