I have two valgrind reports and I want to diff them. With pid in each line, diff obviously finds everything different. If I can suppress the pid in output, it will be easier for me to diff. Is there a way to suppress process id in valgrind output ?

Background:

My program is a simulator which is meant to be running forever (until manually killed). After it does its initialization, I can feed it networking packets and it processes them. Using valgrind, I've narrowed down and fixed the memory leaks that occur during packet processing. However, I still have a very small leak. I was trying to figure out if there was a way for me to reset the memory leak count in valgrind at runtime. If I could=> after sending one packet, I'd zero out the memory errors, and only those errors that would be happening at subsequent packet pass would be reported. But I couldn't figure out how to do this.

So, I thought of taking the diff of two valgrind reports: one with 1 packet and another with l10 packets. That should help me narrow down the culprit.

If there's a better alternative to solving this without using diff, please let me know!