From 3e4356719c26c82677311d1764486cb241561710 Mon Sep 17 00:00:00 2001 From: youfeng Date: Fri, 2 Jan 2004 04:04:29 +0000 Subject: [PATCH] b_2466 r = braam make portals_debug_dumpstack(void) calling panic("LBUG") in uml --- lnet/libcfs/debug.c | 20 +------------------- lustre/portals/libcfs/debug.c | 20 +------------------- 2 files changed, 2 insertions(+), 38 deletions(-) diff --git a/lnet/libcfs/debug.c b/lnet/libcfs/debug.c index 1af687c..40d7031 100644 --- a/lnet/libcfs/debug.c +++ b/lnet/libcfs/debug.c @@ -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__) diff --git a/lustre/portals/libcfs/debug.c b/lustre/portals/libcfs/debug.c index 1af687c..40d7031 100644 --- a/lustre/portals/libcfs/debug.c +++ b/lustre/portals/libcfs/debug.c @@ -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__) -- 1.8.3.1