From: "Uwe Kleine-König" <u.kleine-koenig@pengutronix.de>
To: Steven Rostedt <rostedt@goodmis.org>
Cc: linux-kernel@vger.kernel.org,
Peter Zijlstra <peterz@infradead.org>,
Ingo Molnar <mingo@elte.hu>
Subject: Re: [PATCH] make CALLER_ADDRx overwriteable
Date: Thu, 26 Feb 2009 14:45:44 +0100 [thread overview]
Message-ID: <20090226134544.GA7110@pengutronix.de> (raw)
In-Reply-To: <20090226050806.GB25589@goodmis.org>
Hi Steven,
On Thu, Feb 26, 2009 at 12:08:06AM -0500, Steven Rostedt wrote:
> On Wed, Feb 25, 2009 at 11:16:09PM +0100, Uwe Kleine-K??nig wrote:
> > The current definition of CALLER_ADDRx isn't suitable for all platforms.
> > E.g. for ARM __builtin_return_address(N) doesn't work for N > 0 and
> > AFAIK for powerpc there are no frame pointers needed to have a working
> > __builtin_return_address. This patch allows defining the CALLER_ADDRx
> > macros in <asm/ftrace.h> and let these take precedence.
> >
> > Signed-off-by: Uwe Kleine-K??nig <u.kleine-koenig@pengutronix.de>
>
> Ah, but unfortunately this will break other archs :-(
>
> They may not use FTRACE, but they do include the ftrace header (the
> ftrace.h header can be used for other types of tracing, not just
> function tracing).
Then that's from generic files, because the archs that don't have
<asm/ftrace.h> don't include <linus/ftrace.h> under arch/.
> A better solution would be to move the CALLER_ADDER0 out of the
> ftrace.h header completely. Not sure where though. Have a caller.h ?
> And then we can have ftrace.h include caller.h. A asm/caller.h can be
> used to override the default.
Well, but then every arch needs this file. I don't see an advantage
here. So I'd favour to add an empty ftrace.h for the relevant archs.
Best regards
Uwe
--
Pengutronix e.K. | Uwe Kleine-König |
Industrial Linux Solutions | http://www.pengutronix.de/ |
next prev parent reply other threads:[~2009-02-26 13:45 UTC|newest]
Thread overview: 15+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-02-25 22:16 [PATCH] make CALLER_ADDRx overwriteable Uwe Kleine-König
2009-02-25 22:20 ` Mike Frysinger
2009-02-25 22:26 ` Uwe Kleine-König
2009-02-26 5:08 ` Steven Rostedt
2009-02-26 13:45 ` Uwe Kleine-König [this message]
2009-02-26 13:59 ` Steven Rostedt
2009-02-26 22:11 ` Uwe Kleine-König
2009-02-27 7:32 ` KOSAKI Motohiro
2009-02-27 11:22 ` Uwe Kleine-König
2009-02-27 15:21 ` Steven Rostedt
2009-02-27 20:30 ` Uwe Kleine-König
2009-02-28 6:40 ` KOSAKI Motohiro
2009-02-28 7:25 ` Uwe Kleine-König
[not found] <1235594749-24585-1-git-send-email-u.kleine-koenig@pengutronix.de>
2009-02-26 3:02 ` Ingo Molnar
2009-02-26 3:13 ` Steven Rostedt
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=20090226134544.GA7110@pengutronix.de \
--to=u.kleine-koenig@pengutronix.de \
--cc=linux-kernel@vger.kernel.org \
--cc=mingo@elte.hu \
--cc=peterz@infradead.org \
--cc=rostedt@goodmis.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.