r = braam
make portals_debug_dumpstack(void) calling panic("LBUG") in uml
char *portals_debug_dumpstack(void)
{
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;
}
#elif defined(__i386__)
}
#elif defined(__i386__)
char *portals_debug_dumpstack(void)
{
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;
}
#elif defined(__i386__)
}
#elif defined(__i386__)