Re: [PATCH v3 10/26] objtool: Optimize find_symbol_*() and read_symbols()
From: Miroslav Benes
Date: Wed Mar 25 2020 - 06:20:34 EST
On Tue, 24 Mar 2020, Peter Zijlstra wrote:
> All of:
>
> read_symbols(), find_symbol_by_offset(), find_symbol_containing(),
> find_containing_func()
>
> do a linear search of the symbols. Add an RB tree to make it go
> faster.
>
> This about halves objtool runtime on vmlinux.o, from 34s to 18s.
>
> Signed-off-by: Peter Zijlstra (Intel) <peterz@xxxxxxxxxxxxx>
> Acked-by: Josh Poimboeuf <jpoimboe@xxxxxxxxxx>
Reviewed-by: Miroslav Benes <mbenes@xxxxxxx>
M