From: Frederic Weisbecker Date: Wed, 21 Jul 2010 21:10:38 +0000 (+0200) Subject: perf, sched migration: Ignore unhandled task states X-Git-Tag: v2.6.36-rc1~41^2~17^2~7 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=207f90fc4757adc732d5ac23ad11bb90dd078754;p=profile%2Fivi%2Fkernel-x86-ivi.git perf, sched migration: Ignore unhandled task states 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 Cc: Ingo Molnar Cc: Peter Zijlstra Cc: Arnaldo Carvalho de Melo Cc: Paul Mackerras Cc: Nikhil Rao Cc: Tom Zanussi --- diff --git a/tools/perf/scripts/python/sched-migration.py b/tools/perf/scripts/python/sched-migration.py index 7304d86c76c..e9898c5dbcc 100644 --- a/tools/perf/scripts/python/sched-migration.py +++ b/tools/perf/scripts/python/sched-migration.py @@ -260,8 +260,7 @@ def taskState(state): } if state not in states: - print "Unhandled task state %d" % state - return "" + return "Unknown" return states[state]