This is the mail archive of the
systemtap@sourceware.org
mailing list for the systemtap project.
Re: Systemtap source compile for ARM arch
- From: Eugene Teo <eteo at redhat dot com>
- To: Naren chandru <naren_lin at yahoo dot co dot in>
- Cc: systemtap at sources dot redhat dot com
- Date: Wed, 11 Jul 2007 21:21:37 +0800
- Subject: Re: Systemtap source compile for ARM arch
- Organization: Red Hat, Inc
- References: <288227.23971.qm@web94305.mail.in2.yahoo.com>
- Resent-user-agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.8.1.4) Gecko/20070615 Fedora/2.0.0.4-1.fc7 Thunderbird/2.0.0.4
Naren chandru wrote:
> Hi all,
>
> I am new to systemtap. I have downloaded the
> systemtap-20070630.tar.bz2 src and compiled for i686
> architecture without any issue the source get
> compiled.
>
> Now I am trying to build it for ARM architecture. I
> don't know how to cross compile systemtap for ARM
> architecture. Please help me to cross compile system
> tap for arm arch.
>
> If anyone have the procedure for system tap cross
> compilation pls tell me the procedure.
Are you using scratchbox? I was trying to get SystemTap working on scratchbox
but I didn't manage to go any further than just stap -e 'probe begin {...}'.
It has some problems with looking up for the kernel debuginfo. I have not looked
at it further, so I am not sure if it is a problem with SystemTap or scratchbox.
Quentin mentioned that he got SystemTap working by installing it natively. I
have not tried that.
Also, take note that if your device is using busybox instead of bash, you need
to edit /usr/libexec/systemtap/stp_check to use sh instead of bash. And if
CONFIG_CPU_CP15 is not defined, you need this patch[1] (not necessary if you use
the cvs version of SystemTap).
Btw, you also need the kprobes kernel patches for ARM[2,3].
Let me know how it goes. Thanks!
[1] http://sourceware.org/ml/systemtap-cvs/2007-q3/msg00021.html
[2] http://www.arm.linux.org.uk/developer/patches/viewpatch.php?id=4447
[3] http://www.kernel.org/pub/linux/kernel/people/eugeneteo/kprobes/
Eugene