====================================================================== BUILD LOG: pass/long/multi-file ====================================================================== Verdict: pass Exit code: 0 Kernel: 6.19.0-160000.26-default+ Toolchain: Compiler: gcc (GCC) 14.3.1 20251022 (Red Hat 14.3.1-4) Linker: GNU ld version 2.41-63.el10 Assembler: GNU assembler version 2.41-63.el10 ====================================================================== FULL BUILD OUTPUT ====================================================================== --- klp-build stdout --- Validating patch(es) Fixing patch(es) Building patched kernel Copying patched object files Diffing objects vmlinux.o: changed function: cmdline_proc_show vmlinux.o: changed function: version_proc_show Building patch module: livepatch-multi-file.ko SUCCESS --- klp-build stderr --- (empty) --- diff.log --- vmlinux.o: changed function: cmdline_proc_show vmlinux.o: changed function: version_proc_show ====================================================================== BUILD VERIFICATION ====================================================================== klp-build exit code is 0 Module exists: livepatch-multi-file.ko verify_diff_log_contains('changed function: cmdline_proc_show'): OK verify_diff_log_contains('changed function: version_proc_show'): OK ELF Analysis: klp_object[0]: .name = NULL (vmlinux) VERIFIED: klp_object.name = NULL (vmlinux) klp_func[0]: .old_name = "cmdline_proc_show" [-> .rodata+0x22295] .new_func -> cmdline_proc_show .old_sympos = 0 klp_func[1]: .old_name = "version_proc_show" [-> .rodata+0x222a7] .new_func -> version_proc_show .old_sympos = 0 VERIFIED: klp_func.old_name = 'cmdline_proc_show' VERIFIED: klp_func.new_func -> cmdline_proc_show VERIFIED: klp_func.old_name = 'version_proc_show' VERIFIED: klp_func.new_func -> version_proc_show ====================================================================== TEST PATCH(ES) ====================================================================== --- Patch: multi-file.patch --- From: Test Author Subject: [PATCH] proc: add debug messages to cmdline and version Multi-file livepatch test case. This patch modifies functions in two different files to verify klp-build correctly handles changes across multiple compilation units. diff --git a/fs/proc/cmdline.c b/fs/proc/cmdline.c --- a/fs/proc/cmdline.c +++ b/fs/proc/cmdline.c @@ -8,6 +8,7 @@ static int cmdline_proc_show(struct seq_file *m, void *v) { + pr_info("klp-build-test: cmdline_proc_show called\n"); seq_puts(m, saved_command_line); seq_putc(m, '\n'); return 0; diff --git a/fs/proc/version.c b/fs/proc/version.c --- a/fs/proc/version.c +++ b/fs/proc/version.c @@ -10,6 +10,7 @@ static int version_proc_show(struct seq_file *m, void *v) { + pr_info("klp-build-test: version_proc_show called\n"); seq_printf(m, linux_proc_banner, utsname()->sysname, utsname()->release,