From: Thomas Gleixner Date: Wed, 18 Mar 2009 07:56:58 +0000 (+0100) Subject: tracing: stop command line recording when tracing is disabled X-Git-Tag: v2.6.30-rc1~2^2~22^3~3 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=18aecd362a1c991fbf5f7919ae051a77532ba2f8;p=pandora-kernel.git tracing: stop command line recording when tracing is disabled Impact: prevent overwrite of command line entries When the tracer is stopped the command line recording continues to record. The check for tracing_is_on() is not sufficient here as the ringbuffer status is not affected by setting debug/tracing/tracing_enabled to 0. On a non idle system this can result in the loss of the command line information for the stopped trace, which makes the trace harder to read and analyse. Check tracer_enabled to allow further recording. Signed-off-by: Thomas Gleixner Cc: Steven Rostedt Cc: Frederic Weisbecker LKML-Reference: Signed-off-by: Ingo Molnar --- Reading git-diff-tree failed