x86: print DMI information in the oops trace
in order to diagnose hard system specific issues, it's useful to have the system name in the oops (as provided by DMI) Signed-off-by: Arjan van de Ven <arjan@linux.intel.com> Signed-off-by: Ingo Molnar <mingo@elte.hu>
This commit is contained in:
parent
b05f78f5c7
commit
90f7d25c6b
1 changed files with 8 additions and 2 deletions
|
@ -37,6 +37,7 @@
|
||||||
#include <linux/tick.h>
|
#include <linux/tick.h>
|
||||||
#include <linux/percpu.h>
|
#include <linux/percpu.h>
|
||||||
#include <linux/prctl.h>
|
#include <linux/prctl.h>
|
||||||
|
#include <linux/dmi.h>
|
||||||
|
|
||||||
#include <asm/uaccess.h>
|
#include <asm/uaccess.h>
|
||||||
#include <asm/pgtable.h>
|
#include <asm/pgtable.h>
|
||||||
|
@ -160,6 +161,7 @@ void __show_registers(struct pt_regs *regs, int all)
|
||||||
unsigned long d0, d1, d2, d3, d6, d7;
|
unsigned long d0, d1, d2, d3, d6, d7;
|
||||||
unsigned long sp;
|
unsigned long sp;
|
||||||
unsigned short ss, gs;
|
unsigned short ss, gs;
|
||||||
|
const char *board;
|
||||||
|
|
||||||
if (user_mode_vm(regs)) {
|
if (user_mode_vm(regs)) {
|
||||||
sp = regs->sp;
|
sp = regs->sp;
|
||||||
|
@ -172,11 +174,15 @@ void __show_registers(struct pt_regs *regs, int all)
|
||||||
}
|
}
|
||||||
|
|
||||||
printk("\n");
|
printk("\n");
|
||||||
printk("Pid: %d, comm: %s %s (%s %.*s)\n",
|
|
||||||
|
board = dmi_get_system_info(DMI_PRODUCT_NAME);
|
||||||
|
if (!board)
|
||||||
|
board = "";
|
||||||
|
printk("Pid: %d, comm: %s %s (%s %.*s) %s\n",
|
||||||
task_pid_nr(current), current->comm,
|
task_pid_nr(current), current->comm,
|
||||||
print_tainted(), init_utsname()->release,
|
print_tainted(), init_utsname()->release,
|
||||||
(int)strcspn(init_utsname()->version, " "),
|
(int)strcspn(init_utsname()->version, " "),
|
||||||
init_utsname()->version);
|
init_utsname()->version, board);
|
||||||
|
|
||||||
printk("EIP: %04x:[<%08lx>] EFLAGS: %08lx CPU: %d\n",
|
printk("EIP: %04x:[<%08lx>] EFLAGS: %08lx CPU: %d\n",
|
||||||
(u16)regs->cs, regs->ip, regs->flags,
|
(u16)regs->cs, regs->ip, regs->flags,
|
||||||
|
|
Loading…
Reference in a new issue