History

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.

Frederic Weisbecker committed 16 years ago

Commit 207f90f1 parent 749e5071 file · +1 −2Browse files

Showing the changes to tools/perf/scripts/python (1 of 1 file). Show all

Unified · Split

tools/perf/scripts/python/sched-migration.py+1−2
@@ -260,8 +260,7 @@ def taskState(state): · 259 unmodified lines
260 }260 }
261 261
262 if state not in states:262 if state not in states:
263 print "Unhandled task state %d" % state263 return "Unknown"
264 return ""
265 264
266 return states[state]265 return states[state]
267 266