On 11/10/16 at 05:27pm, Hari Bathini wrote:
Traditionally, kdump is used to save vmcore in case of a crash. SomeCan't think of a reason to object.
architectures like powerpc can save vmcore using architecture specific
support instead of kexec/kdump mechanism. Such architecture specific
support also needs to reserve memory, to be used by dump capture kernel.
crashkernel parameter can be a reused, for memory reservation, by such
architecture specific infrastructure.
But currently, code related to vmcoreinfo and parsing of crashkernel
parameter is built under CONFIG_KEXEC_CORE. This patch introduces
CONFIG_CRASH_CORE and moves the above mentioned code under this config,
allowing code reuse without dependency on CONFIG_KEXEC. While here,
removing the multiple definitions of append_elf_note() and final_note()
for one defined under CONFIG_CONFIG_CORE. There is no functional change
with this patch.
Could it be that do the moving from kexec_core.c to crash_core.c only,
then do the arch specific clean up in another patch?
Besides there's already a file crash_dump.h, can we reuse that?