[PATCH] powerpc: Add vmcoreinfo symbols to allow makdumpfile to filter core files properly

Neil Horman nhorman at tuxdriver.com
Tue Jul 13 23:46:09 EST 2010

Hey all-
	About 2 years ago now, I sent this patch upstream to allow makedumpfile
to properly filter cores on ppc64:
It got acks from the kexec folks so I pulled it into RHEL, but I never checked
back here to make sure it ever made it in, which apparently it didn't.  It still
needs to be included, so I'm reposting it here, making sure to copy all the ppc
folks this time.  I've retested it on the latest linus kernel and it works fine,
allowing makedumpfile to find all the symbols it needs to properly strip a
vmcore on ppc64.


Signed-off-by: Neil Horman <nhorman at tuxdriver.com>

 machine_kexec.c |   12 ++++++++++++
 1 file changed, 12 insertions(+)

diff --git a/arch/powerpc/kernel/machine_kexec.c b/arch/powerpc/kernel/machine_kexec.c
index bb3d893..0df7031 100644
--- a/arch/powerpc/kernel/machine_kexec.c
+++ b/arch/powerpc/kernel/machine_kexec.c
@@ -45,6 +45,18 @@ void machine_kexec_cleanup(struct kimage *image)
+void arch_crash_save_vmcoreinfo(void)
+	VMCOREINFO_SYMBOL(contig_page_data);
  * Do not allocate memory (or fail in any way) in machine_kexec().
  * We are past the point of no return, committed to rebooting now.

More information about the Linuxppc-dev mailing list