lkml.org 
[lkml]   [2012]   [Aug]   [9]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
SubjectRe: [RFC][PATCH] tracepoints: Move the work out of line from hotpath sections
From
Date
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




\
 
 \ /
  Last update: 2012-08-10 05:41    [W:0.035 / U:0.380 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site