From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-19.0 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,INCLUDES_CR_TRAILER,INCLUDES_PATCH, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 60386C433DB for ; Thu, 4 Mar 2021 01:01:46 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 43C5464F40 for ; Thu, 4 Mar 2021 01:01:46 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1351484AbhCDBBn (ORCPT ); Wed, 3 Mar 2021 20:01:43 -0500 Received: from mail.kernel.org ([198.145.29.99]:39416 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1452956AbhCDAj6 (ORCPT ); Wed, 3 Mar 2021 19:39:58 -0500 Received: by mail.kernel.org (Postfix) with ESMTPSA id 7724664F39; Thu, 4 Mar 2021 00:38:16 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1614818296; bh=n6LhP0Y12SLSBIwlyZzUt0iEBJge2w42uCMwLkPnLj8=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=XKEubHRjs7ZXP27q45SqHOMUF7oBRkwSd5BlRhtn4AKmkNWdDBbVGi4mmmekcpBaK Mgrjd7MIpPkUCt+OqR3zf3EzAJPtQ4VDpjTfpNlWyCR4NTR7ZG1TnZSjbq5FKJnaLq j2L8ANt8FOZ7n0NvEr5hWrKbHrSMdvvCEyZfff0qVaalrn4s7mQkiNpWZC0SZh0ywa O3A5TIzsqGMgLihW15l/EuMZXwg6UQJ5HBhhp8gv5iReNFvbQ55HC63s0aOOLZ/cMK 6xuM0GAgPJTbmqdk1n4jC+TOnW2cJ9xHDthj0mJJUOe72IOM6mgvsjtmjMok6DM0EC ggBnEUtsCKMoQ== From: paulmck@kernel.org To: rcu@vger.kernel.org Cc: linux-kernel@vger.kernel.org, kernel-team@fb.com, mingo@kernel.org, jiangshanlai@gmail.com, akpm@linux-foundation.org, mathieu.desnoyers@efficios.com, josh@joshtriplett.org, tglx@linutronix.de, peterz@infradead.org, rostedt@goodmis.org, dhowells@redhat.com, edumazet@google.com, fweisbec@gmail.com, oleg@redhat.com, joel@joelfernandes.org, "Paul E. McKenney" Subject: [PATCH tip/core/rcu 17/28] torture: Remove no-mpstat error message Date: Wed, 3 Mar 2021 16:38:01 -0800 Message-Id: <20210304003812.24833-17-paulmck@kernel.org> X-Mailer: git-send-email 2.9.5 In-Reply-To: <20210304003750.GA24696@paulmck-ThinkPad-P72> References: <20210304003750.GA24696@paulmck-ThinkPad-P72> Precedence: bulk List-ID: X-Mailing-List: rcu@vger.kernel.org From: "Paul E. McKenney" The cpus2use.sh script complains if the mpstat command is not available, and instead uses all available CPUs. Unfortunately, this complaint goes to stdout, where it confuses invokers who expect a single number. This commit removes this error message in order to avoid this confusion. The tendency of late has been to give rcutorture a full system, so this should not cause issues. Signed-off-by: Paul E. McKenney --- tools/testing/selftests/rcutorture/bin/cpus2use.sh | 1 - 1 file changed, 1 deletion(-) diff --git a/tools/testing/selftests/rcutorture/bin/cpus2use.sh b/tools/testing/selftests/rcutorture/bin/cpus2use.sh index 1dbfb62..6bb9930 100755 --- a/tools/testing/selftests/rcutorture/bin/cpus2use.sh +++ b/tools/testing/selftests/rcutorture/bin/cpus2use.sh @@ -21,7 +21,6 @@ then awk -v ncpus=$ncpus '{ print ncpus * ($7 + $NF) / 100 }'` else # No mpstat command, so use all available CPUs. - echo The mpstat command is not available, so greedily using all CPUs. idlecpus=$ncpus fi awk -v ncpus=$ncpus -v idlecpus=$idlecpus < /dev/null ' -- 2.9.5