LWN.net Logo

Trade-off

Trade-off

Posted Oct 28, 2010 13:22 UTC (Thu) by CChittleborough (subscriber, #60775)
In reply to: Jump label by tcourbon
Parent article: Jump label

With the new approach, there is very little overhead in the instrumented code: either a NOP or an unconditional branch. The overhead has been moved to compile time (setting up the table of 'jump labels') and the time at which jumps are turned on or off (by calling enable_jump_label() or disable_jump_label(), which use the table to replace the NOP with a branch or vice versa).


(Log in to post comments)

Trade-off

Posted Oct 28, 2010 14:50 UTC (Thu) by nix (subscriber, #2304) [Link]

It looks more than slightly reminiscent of the PLT's lazy binding trick to me.

Trade-off

Posted Oct 30, 2010 22:05 UTC (Sat) by giraffedata (subscriber, #1954) [Link]

Is there anyway to measure the actual overhead caused by the test in the current kernel ?
With the new approach, there is very little overhead

I believe "current kernel" refers to kernel code before the new approach.

I.e. What do we get in return for this complication?

Copyright © 2013, Eklektix, Inc.
Comments and public postings are copyrighted by their creators.
Linux is a registered trademark of Linus Torvalds