]>
Commit | Line | Data |
---|---|---|
8f69975d BS |
1 | Date: Thu, 9 Oct 2008 11:20:27 -0400 |
2 | From: Neil Horman <nhorman@tuxdriver.com> | |
3 | To: linux-kernel@vger.kernel.org, kexec@lists.infradead.org, | |
4 | vgoyal@redhat.com, hbabu@us.ibm.com | |
5 | Subject: [PATCH] add additional symbols to /sys/kernel/vmcoreinfo data for | |
6 | ppc(64) | |
7 | Cc: nhorman@tuxdriver.com | |
8 | ||
9 | Hey- | |
10 | The makdumpdile dump filtering program, in some modes of operation needs | |
11 | the node_data and/or contig_page_data symbols to function properly. These | |
12 | symbols are missing from the powerpc kernel. This patch adds those symbols in | |
13 | properly. Tested successfully by myself and the reporter. | |
14 | ||
15 | Regards | |
16 | Neil | |
17 | ||
18 | Signed-off-by: Neil Horman <nhorman@tuxdriver.com> | |
19 | Acked-by: Bernhard Walle <bwalle@suse.de> | |
20 | ||
21 | arch/powerpc/kernel/machine_kexec.c | 8 ++++++++ | |
22 | 1 file changed, 8 insertions(+) | |
23 | ||
24 | ||
25 | --- a/arch/powerpc/kernel/machine_kexec.c | |
26 | +++ b/arch/powerpc/kernel/machine_kexec.c | |
27 | @@ -44,6 +44,14 @@ void machine_kexec_cleanup(struct kimage | |
28 | ppc_md.machine_kexec_cleanup(image); | |
29 | } | |
30 | ||
31 | +void arch_crash_save_vmcoreinfo(void) | |
32 | +{ | |
33 | +#ifdef CONFIG_NEED_MULTIPLE_NODES | |
34 | + VMCOREINFO_SYMBOL(node_data); | |
35 | + VMCOREINFO_LENGTH(node_data, MAX_NUMNODES); | |
36 | +#endif | |
37 | +} | |
38 | + | |
39 | /* | |
40 | * Do not allocate memory (or fail in any way) in machine_kexec(). | |
41 | * We are past the point of no return, committed to rebooting now. |