Whamcloud - gitweb
LU-14736 tests: improve leak-finder compatibility 57/49357/6
authorAndreas Dilger <adilger@whamcloud.com>
Sat, 10 Dec 2022 04:59:56 +0000 (21:59 -0700)
committerOleg Drokin <green@whamcloud.com>
Tue, 21 Mar 2023 23:14:06 +0000 (23:14 +0000)
commit8ab8483c8f876480d5979e4b54e2e6f33cd9b7a7
tree07261446ec5f7925759c8fb0c11ed85a6bb72dd7
parentc322715245abcb2393898be1f902e3c2bfb5914c
LU-14736 tests: improve leak-finder compatibility

Add regexps for leak-finder.pl to still be able to parse older
debug logs for ease of use.

Improve --summary mode so that it only prints the summary, instead of
every line that is parsed.  Add --debug to print every line if needed.

Track free-without-alloc calls so that --summary can be used on debug
logs captured during cleanup to aggregate frees that were allocated
before the debug log was started.  This will show "leaks" as negative
allocations for each callsite (i.e. more memory freed than allocated).

Print total allocated and freed in summary line.

Fixes: 5b998d803f ("LU-14736 utils: update leak-finder.pl for new format")
Signed-off-by: Andreas Dilger <adilger@whamcloud.com>
Change-Id: Ieefd5f5336252edcd3916a409c6c046a57b07dc4
Reviewed-on: https://review.whamcloud.com/c/fs/lustre-release/+/49357
Tested-by: jenkins <devops@whamcloud.com>
Tested-by: Maloo <maloo@whamcloud.com>
Reviewed-by: Emoly Liu <emoly@whamcloud.com>
Reviewed-by: Alex Deiter <alex.deiter@gmail.com>
Reviewed-by: Oleg Drokin <green@whamcloud.com>
lustre/tests/leak_finder.pl