From: Aditya Gupta Date: Wed, 20 Sep 2023 10:57:06 +0000 (+0530) Subject: powerpc: add cpu_spec.cpu_features to vmcoreinfo X-Git-Url: http://git.maquefel.me/?a=commitdiff_plain;h=a143892cb77c5397fd4356bbef9982abe4f3c5a5;p=linux.git powerpc: add cpu_spec.cpu_features to vmcoreinfo CPU features can be determined in makedumpfile, using 'cur_cpu_spec.cpu_features'. This provides more data to makedumpfile about the crashed system, and can help in filtering the vmcore accordingly. Signed-off-by: Aditya Gupta Signed-off-by: Michael Ellerman Link: https://msgid.link/20230920105706.853626-2-adityag@linux.ibm.com --- diff --git a/arch/powerpc/kexec/core.c b/arch/powerpc/kexec/core.c index 85846cadb9b55..27fa9098a5b74 100644 --- a/arch/powerpc/kexec/core.c +++ b/arch/powerpc/kexec/core.c @@ -75,6 +75,7 @@ void arch_crash_save_vmcoreinfo(void) VMCOREINFO_OFFSET(mmu_psize_def, shift); #endif VMCOREINFO_SYMBOL(cur_cpu_spec); + VMCOREINFO_OFFSET(cpu_spec, cpu_features); VMCOREINFO_OFFSET(cpu_spec, mmu_features); vmcoreinfo_append_str("NUMBER(RADIX_MMU)=%d\n", early_radix_enabled()); vmcoreinfo_append_str("KERNELOFFSET=%lx\n", kaslr_offset());