Whamcloud - gitweb
b=21128
authorpravins <pravins>
Wed, 9 Dec 2009 16:18:35 +0000 (16:18 +0000)
committerpravins <pravins>
Wed, 9 Dec 2009 16:18:35 +0000 (16:18 +0000)
i=rread
i=adilger
get stack dump on stack usage overflow.

libcfs/include/libcfs/linux/libcfs.h

index e1a0502..9e75d75 100644 (file)
@@ -84,6 +84,7 @@ do {                                                                    \
                 libcfs_debug_msg(NULL, DEBUG_SUBSYSTEM, D_WARNING,      \
                                  file, func, line,                      \
                                  "maximum lustre stack %lu\n", _stack); \
                 libcfs_debug_msg(NULL, DEBUG_SUBSYSTEM, D_WARNING,      \
                                  file, func, line,                      \
                                  "maximum lustre stack %lu\n", _stack); \
+                dump_stack();                                           \
               /*panic("LBUG");*/                                        \
         }                                                               \
 } while (0)
               /*panic("LBUG");*/                                        \
         }                                                               \
 } while (0)