From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 30715 invoked by alias); 11 Jul 2007 15:33:07 -0000 Received: (qmail 30708 invoked by uid 22791); 11 Jul 2007 15:33:06 -0000 X-Spam-Status: No, hits=-2.6 required=5.0 tests=AWL,BAYES_00,DK_POLICY_SIGNSOME,SPF_HELO_PASS,SPF_PASS X-Spam-Check-By: sourceware.org Received: from mx1.redhat.com (HELO mx1.redhat.com) (66.187.233.31) by sourceware.org (qpsmtpd/0.31) with ESMTP; Wed, 11 Jul 2007 15:33:03 +0000 Received: from int-mx1.corp.redhat.com (int-mx1.corp.redhat.com [172.16.52.254]) by mx1.redhat.com (8.13.1/8.13.1) with ESMTP id l6BFRk1X017004 for ; Wed, 11 Jul 2007 11:33:01 -0400 Received: from pobox.brisbane.redhat.com (pobox.brisbane.redhat.com [172.16.44.10]) by int-mx1.corp.redhat.com (8.13.1/8.13.1) with ESMTP id l6BE2tGf002754 for ; Wed, 11 Jul 2007 10:02:56 -0400 Received: from kerndev.sin.redhat.com (vpn-51-24.sfbay.redhat.com [10.14.51.24]) by pobox.brisbane.redhat.com (8.13.1/8.13.1) with ESMTP id l6BE2p0X030367 for ; Thu, 12 Jul 2007 00:02:53 +1000 Resent-From: Eugene Teo Resent-To: systemtap@sourceware.org Resent-Date: Wed, 11 Jul 2007 22:02:50 +0800 Resent-Message-Id: <4694E30A.8050301@redhat.com> Resent-User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.8.1.4) Gecko/20070615 Fedora/2.0.0.4-1.fc7 Thunderbird/2.0.0.4 Message-ID: <4694D961.1000008@redhat.com> Date: Wed, 11 Jul 2007 15:33:00 -0000 From: Eugene Teo Organization: Red Hat, Inc User-Agent: Thunderbird 2.0.0.4 (X11/20070615) MIME-Version: 1.0 To: Naren chandru CC: systemtap@sources.redhat.com Subject: Re: Systemtap source compile for ARM arch References: <288227.23971.qm@web94305.mail.in2.yahoo.com> In-Reply-To: <288227.23971.qm@web94305.mail.in2.yahoo.com> X-Enigmail-Version: 0.95.2 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: 2007-q3/txt/msg00091.txt.bz2 Naren chandru wrote: > Hi all, > > I am new to systemtap. I have downloaded the > systemtap-20070630.tar.bz2 src and compiled for i686 > architecture without any issue the source get > compiled. > > Now I am trying to build it for ARM architecture. I > don't know how to cross compile systemtap for ARM > architecture. Please help me to cross compile system > tap for arm arch. > > If anyone have the procedure for system tap cross > compilation pls tell me the procedure. Are you using scratchbox? I was trying to get SystemTap working on scratchbox but I didn't manage to go any further than just stap -e 'probe begin {...}'. It has some problems with looking up for the kernel debuginfo. I have not looked at it further, so I am not sure if it is a problem with SystemTap or scratchbox. Quentin mentioned that he got SystemTap working by installing it natively. I have not tried that. Also, take note that if your device is using busybox instead of bash, you need to edit /usr/libexec/systemtap/stp_check to use sh instead of bash. And if CONFIG_CPU_CP15 is not defined, you need this patch[1] (not necessary if you use the cvs version of SystemTap). Btw, you also need the kprobes kernel patches for ARM[2,3]. Let me know how it goes. Thanks! [1] http://sourceware.org/ml/systemtap-cvs/2007-q3/msg00021.html [2] http://www.arm.linux.org.uk/developer/patches/viewpatch.php?id=4447 [3] http://www.kernel.org/pub/linux/kernel/people/eugeneteo/kprobes/ Eugene From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 31548 invoked by alias); 11 Jul 2007 15:35:22 -0000 Received: (qmail 31541 invoked by uid 22791); 11 Jul 2007 15:35:22 -0000 X-Spam-Status: No, hits=-2.6 required=5.0 tests=AWL,BAYES_00,DK_POLICY_SIGNSOME,SPF_HELO_PASS,SPF_PASS X-Spam-Check-By: sourceware.org Received: from mx1.redhat.com (HELO mx1.redhat.com) (66.187.233.31) by sourceware.org (qpsmtpd/0.31) with ESMTP; Wed, 11 Jul 2007 15:35:20 +0000 Received: from int-mx1.corp.redhat.com (int-mx1.corp.redhat.com [172.16.52.254]) by mx1.redhat.com (8.13.1/8.13.1) with ESMTP id l6BFRk6v017004; Wed, 11 Jul 2007 11:35:08 -0400 Received: from pobox.brisbane.redhat.com (pobox.brisbane.redhat.com [172.16.44.10]) by int-mx1.corp.redhat.com (8.13.1/8.13.1) with ESMTP id l6BDLiUG021357; Wed, 11 Jul 2007 09:21:45 -0400 Received: from kerndev.sin.redhat.com (vpn-51-24.sfbay.redhat.com [10.14.51.24]) by pobox.brisbane.redhat.com (8.13.1/8.13.1) with ESMTP id l6BDLde8024721; Wed, 11 Jul 2007 23:21:42 +1000 Message-ID: <4694D961.1000008@redhat.com> Date: Wed, 11 Jul 2007 16:36:00 -0000 From: Eugene Teo Organization: Red Hat, Inc User-Agent: Thunderbird 2.0.0.4 (X11/20070615) MIME-Version: 1.0 To: Naren chandru CC: systemtap@sources.redhat.com Subject: Re: Systemtap source compile for ARM arch References: <288227.23971.qm@web94305.mail.in2.yahoo.com> In-Reply-To: <288227.23971.qm@web94305.mail.in2.yahoo.com> X-Enigmail-Version: 0.95.2 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: 2007-q3/txt/msg00092.txt.bz2 Message-ID: <20070711163600.sW2rcGXcv3Xx4cd10ii2vBsLh9nNrWTPg9i4YoSECB4@z> Naren chandru wrote: > Hi all, > > I am new to systemtap. I have downloaded the > systemtap-20070630.tar.bz2 src and compiled for i686 > architecture without any issue the source get > compiled. > > Now I am trying to build it for ARM architecture. I > don't know how to cross compile systemtap for ARM > architecture. Please help me to cross compile system > tap for arm arch. > > If anyone have the procedure for system tap cross > compilation pls tell me the procedure. Are you using scratchbox? I was trying to get SystemTap working on scratchbox but I didn't manage to go any further than just stap -e 'probe begin {...}'. It has some problems with looking up for the kernel debuginfo. I have not looked at it further, so I am not sure if it is a problem with SystemTap or scratchbox. Quentin mentioned that he got SystemTap working by installing it natively. I have not tried that. Also, take note that if your device is using busybox instead of bash, you need to edit /usr/libexec/systemtap/stp_check to use sh instead of bash. And if CONFIG_CPU_CP15 is not defined, you need this patch[1] (not necessary if you use the cvs version of SystemTap). Btw, you also need the kprobes kernel patches for ARM[2,3]. Let me know how it goes. Thanks! [1] http://sourceware.org/ml/systemtap-cvs/2007-q3/msg00021.html [2] http://www.arm.linux.org.uk/developer/patches/viewpatch.php?id=4447 [3] http://www.kernel.org/pub/linux/kernel/people/eugeneteo/kprobes/ Eugene