On 20 February 2011 07:52, zhouxu(NUDT) <[email protected]> wrote:
> Hi everyone,
>   I am new to Valgrind. I want to log an program's every memory
> access. Each log entry should contain "thread id", "memory address",
> "read or write". I want to know if Valgrind can do this job and how? Thank 
> you!

You might also find this useful as a starting point:
http://gitorious.org/datagrind/

It does pretty much that, except
- it doesn't log thread id
- it doesn't yet log reads and writes due to system calls
- it can log a stack trace for every access

The logging is in a compact binary form, with a separate viewer,
rather than in a flat list. That makes it practical to log millions of
accesses with stack traces without filling up your disk.

Bruce
-- 
Dr Bruce Merry
bmerry <@> gmail <.> com
http://www.brucemerry.org.za/
http://blog.brucemerry.org.za/

------------------------------------------------------------------------------
Free Software Download: Index, Search & Analyze Logs and other IT data in 
Real-Time with Splunk. Collect, index and harness all the fast moving IT data 
generated by your applications, servers and devices whether physical, virtual
or in the cloud. Deliver compliance at lower cost and gain new business 
insights. http://p.sf.net/sfu/splunk-dev2dev 
_______________________________________________
Valgrind-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/valgrind-users

Reply via email to