aboutsummaryrefslogtreecommitdiffstats
path: root/tools
diff options
context:
space:
mode:
authorFrederic Weisbecker <fweisbec@gmail.com>2010-07-21 17:10:38 -0400
committerFrederic Weisbecker <fweisbec@gmail.com>2010-08-01 19:31:54 -0400
commit207f90fc4757adc732d5ac23ad11bb90dd078754 (patch)
treefeee14e6b643c207d2ac812339fec875504c2802 /tools
parent749e507411b17ad686783b6d1183befd846fb81b (diff)
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>
Diffstat (limited to 'tools')
-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):
260 } 260 }
261 261
262 if state not in states: 262 if state not in states:
263 print "Unhandled task state %d" % state 263 return "Unknown"
264 return ""
265 264
266 return states[state] 265 return states[state]
267 266