diff options
author | Vivek Goyal <vgoyal@in.ibm.com> | 2005-06-25 17:58:12 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@ppc970.osdl.org> | 2005-06-25 19:24:51 -0400 |
commit | 625f1c8219d95300ed32e4c67eb62a50ded095ba (patch) | |
tree | 2e303a649604cabc922f2ade67435eaf83bbfa98 /include | |
parent | cf13f0eaffa31bf6a145c53c589654b11c72ddc7 (diff) |
[PATCH] Kdump: Export crash notes section address through sysfs
o Following patch exports kexec global variable "crash_notes" to user space
through sysfs as kernel attribute in /sys/kernel.
Signed-off-by: Maneesh Soni <maneesh@in.ibm.com>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Diffstat (limited to 'include')
-rw-r--r-- | include/asm-i386/kexec.h | 5 | ||||
-rw-r--r-- | include/asm-x86_64/kexec.h | 5 |
2 files changed, 10 insertions, 0 deletions
diff --git a/include/asm-i386/kexec.h b/include/asm-i386/kexec.h index a1599b55d62d..6ed2a03e37b3 100644 --- a/include/asm-i386/kexec.h +++ b/include/asm-i386/kexec.h | |||
@@ -25,4 +25,9 @@ | |||
25 | /* The native architecture */ | 25 | /* The native architecture */ |
26 | #define KEXEC_ARCH KEXEC_ARCH_386 | 26 | #define KEXEC_ARCH KEXEC_ARCH_386 |
27 | 27 | ||
28 | #define MAX_NOTE_BYTES 1024 | ||
29 | typedef u32 note_buf_t[MAX_NOTE_BYTES/4]; | ||
30 | |||
31 | extern note_buf_t crash_notes[]; | ||
32 | |||
28 | #endif /* _I386_KEXEC_H */ | 33 | #endif /* _I386_KEXEC_H */ |
diff --git a/include/asm-x86_64/kexec.h b/include/asm-x86_64/kexec.h index dc33646dc7dd..42d2ff15c592 100644 --- a/include/asm-x86_64/kexec.h +++ b/include/asm-x86_64/kexec.h | |||
@@ -25,4 +25,9 @@ | |||
25 | /* The native architecture */ | 25 | /* The native architecture */ |
26 | #define KEXEC_ARCH KEXEC_ARCH_X86_64 | 26 | #define KEXEC_ARCH KEXEC_ARCH_X86_64 |
27 | 27 | ||
28 | #define MAX_NOTE_BYTES 1024 | ||
29 | typedef u32 note_buf_t[MAX_NOTE_BYTES/4]; | ||
30 | |||
31 | extern note_buf_t crash_notes[]; | ||
32 | |||
28 | #endif /* _X86_64_KEXEC_H */ | 33 | #endif /* _X86_64_KEXEC_H */ |