public inbox for systemtap@sourceware.org
 help / color / mirror / Atom feed
From: Lukas Berk <lberk@redhat.com>
To: Holger Brunck <holger.brunck@keymile.com>
Cc: Mark Wielaard <mjw@redhat.com>, systemtap@sourceware.org
Subject: Re: print_ubacktrace()   and ppc 32
Date: Tue, 06 Aug 2013 19:07:00 -0000	[thread overview]
Message-ID: <20130806190715.GA3387@redhat.com> (raw)
In-Reply-To: <51FF6667.1090404@keymile.com>

[-- Attachment #1: Type: text/plain, Size: 1042 bytes --]

Hey,

[...]
> no unfortunately it does not work. First I had to fix a compile error because
> "softe" is not defined for ppc_32 in the linux kernel in ptrace.h. I changed it
> temporary to "mq" in runtime/unwind/ppc_64.h and then I was able to compile my
> probe.
> 
> I gave it a try with a simple main.c which calls a function foo(). My probe was:
> 
> probe process("/usr/local/bin/main").function("foo")
> {
>   print_ubacktrace()
> }
> 

Ok

> But the output is:
> 0x10000448 : foo+0x1c/0x7c [/usr/local/bin/main]
> 
> So the calling function main() was not shown on an ARM architecture a similar
> setup shows:
>  0x83b8 : foo+0x14/0x64 [/usr/local/bin/main]
>  0x8444 : main+0x3c/0x40 [/usr/local/bin/main]
> 
> 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 
'-DDEBUG_UNWIND=99' and supplying the output? (ie, stap -DDEBUG_UNWIND=99
--ldd -ve 'probe... )

Thanks,

Lukas

[-- Attachment #2: Type: application/pgp-signature, Size: 836 bytes --]

  reply	other threads:[~2013-08-06 19:07 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-06-17 14:24 Holger Brunck
2013-06-17 17:43 ` Mark Wielaard
2013-06-17 18:00   ` Lukas Berk
2013-06-17 18:05     ` Mark Wielaard
2013-06-18  7:01       ` Holger Brunck
2013-08-03  1:12         ` Lukas Berk
2013-08-05  8:46           ` Holger Brunck
2013-08-06 19:07             ` Lukas Berk [this message]
2013-08-07  7:16               ` Holger Brunck
2013-08-09 15:21                 ` Lukas Berk
2013-08-12  8:58                   ` Holger Brunck
2013-06-18  6:46   ` Holger Brunck
2013-06-17 17:46 ` David Smith

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20130806190715.GA3387@redhat.com \
    --to=lberk@redhat.com \
    --cc=holger.brunck@keymile.com \
    --cc=mjw@redhat.com \
    --cc=systemtap@sourceware.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).