Magellan Linux

Contents of /trunk/kernel26-xen/patches-2.6.25-r1/1033-2.6.25-xen-sysfs-crash-debugging.patch

Parent Directory Parent Directory | Revision Log Revision Log


Revision 609 - (show annotations) (download)
Fri May 23 17:35:37 2008 UTC (15 years, 11 months ago) by niro
File size: 1745 byte(s)
-using opensuse xen patchset, updated kernel configs

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-02-26/arch/x86/kernel/traps_32-xen.c
23 ===================================================================
24 --- head-2008-02-26.orig/arch/x86/kernel/traps_32-xen.c 2008-02-27 17:27:13.000000000 +0100
25 +++ head-2008-02-26/arch/x86/kernel/traps_32-xen.c 2008-03-03 14:41:20.000000000 +0100
26 @@ -402,6 +402,7 @@ int __kprobes __die(const char * str, st
27 #endif
28 printk("\n");
29
30 + sysfs_printk_last_file();
31 if (notify_die(DIE_OOPS, str, regs, err,
32 current->thread.trap_no, SIGSEGV) !=
33 NOTIFY_STOP) {
34 Index: head-2008-02-26/arch/x86/kernel/traps_64-xen.c
35 ===================================================================
36 --- head-2008-02-26.orig/arch/x86/kernel/traps_64-xen.c 2008-02-27 10:01:23.000000000 +0100
37 +++ head-2008-02-26/arch/x86/kernel/traps_64-xen.c 2008-03-03 14:41:47.000000000 +0100
38 @@ -575,6 +575,7 @@ int __kprobes __die(const char * str, st
39 printk("DEBUG_PAGEALLOC");
40 #endif
41 printk("\n");
42 + sysfs_printk_last_file();
43 if (notify_die(DIE_OOPS, str, regs, err, current->thread.trap_no, SIGSEGV) == NOTIFY_STOP)
44 return 1;
45 show_registers(regs);