Hi folks, I've got a question about Valgrind and its Memcheck tool. Is it possible to take a snapshot of a program under Valgrind, kinda similar to the way a fork() clones the process space, and then continue again from that snapshot with Valgrind? Could fork() perhaps be the answer?
Basically the issue is that the program I am working on does a whole lot of initialization work. That initialization work is memory-intensive and that means it is relatively slow in Valgrind. However, for all practical purposes the process will always end up in exactly the same state at one point and I am thinking of whether there is a way to load that initial state, continue from there and then direct it to change its behavior in a particular way. To be a bit more specific. I'm running one of our command line AV scanners through Valgrind. The loading of the virus signatures at the beginning is the part that takes longest. It would be very practical to modify Valgrind in a way that allows it to resume from a "saved state". Thanks, // Oliver PS: I'm pretty sure I can convince my boss to invest time for this, if someone could provide the pointers where I would need to look. Currently I am working with the stock version of Valgrind that comes with Ubuntu 10.04 (x64).
signature.asc
Description: OpenPGP digital signature
------------------------------------------------------------------------------ Live Security Virtual Conference Exclusive live event will cover all the ways today's security and threat landscape has changed and how IT managers can respond. Discussions will include endpoint security, mobile security and the latest in malware threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________ Valgrind-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/valgrind-users
