Re: [PATCH v3 16/26] objtool: Optimize find_rela_by_dest_range()

From: Miroslav Benes
Date: Wed Mar 25 2020 - 08:19:21 EST


On Tue, 24 Mar 2020, Peter Zijlstra wrote:

> Perf shows there is significant time in find_rela_by_dest(); this is
> because we have to iterate the address space per byte, looking for
> relocation entries.
>
> Optimize this by reducing the address space granularity.
>
> This reduces objtool on vmlinux.o runtime from 4.8 to 4.4 seconds.
>
> Signed-off-by: Peter Zijlstra (Intel) <peterz@xxxxxxxxxxxxx>
> Acked-by: Josh Poimboeuf <jpoimboe@xxxxxxxxxx>

Reviewed-by: Miroslav Benes <mbenes@xxxxxxx>

M