[PATCH 05/12] perf, sched migration: Ignore unhandled task states

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Frederic Weisbecker
Date: Sunday, August 1, 2010 - 5:13 pm

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>
---
 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]
 
-- 
1.6.2.3

--
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
[GIT PULL] instrumentation updates, Frederic Weisbecker, (Sun Aug 1, 5:13 pm)
[PATCH 02/12] tracing: Drop cpparg() macro, Frederic Weisbecker, (Sun Aug 1, 5:13 pm)
[PATCH 03/12] perf: New migration tool overview, Frederic Weisbecker, (Sun Aug 1, 5:13 pm)
[PATCH 04/12] perf, sched migration: Handle ignored migrat ..., Frederic Weisbecker, (Sun Aug 1, 5:13 pm)
[PATCH 05/12] perf, sched migration: Ignore unhandled task ..., Frederic Weisbecker, (Sun Aug 1, 5:13 pm)
[PATCH 06/12] perf, sched migration: Fix key bindings, Frederic Weisbecker, (Sun Aug 1, 5:13 pm)
[PATCH 07/12] perf, sched migration: Parameterize cpu heig ..., Frederic Weisbecker, (Sun Aug 1, 5:13 pm)
[PATCH 08/12] perf, sched migration: Make it vertically sc ..., Frederic Weisbecker, (Sun Aug 1, 5:13 pm)
[PATCH 09/12] perf, sched migration: Make the GUI class cl ..., Frederic Weisbecker, (Sun Aug 1, 5:13 pm)
[PATCH 10/12] perf, sched migration: Librarize the GUI class, Frederic Weisbecker, (Sun Aug 1, 5:13 pm)
[PATCH 11/12] perf, sched migration: Librarize task states ..., Frederic Weisbecker, (Sun Aug 1, 5:13 pm)
[PATCH 12/12] x86,mmiotrace: Add support for tracing STOS ..., Frederic Weisbecker, (Sun Aug 1, 5:13 pm)
Re: [GIT PULL] instrumentation updates, Ingo Molnar, (Sun Aug 1, 11:28 pm)