arm64: Fix static use of function graph
authorJulien Thierry <julien.thierry@arm.com>
Fri, 3 Nov 2017 11:44:16 +0000 (11:44 +0000)
committerWill Deacon <will.deacon@arm.com>
Fri, 3 Nov 2017 12:05:23 +0000 (12:05 +0000)
commitd125bffcefb290743e4eac536886dba689edf1eb
tree05355bfb4302164d0bf7ad4b18e864925f3b7ae8
parenta92d4d1454ab8b43b80b89fa31fcedb8821f8164
arm64: Fix static use of function graph

Function graph does not work currently when CONFIG_DYNAMIC_TRACE is not
set. This is because ftrace_function_trace is not always set to ftrace_stub
when function_graph is in use.

Do not skip checking of graph tracer functions when ftrace_function_trace
is set.

Signed-off-by: Julien Thierry <julien.thierry@arm.com>
Cc: Catalin Marinas <catalin.marinas@arm.com>
Cc: Will Deacon <will.deacon@arm.com>
Cc: Mark Rutland <mark.rutland@arm.com>
Acked-by: Steven Rostedt (VMware) <rostedt@goodmis.org>
Reviewed-by: AKASHI Takahiro <takahiro.akashi@linaro.org>
Signed-off-by: Will Deacon <will.deacon@arm.com>
arch/arm64/kernel/entry-ftrace.S