summaryrefslogtreecommitdiffstats
path: root/kernel/trace
diff options
context:
space:
mode:
authorLinus Torvalds <torvalds@linux-foundation.org>2016-02-03 18:31:34 +0100
committerLinus Torvalds <torvalds@linux-foundation.org>2016-02-03 18:31:34 +0100
commitef582d095db13504a54b9bc57c9489e551441c2a (patch)
tree7528c1a68abd117264a103b36216df6f09442ec8 /kernel/trace
parentmm: retire GUP WARN_ON_ONCE that outlived its usefulness (diff)
parenttracing/stacktrace: Show entire trace if passed in function not found (diff)
downloadlinux-ef582d095db13504a54b9bc57c9489e551441c2a.tar.xz
linux-ef582d095db13504a54b9bc57c9489e551441c2a.zip
Merge tag 'trace-v4.5-rc1-2' of git://git.kernel.org/pub/scm/linux/kernel/git/rostedt/linux-trace
Pull tracing fix from Steven Rostedt: "A cleanup to the stack tracer broke stack tracing on s390. Here's a simple fix to correct that issue" * tag 'trace-v4.5-rc1-2' of git://git.kernel.org/pub/scm/linux/kernel/git/rostedt/linux-trace: tracing/stacktrace: Show entire trace if passed in function not found
Diffstat (limited to 'kernel/trace')
-rw-r--r--kernel/trace/trace_stack.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/kernel/trace/trace_stack.c b/kernel/trace/trace_stack.c
index dda9e6742950..202df6cffcca 100644
--- a/kernel/trace/trace_stack.c
+++ b/kernel/trace/trace_stack.c
@@ -126,6 +126,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.
*/
x = 0;