tracing: only show tracing_max_latency when latency tracer configured
authorSteven Rostedt <srostedt@redhat.com>
Thu, 27 Aug 2009 20:52:21 +0000 (16:52 -0400)
committerSteven Rostedt <rostedt@goodmis.org>
Thu, 27 Aug 2009 20:58:05 +0000 (16:58 -0400)
commit5d4a9dba2d7fbab69f00dedd430d1788834a055a
treea57ec209fc1ac86d7acbd67164b068ecdadd6317
parentc0729be99cb2b9d9749256254f1c40a801835896
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>
kernel/trace/trace.c
kernel/trace/trace.h