summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFrederic Weisbecker <fweisbec@gmail.com>2010-07-21 23:10:38 +0200
committerFrederic Weisbecker <fweisbec@gmail.com>2010-08-02 01:31:54 +0200
commit207f90fc4757adc732d5ac23ad11bb90dd078754 (patch)
treefeee14e6b643c207d2ac812339fec875504c2802
parent749e507411b17ad686783b6d1183befd846fb81b (diff)
downloadlinux-207f90fc4757adc732d5ac23ad11bb90dd078754.tar.bz2
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@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>
-rw-r--r--tools/perf/scripts/python/sched-migration.py3
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 7304d86c76c0..e9898c5dbcc8 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]