On 3/23/2012 9:10 AM, Hamid Reza Khaleghzadeh wrote: > Hi, > > I have some questions about Valgrind tool. I would be thankful if answer me. > > 1- I want to know does Valgrind support Pthread and openMP programs? > 2- I need a tool that traces my multi-threaded program and creates > memory trace of the program. The trace must contain accessed memory > address, threadID and access type(Read/Write). > > Sorry to bother you with my questions.
It does support multiple threads, but runs only one thread at a time. I don't personally know the answer to the OpenMP question. For a memory trace, you can take and extend the lackey tool slightly to have it output the thread id in addition to the type of reference, the address, and the number of bytes referenced. That should be a straightforward change if you can find where to get the thread id in valgrind. (I've not looked for that information, but system call tracing in valgrind certainly prints it, so it should not be hard to get.) Regards -- Eliot Moss ------------------------------------------------------------------------------ This SF email is sponsosred by: Try Windows Azure free for 90 days Click Here http://p.sf.net/sfu/sfd2d-msazure _______________________________________________ Valgrind-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/valgrind-users
