From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 26247 invoked by alias); 17 Jun 2013 17:46:18 -0000 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 Received: (qmail 26236 invoked by uid 89); 17 Jun 2013 17:46:18 -0000 X-Spam-SWARE-Status: No, score=-7.5 required=5.0 tests=AWL,BAYES_00,KHOP_THREADED,RCVD_IN_HOSTKARMA_W,RCVD_IN_HOSTKARMA_WL,RP_MATCHES_RCVD,SPF_HELO_PASS,SPF_PASS autolearn=ham version=3.3.1 Received: from mx1.redhat.com (HELO mx1.redhat.com) (209.132.183.28) by sourceware.org (qpsmtpd/0.84/v0.84-167-ge50287c) with ESMTP; Mon, 17 Jun 2013 17:46:17 +0000 Received: from int-mx01.intmail.prod.int.phx2.redhat.com (int-mx01.intmail.prod.int.phx2.redhat.com [10.5.11.11]) by mx1.redhat.com (8.14.4/8.14.4) with ESMTP id r5HHkDYA017764 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Mon, 17 Jun 2013 13:46:13 -0400 Received: from t510.usersys.redhat.com (dhcp-10-15-1-6.hsv.redhat.com [10.15.1.6]) by int-mx01.intmail.prod.int.phx2.redhat.com (8.13.8/8.13.8) with ESMTP id r5HHkCOf024729 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Mon, 17 Jun 2013 13:46:12 -0400 Message-ID: <51BF4B63.60100@redhat.com> Date: Mon, 17 Jun 2013 17:46:00 -0000 From: David Smith User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:17.0) Gecko/20130514 Thunderbird/17.0.6 MIME-Version: 1.0 To: Holger Brunck CC: systemtap@sourceware.org, Mark Wielaard Subject: Re: print_ubacktrace() and ppc 32 References: <51BF1C1E.7020208@keymile.com> In-Reply-To: <51BF1C1E.7020208@keymile.com> Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-SW-Source: 2013-q2/txt/msg00300.txt.bz2 On 06/17/2013 09:24 AM, Holger Brunck wrote: > Hi all, > I am using systemtap userspace probes on a 32-Bit powerpc architecture. I do > crosscompile the probes on a 64-Bit x86 host. > > The version I use is: > Systemtap translator/driver (version 2.3/0.152, non-git sources) > > If I use print_ubacktrace() in my stap script it won't compile. I am getting two > main error messages and I ask myself which one tells me the real reason for the > error: > > backtraces for 32bit programs on 64bit kernels don't work. > systemtap-2.3-32645/share/systemtap/runtime/stack.c:85:2: error: #error > "Unsupported architecture" > > So is userspace backtrace not supported at all for PPC? Or does the problem come > due to a misconfiguration in my setup because I crosscompile on a 64 Bit host > architecture for a 32 Bit target architecture? It looks like ppc64 is supported, at least according to runtime/linux/runtime.h. If 'powerpc64' is defined, STP_USE_DWARF_UNWINDER gets defined. Does getting a backtrace for a simple 64-bit program work? I've CC'ed Mark Wielaard, who might know off the top of his head what the status of getting a 32-bit backtrace on ppc64 is. -- David Smith dsmith@redhat.com Red Hat http://www.redhat.com 256.217.0141 (direct) 256.837.0057 (fax)