[dtrace-discuss] FBT implementation on x86
Saravanan S
sar.kernel at gmail.com
Tue Feb 13 02:41:20 PST 2007
Hi,
I was going through the implementation of FBT provider on x86. I figured out
that entry and the exit instructions in a function will be replaced by the
"lock" instruction on a probe enable which on execution causes a invalid
opcode exception. Is there any reason why lock was choosen as the
instruction to cause the invalid opcode trap? Is there any chance of a "ret"
instruction followed by ADD,CMPXCHG and other instructions which can be
prefixed by the "lock" instruction in memory. In that case, if we replace
ret by lock we might not trap in to the invoptrap routine?
Thanks in advance
Saravanan S
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.opensolaris.org/pipermail/dtrace-discuss/attachments/20070213/59c4c499/attachment.html
More information about the dtrace-discuss
mailing list