From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 12761 invoked by alias); 6 Aug 2013 19:07:29 -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 12691 invoked by uid 89); 6 Aug 2013 19:07:28 -0000 X-Spam-SWARE-Status: No, score=-8.3 required=5.0 tests=AWL,BAYES_00,KHOP_PGP_SIGNED,RCVD_IN_HOSTKARMA_W,RCVD_IN_HOSTKARMA_WL,RDNS_NONE,SPF_HELO_PASS,SPF_PASS autolearn=no version=3.3.1 Received: from Unknown (HELO mx1.redhat.com) (209.132.183.28) by sourceware.org (qpsmtpd/0.84/v0.84-167-ge50287c) with ESMTP; Tue, 06 Aug 2013 19:07:27 +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 r76J7ItH026063 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Tue, 6 Aug 2013 15:07:18 -0400 Received: from redhat.com (vpn-61-227.rdu2.redhat.com [10.10.61.227]) by int-mx12.intmail.prod.int.phx2.redhat.com (8.14.4/8.14.4) with ESMTP id r76J7Faq018491 (version=TLSv1/SSLv3 cipher=AES128-SHA bits=128 verify=NO); Tue, 6 Aug 2013 15:07:17 -0400 Date: Tue, 06 Aug 2013 19:07:00 -0000 From: Lukas Berk To: Holger Brunck Cc: Mark Wielaard , systemtap@sourceware.org Subject: Re: print_ubacktrace() and ppc 32 Message-ID: <20130806190715.GA3387@redhat.com> Reply-To: Lukas Berk References: <51BF1C1E.7020208@keymile.com> <1371491014.4501.97.camel@bordewijk.wildebeest.org> <20130617180008.GC2219@redhat.com> <1371492348.4501.106.camel@bordewijk.wildebeest.org> <51C005AA.8010300@keymile.com> <20130803011202.GA1956@redhat.com> <51FF6667.1090404@keymile.com> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="ikeVEW9yuYc//A+q" Content-Disposition: inline In-Reply-To: <51FF6667.1090404@keymile.com> User-Agent: Mutt/1.5.21 (2010-09-15) X-Virus-Found: No X-SW-Source: 2013-q3/txt/msg00106.txt.bz2 --ikeVEW9yuYc//A+q Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Content-length: 1034 Hey, [...] > no unfortunately it does not work. First I had to fix a compile error bec= ause > "softe" is not defined for ppc_32 in the linux kernel in ptrace.h. I chan= ged it > temporary to "mq" in runtime/unwind/ppc_64.h and then I was able to compi= le my > probe. >=20 > I gave it a try with a simple main.c which calls a function foo(). My pro= be was: >=20 > probe process("/usr/local/bin/main").function("foo") > { > print_ubacktrace() > } >=20 Ok > But the output is: > 0x10000448 : foo+0x1c/0x7c [/usr/local/bin/main] >=20 > So the calling function main() was not shown on an ARM architecture a sim= ilar > setup shows: > 0x83b8 : foo+0x14/0x64 [/usr/local/bin/main] > 0x8444 : main+0x3c/0x40 [/usr/local/bin/main] >=20 > So there is still something missing for ppc32. Ah too bad it wasn't a simple plug and play :) Would you mind trying again but running your script with the added stap option=20 '-DDEBUG_UNWIND=3D99' and supplying the output? (ie, stap -DDEBUG_UNWIND=3D= 99 --ldd -ve 'probe... ) Thanks, Lukas --ikeVEW9yuYc//A+q Content-Type: application/pgp-signature Content-length: 836 -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.13 (GNU/Linux) iQIcBAEBAgAGBQJSAUljAAoJEAaRCclx+kwJ/8IP/ApUvqe4/H3GJpdtz8PFnwxR GjXPu2Ldk8lSWTfYKSVJSS2+Z74QnPgcCtF23cs2dZQAlX5icuQdau9m1qQXFm7P ZbuWOepi4ws7ywtcjRAoGJq+uoD077v9G/TOpZl2xKa6+qJtyTp8J74eQFNmwqmc zufhgMkPwXswLD0p4BNuCJ+dl+l8pKJ2E0LegXHDH6PI8otoGWbQ0AMOGXD1uZLq RJ4iq84EN8tGdp8tOYpyYvIz0Xh65rTdJpS2zSdzmGHISDxXJcjm0ox3j7ITLUux W9T6AK+v3YimumOkoj6FVjx7Z37EbCMqBYYxG5rjECEqDh7kecUpyWHdZJZnYJkT JQHz2U490cBYkuTSWPSyYEoRmB7TUhx0kEcsH5JKdtmZKtTRtWhS8Tg7BMJH9Anv aT78dNV2WR2fKQTbW2HIa5mmueUTL08Wm0pE7picQ9a5aB4KcMOWk71wauQnIGTW wP58RWSUePZ6KH+JDGe++ZROrRrqZKg/c1R2P74Ao8L4kbMIR9DBsy090Nw6dM5Q JTf3K5Mlr69f4drKEHjBvXCTDQnCwvtTh+3adNuV7vhEKejrxena31SstBhrizQ+ y++3pWQMx5FeiKc3FmPaWvKewnUE5MyHLa2MQJaMhlFQONcv2BAhFWrLGlhm7AM2 eBWQUqYGwQLyrDwxHHA/ =owQe -----END PGP SIGNATURE----- --ikeVEW9yuYc//A+q--