This is the mail archive of the
systemtap@sourceware.org
mailing list for the systemtap project.
Re: print_ubacktrace() and ppc 32
- From: David Smith <dsmith at redhat dot com>
- To: Holger Brunck <holger dot brunck at keymile dot com>
- Cc: systemtap at sourceware dot org, Mark Wielaard <mjw at redhat dot com>
- Date: Mon, 17 Jun 2013 12:46:11 -0500
- Subject: Re: print_ubacktrace() and ppc 32
- References: <51BF1C1E dot 7020208 at keymile dot com>
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)