summaryrefslogtreecommitdiff
path: root/kernel/trace/trace_events_filter.c
diff options
context:
space:
mode:
authorSteven Rostedt <srostedt@redhat.com>2012-07-31 14:23:37 (GMT)
committerSteven Rostedt <rostedt@goodmis.org>2012-08-07 13:40:51 (GMT)
commit3c18c10bde65b6dcaffab7a4d040285e4defa49b (patch)
tree9b4545c063560d6986d03d7959793591d1eef118 /kernel/trace/trace_events_filter.c
parente52538965119319447c0800c534da73142c27be2 (diff)
downloadlinux-3c18c10bde65b6dcaffab7a4d040285e4defa49b.tar.xz
tracing: Fix wakeup_rt self test on virtual machines
The warkeup_rt self test used msleep() calls to wait for real time tasks to wake up and run. On bare-metal hardware, this was enough as the scheduler should let the RT task run way before the non-RT task wakes up from the msleep(). If it did not, then that would mean the scheduler was broken. But when dealing with virtual machines, this is a different story. If the RT task wakes up on a VCPU, it's up to the host to decide when that task gets to schedule, which can be far behind the time that the non-RT task wakes up. In this case, the test would fail incorrectly. As we are not testing the scheduler, but instead the wake up tracing, we can use completions to wait and not depend on scheduler timings to see if events happen on time. Link: http://lkml.kernel.org/r/1343663105.3847.7.camel@fedora Reported-by: Fengguang Wu <fengguang.wu@intel.com> Tested-by: Fengguang Wu <fengguang.wu@intel.com> Signed-off-by: Steven Rostedt <rostedt@goodmis.org>
Diffstat (limited to 'kernel/trace/trace_events_filter.c')
0 files changed, 0 insertions, 0 deletions