Whamcloud - gitweb
b_2466
authoryoufeng <youfeng>
Fri, 2 Jan 2004 04:04:29 +0000 (04:04 +0000)
committeryoufeng <youfeng>
Fri, 2 Jan 2004 04:04:29 +0000 (04:04 +0000)
r = braam

make portals_debug_dumpstack(void) calling panic("LBUG") in uml

lnet/libcfs/debug.c
lustre/portals/libcfs/debug.c

index 1af687c..40d7031 100644 (file)
@@ -953,25 +953,7 @@ extern int is_kernel_text_address(unsigned long addr);
 
 char *portals_debug_dumpstack(void)
 {
-        int size;
-        unsigned long addr;
-        char *buf = stack_backtrace;
-        char *pbuf = buf;
-        unsigned long *stack = (unsigned long *)&buf;
-
-        size = sprintf(pbuf, " Call Trace: ");
-        pbuf += size;
-        while (((long) stack & (THREAD_SIZE-1)) != 0) {
-                addr = *stack++;
-                if (is_kernel_text_address(addr)) {
-                        size = sprintf(pbuf, "[<%08lx>] ", addr);
-                        pbuf += size;
-                        if (buf + LUSTRE_TRACE_SIZE <= pbuf + 12)
-                                break;
-                }
-        }
-
-        return buf;
+        panic("LBUG");
 }
 
 #elif defined(__i386__)
index 1af687c..40d7031 100644 (file)
@@ -953,25 +953,7 @@ extern int is_kernel_text_address(unsigned long addr);
 
 char *portals_debug_dumpstack(void)
 {
-        int size;
-        unsigned long addr;
-        char *buf = stack_backtrace;
-        char *pbuf = buf;
-        unsigned long *stack = (unsigned long *)&buf;
-
-        size = sprintf(pbuf, " Call Trace: ");
-        pbuf += size;
-        while (((long) stack & (THREAD_SIZE-1)) != 0) {
-                addr = *stack++;
-                if (is_kernel_text_address(addr)) {
-                        size = sprintf(pbuf, "[<%08lx>] ", addr);
-                        pbuf += size;
-                        if (buf + LUSTRE_TRACE_SIZE <= pbuf + 12)
-                                break;
-                }
-        }
-
-        return buf;
+        panic("LBUG");
 }
 
 #elif defined(__i386__)