[PATCH] x86: Compress stack unwinder output
The unwinder has some extra newlines, which eat up loads of screen space when it spews. (See https://bugzilla.redhat.com/bugzilla/attachment.cgi?id=137900 for a nasty example). warning_symbol-> and warning-> already printk a newline, so don't add one in the strings passed to them. [AK: redone for new code] Signed-off-by: Dave Jones <davej@redhat.com> Signed-off-by: Andi Kleen <ak@suse.de>
This commit is contained in:
parent
b615ebdac9
commit
dd315df176
|
@ -202,22 +202,22 @@ void dump_trace(struct task_struct *task, struct pt_regs *regs,
|
||||||
if (unw_ret > 0) {
|
if (unw_ret > 0) {
|
||||||
if (call_trace == 1 && !arch_unw_user_mode(&info)) {
|
if (call_trace == 1 && !arch_unw_user_mode(&info)) {
|
||||||
ops->warning_symbol(data,
|
ops->warning_symbol(data,
|
||||||
"DWARF2 unwinder stuck at %s\n",
|
"DWARF2 unwinder stuck at %s",
|
||||||
UNW_PC(&info));
|
UNW_PC(&info));
|
||||||
if (UNW_SP(&info) >= PAGE_OFFSET) {
|
if (UNW_SP(&info) >= PAGE_OFFSET) {
|
||||||
MSG("Leftover inexact backtrace:\n");
|
MSG("Leftover inexact backtrace:");
|
||||||
stack = (void *)UNW_SP(&info);
|
stack = (void *)UNW_SP(&info);
|
||||||
if (!stack)
|
if (!stack)
|
||||||
return;
|
return;
|
||||||
ebp = UNW_FP(&info);
|
ebp = UNW_FP(&info);
|
||||||
} else
|
} else
|
||||||
MSG("Full inexact backtrace again:\n");
|
MSG("Full inexact backtrace again:");
|
||||||
} else if (call_trace >= 1)
|
} else if (call_trace >= 1)
|
||||||
return;
|
return;
|
||||||
else
|
else
|
||||||
MSG("Full inexact backtrace again:\n");
|
MSG("Full inexact backtrace again:");
|
||||||
} else
|
} else
|
||||||
MSG("Inexact backtrace:\n");
|
MSG("Inexact backtrace:");
|
||||||
}
|
}
|
||||||
if (!stack) {
|
if (!stack) {
|
||||||
unsigned long dummy;
|
unsigned long dummy;
|
||||||
|
|
|
@ -280,7 +280,7 @@ void dump_trace(struct task_struct *tsk, struct pt_regs *regs,
|
||||||
if (unw_ret > 0) {
|
if (unw_ret > 0) {
|
||||||
if (call_trace == 1 && !arch_unw_user_mode(&info)) {
|
if (call_trace == 1 && !arch_unw_user_mode(&info)) {
|
||||||
ops->warning_symbol(data,
|
ops->warning_symbol(data,
|
||||||
"DWARF2 unwinder stuck at %s\n",
|
"DWARF2 unwinder stuck at %s",
|
||||||
UNW_PC(&info));
|
UNW_PC(&info));
|
||||||
if ((long)UNW_SP(&info) < 0) {
|
if ((long)UNW_SP(&info) < 0) {
|
||||||
MSG("Leftover inexact backtrace:");
|
MSG("Leftover inexact backtrace:");
|
||||||
|
@ -288,13 +288,13 @@ void dump_trace(struct task_struct *tsk, struct pt_regs *regs,
|
||||||
if (!stack)
|
if (!stack)
|
||||||
return;
|
return;
|
||||||
} else
|
} else
|
||||||
MSG("Full inexact backtrace again:\n");
|
MSG("Full inexact backtrace again:");
|
||||||
} else if (call_trace >= 1)
|
} else if (call_trace >= 1)
|
||||||
return;
|
return;
|
||||||
else
|
else
|
||||||
MSG("Full inexact backtrace again:\n");
|
MSG("Full inexact backtrace again:");
|
||||||
} else
|
} else
|
||||||
MSG("Inexact backtrace:\n");
|
MSG("Inexact backtrace:");
|
||||||
}
|
}
|
||||||
if (!stack) {
|
if (!stack) {
|
||||||
unsigned long dummy;
|
unsigned long dummy;
|
||||||
|
|
Loading…
Reference in New Issue