]> git.ipfire.org Git - people/teissler/ipfire-2.x.git/blame - src/patches/suse-2.6.27.25/patches.xen/xen3-sysfs-crash-debugging.patch
Updated xen patches taken from suse.
[people/teissler/ipfire-2.x.git] / src / patches / suse-2.6.27.25 / patches.xen / xen3-sysfs-crash-debugging.patch
CommitLineData
00e5a55c
BS
1Subject: display last accessed sysfs file on kernel panic message
2From: Andrew Morton <akpm@osdl.org>
3Patch-mainline: never
4
5Display the most-recently-opened sysfs file's name when oopsing.
6
7From: Adrian Bunk <bunk@stusta.de>
8
9 Build fix
10
11From: 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
17Signed-off-by: Adrian Bunk <bunk@stusta.de>
18Signed-off-by: Andrew Morton <akpm@osdl.org>
19Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
20Automatically created from "patches.drivers/sysfs-crash-debugging.patch" by xen-port-patches.py
21
22Index: 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;
35Index: 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;