]> git.baikalelectronics.ru Git - kernel.git/commit
tracing/stacktrace: Show entire trace if passed in function not found
authorSteven Rostedt <rostedt@goodmis.org>
Fri, 29 Jan 2016 15:22:41 +0000 (10:22 -0500)
committerSteven Rostedt <rostedt@goodmis.org>
Fri, 29 Jan 2016 17:19:10 +0000 (12:19 -0500)
commit497edd2b9c7caf088d02aa20f36f07b22bd1b5b6
treee9b16f16bd6558120805a2d03d2a1dd0db27d2f0
parent5367e65a538f2d59834d845f582bc1f1ae9599b8
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.

Link: http://lkml.kernel.org/r/20160129102241.1b3c9c04@gandalf.local.home
Fixes: e51c886ca60c ("tracing: Clean up stack tracing and fix fentry updates")
Cc: stable@vger.kernel.org # v4.3+
Reported-by: Heiko Carstens <heiko.carstens@de.ibm.com>
Tested-by: Heiko Carstens <heiko.carstens@de.ibm.com>
Signed-off-by: Steven Rostedt <rostedt@goodmis.org>
kernel/trace/trace_stack.c