]> git.baikalelectronics.ru Git - kernel.git/commit
tracing: Add a trace print when traceoff_on_warning is triggered
authorSteven Rostedt (VMware) <rostedt@goodmis.org>
Fri, 29 May 2020 14:46:32 +0000 (10:46 -0400)
committerSteven Rostedt (VMware) <rostedt@goodmis.org>
Mon, 1 Jun 2020 12:23:47 +0000 (08:23 -0400)
commitfd769d71746f14400de986d1ed56bfaa779a0c7a
tree519f863ac6d133ed1f651f0df597768b343cca37
parente1c140e240c34f4eb02a0c96ca4b6e09da57f8e3
tracing: Add a trace print when traceoff_on_warning is triggered

When "traceoff_on_warning" is enabled and a warning happens, there can still
be many trace events happening on other CPUs between the time the warning
occurred and the last trace event on that same CPU. This can cause confusion
in examining the trace, as it may not be obvious where the warning happened.
By adding a trace print into the trace just before disabling tracing, it
makes it obvious where the warning occurred, and the developer doesn't have
to look at other means to see what CPU it occurred on.

Cc: Peter Zijlstra <peterz@infradead.org>
Signed-off-by: Steven Rostedt (VMware) <rostedt@goodmis.org>
kernel/trace/trace.c