]> git.baikalelectronics.ru Git - kernel.git/commit
tracing: stop stack trace on first empty entry
authorSteven Rostedt <srostedt@redhat.com>
Fri, 15 May 2009 03:40:06 +0000 (23:40 -0400)
committerSteven Rostedt <rostedt@goodmis.org>
Fri, 15 May 2009 03:40:06 +0000 (23:40 -0400)
commitea6fdc2bf31bad255cfb3bc38cbc4e327f8e8e22
tree52a53fcd4d7ea0cd94b65bd8c6bf20402e3356af
parent5569fd99e5ff160affbeb4417568f95ab4dd4259
tracing: stop stack trace on first empty entry

The stack tracer stores eight entries in the ring buffer when an event
traces the stack. The output outputs all eight entries regardless of
how many entries were recorded.

This patch breaks out of the loop when a null entry is discovered.

[ Impact: only print the stack that is recorded ]

Signed-off-by: Steven Rostedt <rostedt@goodmis.org>
kernel/trace/trace_output.c