|
From: Aditya <ad...@re...> - 2004-07-06 18:50:23
|
hi,=0A=0AI am using cachegrind skin of valgrind to get the address traces o= f an application. I have been capturing the addresses as they are generated= , in log_xD_yI_cache_access(....) functions (in cg_main.c file). I now want= to collect for each access if it is a load or store operation. How do i do= that ? =0A=0AThanks,=0A=0APS: I am collecting only DATA references.=0A=0A |
|
From: Nicholas N. <nj...@ca...> - 2004-07-06 22:55:49
|
On Tue, 6 Jul 2004, Aditya wrote: > I am using cachegrind skin of valgrind to get the address traces of an > application. I have been capturing the addresses as they are generated, > in log_xD_yI_cache_access(....) functions (in cg_main.c file). I now want to > collect for each access if it is a load or store operation. How do i do > that ? Try the attached tool, Memtrace, which prints the data address trace: 1. Get the current CVS HEAD (see valgrind.kde.org/cvs.html for how). 2. Apply the diff against the current CVS head. 3. Make a directory called 'memtrace' and put mt_main.c and Makefile.am in it. Build according to the instructions in README. Et voila. I did this because several people have asked about this functionality before (even though mpatrol does it better). I'm tempted to include it in the main distro now, just to stop people asking this question. I think I would rename the tool "Dullard" before I do, though. N |