[PATCH][GIT PULL] trace: stop tracer in oops_enter()

From: Steven Rostedt
Date: Fri Jul 24 2009 - 15:35:54 EST



Ingo or Thomas,

This is on top of the previous pull requests I made for 31.

Please pull the latest tip/tracing/urgent-2 tree, which can be found at:

git://git.kernel.org/pub/scm/linux/kernel/git/rostedt/linux-2.6-trace.git
tip/tracing/urgent-2


Thomas Gleixner (1):
trace: stop tracer in oops_enter()

----
kernel/panic.c | 1 +
1 files changed, 1 insertions(+), 0 deletions(-)
---------------------------
commit bdff78707f3ce47e891f3201c9666122a70556ce
Author: Thomas Gleixner <tglx@xxxxxxxxxxxxx>
Date: Fri Jul 24 15:30:45 2009 -0400

trace: stop tracer in oops_enter()

If trace_printk_on_oops is set we lose interesting trace information
when the tracer is enabled across oops handling and printing. We want
the trace which might give us information _WHY_ we oopsed.

Signed-off-by: Thomas Gleixner <tglx@xxxxxxxxxxxxx>
Signed-off-by: Steven Rostedt <rostedt@xxxxxxxxxxx>

diff --git a/kernel/panic.c b/kernel/panic.c
index 984b3ec..512ab73 100644
--- a/kernel/panic.c
+++ b/kernel/panic.c
@@ -301,6 +301,7 @@ int oops_may_print(void)
*/
void oops_enter(void)
{
+ tracing_off();
/* can't trust the integrity of the kernel anymore: */
debug_locks_off();
do_oops_enter_exit();

--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/