summaryrefslogtreecommitdiff
path: root/tools/lib/python
diff options
context:
space:
mode:
authorYangyang Lian <lianyangyang@kylinos.cn>2026-10-27 22:51:35 +0800
committerHuacai Chen <chenhuacai@loongson.cn>2026-10-27 22:51:35 +0800
commit2a5ec3a553f7b23359344d52332263d5fa88aac6 (patch)
treee2ae72f11830dcbde7ae583169c2f29f9329a215 /tools/lib/python
parent5e0b00fd000a53a5428fed6c96be74019bd0ad17 (diff)
LoongArch: Add arch_crash_save_vmcoreinfo() support
Since commit 23c85094fe18 ("proc/kcore: add vmcoreinfo note to /proc/ kcore") the kernel has exported the vmcoreinfo PT_NOTE on /proc/kcore as well as /proc/vmcore. LoongArch does not provide arch_crash_save_vmcoreinfo(), so the arch- specific values are missing from the vmcoreinfo PT_NOTE. The generic exporter in kernel/vmcore_info.c already provides NUMBER(VMALLOC_START), but tools like crash cannot derive VMALLOC_END, the module and vmemmap ranges, VA_BITS, or the KASLR offset of a LoongArch dump. Since commit 18210a104bb9 ("LoongArch: Expand module virtual address space to 2GB") the vmalloc and module boundaries are no longer stable across kernel versions either, so vmcoreinfo is the only reliable source for them. Provide this function in a separate file that is built at the same time as its caller in kernel/vmcore_info.c, and add a LOONGARCH64 section to Documentation/admin-guide/kdump/vmcoreinfo.rst. Reported-by: Haoran Jiang <jianghaoran@kylinos.cn> Suggested-by: Haoran Jiang <jianghaoran@kylinos.cn> Tested-by: Tao Cui <cuitao@kylinos.cn> Co-developed-by: George Guo <guodongtai@kylinos.cn> Signed-off-by: George Guo <guodongtai@kylinos.cn> Signed-off-by: Yangyang Lian <lianyangyang@kylinos.cn> Signed-off-by: Huacai Chen <chenhuacai@loongson.cn>
Diffstat (limited to 'tools/lib/python')
0 files changed, 0 insertions, 0 deletions