objtool/klp: Cache dont_correlate() result
authorJosh Poimboeuf <jpoimboe@kernel.org>
Mon, 20 Apr 2026 04:06:28 +0000 (21:06 -0700)
committerJosh Poimboeuf <jpoimboe@kernel.org>
Tue, 5 May 2026 04:16:07 +0000 (21:16 -0700)
commit2d3bb398861ad3ddbf87959cc2e34a7001f0b3ad
tree7539cc79710717a7495d7d58d912bfbd3e8c032e
parentfe6a87e0abac45b20664377545760901d4537ea8
objtool/klp: Cache dont_correlate() result

Cache the dont_correlate() result once per symbol at the start of
correlate_symbols().  This reduces klp diff time on an arm64 LTO
vmlinux.o from 2m51s to 35s.

Acked-by: Song Liu <song@kernel.org>
Signed-off-by: Josh Poimboeuf <jpoimboe@kernel.org>
tools/objtool/include/objtool/elf.h
tools/objtool/klp-diff.c