Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752314Ab0HBANt (ORCPT ); Sun, 1 Aug 2010 20:13:49 -0400 Received: from mail-wy0-f174.google.com ([74.125.82.174]:56235 "EHLO mail-wy0-f174.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752206Ab0HBANb (ORCPT ); Sun, 1 Aug 2010 20:13:31 -0400 DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=from:to:cc:subject:date:message-id:x-mailer:x-mailer-version :in-reply-to:references; b=Kmy8Fl0o4acJaRhCJHPHQFS1qHEQNLqdFYB/cKAVPhYG7ZpS2bPkn988nJCVKlHGaL eWsUdt7fGOlpDDeN4t99Qdof2glc8gkt48C1IztYSgLV9/eDjUAkzwFXR599z9xID5Zo tmNShxTryytyhsGG5oghNisDdsYbNS0QfZN4Y= From: Frederic Weisbecker To: Ingo Molnar Cc: LKML , Frederic Weisbecker , Ingo Molnar , Peter Zijlstra , Arnaldo Carvalho de Melo , Paul Mackerras , Nikhil Rao , Tom Zanussi Subject: [PATCH 05/12] perf, sched migration: Ignore unhandled task states Date: Mon, 2 Aug 2010 02:13:06 +0200 Message-Id: <1280707993-6599-6-git-send-regression-fweisbec@gmail.com> X-Mailer: git-send-regression X-Mailer-version: 0.1, "The maintainer couldn't reproduce after one week full time debugging" special version. In-Reply-To: <1280707993-6599-1-git-send-regression-fweisbec@gmail.com> References: <1280707993-6599-1-git-send-regression-fweisbec@gmail.com> Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1223 Lines: 37 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 Cc: Ingo Molnar Cc: Peter Zijlstra Cc: Arnaldo Carvalho de Melo Cc: Paul Mackerras Cc: Nikhil Rao Cc: Tom Zanussi --- 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 -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/