linux/arch/powerpc/kexec
Sourabh Jain e58b9d9097 powerpc/kexec_file: print configured kernel command line
Kexec with the -d option prints extra logs about the kexec/kdump kernel
that help debug kexec and kdump. For example, it shows what kexec
segments are loaded, their locations, and sizes.

One key piece of information still missing is the kernel command line
configured for the kexec/kdump kernel.

With this patch included, the kernel will print the kernel command line
configured for the kexec/kdump kernel as shown below:

kexec --initrd=./initrd ./kernel -lspd --command-line="test1 test2"

Loaded elf core header at 0x22e30000, bufsz=0x2000 memsz=0x80000
kexec_elf: Command line: elfcorehdr=0x22e30000 test1 test2   <--- New
kexec_elf: Loaded initrd at 0x22eb0000

Signed-off-by: Sourabh Jain <sourabhjain@linux.ibm.com>
Tested-by: Mukesh Kumar Chaurasiya (IBM) <mkchauras@gmail.com>
Reviewed-by: Mukesh Kumar Chaurasiya (IBM) <mkchauras@gmail.com>
Reviewed-by: Ritesh Harjani (IBM) <ritesh.list@gmail.com>
Signed-off-by: Madhavan Srinivasan <maddy@linux.ibm.com>
Link: https://patch.msgid.link/20250725124438.327593-1-sourabhjain@linux.ibm.com
2026-09-10 13:15:26 +05:30
..
core_32.c kexec: Consolidate machine_kexec_mask_interrupts() implementation 2024-12-11 20:32:34 +01:00
core_64.c powerpc/kexec: fix double get_cpu() imbalance in kexec_prepare_cpus 2026-06-15 16:25:21 +05:30
core.c powerpc/kexec/core: use big-endian types for crash variables 2026-03-04 11:08:57 +05:30
crash.c powerpc updates for 7.3 2026-08-18 12:08:13 -07:00
elf_64.c powerpc/kexec_file: print configured kernel command line 2026-09-10 13:15:26 +05:30
file_load_64.c powerpc/kexec_file: Use inclusive range checks for excluded memory 2026-09-05 11:11:40 +05:30
file_load.c powerpc/kexec_file: use snprintf to simplify setup_kdump_cmdline 2026-07-31 17:00:48 +05:30
Makefile powerpc/kdump: fix KASAN sanitization flag for core_$(BITS).o 2026-05-06 07:31:27 +05:30
ranges.c powerpc updates for 7.3 2026-08-18 12:08:13 -07:00
relocate_32.S powerpc/kexec: fix physical address calculation in clear_utlb_entry() 2025-03-10 10:10:55 +05:30
vmcore_info.c arch, crash: move arch_crash_save_vmcoreinfo() out to file vmcore_info.c 2024-02-23 17:48:25 -08:00