atos-tools / qemu

QEMU with instrumentation support, ref to tcg/plugins/README
https://guillon.github.io/qemu-plugins
Other
5 stars 8 forks source link

instruction tracing #14

Open s0i37 opened 4 years ago

s0i37 commented 4 years ago

Hello. I'm trying to grab execution trace of each instruction with full registers state. But it seems all APIs support only basic block translationg/execution events. Do I undrestand right that it is impossible to handle exection of each instruction? Thank you.

second-reality commented 4 years ago

Hello,

indeed, API are focus on block translation, mainly for efficiency reasons. If you want to do instruction level instrumentation, you must do it by hand (see after_gen_opc here: https://github.com/atos-tools/qemu/blob/next/master/tcg/plugins/dyncount.c).