diff options
author | Aditya Gupta <adityag@linux.ibm.com> | 2023-09-20 13:57:06 +0300 |
---|---|---|
committer | Michael Ellerman <mpe@ellerman.id.au> | 2023-12-13 14:26:23 +0300 |
commit | a143892cb77c5397fd4356bbef9982abe4f3c5a5 (patch) | |
tree | 3fe1e7de750db72506bc93b32e23a0b6ac99139e /arch | |
parent | 0a233867a39078ebb0f575e2948593bbff5826b3 (diff) | |
download | linux-a143892cb77c5397fd4356bbef9982abe4f3c5a5.tar.xz |
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
Diffstat (limited to 'arch')
-rw-r--r-- | arch/powerpc/kexec/core.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/arch/powerpc/kexec/core.c b/arch/powerpc/kexec/core.c index 85846cadb9b5..27fa9098a5b7 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()); |