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: can systemtap 0.9.9's uprobes be used on Linux Kernel 2.6.28 ?


On Tue, 2009-09-01 at 09:57 -0400, Frank Ch. Eigler wrote:
> Hi -
> 
> > Can systemtap 0.9.9's uprobes be used on Linux Kernel 2.6.28?
> 
> Yes, assuming it contains utrace.
> 
> > My system is Centos 5.3 and linux kernel is 2.6.28 [...]
> 
> RHEL5 (and centos) ship 2.6.18 + patches.  If you're really running
> 2.6.28, then please identify the version of utrace applied to it.
> 
> > [...]
> > In file included from /usr/local/share/systemtap/runtime/uprobes/uprobes_arch.h:4,
> >                  from /usr/local/share/systemtap/runtime/uprobes/uprobes.h:105,
> >                  from /usr/local/share/systemtap/runtime/uprobes/uprobes.c:42:
> > /usr/local/share/systemtap/runtime/uprobes/uprobes_i386.h: In function âarch_get_probeptâ:
> > /usr/local/share/systemtap/runtime/uprobes/uprobes_i386.h:55: errorïâstruct pt_regsâ has no âeipâ element
> > [...]
> 
> This is kind of weird, seemingly related to the x86_64+i386 arch
> merger done in the 2.6.24 timeframe.
> 
> - FChE

Yes.  With 2.6.27 or later, you should be running the "new" (as of
summer 2008) version of utrace, and that should cause uprobes/uprobes.c
to pull in ../uprobes2/uprobes.c... but that's not happening.
pt_regs->eip changed to pt_regs->ip somewhere around 2.6.25.

Jim


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