]>
Commit | Line | Data |
---|---|---|
2cb7cef9 BS |
1 | Subject: display last accessed sysfs file on kernel panic message |
2 | From: Andrew Morton <akpm@osdl.org> | |
3 | Patch-mainline: never | |
4 | ||
5 | Display the most-recently-opened sysfs file's name when oopsing. | |
6 | ||
7 | From: Adrian Bunk <bunk@stusta.de> | |
8 | ||
9 | Build fix | |
10 | ||
11 | From: Greg Kroah-Hartman <gregkh@suse.de> | |
12 | ||
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. | |
15 | ||
16 | ||
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 | |
21 | ||
82094b55 AF |
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 | |
2cb7cef9 BS |
25 | printk("DEBUG_PAGEALLOC"); |
26 | #endif | |
27 | printk("\n"); | |
28 | + | |
29 | + sysfs_printk_last_file(); | |
30 | if (notify_die(DIE_OOPS, str, regs, err, | |
31 | current->thread.trap_no, SIGSEGV) == NOTIFY_STOP) | |
32 | return 1; | |
82094b55 AF |
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 | |
2cb7cef9 BS |
36 | printk("DEBUG_PAGEALLOC"); |
37 | #endif | |
38 | printk("\n"); | |
39 | + | |
40 | + sysfs_printk_last_file(); | |
41 | if (notify_die(DIE_OOPS, str, regs, err, | |
42 | current->thread.trap_no, SIGSEGV) == NOTIFY_STOP) | |
43 | return 1; |