Whamcloud - gitweb
Branch b1_6
authorbwzhou <bwzhou>
Mon, 28 Jan 2008 05:24:20 +0000 (05:24 +0000)
committerbwzhou <bwzhou>
Mon, 28 Jan 2008 05:24:20 +0000 (05:24 +0000)
b=14413
r=shadow, johann

make leak-finder work correctly with LUSTRE and LNET debug messages

lustre/tests/conf-sanity.sh
lustre/tests/leak_finder.pl

index 3bc4531..fe81a07 100644 (file)
@@ -1528,5 +1528,14 @@ test_38() { # bug 14222
 
 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
 [ -f "$TESTSUITELOG" ] && cat $TESTSUITELOG || true
index aa783bb..45d2211 100644 (file)
@@ -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 (.*)\..*$/){
+    if ($line =~ m/^.*(\.).*\((.*):(\d+):(.*)\(\)\) (k|v|slab-)(.*) '(.*)': (\d+) at ([\da-f]+)/){
         $file = $2;
         $lno  = $3;
         $func = $4;