From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 23310 invoked by alias); 17 Jun 2013 17:43:41 -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 23300 invoked by uid 89); 17 Jun 2013 17:43:41 -0000 X-Spam-SWARE-Status: No, score=-7.6 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:43:40 +0000 Received: from int-mx12.intmail.prod.int.phx2.redhat.com (int-mx12.intmail.prod.int.phx2.redhat.com [10.5.11.25]) by mx1.redhat.com (8.14.4/8.14.4) with ESMTP id r5HHhaAh009814 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Mon, 17 Jun 2013 13:43:36 -0400 Received: from [10.36.116.45] (ovpn-116-45.ams2.redhat.com [10.36.116.45]) by int-mx12.intmail.prod.int.phx2.redhat.com (8.14.4/8.14.4) with ESMTP id r5HHhYe0029784; Mon, 17 Jun 2013 13:43:35 -0400 Subject: Re: print_ubacktrace() and ppc 32 From: Mark Wielaard To: Holger Brunck Cc: systemtap@sourceware.org In-Reply-To: <51BF1C1E.7020208@keymile.com> References: <51BF1C1E.7020208@keymile.com> Content-Type: text/plain; charset="UTF-8" Date: Mon, 17 Jun 2013 17:43:00 -0000 Message-ID: <1371491014.4501.97.camel@bordewijk.wildebeest.org> Mime-Version: 1.0 Content-Transfer-Encoding: 7bit X-SW-Source: 2013-q2/txt/msg00299.txt.bz2 On Mon, 2013-06-17 at 16:24 +0200, Holger Brunck wrote: > 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. Yes, if your powerpc kernel is 64bit, but the user program is 32bit (same for 32bit user space on x86_64) then you will get that warning during stap translation time (the stap script should still run, but won't produce a user backtrace for the 32bit module/library/process). This is bug: http://sourceware.org/bugzilla/show_bug.cgi?id=10272 "backtraces fail with 32-on-64 executables" > systemtap-2.3-32645/share/systemtap/runtime/stack.c:85:2: error: #error > "Unsupported architecture" This might be caused by the cross compiling, maybe something got confused about the architecture. You get that when: #ifndef STP_USE_DWARF_UNWINDER powerpc (and x86_64) both should use the DWARF_UNWINDER. So you might want to look at why that doesn't get defined in your case. Cheers, Mark