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: Systemtap source compile for ARM arch


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



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