Messages in this thread | | | Subject | Re: [RFC][PATCH] tracepoints: Move the work out of line from hotpath sections | From | Steven Rostedt <> | Date | Thu, 09 Aug 2012 23:09:04 -0400 |
| |
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
| |