tracing/events: don't say hi when loading the trace event sample
authorLi Zefan <lizf@cn.fujitsu.com>
Wed, 6 May 2009 02:32:13 +0000 (10:32 +0800)
committerIngo Molnar <mingo@elte.hu>
Wed, 6 May 2009 08:38:18 +0000 (10:38 +0200)
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@cn.fujitsu.com>
Acked-by: Steven Rostedt <rostedt@goodmis.org>
Acked-by: Frederic Weisbecker <fweisbec@gmail.com>
LKML-Reference: <4A00F6AD.2070008@cn.fujitsu.com>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
samples/trace_events/trace-events-sample.c

index f33b3ba..aabc4e9 100644 (file)
@@ -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)