From: Steven Rostedt <rostedt@goodmis.org>
To: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
Cc: David Daney <ddaney.cavm@gmail.com>,
"H. Peter Anvin" <hpa@linux.intel.com>,
LKML <linux-kernel@vger.kernel.org>,
Linus Torvalds <torvalds@linux-foundation.org>,
Ingo Molnar <mingo@elte.hu>, Thomas Gleixner <tglx@linutronix.de>,
Peter Zijlstra <peterz@infradead.org>,
Masami Hiramatsu <masami.hiramatsu.pt@hitachi.com>,
Avi Kivity <avi@redhat.com>,
Christoph Hellwig <hch@infradead.org>,
Andrew Morton <akpm@linux-foundation.org>
Subject: Re: [RFC][PATCH] tracepoints: Move the work out of line from hotpath sections
Date: Thu, 09 Aug 2012 23:09:04 -0400 [thread overview]
Message-ID: <1344568144.6935.97.camel@gandalf.stny.rr.com> (raw)
In-Reply-To: <20120810020523.GA18832@Krystal>
On Thu, 2012-08-09 at 22:05 -0400, Mathieu Desnoyers wrote:
> In your example, is the attribute attached to the if() or the following
> basic block ? Attaching it to the basic block allows a nice level of
> genericity:
Yes, I meant the block, not the if().
Heck, any block could be done this way, even just a block insertion...
void foo(int bar) {
[...]
__attribute__((section("mysection")) {
/* code here is in 'mysection' */
}
[...]
}
All gcc would have to do is place a hard jump to the code in the
section, and have the section jump back.
-- Steve
prev parent reply other threads:[~2012-08-10 3:09 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-08-09 20:40 Steven Rostedt
2012-08-09 20:50 ` Mathieu Desnoyers
2012-08-09 22:25 ` Steven Rostedt
2012-08-09 23:16 ` H. Peter Anvin
2012-08-09 23:54 ` David Daney
2012-08-10 1:41 ` Steven Rostedt
2012-08-10 2:05 ` Mathieu Desnoyers
2012-08-10 3:09 ` Steven Rostedt [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=1344568144.6935.97.camel@gandalf.stny.rr.com \
--to=rostedt@goodmis.org \
--cc=akpm@linux-foundation.org \
--cc=avi@redhat.com \
--cc=ddaney.cavm@gmail.com \
--cc=hch@infradead.org \
--cc=hpa@linux.intel.com \
--cc=linux-kernel@vger.kernel.org \
--cc=masami.hiramatsu.pt@hitachi.com \
--cc=mathieu.desnoyers@efficios.com \
--cc=mingo@elte.hu \
--cc=peterz@infradead.org \
--cc=tglx@linutronix.de \
--cc=torvalds@linux-foundation.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
all inboxes | Powered by JetHome®