]> git.baikalelectronics.ru Git - kernel.git/commit
powerpc/kdump: Adding symbols in vmcoreinfo to facilitate dump filtering
authorHari Bathini <hbathini@linux.vnet.ibm.com>
Fri, 15 Nov 2013 17:31:32 +0000 (23:01 +0530)
committerBenjamin Herrenschmidt <benh@kernel.crashing.org>
Mon, 25 Nov 2013 00:50:12 +0000 (11:50 +1100)
commit98a1dab087e2ef7a0eaac9ca770b59edba638ec7
treec386d128f3caf337ac8b89f950181dfcf596de2e
parentcbd55115c9ae1eadfb37f864df10236b9cbb1144
powerpc/kdump: Adding symbols in vmcoreinfo to facilitate dump filtering

When CONFIG_SPARSEMEM_VMEMMAP option is used in kernel, makedumpfile fails
to filter vmcore dump as it fails to do vmemmap translations. So far
dump filtering on ppc64 never had to deal with vmemmap addresses seperately
as vmemmap regions where mapped in zone normal. But with the inclusion of
CONFIG_SPARSEMEM_VMEMMAP config option in kernel, this vmemmap address
translation support becomes necessary for dump filtering. For vmemmap adress
translation, few kernel symbols are needed by dump filtering tool. This patch
adds those symbols to vmcoreinfo, which a dump filtering tool can use for
filtering the kernel dump. Tested this changes successfully with makedumpfile
tool that supports vmemmap to physical address translation outside zone normal.

[ Removed unneeded #ifdef as suggested by Michael Ellerman --BenH ]

Signed-off-by: Hari Bathini <hbathini@linux.vnet.ibm.com>
Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
arch/powerpc/include/asm/pgalloc-64.h
arch/powerpc/kernel/machine_kexec.c