tracing: move function tracer options to Kconfig
authorSami Tolvanen <samitolvanen@google.com>
Fri, 11 Dec 2020 18:46:18 +0000 (10:46 -0800)
committerKees Cook <keescook@chromium.org>
Fri, 8 Jan 2021 23:59:02 +0000 (15:59 -0800)
commit3b15cdc15956673ba1551d79bceae471436ac6a9
tree5dc22bbb44d06225d4014bf7dadb1e3cfd5ec678
parente71ba9452f0b5b2e8dc8aa5445198cd9214a6a62
tracing: move function tracer options to Kconfig

Move function tracer options to Kconfig to make it easier to add
new methods for generating __mcount_loc, and to make the options
available also when building kernel modules.

Note that FTRACE_MCOUNT_USE_* options are updated on rebuild and
therefore, work even if the .config was generated in a different
environment.

Signed-off-by: Sami Tolvanen <samitolvanen@google.com>
Acked-by: Steven Rostedt (VMware) <rostedt@goodmis.org>
Signed-off-by: Kees Cook <keescook@chromium.org>
Link: https://lore.kernel.org/r/20201211184633.3213045-2-samitolvanen@google.com
Makefile
kernel/trace/Kconfig
scripts/Makefile.build