You *can't* require an unchanging interface to changeable internals.
Posted Sep 28, 2006 21:57 UTC (Thu) by efexis
In reply to: You *can't* require an unchanging interface to changeable internals.
Parent article: Tracing infrastructures
Can't we learn anything from SMP Alternatives? Ie, stick a couple of NOP's in the code big enough to replace it with a CALL instruction when you want to add a tracepoint there. On 64bit systems I guess the CALL instruction is going to be longer (including the 64bit address), so maybe a JMP $+9 and a few NOP's would be quicker than just the NOP's (I haven't looked into processor instruction timings for a -long time-).
to post comments)