Am 16.02.2015 um 22:29 schrieb Raul Garcia: > |That information is great, but is it possible to get the exact instructions > (mnemonics) that where utilized/executed > per each line like in the example below? This information would be really > valuable to me.
In the instrument function you have access to the guest code bytes. So, if you add your own disassembler for the ISA, you can get what you want. It would be nice if VEX can return the mnemonics. Especially as they are already in the code as debug output. As far as I can see, this is "just" some kind of refactoring effort which nobody did up to now. Callgrind's visualization (kcachegrind) calls out to "objdump" to do annotation on a machine code level. That's just not working for dynamically generated code. To support that, your feature request also would be good. Josef > > | . void swap(int *a, int *b) > 3,000 { [insta, instb, instc] > 3,000 int tmp = *a; |||[insta, instb, instc]| > 4,000 *a = *b; ||||[instd, instd, insta,|||||||||| > instc||||]|| > 3,000 *b = tmp; |||||[instc, insta, instb]||| > 2,000 }| ||||[instc, insta]|||| > > Best Regards, > Raul. > > > > > ------------------------------------------------------------------------------ > Download BIRT iHub F-Type - The Free Enterprise-Grade BIRT Server > from Actuate! Instantly Supercharge Your Business Reports and Dashboards > with Interactivity, Sharing, Native Excel Exports, App Integration & more > Get technology previously reserved for billion-dollar corporations, FREE > http://pubads.g.doubleclick.net/gampad/clk?id=190641631&iu=/4140/ostg.clktrk > > > > _______________________________________________ > Valgrind-users mailing list > Valgrind-users@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/valgrind-users > ------------------------------------------------------------------------------ Download BIRT iHub F-Type - The Free Enterprise-Grade BIRT Server from Actuate! Instantly Supercharge Your Business Reports and Dashboards with Interactivity, Sharing, Native Excel Exports, App Integration & more Get technology previously reserved for billion-dollar corporations, FREE http://pubads.g.doubleclick.net/gampad/clk?id=190641631&iu=/4140/ostg.clktrk _______________________________________________ Valgrind-users mailing list Valgrind-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/valgrind-users