Peter Zijlstra 2a362ecc3e objtool: Optimize find_symbol_*() and read_symbols()
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@infradead.org>
Reviewed-by: Miroslav Benes <mbenes@suse.cz>
Acked-by: Josh Poimboeuf <jpoimboe@redhat.com>
Link: https://lkml.kernel.org/r/20200324160924.499016559@infradead.org
2020-03-25 18:28:29 +01:00
..
2019-07-18 21:01:10 +02:00
2020-03-25 18:28:28 +01:00
2020-03-25 18:28:28 +01:00
2020-03-25 18:28:28 +01:00
2019-07-25 08:36:39 +02:00
2020-01-22 07:54:57 +01:00
2020-01-22 07:54:34 +01:00