From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 4071 invoked by alias); 4 Apr 2011 22:56:33 -0000 Received: (qmail 4062 invoked by uid 22791); 4 Apr 2011 22:56:32 -0000 X-SWARE-Spam-Status: No, hits=-6.0 required=5.0 tests=AWL,BAYES_00,RCVD_IN_DNSWL_HI,SPF_HELO_PASS,T_RP_MATCHES_RCVD 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; Mon, 04 Apr 2011 22:56:27 +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 p34MuQgA031365 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK) for ; Mon, 4 Apr 2011 18:56:26 -0400 Received: from [10.3.113.51] (ovpn-113-51.phx2.redhat.com [10.3.113.51]) by int-mx02.intmail.prod.int.phx2.redhat.com (8.13.8/8.13.8) with ESMTP id p34MuQC1019493; Mon, 4 Apr 2011 18:56:26 -0400 Message-ID: <4D9A4C9A.9070205@redhat.com> Date: Mon, 04 Apr 2011 22:56:00 -0000 From: Josh Stone User-Agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.15) Gecko/20110307 Fedora/3.1.9-0.39.b3pre.fc14 Lightning/1.0b3pre Thunderbird/3.1.9 MIME-Version: 1.0 To: Zhiwei Ying CC: systemtap Subject: Re: cannot trace user-level code in cross compilation environment References: <4D961887.3000200@redhat.com> In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1 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-q2/txt/msg00047.txt.bz2 On 04/01/2011 05:52 PM, Zhiwei Ying wrote: > Yes, the binary in in the same path. if the binary is different, > staprun will complain "build-id mismatch" > > Here is the detail for my cross-compilation: > cd systemtap-1.4 > mkdir runtimebuild > cd runtimebuild > ../runtime/staprun/configure --host=/crosstarget --prefix= > make > make install DESTDIR=/xxx > > cd runtime/uprobes > #change KDIR in Makefile to crosstarget > make > > cp staprun, stapio and uprobes to the board > > on the board > # staprun -v traceauto.ko -b 3 -u -c ./hello. > stapio:main:33 Using a buffer of 3 MB. > stapio:start_cmd:200 block briefly > stapio:stp_main_loop:636 detaching pid 2289 > stapio:start_cmd:219 execing target_cmd ./hello > hello world > stapio:cleanup_and_exit:403 detach=0 > end of tracing > stapio:cleanup_and_exit:420 closing control channel > staprun:remove_module:213 Module traceauto removed > > Any help is great appreciated! Please try these three options for stap, when compiling the ko: -DDEBUG_UPROBES -DDEBUG_TASK_FINDER -DDEBUG_TASK_FINDER_VMA This should give much more debugging output to find the problem. Josh