objtool: Provide stats for jump_labels

Add objtool --stats to count the jump_label sites it encounters.

Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org>
Signed-off-by: Ingo Molnar <mingo@kernel.org>
Link: https://lore.kernel.org/r/20210506194158.153101906@infradead.org
This commit is contained in:
Peter Zijlstra
2021-05-12 14:54:56 +02:00
committed by Ingo Molnar
parent 6d37b83c5d
commit e2d9494bef
2 changed files with 23 additions and 2 deletions
+3
View File
@@ -22,6 +22,9 @@ struct objtool_file {
struct list_head static_call_list;
struct list_head mcount_loc_list;
bool ignore_unreachables, c_file, hints, rodata;
unsigned long jl_short, jl_long;
unsigned long jl_nop_short, jl_nop_long;
};
struct objtool_file *objtool_open_read(const char *_objname);