|
From: Josef W. <Jos...@gm...> - 2003-11-03 13:38:12
|
On Monday 03 November 2003 11:21, Paramveer Singh wrote: > hi! > I need a trace of all memory fetch requests (both instruction and data) > issued from the CPU to the memory heirarchy during the a sample run of a > proram. Can this be done by valgrinding it? > If so, can anyone tell me how? Hi, a few months ago I wrote a simple skin, instrumenting code similar to cachegrind, but calling application defined callbacks when events happen (it was used to glue Valgrind with a custom cache simulator for SMP systems). The skin works with V-1.9.6, -20030725 and -20031012. See the included example tests/matest.c. It's available here: http://kcachegrind.sourceforge.net/cgi-bin/show.cgi/KcacheGrindValgrind Even without modifying your app, you get all memory accesses by running "memaccess -v -v -v <app>". Note that this will give you a *huge* amount of debug info. Josef > > > cheers! > paraM |