The following commit has been merged into the objtool/core branch of tip:
Commit-ID: e950d2a10a30aa5f3ebb92d4bf807d1d5dd96de1
Gitweb: https://git.kernel.org/tip/e950d2a10a30aa5f3ebb92d4bf807d1d5dd96de1
Author: Josh Poimboeuf <jpoimboe@kernel.org>
AuthorDate: Fri, 03 Apr 2026 16:17:46 -07:00
Committer: Josh Poimboeuf <jpoimboe@kernel.org>
CommitterDate: Mon, 04 May 2026 21:16:04 -07:00
klp-build: Print "objtool klp diff" command in verbose mode
Print the full objtool command line when '--verbose' is given to help
with debugging.
Acked-by: Song Liu <song@kernel.org>
Signed-off-by: Josh Poimboeuf <jpoimboe@kernel.org>
---
scripts/livepatch/klp-build | 1 +
1 file changed, 1 insertion(+)
diff --git a/scripts/livepatch/klp-build b/scripts/livepatch/klp-build
index 2bb35de..327aef4 100755
--- a/scripts/livepatch/klp-build
+++ b/scripts/livepatch/klp-build
@@ -681,6 +681,7 @@ diff_objects() {
(
cd "$ORIG_DIR"
+ [[ -v VERBOSE ]] && echo "cd $ORIG_DIR && ${cmd[*]}"
"${cmd[@]}" \
1> >(tee -a "$log") \
2> >(tee -a "$log" | "${filter[@]}" >&2) || \