1 // SPDX-License-Identifier: GPL-2.0-only 2 3 #include <linux/vmcore_info.h> 4 #include <asm/pgalloc.h> 5 6 void arch_crash_save_vmcoreinfo(void) 7 { 8 9 #ifdef CONFIG_NUMA 10 VMCOREINFO_SYMBOL(node_data); 11 VMCOREINFO_LENGTH(node_data, MAX_NUMNODES); 12 #endif 13 #ifndef CONFIG_NUMA 14 VMCOREINFO_SYMBOL(contig_page_data); 15 #endif 16 #if defined(CONFIG_PPC64) && defined(CONFIG_SPARSEMEM_VMEMMAP) 17 VMCOREINFO_SYMBOL(vmemmap_list); 18 VMCOREINFO_SYMBOL(mmu_vmemmap_psize); 19 VMCOREINFO_SYMBOL(mmu_psize_defs); 20 VMCOREINFO_STRUCT_SIZE(vmemmap_backing); 21 VMCOREINFO_OFFSET(vmemmap_backing, list); 22 VMCOREINFO_OFFSET(vmemmap_backing, phys); 23 VMCOREINFO_OFFSET(vmemmap_backing, virt_addr); 24 VMCOREINFO_STRUCT_SIZE(mmu_psize_def); 25 VMCOREINFO_OFFSET(mmu_psize_def, shift); 26 #endif 27 VMCOREINFO_SYMBOL(cur_cpu_spec); 28 VMCOREINFO_OFFSET(cpu_spec, cpu_features); 29 VMCOREINFO_OFFSET(cpu_spec, mmu_features); 30 vmcoreinfo_append_str("NUMBER(RADIX_MMU)=%d\n", early_radix_enabled()); 31 vmcoreinfo_append_str("KERNELOFFSET=%lx\n", kaslr_offset()); 32 } 33
Linux® is a registered trademark of Linus Torvalds in the United States and other countries.
TOMOYO® is a registered trademark of NTT DATA CORPORATION.