[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <tip-fd6da10a617f483348ee32bcfe53fd20c302eca1@git.kernel.org>
Date: Wed, 6 May 2009 12:19:11 GMT
From: tip-bot for Li Zefan <lizf@...fujitsu.com>
To: linux-tip-commits@...r.kernel.org
Cc: linux-kernel@...r.kernel.org, hpa@...or.com, mingo@...hat.com,
fweisbec@...il.com, rostedt@...dmis.org, lizf@...fujitsu.com,
tglx@...utronix.de, mingo@...e.hu
Subject: [tip:tracing/core] tracing/events: don't say hi when loading the trace event sample
Commit-ID: fd6da10a617f483348ee32bcfe53fd20c302eca1
Gitweb: http://git.kernel.org/tip/fd6da10a617f483348ee32bcfe53fd20c302eca1
Author: Li Zefan <lizf@...fujitsu.com>
AuthorDate: Wed, 6 May 2009 10:32:13 +0800
Committer: Ingo Molnar <mingo@...e.hu>
CommitDate: Wed, 6 May 2009 10:38:18 +0200
tracing/events: don't say hi when loading the trace event sample
The sample is useful for testing, and I'm using it. But after
loading the module, it keeps saying hi every 10 seconds, this may
be disturbing.
Also Steven said commenting out the "hi" helped in causing races. :)
[ Impact: make testing a bit easier ]
Signed-off-by: Li Zefan <lizf@...fujitsu.com>
Acked-by: Steven Rostedt <rostedt@...dmis.org>
Acked-by: Frederic Weisbecker <fweisbec@...il.com>
LKML-Reference: <4A00F6AD.2070008@...fujitsu.com>
Signed-off-by: Ingo Molnar <mingo@...e.hu>
---
samples/trace_events/trace-events-sample.c | 4 ----
1 files changed, 0 insertions(+), 4 deletions(-)
diff --git a/samples/trace_events/trace-events-sample.c b/samples/trace_events/trace-events-sample.c
index f33b3ba..aabc4e9 100644
--- a/samples/trace_events/trace-events-sample.c
+++ b/samples/trace_events/trace-events-sample.c
@@ -16,10 +16,6 @@ static void simple_thread_func(int cnt)
set_current_state(TASK_INTERRUPTIBLE);
schedule_timeout(HZ);
trace_foo_bar("hello", cnt);
-
- if (!(cnt % 10))
- /* It is really important that I say "hi!" */
- printk(KERN_EMERG "hi!\n");
}
static int simple_thread(void *arg)
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists