leaking_addresses: add summary reporting options
authorTobin C. Harding <me@tobin.cc>
Thu, 9 Nov 2017 04:07:15 +0000 (15:07 +1100)
committerTobin C. Harding <me@tobin.cc>
Mon, 13 Nov 2017 22:29:27 +0000 (09:29 +1100)
commitd09bd8da8812a4df69ea3303e6df846a729ec623
treed04e30ca13d96137f5f8671f6deee855a673744d
parent1c1e3be0bf37db1396b4ecd995992643a6d92c00
leaking_addresses: add summary reporting options

Currently script just dumps all results found. Potentially, this risks
losing single results among multiple duplicate results. We need some
way of restricting duplicates to assist users of the script. It would
also be nice if we got a report instead of raw results.

Duplicates can be defined in various ways, instead of trying to find a
single perfect solution we can present the user with various options to
display the output. Doing so will typically lead to users wanting to
view the output multiple times. Currently we scan the kernel each time,
this is slow and unnecessary. We can expedite the process by writing the
results to file for subsequent viewing.

Add command line options to enable summary reporting, including options
to write to and read from file.

Signed-off-by: Tobin C. Harding <me@tobin.cc>
scripts/leaking_addresses.pl