From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 5503 invoked by alias); 17 Jun 2013 18:00:40 -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 5494 invoked by uid 89); 17 Jun 2013 18:00:39 -0000 X-Spam-SWARE-Status: No, score=-9.4 required=5.0 tests=AWL,BAYES_00,KHOP_PGP_SIGNED,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 18:00:39 +0000 Received: from int-mx11.intmail.prod.int.phx2.redhat.com (int-mx11.intmail.prod.int.phx2.redhat.com [10.5.11.24]) by mx1.redhat.com (8.14.4/8.14.4) with ESMTP id r5HI0MHG021108 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Mon, 17 Jun 2013 14:00:34 -0400 Received: from redhat.com (dhcp-10-15-16-119.yyz.redhat.com [10.15.16.119]) by int-mx11.intmail.prod.int.phx2.redhat.com (8.14.4/8.14.4) with ESMTP id r5HI0A22029557 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES128-SHA bits=128 verify=NO); Mon, 17 Jun 2013 14:00:19 -0400 Date: Mon, 17 Jun 2013 18:00:00 -0000 From: Lukas Berk To: Mark Wielaard Cc: Holger Brunck , systemtap@sourceware.org Subject: Re: print_ubacktrace() and ppc 32 Message-ID: <20130617180008.GC2219@redhat.com> Reply-To: Lukas Berk References: <51BF1C1E.7020208@keymile.com> <1371491014.4501.97.camel@bordewijk.wildebeest.org> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="WChQLJJJfbwij+9x" Content-Disposition: inline In-Reply-To: <1371491014.4501.97.camel@bordewijk.wildebeest.org> User-Agent: Mutt/1.5.21 (2010-09-15) X-Virus-Found: No X-SW-Source: 2013-q2/txt/msg00301.txt.bz2 --WChQLJJJfbwij+9x Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Content-length: 1751 Hey, > 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. > >=20 > > The version I use is: > > Systemtap translator/driver (version 2.3/0.152, non-git sources) > >=20 > > If I use print_ubacktrace() in my stap script it won't compile. I am ge= tting two > > main error messages and I ask myself which one tells me the real reason= for the > > error: > >=20 > > backtraces for 32bit programs on 64bit kernels don't work. >=20 > 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=3D10272 > "backtraces fail with 32-on-64 executables" >=20 > > systemtap-2.3-32645/share/systemtap/runtime/stack.c:85:2: error: #error > > "Unsupported architecture" >=20 > 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. Unfortunately I believe this is because we don't actually support powerpc32 (only ppc64.h is defined in unwind.h). So while the first error you're getting is being worked on (I'm currently working on PR10272[1] so hopefully it'll be resloved soon), the second error will be the show stopper here.=20=20 Thanks, Lukas [1] - http://sourceware.org/bugzilla/show_bug.cgi?id=3D10272 --WChQLJJJfbwij+9x Content-Type: application/pgp-signature Content-length: 836 -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.13 (GNU/Linux) iQIcBAEBAgAGBQJRv06oAAoJEAaRCclx+kwJZ0wP/R/c5wgSJ5bZBVxWv8utNO0H y+iBArAmI3w+Lf8egiRY0lE4ptgLcvQOi+jvcGg3DaHhN3RD/3nVz8Bxs9X99am6 C4A2NoMiE1hODYBIZ380ia6+Mq9cBzuozI79hA1lPi4iW7QVsBQqJ3NVQNZud9Al bo2ARGJCbrax8Z/p2jO9yEoQj1MFLlEIV3AEASjBkIGvT5+MG5vsIyyxDTOBU/Xx E4wpsn2c8xhzY/l6/ZGz3J9AY70bZAEmFVveiMeQYd4pmiwTFLy2ds2WlGA7GVSN rAir1LI2Fv1KBe9M4CMH5/J70NuJ+10N2yRpGEmOo6ZFPjCHCb7ndqDkEP+fk/2E 0YJKukWyTHXU+vg61fsKOFYDY5J1LWQNRJY0/nqv1GcoiLrU3bUHIEqfDEp2k+dl veB3V7btshgFfiR0fCrQ6cZ2RkWygkoM36QOe7nSHhVLDEunwwPum8SgDeZ8qauP oyDBSX0vgrERVg4P3owkAsCkXobX4z7/UXxv2FqOcotJ/eYusxGsDEt4YXZCG2oX 2w+uDD3QaIBGWrYGt8+8X/VEU6TrziSWG7vynwYIri2EgpWWU8gc3BfFf0g0cjQF TyRwQiQGz6XMsyT7E8rrmwfyGqNDC7X7zKCOCaNY9Yr4jaCypvVkXABWWhdyNH2k NjILaJnT6JF4yh+UxB4O =/KJw -----END PGP SIGNATURE----- --WChQLJJJfbwij+9x--