From: Steven Rostedt Date: Tue, 30 Sep 2008 03:02:37 +0000 (-0400) Subject: ftrace: give time for wakeup test to run X-Git-Tag: v2.6.28-rc1~78^2~41 X-Git-Url: http://pilppa.com/gitweb/?a=commitdiff_plain;h=5aa60c6073456812251caf9177cb921b2de68f77;p=linux-2.6-omap-h63xx.git ftrace: give time for wakeup test to run It is possible that the testing thread in the ftrace wakeup test does not run before we stop the trace. This will cause the trace to fail since nothing will be in the buffers. This patch adds a small wait in the wakeup test to allow for the woken task to run and be traced. Signed-off-by: Steven Rostedt Signed-off-by: Ingo Molnar --- diff --git a/kernel/trace/trace_selftest.c b/kernel/trace/trace_selftest.c index 82db9103b9b..5ebd4b13549 100644 --- a/kernel/trace/trace_selftest.c +++ b/kernel/trace/trace_selftest.c @@ -498,6 +498,9 @@ trace_selftest_startup_wakeup(struct tracer *trace, struct trace_array *tr) wake_up_process(p); + /* give a little time to let the thread wake up */ + msleep(100); + /* stop the tracing. */ tr->ctrl = 0; trace->ctrl_update(tr);