X-Git-Url: https://git.whamcloud.com/?a=blobdiff_plain;ds=sidebyside;f=lustre%2Ftests%2Fleak_finder.pl;h=5219996d2515113fd7e61796fc32ccad0849a57b;hb=cd9c585e8c7bdd6cfd802be64ef277dfd466be17;hp=745f11350c5019eea80947b36015bc3ebf9906a1;hpb=a2a0746305449dbd925879b14dc2c0d6040bb8bf;p=fs%2Flustre-release.git diff --git a/lustre/tests/leak_finder.pl b/lustre/tests/leak_finder.pl index 745f113..5219996 100644 --- a/lustre/tests/leak_finder.pl +++ b/lustre/tests/leak_finder.pl @@ -14,15 +14,15 @@ my $max = 0; while ($line = <>) { $debug_line++; my ($file, $func, $lno, $name, $size, $addr, $type); - if ($line =~ m/^.*\((.*):(\d+):(.*)\(\) (\d+ \| )?\d+\+\d+\): (k|v|slab-)(.*) '(.*)': (\d+) at (.*) \(tot (.*)\).*$/) { - $file = $1; - $lno = $2; - $func = $3; + if ($line =~ m/^.*(\.).*\((.*):(\d+):(.*)\(\)\) (k|v|slab-)(.*) '(.*)': (\d+) at (.*) \(tot (.*)\).*$/){ + $file = $2; + $lno = $3; + $func = $4; $type = $6; $name = $7; $size = $8; $addr = $9; - $tot = $10; + $tot = $10; # we can't dump the log after portals has exited, so skip "leaks" # from memory freed in the portals module unloading. @@ -86,4 +86,4 @@ foreach $key (@sorted) { print STDERR "*** Leak: $memory->{$key}->{size} bytes allocated at $key ($memory->{$key}->{file}:$memory->{$key}->{func}:$memory->{$key}->{lno}, debug file line $memory->{$key}->{debug_line})\n"; } -print "maximum used: $max, amount leaked: $total\n"; +print STDERR "maximum used: $max, amount leaked: $total\n";