|
From: Madhu M K. <mm...@ya...> - 2003-06-11 20:33:19
|
Hi,
Leonard mckinley <spa...@ya...> said:
> I really like the new capability, ...except for all the prompting.
>
> What do you think of a --gen-suppressions={yes|no|ask} option. "yes"
> would generate suppressions without a prompt for every flagged issue,
> and "ask" would do what yes does now. I just want it to dump
> everything in a file and when it prompts me I have to sit there and
> bang "y" on the keyboard.
I actually wrote up a different kind of --gen-suppressions. This one did
the following:
--gen-suppressions=yes/filename
If you gave it a filename, it would then peacefully keep accumulating
suppressions, keep a count of how many times that suppressions was
generated irrespective of context (eg. a glibc error that shows up from
diff location, same library's problem). And finally it would dump out
suppressions sorted by frequency. Max to min.
You then have to manually parse the suppression file to remove the
"real leaks". A rule of thumb that I've found works for me is that any
frequency > 20 is usually a library that I can do nothing about.
Let me cvs up to head, sync up the changes and post a patch.
Cheerio,
M
Madhu M Kurup /* Nemo Me Impune Lacessit */ mmk at yahoo-inc dt com
|