dynamorio icon indicating copy to clipboard operation
dynamorio copied to clipboard

i#6662 public traces, part 3: view tool

Open edeiana opened this issue 1 year ago • 1 comments

Modifies the view tool to handle OFFLINE_FILE_TYPE_ARCH_REGDEPS traces. Specifically, when we disassemble DR_ISA_REGDEPS instructions, we print the instruction encoding (can span multiple lines), we substitute the opcode with the categories, we print the operations size (e.g., [4byte]), and then the virtual register names (e.g., %rv3).

Instructions look as follows:

[...] ifetch       7 byte(s) @ 0x0000000003f16640 00000811 load [8byte]       %rv3 -> %rv0
[...]                                             00050206

The view tool can be invoked as before: drrun -t drcachesim -simulator_type view -infile path/to/trace

Issue: #6662

edeiana avatar May 07 '24 17:05 edeiana

There are 2 tests consistently failing in ci-x86 / x86-64: code_api|tool.drcacheoff.skip and code_api|tool.drcacheoff.skip2. The cause is that the header of the trace is being removed and that is causing the dcontext ISA mode to be set to DR_ISA_REGDEPS (on a, supposedly, x86 trace). I need to investigate why it's happening.

EDIT: this has been fixed.

edeiana avatar May 08 '24 10:05 edeiana