Hi Folks,
I am trying to run an analysis for Java applications. The aim is very simple, I want to instrument all the memory loads of an application and log the value loaded to a register for that instruction. Also, I want to log the timestamp when the instruction is executed because I will eventually merge this trace with a pagefault trace that I obtain using perf.
I used PIN to do this for native applications and I'm exploring if I can do the same for Java applications using DynamoRIO.
Is it possible to do what I am proposing using DynamoRIO and would I have to create my own tool for this?
Also how reliable and accurate would the timestamps be? Suppose a load instruction caused a pagefault, the timestamp that DynamoRIO provides should be before the timestamp of the pagefault, is that possible?
Thanks!