From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 27383 invoked by alias); 15 Jul 2011 00:58:33 -0000 Received: (qmail 27374 invoked by uid 22791); 15 Jul 2011 00:58:32 -0000 X-SWARE-Spam-Status: No, hits=0.4 required=5.0 tests=BAYES_00,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,FREEMAIL_ENVFROM_END_DIGIT,FREEMAIL_FROM,RCVD_IN_DNSWL_LOW,TBC,T_TO_NO_BRKTS_FREEMAIL X-Spam-Check-By: sourceware.org Received: from mail-iw0-f169.google.com (HELO mail-iw0-f169.google.com) (209.85.214.169) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Fri, 15 Jul 2011 00:58:18 +0000 Received: by iwn8 with SMTP id 8so797431iwn.0 for ; Thu, 14 Jul 2011 17:58:17 -0700 (PDT) Received: by 10.231.91.77 with SMTP id l13mr2628933ibm.44.1310691497837; Thu, 14 Jul 2011 17:58:17 -0700 (PDT) Received: from zdpc.mtv.corp.google.com ([2620:0:1000:1b02:baac:6fff:fe98:ceb5]) by mx.google.com with ESMTPS id d5sm460654ibi.11.2011.07.14.17.58.16 (version=TLSv1/SSLv3 cipher=OTHER); Thu, 14 Jul 2011 17:58:17 -0700 (PDT) Message-ID: <4E1F90A8.2080000@gmail.com> Date: Fri, 15 Jul 2011 00:58:00 -0000 From: Da Zheng User-Agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.17) Gecko/20110424 Thunderbird/3.1.10 MIME-Version: 1.0 To: systemtap@sourceware.org Subject: error to run systemtap in an ARM platform Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-IsSubscribed: yes 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/msg00025.txt.bz2 Hello, 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. 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. 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= 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? Thanks, Da #! /usr/bin/env stap # Copyright (C) 2006 IBM Corp. # # This file is part of systemtap, and is free software. You can # redistribute it and/or modify it under the terms of the GNU General # Public License (GPL); either version 2, or (at your option) any # later version. # # Print the system call count by process ID in descending order. # probe begin { } probe syscall.* { } probe end { }