]> git.baikalelectronics.ru Git - kernel.git/commit
ARM: fix function graph tracer and unwinder dependencies
authorRussell King <rmk+kernel@armlinux.org.uk>
Tue, 23 Apr 2019 16:09:38 +0000 (17:09 +0100)
committerRussell King <rmk+kernel@armlinux.org.uk>
Tue, 23 Apr 2019 16:28:32 +0000 (17:28 +0100)
commit751fc5180708960d31c16683f2e733e233919203
treecd5ca649274de5a59c9520b03c56b6fa868e646e
parente34ba0d7c8ee128a8a7cc0a1d0345206aeb6a4e5
ARM: fix function graph tracer and unwinder dependencies

Naresh Kamboju recently reported that the function-graph tracer crashes
on ARM. The function-graph tracer assumes that the kernel is built with
frame pointers.

We explicitly disabled the function-graph tracer when building Thumb2,
since the Thumb2 ABI doesn't have frame pointers.

We recently changed the way the unwinder method was selected, which
seems to have made it more likely that we can end up with the function-
graph tracer enabled but without the kernel built with frame pointers.

Fix up the function graph tracer dependencies so the option is not
available when we have no possibility of having frame pointers, and
adjust the dependencies on the unwinder option to hide the non-frame
pointer unwinder options if the function-graph tracer is enabled.

Reviewed-by: Masami Hiramatsu <mhiramat@kernel.org>
Tested-by: Masami Hiramatsu <mhiramat@kernel.org>
Signed-off-by: Russell King <rmk+kernel@armlinux.org.uk>
arch/arm/Kconfig
arch/arm/Kconfig.debug