]>
Commit | Line | Data |
---|---|---|
00e5a55c 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 | ||
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"); | |
28 | #endif | |
29 | printk("\n"); | |
30 | + | |
31 | + sysfs_printk_last_file(); | |
32 | if (notify_die(DIE_OOPS, str, regs, err, | |
33 | current->thread.trap_no, SIGSEGV) == NOTIFY_STOP) | |
34 | return 1; | |
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"); | |
41 | #endif | |
42 | printk("\n"); | |
43 | + | |
44 | + sysfs_printk_last_file(); | |
45 | if (notify_die(DIE_OOPS, str, regs, err, | |
46 | current->thread.trap_no, SIGSEGV) == NOTIFY_STOP) | |
47 | return 1; |