Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit c7e23289 authored by Jan Beulich's avatar Jan Beulich Committed by Ingo Molnar
Browse files

x86/32: Print control and debug registers for kerenel context



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: default avatarJan Beulich <jbeulich@suse.com>
Link: http://lkml.kernel.org/r/4F58889202000078000770E7@nat28.tlf.novell.com


Signed-off-by: default avatarIngo Molnar <mingo@elte.hu>
parent 0d2bf489
Loading
Loading
Loading
Loading
+1 −1
Original line number Original line Diff line number Diff line
@@ -87,7 +87,7 @@ void show_registers(struct pt_regs *regs)
	int i;
	int i;


	print_modules();
	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",
	printk(KERN_EMERG "Process %.*s (pid: %d, ti=%p task=%p task.ti=%p)\n",
		TASK_COMM_LEN, current->comm, task_pid_nr(current),
		TASK_COMM_LEN, current->comm, task_pid_nr(current),