can systemtap 0.9.9's uprobes be used on Linux Kernel 2.6.28 ?
Jim Keniston
jkenisto@us.ibm.com
Tue Sep 1 17:13:00 GMT 2009
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
More information about the Systemtap
mailing list