@@ -470,6 +470,19 @@ config DYNAMIC_FTRACE_WITH_REGS
def_bool y
depends on DYNAMIC_FTRACE
depends on HAVE_DYNAMIC_FTRACE_WITH_REGS
+ depends on !DISABLE_DYNAMIC_FTRACE_WITH_REGS
+
+config DISABLE_DYNAMIC_FTRACE_WITH_REGS
+ bool "Force build to not have function tracer pass in registers"
+ depends on DYNAMIC_FTRACE
+ depends on HAVE_DYNAMIC_FTRACE_WITH_REGS
+ help
+ If the architecture supports passing in registers to the function
+ tracer, then that is automatically enabled. But there may be some
+ compilers out there that are broken and cause this to fail.
+ This option makes the build think that the architecture does not
+ support the register passing and allows the build to work even
+ with compilers that do not support the feature.g
config FUNCTION_PROFILER
bool "Kernel function profiler"