Commit 6ccd8371 authored by Steven Rostedt's avatar Steven Rostedt

tracing/stacktrace: Show entire trace if passed in function not found

When a max stack trace is discovered, the stack dump is saved. In order to
not record the overhead of the stack tracer, the ip of the traced function
is looked for within the dump. The trace is started from the location of
that function. But if for some reason the ip is not found, the entire stack
trace is then truncated. That's not very useful. Instead, print everything
if the ip of the traced function is not found within the trace.

This issue showed up on s390.


Fixes: 72ac426a ("tracing: Clean up stack tracing and fix fentry updates")
Cc: # v4.3+
Reported-by: default avatarHeiko Carstens <>
Tested-by: default avatarHeiko Carstens <>
Signed-off-by: default avatarSteven Rostedt <>
parent 92e963f5
......@@ -125,6 +125,13 @@ check_stack(unsigned long ip, unsigned long *stack)
* Some archs may not have the passed in ip in the dump.
* If that happens, we need to show everything.
if (i == stack_trace_max.nr_entries)
i = 0;
* Now find where in the stack these are.
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment