LWN.net Logo

Jump label

Jump label

Posted Nov 1, 2010 20:58 UTC (Mon) by ThomasBellman (subscriber, #67902)
In reply to: Jump label by i3839
Parent article: Jump label

Instead of inserting a NOP instruction, you could fill that slot with a useful instruction. Then, of course, that useful instruction must also be part of the tracepoint code, in order to have it performed when the tracepoint is enabled as well, when the original instruction is replaced with a jump.


(Log in to post comments)

Jump label

Posted Nov 2, 2010 20:28 UTC (Tue) by i3839 (guest, #31386) [Link]

That's very smart, but a bit tricky to implement (at least on x86 and other archs with variable instruction lengths). I'd say go for it!

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