This is the mail archive of the systemtap@sourceware.org mailing list for the systemtap project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: print_ubacktrace() and ppc 32


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)


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]