X-Git-Url: https://git.whamcloud.com/?a=blobdiff_plain;f=lustre%2Ftests%2Fleak_finder.pl;h=45d221161bf18ac6f59863095477a28ff1b37eb5;hb=d78958bbc3d7f24f54cc6b6d32fe1f1b813a997f;hp=5219996d2515113fd7e61796fc32ccad0849a57b;hpb=c5050e412572b00cbe93d8517d2d1f767bebfa92;p=fs%2Flustre-release.git diff --git a/lustre/tests/leak_finder.pl b/lustre/tests/leak_finder.pl index 5219996..45d2211 100644 --- a/lustre/tests/leak_finder.pl +++ b/lustre/tests/leak_finder.pl @@ -14,7 +14,7 @@ my $max = 0; while ($line = <>) { $debug_line++; my ($file, $func, $lno, $name, $size, $addr, $type); - if ($line =~ m/^.*(\.).*\((.*):(\d+):(.*)\(\)\) (k|v|slab-)(.*) '(.*)': (\d+) at (.*) \(tot (.*)\).*$/){ + if ($line =~ m/^.*(\.).*\((.*):(\d+):(.*)\(\)\) (k|v|slab-)(.*) '(.*)': (\d+) at ([\da-f]+)/){ $file = $2; $lno = $3; $func = $4; @@ -22,7 +22,6 @@ while ($line = <>) { $name = $7; $size = $8; $addr = $9; - $tot = $10; # we can't dump the log after portals has exited, so skip "leaks" # from memory freed in the portals module unloading. @@ -69,10 +68,6 @@ while ($line = <>) { delete $memory->{$addr}; $total -= $size; } - if ($total != int($tot)) { - print "kernel total $tot != my total $total\n"; - $total = $tot; - } } # Sort leak output by allocation time