From: Benjamin Herrenschmidt <benh@au1.ibm.com>
To: Mike Frysinger <vapier@gentoo.org>
Cc: linuxppc-dev <linuxppc-dev@ozlabs.org>,
Srikar Dronamraju <srikar@linux.vnet.ibm.com>
Subject: Re: [PATCH] Implement GET_IP/SET_IP for powerpc architecture.
Date: Fri, 03 Feb 2012 08:23:53 +1100 [thread overview]
Message-ID: <1328217833.5776.7.camel@pasglop> (raw)
In-Reply-To: <201202021128.49188.vapier@gentoo.org>
On Thu, 2012-02-02 at 11:28 -0500, Mike Frysinger wrote:
> On Thursday 02 February 2012 09:41:25 Srikar Dronamraju wrote:
> > +#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).
> > +#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.
next prev parent reply other threads:[~2012-02-02 21:24 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-02-02 14:41 [PATCH] Implement GET_IP/SET_IP for powerpc architecture Srikar Dronamraju
2012-02-02 16:28 ` Mike Frysinger
2012-02-02 16:36 ` Srikar Dronamraju
2012-02-02 17:02 ` Mike Frysinger
2012-02-02 21:23 ` Benjamin Herrenschmidt [this message]
2012-02-08 14:53 ` [PATCH v2 ] " Srikar Dronamraju
2012-02-09 2:56 ` Mike Frysinger
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=1328217833.5776.7.camel@pasglop \
--to=benh@au1.ibm.com \
--cc=linuxppc-dev@ozlabs.org \
--cc=srikar@linux.vnet.ibm.com \
--cc=vapier@gentoo.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 NNTP newsgroup(s).