aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/check-perf-trace.py
diff options
context:
space:
mode:
authorPeter Zijlstra <[email protected]>2020-03-10 18:39:45 +0100
committerPeter Zijlstra <[email protected]>2020-03-25 18:28:28 +0100
commit65fb11a7f6aeae678043738d06248a4e21f4e4e4 (patch)
treee0fdb3bbce4da48058fd87271d2375d5ad68e5de /tools/perf/scripts/python/check-perf-trace.py
parent36cc552055a5f95bab479533b4ebbad6a6cea0e1 (diff)
objtool: Optimize find_symbol_by_index()
The symbol index is object wide, not per section, so it makes no sense to have the symbol_hash be part of the section object. By moving it to the elf object we avoid the linear sections iteration. This reduces the runtime of objtool on vmlinux.o from over 3 hours (I gave up) to a few minutes. The defconfig vmlinux.o has around 20k sections. 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/check-perf-trace.py')
0 files changed, 0 insertions, 0 deletions