mirror-linux/tools/objtool/include/objtool
Sathvika Vasireddy 280981d699 objtool: Add --mnop as an option to --mcount
Some architectures (powerpc) may not support ftrace locations being nop'ed
out at build time. Introduce CONFIG_HAVE_OBJTOOL_NOP_MCOUNT for objtool, as
a means for architectures to enable nop'ing of ftrace locations. Add --mnop
as an option to objtool --mcount, to indicate support for the same.

Also, make sure that --mnop can be passed as an option to objtool only when
--mcount is passed.

Tested-by: Naveen N. Rao <naveen.n.rao@linux.vnet.ibm.com>
Reviewed-by: Naveen N. Rao <naveen.n.rao@linux.vnet.ibm.com>
Acked-by: Josh Poimboeuf <jpoimboe@kernel.org>
Reviewed-by: Christophe Leroy <christophe.leroy@csgroup.eu>
Signed-off-by: Sathvika Vasireddy <sv@linux.ibm.com>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Link: https://lore.kernel.org/r/20221114175754.1131267-12-sv@linux.ibm.com
2022-11-18 19:00:16 +11:00
..
arch.h x86,objtool: Create .return_sites 2022-06-27 10:33:58 +02:00
builtin.h objtool: Add --mnop as an option to --mcount 2022-11-18 19:00:16 +11:00
cfi.h objtool: Introduce CFI hash 2021-09-15 15:51:45 +02:00
check.h objtool: Re-add UNWIND_HINT_{SAVE_RESTORE} 2022-06-27 10:34:00 +02:00
elf.h objtool: Use target file class size instead of a compiled constant 2022-11-18 19:00:16 +11:00
endianness.h objtool: Use target file endianness instead of a compiled constant 2022-11-18 19:00:15 +11:00
objtool.h x86,objtool: Create .return_sites 2022-06-27 10:33:58 +02:00
special.h objtool: Decode jump_entry::key addend 2021-05-12 14:54:55 +02:00
warn.h objtool: Add option to print section addresses 2022-04-22 12:32:02 +02:00