perf, sched migration: Handle ignored migrate out events
authorFrederic Weisbecker <fweisbec@gmail.com>
Wed, 21 Jul 2010 20:45:51 +0000 (22:45 +0200)
committerFrederic Weisbecker <fweisbec@gmail.com>
Sun, 1 Aug 2010 23:31:53 +0000 (01:31 +0200)
commit749e507411b17ad686783b6d1183befd846fb81b
tree8e29df1ab2e61b21bd932f9d3dc4f8285bc7dfab
parent880d22f2470af6037715b7f6eb083b6ec5561d92
perf, sched migration: Handle ignored migrate out events

Migrate out events may happen on tasks that are not in the
runqueue, for example this is the case for tasks that are
sleeping. In this case, we don't want to log the migrate out
event in the source runqueue because the task is not eventually
in the runqueue and we have already logged its sleep event.

This fixes timeslices that spuriously propagate a sleep event
from the previous timeslice.

Signed-off-by: Frederic Weisbecker <fweisbec@gmail.com>
Cc: Ingo Molnar <mingo@elte.hu>
Cc: Peter Zijlstra <a.p.zijlstra@chello.nl>
Cc: Arnaldo Carvalho de Melo <acme@redhat.com>
Cc: Paul Mackerras <paulus@samba.org>
Cc: Nikhil Rao <ncrao@google.com>
Cc: Tom Zanussi <tzanussi@gmail.com>
tools/perf/scripts/python/sched-migration.py