Re: [RFC] gcc feature request: Moving blocks into sections

From: H. Peter Anvin
Date: Mon Aug 05 2013 - 14:18:06 EST

On 08/05/2013 10:55 AM, Steven Rostedt wrote:
> Well, as tracepoints are being added quite a bit in Linux, my concern is
> with the inlined functions that they bring. With jump labels they are
> disabled in a very unlikely way (the static_key_false() is a nop to skip
> the code, and is dynamically enabled to a jump).

Have you considered using traps for tracepoints? A trapping instruction
can be as small as a single byte. The downside, of course, is that it
is extremely suppressed -- the trap is always expensive -- and you then
have to do a lookup to find the target based on the originating IP.


To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at
Please read the FAQ at