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
Showing
- Makefile 3 additions, 1 deletionMakefile
- arch/x86/Kconfig 1 addition, 0 deletionsarch/x86/Kconfig
- kernel/trace/Kconfig 7 additions, 0 deletionskernel/trace/Kconfig
- scripts/Makefile.lib 3 additions, 0 deletionsscripts/Makefile.lib
- tools/objtool/builtin-check.c 14 additions, 0 deletionstools/objtool/builtin-check.c
- tools/objtool/check.c 10 additions, 9 deletionstools/objtool/check.c
- tools/objtool/include/objtool/builtin.h 1 addition, 0 deletionstools/objtool/include/objtool/builtin.h
Loading
Please register or sign in to comment