Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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 <adityag@linux.ibm.com>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Link: https://msgid.link/20230920105706.853626-2-adityag@linux.ibm.com

authored by

Aditya Gupta and committed by
Michael Ellerman
a143892c 0a233867

+1
+1
arch/powerpc/kexec/core.c
··· 75 75 VMCOREINFO_OFFSET(mmu_psize_def, shift); 76 76 #endif 77 77 VMCOREINFO_SYMBOL(cur_cpu_spec); 78 + VMCOREINFO_OFFSET(cpu_spec, cpu_features); 78 79 VMCOREINFO_OFFSET(cpu_spec, mmu_features); 79 80 vmcoreinfo_append_str("NUMBER(RADIX_MMU)=%d\n", early_radix_enabled()); 80 81 vmcoreinfo_append_str("KERNELOFFSET=%lx\n", kaslr_offset());