drcachesim view tool skips version with -skip_refs
The drcachesim view tool incorrectly skips over key metadata like the version when -skip_refs is used. This causes it to misinterpret trace data as shown here where it thinks the kernel xfer value is an offset rather than absolute:
$ bin64/drrun -t drcachesim -simulator_type view -sim_refs 10 -indir drmemtrace.linux.infloop.*.dir/
T444096 <marker: version 3>
$ bin64/drrun -t drcachesim -simulator_type view -skip_refs 44000111 -indir drmemtrace.linux.infloop.*.dir/
T444096 0x00007f3e83b0b7f2 48 83 45 f0 01 addq $0x01, -0x10(%rbp)
T444096 read 8 byte(s) @ 0x7ffc4c720190
T444096 <marker: kernel xfer from module offset +0x7f3e83b0b7f2 to handler>