[PATCH] ix86: in kernel context print control and debugregisters too

From: Jan Beulich
Date: Thu Mar 08 2012 - 04:22:34 EST


While for a user mode register dump it may be reasonable to skip those
(albeit x86-64 doesn't do so), for kernel mode dumps these should be
printed to make sure all information possibly necessary for analysis is
available.

Signed-off-by: Jan Beulich <jbeulich@xxxxxxxx>

---
arch/x86/kernel/dumpstack_32.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)

--- 3.3-rc6/arch/x86/kernel/dumpstack_32.c
+++ 3.3-rc6-ix86-kernel-show-all-regs/arch/x86/kernel/dumpstack_32.c
@@ -87,7 +87,7 @@ void show_registers(struct pt_regs *regs
int i;

print_modules();
- __show_regs(regs, 0);
+ __show_regs(regs, !user_mode_vm(regs));

printk(KERN_EMERG "Process %.*s (pid: %d, ti=%p task=%p task.ti=%p)\n",
TASK_COMM_LEN, current->comm, task_pid_nr(current),



--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/