summaryrefslogtreecommitdiffstats
path: root/kernel/trace/trace_irqsoff.c
diff options
context:
space:
mode:
authorSteven Rostedt <srostedt@redhat.com>2009-01-15 23:40:11 -0500
committerIngo Molnar <mingo@elte.hu>2009-01-21 15:21:30 +0100
commit1092307d582a7566d23779c304cf86f3075ac5f0 (patch)
tree89b70760ec229b593d4ea9c35084ef44a68b2ec4 /kernel/trace/trace_irqsoff.c
parenta442e5e0a2011af5b2d1f118fee0a8f9079f1d88 (diff)
downloadop-kernel-dev-1092307d582a7566d23779c304cf86f3075ac5f0.zip
op-kernel-dev-1092307d582a7566d23779c304cf86f3075ac5f0.tar.gz
trace: set max latency variable to zero on default
Impact: trace max latencies on start of latency tracing This patch sets the max latency to zero whenever one of the irq variant tracers or the wakeup tracer is set to current tracer. Most developers expect to see output when starting up a latency tracer. But since the max_latency is already set to max, and it takes a latency greater than max_latency to be recorded, there is no trace. This is not the expected behavior and has even confused myself. Signed-off-by: Steven Rostedt <srostedt@redhat.com> Signed-off-by: Ingo Molnar <mingo@elte.hu>
Diffstat (limited to 'kernel/trace/trace_irqsoff.c')
-rw-r--r--kernel/trace/trace_irqsoff.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/kernel/trace/trace_irqsoff.c b/kernel/trace/trace_irqsoff.c
index 7c2e326..62a78d9 100644
--- a/kernel/trace/trace_irqsoff.c
+++ b/kernel/trace/trace_irqsoff.c
@@ -380,6 +380,7 @@ static void stop_irqsoff_tracer(struct trace_array *tr)
static void __irqsoff_tracer_init(struct trace_array *tr)
{
+ tracing_max_latency = 0;
irqsoff_trace = tr;
/* make sure that the tracer is visible */
smp_wmb();
OpenPOWER on IntegriCloud