diff options
author | Peter Zijlstra <[email protected]> | 2020-03-12 11:30:50 +0100 |
---|---|---|
committer | Peter Zijlstra <[email protected]> | 2020-03-25 18:28:31 +0100 |
commit | 74b873e49d92f90deb41d1a2a8fbb70328aebd67 (patch) | |
tree | 202750758a1796652a86b895de1a7fc79ff17673 /tools/perf/scripts/python/exported-sql-viewer.py | |
parent | 8887a86eddd93ca396ca35f7b41fb14ed412f85d (diff) |
objtool: Optimize find_rela_by_dest_range()
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) <[email protected]>
Reviewed-by: Miroslav Benes <[email protected]>
Acked-by: Josh Poimboeuf <[email protected]>
Link: https://lkml.kernel.org/r/[email protected]
Diffstat (limited to 'tools/perf/scripts/python/exported-sql-viewer.py')
0 files changed, 0 insertions, 0 deletions