aboutsummaryrefslogtreecommitdiffstats
path: root/kernel/trace/trace.h
diff options
context:
space:
mode:
authorSteven Rostedt <srostedt@redhat.com>2009-08-27 16:52:21 -0400
committerSteven Rostedt <rostedt@goodmis.org>2009-08-27 16:58:05 -0400
commit5d4a9dba2d7fbab69f00dedd430d1788834a055a (patch)
treea57ec209fc1ac86d7acbd67164b068ecdadd6317 /kernel/trace/trace.h
parentc0729be99cb2b9d9749256254f1c40a801835896 (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.h2
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
474extern unsigned long nsecs_to_usecs(unsigned long nsecs); 474extern unsigned long nsecs_to_usecs(unsigned long nsecs);
475 475
476#ifdef CONFIG_TRACER_MAX_TRACE
476extern unsigned long tracing_max_latency; 477extern unsigned long tracing_max_latency;
477extern unsigned long tracing_thresh; 478extern unsigned long tracing_thresh;
478 479
479void update_max_tr(struct trace_array *tr, struct task_struct *tsk, int cpu); 480void update_max_tr(struct trace_array *tr, struct task_struct *tsk, int cpu);
480void update_max_tr_single(struct trace_array *tr, 481void 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
484void ftrace_trace_stack(struct trace_array *tr, unsigned long flags, 486void ftrace_trace_stack(struct trace_array *tr, unsigned long flags,