Peter Zijlstra 87ecb582f0 objtool: Use sec_offset_hash() for insn_hash
In preparation for find_insn_containing(), change insn_hash to use
sec_offset_hash().

This actually reduces runtime; probably because mixing in the section
index reduces the collisions due to text sections all starting their
instructions at offset 0.

Runtime on vmlinux.o from 3.1 to 2.5 seconds.

Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org>
Reviewed-by: Miroslav Benes <mbenes@suse.cz>
Reviewed-by: Alexandre Chartre <alexandre.chartre@oracle.com>
Acked-by: Josh Poimboeuf <jpoimboe@redhat.com>
Link: https://lkml.kernel.org/r/20200416115119.227240432@infradead.org
Signed-off-by: Ingo Molnar <mingo@kernel.org>
2020-04-22 10:53:50 +02:00
..
2020-04-22 10:53:50 +02:00
2020-04-22 10:53:50 +02:00
2020-04-22 10:53:50 +02:00
2020-04-22 10:53:50 +02:00
2020-04-22 10:53:50 +02:00
2020-04-22 10:53:50 +02:00
2020-04-22 10:53:50 +02:00
2020-03-25 18:28:30 +01:00
2020-01-22 07:54:34 +01:00
2020-03-25 18:28:29 +01:00