Skip to content

Commit 378e32a

Browse files
author
Alexander Gordeev
committed
s390/vmcoreinfo: Store virtual memory layout
This is a preparatory rework to allow uncoupling virtual and physical addresses spaces. The virtual memory layout is needed for address translation by crash tool when /proc/kcore device is used as the memory image. Acked-by: Heiko Carstens <hca@linux.ibm.com> Signed-off-by: Alexander Gordeev <agordeev@linux.ibm.com>
1 parent 8572f52 commit 378e32a

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

arch/s390/kernel/vmcore_info.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,9 @@ void arch_crash_save_vmcoreinfo(void)
1414
VMCOREINFO_LENGTH(lowcore_ptr, NR_CPUS);
1515
vmcoreinfo_append_str("SAMODE31=%lx\n", (unsigned long)__samode31);
1616
vmcoreinfo_append_str("EAMODE31=%lx\n", (unsigned long)__eamode31);
17+
vmcoreinfo_append_str("IDENTITYBASE=%lx\n", __identity_base);
1718
vmcoreinfo_append_str("KERNELOFFSET=%lx\n", kaslr_offset());
19+
vmcoreinfo_append_str("KERNELOFFPHYS=%lx\n", __kaslr_offset_phys);
1820
abs_lc = get_abs_lowcore();
1921
abs_lc->vmcore_info = paddr_vmcoreinfo_note();
2022
put_abs_lowcore(abs_lc);

0 commit comments

Comments
 (0)