objtool: Keep track of retpoline call sites
authorPeter Zijlstra <peterz@infradead.org>
Fri, 26 Mar 2021 15:12:12 +0000 (16:12 +0100)
committerIngo Molnar <mingo@kernel.org>
Fri, 2 Apr 2021 10:45:27 +0000 (12:45 +0200)
commit43d5430ad74ef5156353af7aec352426ec7a8e57
tree5ae512d57b4bb1535cc106c4e68e35ddd58d3085
parent2f2f7e47f0525cbaad5dd9675fd9d8aa8da12046
objtool: Keep track of retpoline call sites

Provide infrastructure for architectures to rewrite/augment compiler
generated retpoline calls. Similar to what we do for static_call()s,
keep track of the instructions that are retpoline calls.

Use the same list_head, since a retpoline call cannot also be a
static_call.

Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org>
Signed-off-by: Borislav Petkov <bp@suse.de>
Signed-off-by: Ingo Molnar <mingo@kernel.org>
Reviewed-by: Miroslav Benes <mbenes@suse.cz>
Link: https://lkml.kernel.org/r/20210326151300.130805730@infradead.org
tools/objtool/check.c
tools/objtool/include/objtool/arch.h
tools/objtool/include/objtool/check.h
tools/objtool/include/objtool/objtool.h
tools/objtool/objtool.c