Convert binary log to text log

39 views
Skip to first unread message

Pedro Becker

unread,
Jun 28, 2021, 9:32:02 AM6/28/21
to DynamoRIO Users
Hi,

memtrace_x86 can generate traces in either binary or text mode. binary is said to run faster.
Is there a tool to convert the generated *.log file from binary to text?

Trying:
~/Downloads/DynamoRIO-Linux-8.0.0-1$ bin64/drrun -c samples/bin64/libmemtrace_x86_binary.so -- ls
Client memtrace is running
Data file /home/pedro/Downloads/DynamoRIO-Linux-8.0.0-1/samples/bin64/memtrace.ls.289271.0000.log created
ACKNOWLEDGEMENTS  bin32  bin64    cmake  docs  drmemory  dynamorio  ext  include    lib32  lib64  License.txt  logs  README  samples  tools
Instrumentation results:
  saw 163616 memory references

and then

~/Downloads/DynamoRIO-Linux-8.0.0-1$ ./samples/bin64/tracedump /home/pedro/Downloads/DynamoRIO-Linux-8.0.0-1/samples/bin64/memtrace.ls.289271.0000.log
Error: file version 1 does not match tool version 800


Any suggestions?
Thank you,
Pedro.

Derek Bruening

unread,
Jun 28, 2021, 11:04:41 AM6/28/21
to dynamor...@googlegroups.com
"tracedump" deals with DR's control-flow traces, a different type of trace.  The memtrace_x86 sample does not provide any further tooling and you would be expected to write your own post-processing code.  If you want a full-featured set of address trace post-processing tools, the drcachesim offline tracer is what you want, with a framework for making new analysis tools: https://dynamorio.org/page_drcachesim.html, https://dynamorio.org/sec_drcachesim_offline.html.

--
You received this message because you are subscribed to the Google Groups "DynamoRIO Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to dynamorio-use...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/dynamorio-users/932566f7-1755-4bad-9de7-7068ebff089dn%40googlegroups.com.

Pedro Becker

unread,
Jun 28, 2021, 11:22:13 AM6/28/21
to DynamoRIO Users
I see, I misunderstood the use of tracedump.
Thank you Derek for the thorough explanation!

Best,
Pedro.
Reply all
Reply to author
Forward
0 new messages