perf, sched migration: Ignore unhandled task states
authorFrederic Weisbecker <fweisbec@gmail.com>
Wed, 21 Jul 2010 21:10:38 +0000 (23:10 +0200)
committerFrederic Weisbecker <fweisbec@gmail.com>
Sun, 1 Aug 2010 23:31:54 +0000 (01:31 +0200)
Stop printing an error message when we don't have the letter
for a given task state. All we need to know is if the task is
in the TASK_RUNNING state.

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

index 7304d86c76c0fab5cdc797e14caeabb71f230ce1..e9898c5dbcc8f85c7616c567dac1a42c344ff023 100644 (file)
@@ -260,8 +260,7 @@ def taskState(state):
        }
 
        if state not in states:
-               print "Unhandled task state %d" % state
-               return ""
+               return "Unknown"
 
        return states[state]