aboutsummaryrefslogtreecommitdiffstats
path: root/kernel/trace/trace.c
diff options
context:
space:
mode:
authorCarsten Emde <Carsten.Emde@osadl.org>2009-09-12 19:43:07 -0400
committerSteven Rostedt <rostedt@goodmis.org>2009-09-12 21:45:17 -0400
commitb5130b1e7d3717d03ab1916b198bf0d49fa0a619 (patch)
tree67ee3282f6b6aa2e37864b938f67fd7e02b04394 /kernel/trace/trace.c
parent41dfba4367109b92d92ec6e059be6950497d932f (diff)
tracing: do not update tracing_max_latency when tracer is stopped
The state of the function pair tracing_stop()/tracing_start() is correctly considered when tracer data are updated. However, the global and externally accessible variable tracing_max_latency is always updated - even when tracing is stopped. The update should only occur, if tracing was not stopped. Signed-off-by: Carsten Emde <C.Emde@osadl.org> Signed-off-by: Steven Rostedt <rostedt@goodmis.org>
Diffstat (limited to 'kernel/trace/trace.c')
-rw-r--r--kernel/trace/trace.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/kernel/trace/trace.c b/kernel/trace/trace.c
index 45c3f0352d78..ef82a7fabf3b 100644
--- a/kernel/trace/trace.c
+++ b/kernel/trace/trace.c
@@ -825,6 +825,11 @@ static void trace_init_cmdlines(void)
825 cmdline_idx = 0; 825 cmdline_idx = 0;
826} 826}
827 827
828int is_tracing_stopped(void)
829{
830 return trace_stop_count;
831}
832
828/** 833/**
829 * ftrace_off_permanent - disable all ftrace code permanently 834 * ftrace_off_permanent - disable all ftrace code permanently
830 * 835 *