This is the mail archive of the
systemtap@sourceware.org
mailing list for the systemtap project.
Re: can systemtap 0.9.9's uprobes be used on Linux Kernel 2.6.28 ?
- From: Jim Keniston <jkenisto at us dot ibm dot com>
- To: "Frank Ch. Eigler" <fche at redhat dot com>
- Cc: zshan <zshan at cse dot buaa dot edu dot cn>, systemtap <systemtap at sourceware dot org>
- Date: Tue, 01 Sep 2009 10:13:23 -0700
- Subject: Re: can systemtap 0.9.9's uprobes be used on Linux Kernel 2.6.28 ?
- References: <200909011204462693529@cse.buaa.edu.cn> <20090901135735.GP2986@redhat.com>
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