aboutsummaryrefslogtreecommitdiffstats
path: root/kernel/trace
diff options
context:
space:
mode:
authorSteven Rostedt <rostedt@goodmis.org>2008-09-29 23:02:37 -0400
committerIngo Molnar <mingo@elte.hu>2008-10-14 04:38:53 -0400
commit5aa60c6073456812251caf9177cb921b2de68f77 (patch)
tree8eb56cc1db2101f31b0215134503496d8a29f639 /kernel/trace
parent7c572ac0cf5e8cd8e17f084bc6c253296cc42279 (diff)
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 <srostedt@redhat.com> Signed-off-by: Ingo Molnar <mingo@elte.hu>
Diffstat (limited to 'kernel/trace')
-rw-r--r--kernel/trace/trace_selftest.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/kernel/trace/trace_selftest.c b/kernel/trace/trace_selftest.c
index 82db9103b9bc..5ebd4b135498 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)
498 498
499 wake_up_process(p); 499 wake_up_process(p);
500 500
501 /* give a little time to let the thread wake up */
502 msleep(100);
503
501 /* stop the tracing. */ 504 /* stop the tracing. */
502 tr->ctrl = 0; 505 tr->ctrl = 0;
503 trace->ctrl_update(tr); 506 trace->ctrl_update(tr);