1 Subject: display last accessed sysfs file on kernel panic message
2 From: Andrew Morton <akpm@osdl.org>
5 Display the most-recently-opened sysfs file's name when oopsing.
7 From: Adrian Bunk <bunk@stusta.de>
11 From: Greg Kroah-Hartman <gregkh@suse.de>
13 Modified to make the api call cleaner, and available to all arches if
14 need be. Also added it to x86-64's crash dump message.
17 Signed-off-by: Adrian Bunk <bunk@stusta.de>
18 Signed-off-by: Andrew Morton <akpm@osdl.org>
19 Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
20 Automatically created from "patches.drivers/sysfs-crash-debugging.patch" by xen-port-patches.py
22 --- sle11-2009-08-26.orig/arch/x86/kernel/traps_32-xen.c 2009-06-04 10:21:39.000000000 +0200
23 +++ sle11-2009-08-26/arch/x86/kernel/traps_32-xen.c 2008-11-25 13:17:06.000000000 +0100
24 @@ -432,6 +432,8 @@ int __kprobes __die(const char *str, str
25 printk("DEBUG_PAGEALLOC");
29 + sysfs_printk_last_file();
30 if (notify_die(DIE_OOPS, str, regs, err,
31 current->thread.trap_no, SIGSEGV) == NOTIFY_STOP)
33 --- sle11-2009-08-26.orig/arch/x86/kernel/traps_64-xen.c 2009-06-04 10:21:39.000000000 +0200
34 +++ sle11-2009-08-26/arch/x86/kernel/traps_64-xen.c 2008-11-25 13:17:06.000000000 +0100
35 @@ -539,6 +539,8 @@ int __kprobes __die(const char *str, str
36 printk("DEBUG_PAGEALLOC");
40 + sysfs_printk_last_file();
41 if (notify_die(DIE_OOPS, str, regs, err,
42 current->thread.trap_no, SIGSEGV) == NOTIFY_STOP)