Skip to content

Commit

Permalink
x86/32: Print control and debug registers for kerenel context
Browse files Browse the repository at this point in the history
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@suse.com>
Link: http://lkml.kernel.org/r/4F58889202000078000770E7@nat28.tlf.novell.com
Signed-off-by: Ingo Molnar <mingo@elte.hu>
  • Loading branch information
Jan Beulich authored and Ingo Molnar committed Mar 8, 2012
1 parent 0d2bf48 commit c7e2328
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion arch/x86/kernel/dumpstack_32.c
Original file line number Diff line number Diff line change
Expand Up @@ -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),
Expand Down

0 comments on commit c7e2328

Please sign in to comment.