]> git.baikalelectronics.ru Git - kernel.git/commit
objtool: Resize insn_hash
authorPeter Zijlstra <peterz@infradead.org>
Thu, 12 Mar 2020 09:20:46 +0000 (10:20 +0100)
committerPeter Zijlstra <peterz@infradead.org>
Wed, 25 Mar 2020 17:28:30 +0000 (18:28 +0100)
commitda4e9dfec05ae87792a3582bc0bbf1bcbcddf1a5
tree496c3cc712bee303774059f2ff1a6875e06b9c97
parent80662a31d8c61aa76bbe54c0230e75d74321dcb4
objtool: Resize insn_hash

Perf shows we're spending a lot of time in find_insn() and the
statistics show we have around 3.2 million instruction. Increase the
hash table size to reduce the bucket load from around 50 to 3.

This shaves about 2s off of objtool on vmlinux.o runtime, down to 16s.

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.617882545@infradead.org
tools/objtool/check.h