From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753066Ab0EJErs (ORCPT ); Mon, 10 May 2010 00:47:48 -0400 Received: from mail-vw0-f46.google.com ([209.85.212.46]:34682 "EHLO mail-vw0-f46.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751384Ab0EJErO (ORCPT ); Mon, 10 May 2010 00:47:14 -0400 DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=from:to:cc:subject:date:message-id:x-mailer:in-reply-to:references; b=EtYNSSorgCI6O/LF/o4kMZbh423usKuV/rqMMuXpWWHDyvlw1lpCpdPJSCRoypbk9D 1KbwjOScRFPNCpHQUYaiCH24zO8a0JOIg0TvHjdFa/xCtbHhf0227bOkuRFuJbRFRVqy Q0k6remrl4VhGdIWhy4DKq05RfOXyPFprnhdo= From: Tom Zanussi To: linux-kernel@vger.kernel.org Cc: mingo@elte.hu, fweisbec@gmail.com, acme@ghostprotocols.net Subject: [PATCH 8/9] perf/trace/scripting: syscall-counts-by-pid script cleanup Date: Sun, 9 May 2010 23:46:59 -0500 Message-Id: <1273466820-9330-9-git-send-email-tzanussi@gmail.com> X-Mailer: git-send-email 1.6.4.GIT In-Reply-To: <1273466820-9330-1-git-send-email-tzanussi@gmail.com> References: <1273466820-9330-1-git-send-email-tzanussi@gmail.com> Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org A small fix for the syscall counts by pid script: - silence the match output in the shell script Signed-off-by: Tom Zanussi --- .../python/bin/syscall-counts-by-pid-report | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/tools/perf/scripts/python/bin/syscall-counts-by-pid-report b/tools/perf/scripts/python/bin/syscall-counts-by-pid-report index c53362e..9e9d8dd 100644 --- a/tools/perf/scripts/python/bin/syscall-counts-by-pid-report +++ b/tools/perf/scripts/python/bin/syscall-counts-by-pid-report @@ -2,7 +2,7 @@ # description: system-wide syscall counts, by pid # args: [comm] if [ $# -gt 0 ] ; then - if ! expr match "$1" "-" ; then + if ! expr match "$1" "-" > /dev/null ; then comm=$1 shift fi -- 1.6.4.GIT