From: Jim Radford <radford@galvanix.net>
To: Russell King - ARM Linux <linux@arm.linux.org.uk>
Cc: Steven Rostedt <rostedt@goodmis.org>, Ingo Molnar <mingo@elte.hu>,
Thomas Gleixner <tglx@linutronix.de>,
Sam Ravnborg <sam@ravnborg.org>,
linux-arm-kernel@lists.arm.linux.org.uk,
LKML <linux-kernel@vger.kernel.org>
Subject: Re: [PATCH] ftrace: mcount record based dynamic tracing for ARM
Date: Fri, 21 Nov 2008 10:09:29 -0800 [thread overview]
Message-ID: <20081121180929.GA13863@blackbean.org> (raw)
In-Reply-To: <20081121153827.GA8433@flint.arm.linux.org.uk>
On Fri, Nov 21, 2008 at 03:38:27PM +0000, Russell King - ARM Linux wrote:
> On Fri, Nov 21, 2008 at 09:27:17AM -0500, Steven Rostedt wrote:
> > On Thu, 20 Nov 2008, Jim Radford wrote:
> > > - select HAVE_FUNCTION_TRACER if (!XIP_KERNEL)
> > > + select HAVE_FTRACE_MCOUNT_RECORD
> > > + select HAVE_DYNAMIC_FTRACE if (!XIP_KERNEL)
> > Russell mentioned something about the code not being compatible
> > with Thumb2, is the above if statement enough?
> We've started on merging some of the pre-requisits, and it will mean
> that the instruction length is no longer constant. (It may be a
> 16bit or 32bit instruction.)
The only instruction that matters for arm is "bl <func>" since that's
what's emitted by gcc to call mcount(). I suspect thumb will be easy
to support. <func> isn't known when the file is compiled, so I assume
in that case the assembler will have to leave at least 4 bytes (even
in thumb) in case mcount() gets linked far away.
I haven't looked at the return tracing code yet. That might be harder
to support, but given x86 works, I suspect it'll be doable.
-Jim
prev parent reply other threads:[~2008-11-21 18:09 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <20081118231525.GA16081@blackbean.org>
[not found] ` <alpine.DEB.1.10.0811201734050.14652@gandalf.stny.rr.com>
[not found] ` <20081120224903.GA3244@blackbean.org>
[not found] ` <alpine.DEB.1.10.0811202114560.4464@gandalf.stny.rr.com>
[not found] ` <20081121035509.GA5266@blackbean.org>
2008-11-21 14:27 ` [PATCH] ftrace: mcount record based dynamic tracing for ARM Steven Rostedt
2008-11-21 15:38 ` Russell King - ARM Linux
2008-11-21 16:37 ` Steven Rostedt
2008-11-21 18:09 ` Jim Radford [this message]
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=20081121180929.GA13863@blackbean.org \
--to=radford@galvanix.net \
--cc=linux-arm-kernel@lists.arm.linux.org.uk \
--cc=linux-kernel@vger.kernel.org \
--cc=linux@arm.linux.org.uk \
--cc=mingo@elte.hu \
--cc=rostedt@goodmis.org \
--cc=sam@ravnborg.org \
--cc=tglx@linutronix.de \
/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