]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
objtool/klp: Add --debug-checksum=<funcs> to show per-instruction checksums
authorJosh Poimboeuf <jpoimboe@kernel.org>
Wed, 17 Sep 2025 16:03:58 +0000 (09:03 -0700)
committerJosh Poimboeuf <jpoimboe@kernel.org>
Tue, 14 Oct 2025 21:50:18 +0000 (14:50 -0700)
commita3493b33384a01a1f0e38b420d1a4766aec903a6
treeba6afc1289615358ad7c7d080e5bf0b99dc34e2b
parent0d83da43b1e1c8ce19f2bb10f54a0fdf795364f7
objtool/klp: Add --debug-checksum=<funcs> to show per-instruction checksums

Add a --debug-checksum=<funcs> option to the check subcommand to print
the calculated checksum of each instruction in the given functions.

This is useful for determining where two versions of a function begin to
diverge.

Acked-by: Petr Mladek <pmladek@suse.com>
Tested-by: Joe Lawrence <joe.lawrence@redhat.com>
Signed-off-by: Josh Poimboeuf <jpoimboe@kernel.org>
tools/objtool/builtin-check.c
tools/objtool/check.c
tools/objtool/include/objtool/builtin.h
tools/objtool/include/objtool/checksum.h
tools/objtool/include/objtool/elf.h
tools/objtool/include/objtool/warn.h