Skip to content

Commit

Permalink
trace: stop tracer in oops_enter()
Browse files Browse the repository at this point in the history
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 <[email protected]>
Signed-off-by: Steven Rostedt <[email protected]>
  • Loading branch information
KAGA-KOKO authored and rostedt committed Jul 24, 2009
1 parent bd171d5 commit bdff787
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions kernel/panic.c
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down

0 comments on commit bdff787

Please sign in to comment.