|
From: Rodrigo D. <ro...@ho...> - 2008-12-20 13:37:25
|
Hi Nicholas, Thanks for replying. I think I will have to modify Valgrind for the "before" part as well because of what you just pointed out. I am looking at disInstr_X86 in VEX/priv/guest-x86/toIR.c as a starting point. I will post more questions as I make progress. Thank you, Rodrigo > -----Original Message----- > From: Nicholas Nethercote [mailto:nj...@cs...] > Sent: Friday, December 19, 2008 11:26 PM > To: Rodrigo Dominguez > Cc: val...@li... > Subject: Re: [Valgrind-developers] Instruction mix profile > > On Fri, 19 Dec 2008, Rodrigo Dominguez wrote: > > > I would like to compare the dynamic instruction mix profile of an > > application before and after binary translation. By "before binary > > translation" I mean the instruction mix if I were to execute the > application > > natively (without Valgrind). By "after binary translation" I mean the > > instruction mix of the translated code when using Valgrind without > any > > instrumentation. I have two questions: > > > > 1. For the "before" part, I am thinking this could be done using a > Valgrind > > tool. Is there a tool that already does this? I looked at the tool > suite > > included with Valgrind but I couldn't find one that does instruction > mix > > analysis. > > It's difficult to do with Valgrind, because it translates the machine > instructions into an architecture-neutral IR, and that's what tools > operate > on. > > Nick |