diff options
| author | Frederic Weisbecker <[email protected]> | 2010-07-21 21:10:38 +0000 |
|---|---|---|
| committer | Frederic Weisbecker <[email protected]> | 2010-08-01 23:31:54 +0000 |
| commit | 207f90fc4757adc732d5ac23ad11bb90dd078754 (patch) | |
| tree | feee14e6b643c207d2ac812339fec875504c2802 /tools/perf/scripts/python | |
| parent | perf, sched migration: Handle ignored migrate out events (diff) | |
| download | kernel-207f90fc4757adc732d5ac23ad11bb90dd078754.tar.gz kernel-207f90fc4757adc732d5ac23ad11bb90dd078754.zip | |
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 <[email protected]>
Cc: Ingo Molnar <[email protected]>
Cc: Peter Zijlstra <[email protected]>
Cc: Arnaldo Carvalho de Melo <[email protected]>
Cc: Paul Mackerras <[email protected]>
Cc: Nikhil Rao <[email protected]>
Cc: Tom Zanussi <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python')
| -rw-r--r-- | 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 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] |
