summaryrefslogtreecommitdiff
path: root/kexec/crashdump.h
diff options
context:
space:
mode:
authorKen'ichi Ohmichi <oomichi@mxs.nes.nec.co.jp>2007-08-22 21:13:39 +0900
committerSimon Horman <horms@verge.net.au>2007-10-18 14:36:03 +0900
commit2e152ffba39a9234dfa984966deba273824e73c1 (patch)
tree270b9e12e03b1c9461595e4764c8694d9045d82f /kexec/crashdump.h
parent6282f6f4e662ca7c8fa9c53d31f1e1057c3d6192 (diff)
Pass vmcoreinfo's address and size
The patch is for kexec-tools-testing-20070330. (http://www.kernel.org/pub/linux/kernel/people/horms/kexec-tools/) The kexec command gets the address and size of the vmcoreinfo data from /sys/kernel/vmcoreinfo, and passes them to the second kernel through ELF header of /proc/vmcore. When the second kernel is booting, the kernel gets them from the ELF header and creates vmcoreinfo's PT_NOTE segment into /proc/vmcore. Signed-off-by: Dan Aloni <da-x@monatomic.org> Signed-off-by: Ken'ichi Ohmichi <oomichi@mxs.nes.nec.co.jp> Signed-off-by: Simon Horman <horms@verge.net.au>
Diffstat (limited to 'kexec/crashdump.h')
-rw-r--r--kexec/crashdump.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/kexec/crashdump.h b/kexec/crashdump.h
index e99bdd2..86f39c0 100644
--- a/kexec/crashdump.h
+++ b/kexec/crashdump.h
@@ -2,6 +2,7 @@
#define CRASHDUMP_H
extern int get_crash_notes_per_cpu(int cpu, uint64_t *addr, uint64_t *len);
+extern int get_kernel_vmcoreinfo(uint64_t *addr, uint64_t *len);
/* Need to find a better way to determine per cpu notes section size. */
#define MAX_NOTE_BYTES 1024