Commit-ID: 207f90fc4757adc732d5ac23ad11bb90dd078754 Gitweb: http://git.kernel.org/tip/207f90fc4757adc732d5ac23ad11bb90dd078754 Author: Frederic Weisbecker <fweisbec@xxxxxxxxx> AuthorDate: Wed, 21 Jul 2010 23:10:38 +0200 Committer: Frederic Weisbecker <fweisbec@xxxxxxxxx> CommitDate: Mon, 2 Aug 2010 01:31:54 +0200 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 <fweisbec@xxxxxxxxx> Cc: Ingo Molnar <mingo@xxxxxxx> Cc: Peter Zijlstra <a.p.zijlstra@xxxxxxxxx> Cc: Arnaldo Carvalho de Melo <acme@xxxxxxxxxx> Cc: Paul Mackerras <paulus@xxxxxxxxx> Cc: Nikhil Rao <ncrao@xxxxxxxxxx> Cc: Tom Zanussi <tzanussi@xxxxxxxxx> --- tools/perf/scripts/python/sched-migration.py | 3 +-- 1 files changed, 1 insertions(+), 2 deletions(-) diff --git a/tools/perf/scripts/python/sched-migration.py b/tools/perf/scripts/python/sched-migration.py index 7304d86..e9898c5 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] -- To unsubscribe from this list: send the line "unsubscribe linux-tip-commits" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html