diff options
author | Carsten Emde <Carsten.Emde@osadl.org> | 2009-09-12 19:43:07 -0400 |
---|---|---|
committer | Steven Rostedt <rostedt@goodmis.org> | 2009-09-12 21:45:17 -0400 |
commit | b5130b1e7d3717d03ab1916b198bf0d49fa0a619 (patch) | |
tree | 67ee3282f6b6aa2e37864b938f67fd7e02b04394 /kernel/trace/trace.h | |
parent | 41dfba4367109b92d92ec6e059be6950497d932f (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.h')
-rw-r--r-- | kernel/trace/trace.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/kernel/trace/trace.h b/kernel/trace/trace.h index 28247cecd955..4ad4e1ddcb9b 100644 --- a/kernel/trace/trace.h +++ b/kernel/trace/trace.h | |||
@@ -461,6 +461,7 @@ void tracing_stop_sched_switch_record(void); | |||
461 | void tracing_start_sched_switch_record(void); | 461 | void tracing_start_sched_switch_record(void); |
462 | int register_tracer(struct tracer *type); | 462 | int register_tracer(struct tracer *type); |
463 | void unregister_tracer(struct tracer *type); | 463 | void unregister_tracer(struct tracer *type); |
464 | int is_tracing_stopped(void); | ||
464 | 465 | ||
465 | extern unsigned long nsecs_to_usecs(unsigned long nsecs); | 466 | extern unsigned long nsecs_to_usecs(unsigned long nsecs); |
466 | 467 | ||