public inbox for systemtap@sourceware.org
 help / color / mirror / Atom feed
From: Mark Wielaard <mjw@redhat.com>
To: Da Zheng <zhengda1936@gmail.com>
Cc: systemtap@sourceware.org
Subject: Re: error to run systemtap in an ARM platform
Date: Fri, 15 Jul 2011 09:43:00 -0000	[thread overview]
Message-ID: <1310722941.4510.5.camel@springer.wildebeest.org> (raw)
In-Reply-To: <4E1F90A8.2080000@gmail.com>

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

  reply	other threads:[~2011-07-15  9:43 UTC|newest]

Thread overview: 27+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-07-15  0:58 Da Zheng
2011-07-15  9:43 ` Mark Wielaard [this message]
2011-07-15 20:00   ` Da Zheng
2011-07-15 20:15     ` Frank Ch. Eigler
     [not found]       ` <4E20A714.9020404@gmail.com>
2011-07-15 20:50         ` Frank Ch. Eigler
2011-07-15 20:46     ` William Cohen
2011-07-15 21:29       ` Da Zheng
2011-07-16  0:23         ` Turgis, Frederic
2011-07-18 14:13           ` William Cohen
2011-07-18 19:02             ` Da Zheng
2011-07-18 20:10               ` William Cohen
2011-07-18 20:18                 ` William Cohen
2011-07-18 20:41                 ` Da Zheng
2011-07-23 22:56                   ` Zheng Da
2011-07-24  1:57                     ` Frank Ch. Eigler
2011-07-24 16:10                       ` Frank Ch. Eigler
2011-07-25 10:04                     ` Mark Wielaard
2011-07-25 19:34                       ` Da Zheng
2011-07-25 15:46                     ` William Cohen
2011-07-25 19:36                       ` Da Zheng
2011-07-25 20:46                         ` Mark Wielaard
2011-07-25 17:17                     ` William Cohen
2011-07-25 19:56                       ` Da Zheng
2011-07-26 14:03                         ` William Cohen
2011-07-26 17:47                           ` Da Zheng
2011-07-19 11:38             ` Turgis, Frederic
2011-07-18 14:00         ` William Cohen

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1310722941.4510.5.camel@springer.wildebeest.org \
    --to=mjw@redhat.com \
    --cc=systemtap@sourceware.org \
    --cc=zhengda1936@gmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).