aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLi Zefan2009-05-05 21:32:13 -0500
committerIngo Molnar2009-05-06 03:38:18 -0500
commitfd6da10a617f483348ee32bcfe53fd20c302eca1 (patch)
treeacfec8a3b263d1aebe42de1a99389a55c739fc5f /samples/trace_events/trace-events-sample.c
parent5092dbc96f3acdac5433b27c06860352dc6d23b9 (diff)
downloadkernel-common-fd6da10a617f483348ee32bcfe53fd20c302eca1.tar.gz
kernel-common-fd6da10a617f483348ee32bcfe53fd20c302eca1.tar.xz
kernel-common-fd6da10a617f483348ee32bcfe53fd20c302eca1.zip
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@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>
Diffstat (limited to 'samples/trace_events/trace-events-sample.c')
-rw-r--r--samples/trace_events/trace-events-sample.c4
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 f33b3ba744a..aabc4e97091 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)
16 set_current_state(TASK_INTERRUPTIBLE); 16 set_current_state(TASK_INTERRUPTIBLE);
17 schedule_timeout(HZ); 17 schedule_timeout(HZ);
18 trace_foo_bar("hello", cnt); 18 trace_foo_bar("hello", cnt);
19
20 if (!(cnt % 10))
21 /* It is really important that I say "hi!" */
22 printk(KERN_EMERG "hi!\n");
23} 19}
24 20
25static int simple_thread(void *arg) 21static int simple_thread(void *arg)