Skip to content

kexec_file: print out debugging message if required

Baoquan He requested to merge baoquan_he/centos-stream-9:RHEL-477 into main
JIRA: https://issues.redhat.com/browse/RHEL-477
Upstream Status: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git

Currently, kexec_file_load prints nothing even though '-d' is specified.
It's very inconvenient to debug or analyze the kexec/kdump loading when
something wrong happened with kexec/kdump itself or develper want to
check the kexec/kdump loading.

Here, a kexec_file flag KEXEC_FILE_DEBUG is added and checked in code. 
If it's passed in, debugging message of kexec_file code will be
printed out and can be seen from console and dmesg. Otherwise, the
debugging message is printed like beofre when pr_debug() is taken.

Signed-off-by: Baoquan He <bhe@redhat.com>

Merge request reports

Loading