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 the process ID in the 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 it 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 one packet and another with l10 packets. That should help me narrow down the culprit.
Is there's a better alternative to solving this without using diff?