Skip to content

Commit

Permalink
tracing/events: don't say hi when loading the trace event sample
Browse files Browse the repository at this point in the history
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 <[email protected]>
Acked-by: Steven Rostedt <[email protected]>
Acked-by: Frederic Weisbecker <[email protected]>
LKML-Reference: <[email protected]>
Signed-off-by: Ingo Molnar <[email protected]>
  • Loading branch information
Li Zefan authored and Ingo Molnar committed May 6, 2009
1 parent 5092dbc commit fd6da10
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions samples/trace_events/trace-events-sample.c
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit fd6da10

Please sign in to comment.