I am basically brand new to DynamoRIO and looking for some tips on the following. My basic goal is to print out the execution trace of my program including the function name of each instruction.
I noticed that the instrcalls sample client instruments call instructions and prints out the function name. So I tried to modify the event_app_instruction() function there to instrument every instruction (not just call instructions). However I seem to still only be printing calls.
Actually first, I had tried modifying the instrace example client to include the function name while printing, in addition to the program counter + instruction. This seemed more straightforward to me, but I actually had even less success here - can I get the function name from the program counter?
Preferably I would also print the file name and line number, too.