arm64 function_graph tracer panic with CONFIG_DYNAMIC_FTRACE

Steven Rostedt rostedt at
Mon Nov 16 06:20:27 PST 2015

On Mon, 16 Nov 2015 10:56:51 +0900
AKASHI Takahiro <takahiro.akashi at> wrote:

> I think I fixed the problem.
> As you can see stack dump traces above, psci_cpu_suspend() and psci_suspend_finisher()
> are called in cpu suspend path, but they never return in cpu resume path and
> cpu_suspend() will resume directly via cpu_resume(). So those two functions should not be
> ftrace'd.

Does this crash with just the function graph tracer, or does the
function tracer show the same issue? If it is just the function graph
tracer, lets not cripple function tracing because of it.

Just call pause_graph_tracing() before the suspend code, and
unpause_graph_tracing() when returning.

This will also help keep you from playing whack-a-mole, when there are
other functions that have this issue.

-- Steve

More information about the linux-arm-kernel mailing list