From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 8968 invoked by alias); 15 Jul 2011 09:43:09 -0000 Received: (qmail 8960 invoked by uid 22791); 15 Jul 2011 09:43:08 -0000 X-SWARE-Spam-Status: No, hits=-6.3 required=5.0 tests=AWL,BAYES_00,RCVD_IN_DNSWL_HI,RP_MATCHES_RCVD,SPF_HELO_PASS X-Spam-Check-By: sourceware.org Received: from mx1.redhat.com (HELO mx1.redhat.com) (209.132.183.28) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Fri, 15 Jul 2011 09:42:26 +0000 Received: from int-mx02.intmail.prod.int.phx2.redhat.com (int-mx02.intmail.prod.int.phx2.redhat.com [10.5.11.12]) by mx1.redhat.com (8.14.4/8.14.4) with ESMTP id p6F9gO4p029329 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Fri, 15 Jul 2011 05:42:24 -0400 Received: from springer.wildebeest.org (ovpn-113-45.phx2.redhat.com [10.3.113.45]) by int-mx02.intmail.prod.int.phx2.redhat.com (8.13.8/8.13.8) with ESMTP id p6F9gMgs008019 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Fri, 15 Jul 2011 05:42:24 -0400 Received: by springer.wildebeest.org (Postfix, from userid 500) id 7D72546F32; Fri, 15 Jul 2011 11:42:21 +0200 (CEST) Subject: Re: error to run systemtap in an ARM platform From: Mark Wielaard To: Da Zheng Cc: systemtap@sourceware.org In-Reply-To: <4E1F90A8.2080000@gmail.com> References: <4E1F90A8.2080000@gmail.com> Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Date: Fri, 15 Jul 2011 09:43:00 -0000 Message-ID: <1310722941.4510.5.camel@springer.wildebeest.org> Mime-Version: 1.0 Mailing-List: contact systemtap-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Post: List-Help: , Sender: systemtap-owner@sourceware.org X-SW-Source: 2011-q3/txt/msg00026.txt.bz2 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=20 > got the following error: > chronos@localhost ~ $ sudo stap --vp 01 syscalls_by_pid.stp > semantic error: unresolved arity-4 function: identifier=20 > '_arch_ptrace_argstr' at /usr/share/systemtap/tapset/aux_syscalls.stp:223= 4:9 > source: retval=3D_arch_ptrace_argstr(request, pid, addr, dat= a) > ^ > Pass 2: analyzed script: 285 probe(s), 1528 function(s), 21 embed(s), 1=20 > global(s) using 112076virt/96408res/46364shr kb, in=20 > 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=20 > the email. > The version of systemtap is 1.5/0.131, I download from=20 > http://sourceware.org/systemtap/ftp/releases/systemtap-1.5.tar.gz. The=20 > 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=20 > fails, so I have to give the following variables an empty value > export ac_cv_file__usr_include_nss3=3D > export ac_cv_file__usr_include_nss=3D > export ac_cv_file__usr_include_nspr4=3D > export ac_cv_file__usr_include_nspr=3D > export ac_cv_file__usr_include_avahi_client=3D > export ac_cv_file__usr_include_avahi_common=3D This might be http://sourceware.org/bugzilla/show_bug.cgi?id=3D13001 > Then I remove -Werror in runtime/staprun/Makefile.in because=20 > __SDT_COND_SIGNED(wchar_t) in includes/sys/sdt.h generates error. I=20 > wonder if the complication errors I got have anything to do with the=20 > runtime error I get. > > Does anyone know how to fix the runtime error? That is fixed in git trunk: http://sourceware.org/git/?p=3Dsystemtap.git;a=3Dcommit;h=3Dc02332052959e42= 13a59ce0ff40354f51506103a I also needed the following patch to binutils: http://sourceware.org/ml/binutils/2011-07/msg00118.html Hope that helps. Cheers, Mark