[Valgrind-users] using valgrind at specific point while running program

2013-08-26 Thread Mahmood Naderan
I want to use valrgind at a specific time while my program is running. For example, when I use -O3 it will take 0.5 hours to reach the desired point. When I use -g -ggdb it will take nearly 2.5 hours to reach the desired point. Now if I use valgrind with -g -ggdb, the program is extremely

Re: [Valgrind-users] using valgrind at specific point while running program

2013-08-26 Thread Konstantin Tokarev
26.08.2013, 11:45, Mahmood Naderan nt_mahm...@yahoo.com: I want to use valrgind at a specific time while my program is running. For example, when I use -O3 it will take 0.5 hours to reach the desired point. When I use -g -ggdb it will take nearly 2.5 hours to reach the desired point. Now

Re: [Valgrind-users] using valgrind at specific point while running program

2013-08-26 Thread Konstantin Tokarev
26.08.2013, 12:00, Mahmood Naderan nt_mahm...@yahoo.com: Thanks. To be honest, I didn't understand! It seems that with these macros, I can insert them in the specific section of the code. However my problem is different. There are iterative functions. So I want to start valgrind after,

Re: [Valgrind-users] using valgrind at specific point while running program

2013-08-26 Thread Jonatan Wallmander
On 08/26/2013 10:00 AM, Mahmood Naderan wrote: Thanks. To be honest, I didn't understand! It seems that with these macros, I can insert them in the specific section of the code. However my problem is different. There are iterative functions. So I want to start valgrind after, say, 0.5 hours

Re: [Valgrind-users] using valgrind at specific point while running program

2013-08-26 Thread Vasily Golubev
Hello, Mr. Naderan. What particular tool would you like to use (Memcheck, Callgrind, Massif)? If callgrind - you can switch off instrumentation at the start and then switch it on at some particular point (or time). In any case, at first - please test your program with: valgrind --tool=none

Re: [Valgrind-users] using valgrind at specific point while running program

2013-08-26 Thread Mahmood Naderan
What particular tool would you like to use (Memcheck, Callgrind, Massif)?  Unfortunately I want to use memcheck which seems to be impossible Regards, Mahmood From: Vasily Golubev vasily.golu...@gmail.com To: valgrind-users@lists.sourceforge.net

Re: [Valgrind-users] using valgrind at specific point while running program

2013-08-26 Thread Vasily Golubev
Yes, unfortunately, you are right. Since Valgrind binary translates your program and track all memory read\write you have to run Memcheck at the start of your program. Maybe you can somehow reduce run path of your program changing some functions to simpler one. So, my point is - try to localize

[Valgrind-users] cross platform tool development

2013-08-26 Thread Paolo Piselli
Hi, I'm working on a Valgrind tool targeting 32-bit guests that up to this point we have been running on 32-bit hosts. I would like to also be able to compile to target 32-bit guest on 64-bit host. So far, the largest difference that I have found is described in the comments of doHelperCall

Re: [Valgrind-users] cross platform tool development

2013-08-26 Thread Konstantin Tokarev
26.08.2013, 19:18, Paolo Piselli ppise...@csail.mit.edu: Hi, I'm working on a Valgrind tool targeting 32-bit guests that up to this point we have been running on 32-bit hosts.  I would like to also be able to compile to target 32-bit guest on 64-bit host.  So far, the largest difference that