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 Index: head-2008-11-25/arch/x86/kernel/traps_32-xen.c
23 ===================================================================
24 --- head-2008-11-25.orig/arch/x86/kernel/traps_32-xen.c 2008-11-25 13:13:12.000000000 +0100
25 +++ head-2008-11-25/arch/x86/kernel/traps_32-xen.c 2008-11-25 13:17:06.000000000 +0100
26 @@ -433,6 +433,8 @@ int __kprobes __die(const char *str, str
27 printk("DEBUG_PAGEALLOC");
31 + sysfs_printk_last_file();
32 if (notify_die(DIE_OOPS, str, regs, err,
33 current->thread.trap_no, SIGSEGV) == NOTIFY_STOP)
35 Index: head-2008-11-25/arch/x86/kernel/traps_64-xen.c
36 ===================================================================
37 --- head-2008-11-25.orig/arch/x86/kernel/traps_64-xen.c 2008-11-25 13:13:12.000000000 +0100
38 +++ head-2008-11-25/arch/x86/kernel/traps_64-xen.c 2008-11-25 13:17:06.000000000 +0100
39 @@ -540,6 +540,8 @@ int __kprobes __die(const char *str, str
40 printk("DEBUG_PAGEALLOC");
44 + sysfs_printk_last_file();
45 if (notify_die(DIE_OOPS, str, regs, err,
46 current->thread.trap_no, SIGSEGV) == NOTIFY_STOP)