x86 instruction classification
Jim Keniston
jkenisto@us.ibm.com
Fri Apr 3 23:24:00 GMT 2009
As promised on yesterday's SystemTap call, here's inat.c. It consists
of a couple of tables that capture more information about the x86
instruction sets. For example, you could use this code to determine
whether an opcode/instruction is invalid, privileged, a floating-point
op, or in some other way of possible interest to uprobes and/or kprobes.
Also included is cmp.c, a user program that provides an example of the
tables' use and also serves as a check against the tables currently in
use by x86 ubp/uprobes. (There are a few differences, which reflect
either corrections in inat.c or differences in how the tables are used.)
The intention is eventually provide this as an enhancement to our x86
instruction-analysis code.
inat.c uses the x86 kvm approach of one bitmap for each opcode.
Comments welcome.
Jim
-------------- next part --------------
A non-text attachment was scrubbed...
Name: cmp.c
Type: text/x-csrc
Size: 5672 bytes
Desc: not available
URL: <http://sourceware.org/pipermail/systemtap/attachments/20090403/c70e5aad/attachment.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: inat.c
Type: text/x-csrc
Size: 5262 bytes
Desc: not available
URL: <http://sourceware.org/pipermail/systemtap/attachments/20090403/c70e5aad/attachment-0001.bin>
More information about the Systemtap
mailing list