Re: [rvm-research] Instrumentation in baseline compiler
Eliot Moss <[email protected]>
| Newsgroups | gmane.comp.java.jikes.rvm.devel |
|---|---|
| Message-ID | <[email protected]> |
On 3/31/2014 3:46 AM, Priyanka Bhayana wrote: > Hi, > Thanks for your prompt response. I want to have the trace of the java application which is being > executed by the jikes rvm, by the trace I mean all the x86 instructions alongwith the program > counter, that will be executed when the application is running. I have tried to instrument the > emit_opcodes methods in Assembler.java by modifying Assembler.in and genAssembler.sh, but I am > getting Null Pointer Exceptions when I am instrumenting some addressing modes. The addressing modes > which are causing problems are Register- Register Index and Immediate, So I want to ask is there > any special about this addressing modes which I might be missing? And is there any other way to get > the x86 instruction and program counter? While it won't give you the Java view of the world, if you want instruction level tracing I found valgrind to be successful. You do have to be a little careful about the exact flags you use, etc., so it you choose to go that route, let me know and I'll dig them out of my old scripts ... Regards -- Eliot Moss ------------------------------------------------------------------------------