powerpc: add cpu_spec.cpu_features to vmcoreinfo
authorAditya Gupta <adityag@linux.ibm.com>
Wed, 20 Sep 2023 10:57:06 +0000 (16:27 +0530)
committerMichael Ellerman <mpe@ellerman.id.au>
Wed, 13 Dec 2023 11:26:23 +0000 (22:26 +1100)
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 <adityag@linux.ibm.com>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Link: https://msgid.link/20230920105706.853626-2-adityag@linux.ibm.com
arch/powerpc/kexec/core.c

index 85846cadb9b555a4a5522c511f098337790826ef..27fa9098a5b74be8a55b7ad8a51830674628dbd4 100644 (file)
@@ -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());