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: error to run systemtap in an ARM platform


Hi Da,

On Thu, 2011-07-14 at 17:58 -0700, Da Zheng wrote:
> I cross-compiled systemtap and tried to run it on an ARM platform, but 
> got the following error:
> chronos@localhost ~ $ sudo stap --vp 01 syscalls_by_pid.stp
> semantic error: unresolved arity-4 function: identifier 
> '_arch_ptrace_argstr' at /usr/share/systemtap/tapset/aux_syscalls.stp:2234:9
>          source:     retval=_arch_ptrace_argstr(request, pid, addr, data)
>                             ^
> Pass 2: analyzed script: 285 probe(s), 1528 function(s), 21 embed(s), 1 
> global(s) using 112076virt/96408res/46364shr kb, in 
> 3690usr/190sys/4041real ms.
> Pass 2: analysis failed.  Try again with another '--vp 01' option.

We don't yet have a tapset/arm/aux_syscalls.stp version.
Look at one of the existing tapset/*/aux_syscalls.stp
(i386,ia64,powerpc,s390,x86_64) ones for examples how to write one.

> my script is just a file doing nothing, which is attached in the end of 
> the email.
> The version of systemtap is 1.5/0.131, I download from 
> http://sourceware.org/systemtap/ftp/releases/systemtap-1.5.tar.gz. The 
> kernel version is 2.6.38.3.

You might want to try current git trunk, it had some small fixes that
might be helpful on arm.

> I got some errors when I cross compile systemtap. At first, configure 
> fails, so I have to give the following variables an empty value
>      export ac_cv_file__usr_include_nss3=
>      export ac_cv_file__usr_include_nss=
>      export ac_cv_file__usr_include_nspr4=
>      export ac_cv_file__usr_include_nspr=
>      export ac_cv_file__usr_include_avahi_client=
>      export ac_cv_file__usr_include_avahi_common=

This might be http://sourceware.org/bugzilla/show_bug.cgi?id=13001

> Then I remove -Werror in runtime/staprun/Makefile.in because 
> __SDT_COND_SIGNED(wchar_t) in includes/sys/sdt.h generates error. I 
> wonder if the complication errors I got have anything to do with the 
> runtime error I get.
>
> Does anyone know how to fix the runtime error?

That is fixed in git trunk:
http://sourceware.org/git/?p=systemtap.git;a=commit;h=c02332052959e4213a59ce0ff40354f51506103a

I also needed the following patch to binutils:
http://sourceware.org/ml/binutils/2011-07/msg00118.html

Hope that helps.

Cheers,

Mark


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