diff options
author | Steven Rostedt (VMware) <rostedt@goodmis.org> | 2018-11-20 12:51:07 -0500 |
---|---|---|
committer | Steven Rostedt (VMware) <rostedt@goodmis.org> | 2018-11-27 20:31:55 -0500 |
commit | b1b35f2e218a5b57d03bbc3b0667d5064570dc60 (patch) | |
tree | 98c58046d2d058096a9fd8f2488b17bb102d19dc /scripts/pnmtologo.c | |
parent | 7c6ea35ef50810aa12ab26f21cb858d980881576 (diff) |
function_graph: Have profiler use curr_ret_stack and not depth
The profiler uses trace->depth to find its entry on the ret_stack, but the
depth may not match the actual location of where its entry is (if an
interrupt were to preempt the processing of the profiler for another
function, the depth and the curr_ret_stack will be different).
Have it use the curr_ret_stack as the index to find its ret_stack entry
instead of using the depth variable, as that is no longer guaranteed to be
the same.
Cc: stable@kernel.org
Fixes: 03274a3ffb449 ("tracing/fgraph: Adjust fgraph depth before calling trace return callback")
Reviewed-by: Masami Hiramatsu <mhiramat@kernel.org>
Signed-off-by: Steven Rostedt (VMware) <rostedt@goodmis.org>
Diffstat (limited to 'scripts/pnmtologo.c')
0 files changed, 0 insertions, 0 deletions