Thread (7 messages) flat view 7 messages, 3 authors, 2012-02-09

Re: [PATCH] Implement GET_IP/SET_IP for powerpc architecture.

From: Benjamin Herrenschmidt <hidden>
Date: 2012-02-02 21:24:04

On Thu, 2012-02-02 at 11:28 -0500, Mike Frysinger wrote:
On Thursday 02 February 2012 09:41:25 Srikar Dronamraju wrote:
quoted
+#define GET_FP(regs)		(0)
+#define SET_FP(regs, val)
ppc doesn't have a standard FP location ?
Not really no, it's the sp (r1). r31 might be considered a "frame
pointer" under some circumstances but there isn't much you can do with
it, it's really r1 that gives you the ability to backtrace (each stack
frame contains a pointer to the next one).
quoted
+#define profile_pc(regs) GET_IP(regs)
pretty sure you don't need this as asm-generic/ptrace.h already has a 
definition for you
-mike
Cheers,
Ben.
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help