diff options
author | Steven Rostedt <srostedt@redhat.com> | 2009-08-27 16:52:21 -0400 |
---|---|---|
committer | Steven Rostedt <rostedt@goodmis.org> | 2009-08-27 16:58:05 -0400 |
commit | 5d4a9dba2d7fbab69f00dedd430d1788834a055a (patch) | |
tree | a57ec209fc1ac86d7acbd67164b068ecdadd6317 /kernel/trace/trace.h | |
parent | c0729be99cb2b9d9749256254f1c40a801835896 (diff) |
tracing: only show tracing_max_latency when latency tracer configured
The tracing_max_latency file should only be present when one of the
latency tracers ({preempt|irqs}off, wakeup*) are enabled.
This patch also removes tracing_thresh when latency tracers are not
enabled, as well as compiles out code that is only used for latency
tracers.
Reported-by: Arnaldo Carvalho de Melo <acme@redhat.com>
Signed-off-by: Steven Rostedt <rostedt@goodmis.org>
Diffstat (limited to 'kernel/trace/trace.h')
-rw-r--r-- | kernel/trace/trace.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/kernel/trace/trace.h b/kernel/trace/trace.h index 654fd657bd03..e2c06b21dd82 100644 --- a/kernel/trace/trace.h +++ b/kernel/trace/trace.h | |||
@@ -473,12 +473,14 @@ void unregister_tracer(struct tracer *type); | |||
473 | 473 | ||
474 | extern unsigned long nsecs_to_usecs(unsigned long nsecs); | 474 | extern unsigned long nsecs_to_usecs(unsigned long nsecs); |
475 | 475 | ||
476 | #ifdef CONFIG_TRACER_MAX_TRACE | ||
476 | extern unsigned long tracing_max_latency; | 477 | extern unsigned long tracing_max_latency; |
477 | extern unsigned long tracing_thresh; | 478 | extern unsigned long tracing_thresh; |
478 | 479 | ||
479 | void update_max_tr(struct trace_array *tr, struct task_struct *tsk, int cpu); | 480 | void update_max_tr(struct trace_array *tr, struct task_struct *tsk, int cpu); |
480 | void update_max_tr_single(struct trace_array *tr, | 481 | void update_max_tr_single(struct trace_array *tr, |
481 | struct task_struct *tsk, int cpu); | 482 | struct task_struct *tsk, int cpu); |
483 | #endif /* CONFIG_TRACER_MAX_TRACE */ | ||
482 | 484 | ||
483 | #ifdef CONFIG_STACKTRACE | 485 | #ifdef CONFIG_STACKTRACE |
484 | void ftrace_trace_stack(struct trace_array *tr, unsigned long flags, | 486 | void ftrace_trace_stack(struct trace_array *tr, unsigned long flags, |