Skip to content
Snippets Groups Projects
Commit 400368f7 authored by bwzhou's avatar bwzhou
Browse files

Branch b1_6

b=14413
r=shadow, johann

make leak-finder work correctly with LUSTRE and LNET debug messages
parent 361e1fa5
No related branches found
No related tags found
No related merge requests found
...@@ -1528,5 +1528,14 @@ test_38() { # bug 14222 ...@@ -1528,5 +1528,14 @@ test_38() { # bug 14222
run_test 38 "MDS recreates missing lov_objid file from OST data" run_test 38 "MDS recreates missing lov_objid file from OST data"
test_39() { #bug 14413
PTLDEBUG=malloc
setup
cleanup
perl $SRCDIR/leak_finder.pl $TMP/debug 2>&1 | egrep "*** Leak:" && error
}
run_test 39 "leak_finder recognizes both LUSTRE and LNET malloc messages"
equals_msg `basename $0`: test complete equals_msg `basename $0`: test complete
[ -f "$TESTSUITELOG" ] && cat $TESTSUITELOG || true [ -f "$TESTSUITELOG" ] && cat $TESTSUITELOG || true
...@@ -14,7 +14,7 @@ my $max = 0; ...@@ -14,7 +14,7 @@ my $max = 0;
while ($line = <>) { while ($line = <>) {
$debug_line++; $debug_line++;
my ($file, $func, $lno, $name, $size, $addr, $type); my ($file, $func, $lno, $name, $size, $addr, $type);
if ($line =~ m/^.*(\.).*\((.*):(\d+):(.*)\(\)\) (k|v|slab-)(.*) '(.*)': (\d+) at (.*)\..*$/){ if ($line =~ m/^.*(\.).*\((.*):(\d+):(.*)\(\)\) (k|v|slab-)(.*) '(.*)': (\d+) at ([\da-f]+)/){
$file = $2; $file = $2;
$lno = $3; $lno = $3;
$func = $4; $func = $4;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment