Message ID | 20230808091625.12760-3-ilpo.jarvinen@linux.intel.com |
---|---|
State | New |
Headers |
Return-Path: <linux-kernel-owner@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:c44e:0:b0:3f2:4152:657d with SMTP id w14csp2335428vqr; Tue, 8 Aug 2023 12:06:10 -0700 (PDT) X-Google-Smtp-Source: AGHT+IF+2l3qAr0ulR78vb/8wexwSwLkz9F34vpYLVeqJYi8ImVHbHObrbQfK0FiqxtPZzVv7LmR X-Received: by 2002:a17:906:2098:b0:99b:dfd7:b0d3 with SMTP id 24-20020a170906209800b0099bdfd7b0d3mr488856ejq.56.1691521569926; Tue, 08 Aug 2023 12:06:09 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1691521569; cv=none; d=google.com; s=arc-20160816; b=h/HD91ouo88MgSu0j1GV68DTNIlv6ponvZ05gMtGAYN2trJujC2JbYJskZRPUx5WIp Z097u3Il4Tf8qMvzhIbCf3Pg27iQN1lqXkXXDkwYL16NzCSP/eA19PeazsEHKJdYIIPg nIba9DRYDbwJuhCuYcuMac6Lste0GCUd9ON8pd7rqXwghlbJ+Z8eZXkNFRbDiB+iB6N2 bLBVAE6LJgPDP7gomwQOxmLhhuXIYFqEdp6U8175BzFHxCq5KXdVh3ePl+daiiMmt2UI 62Zu+ZeysNbmmbDs7DzJVbZkgB+2H9IcyaJJStPE2x5eRoiWzh0J8Cw6G8vqnh6puat+ nZrQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=GQPMg0AKUeSq8pI4DYvzRfvQuCk0/fqrzP/dnYQ/cPo=; fh=132CRq0ur365STNzu8VXipOq/E3MGxUHgLti/Ke7hJQ=; b=zV1aMD7dp/XQrkdkJjQFNDbfiehT9gLYaCPiMdd+I8s9B2mNgZxEN+09aawqbnTFD1 TtEri1EkSCLMwQW5YBGBqJt9Sk1q8HobhjRpm+MPwKqHGBodHX7j60afNkZ1A2zzcjzs vV89/QTU/n6Qnr0UFos9QdWFf2BGzyRJ/jCYG2x/IRAlfPqBDYZ+eLzBrlm4iulT9IHA NEAEyFtTdaxbAC2bVGmD9ySmNutM/Oo5OICtfvYF2TY+CwdccjbYqJgED5RlbxYecmFE vxY7EdzPXSOBihy77+9+KGneigqPfLCvZuFov12QeEpSgwizS7ovYqzSWYLsBVwIhCNO 9iCQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=CQTjpA8i; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id b13-20020a17090636cd00b00992f3097ed4si7856095ejc.871.2023.08.08.12.05.45; Tue, 08 Aug 2023 12:06:09 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=CQTjpA8i; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233341AbjHHQov (ORCPT <rfc822;aaronkmseo@gmail.com> + 99 others); Tue, 8 Aug 2023 12:44:51 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42398 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233274AbjHHQoE (ORCPT <rfc822;linux-kernel@vger.kernel.org>); Tue, 8 Aug 2023 12:44:04 -0400 Received: from mgamail.intel.com (mgamail.intel.com [134.134.136.100]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 8FB7216547; Tue, 8 Aug 2023 08:56:00 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1691510160; x=1723046160; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=44qcFfPgOPF1nNCkD6ovAxhht6T0z28KP0zXyDSu3o8=; b=CQTjpA8irb+ry8ioYChI4RkEkBdN3LKCKl61nNLO3ReBFogm9yb3IiQ0 /Rts2Ax19NONor0HIKH3aEB82ybxwRyMMSQ6WqrVdKUzdHyUZfkK4tP4G Ax9Wq8lgqzKO8H+Sgd1DStAnTAKEeUw7GGpJdDEP6abZYX0grYyTnJaAQ Pt33Q0sRtZncdiGvaB9Z0CrBjzo5Y8OK9qmCdWC7Xo34kH05nctc1ZQPM Jn4hqUYlNsjWkbktC6DPfMGUzjSI5LjA0dK3Fm1dsUCyELW/jw+Je5E/L EZ+14iUaS29C848rsUjg/CD8OqM3W8IVPWOWm1D6phB7aeIqamHl7aUUv w==; X-IronPort-AV: E=McAfee;i="6600,9927,10795"; a="437097832" X-IronPort-AV: E=Sophos;i="6.01,263,1684825200"; d="scan'208";a="437097832" Received: from fmsmga006.fm.intel.com ([10.253.24.20]) by orsmga105.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 08 Aug 2023 02:16:47 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10795"; a="977776861" X-IronPort-AV: E=Sophos;i="6.01,263,1684825200"; d="scan'208";a="977776861" Received: from mtofeni-mobl.ger.corp.intel.com (HELO ijarvine-mobl2.ger.corp.intel.com) ([10.252.48.21]) by fmsmga006-auth.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 08 Aug 2023 02:16:45 -0700 From: =?utf-8?q?Ilpo_J=C3=A4rvinen?= <ilpo.jarvinen@linux.intel.com> To: Shuah Khan <skhan@linuxfoundation.org>, linux-kselftest@vger.kernel.org, Shuah Khan <shuah@kernel.org>, Reinette Chatre <reinette.chatre@intel.com>, Maciej Wieczor-Retman <maciej.wieczor-retman@intel.com>, Fenghua Yu <fenghua.yu@intel.com>, linux-kernel@vger.kernel.org Cc: Shaopeng Tan <tan.shaopeng@jp.fujitsu.com>, =?utf-8?q?Ilpo_J=C3=A4rvinen?= <ilpo.jarvinen@linux.intel.com> Subject: [PATCH 2/7] selftests/resctrl: Correct benchmark command help Date: Tue, 8 Aug 2023 12:16:20 +0300 Message-Id: <20230808091625.12760-3-ilpo.jarvinen@linux.intel.com> X-Mailer: git-send-email 2.30.2 In-Reply-To: <20230808091625.12760-1-ilpo.jarvinen@linux.intel.com> References: <20230808091625.12760-1-ilpo.jarvinen@linux.intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-2.0 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_EF,RCVD_IN_DNSWL_BLOCKED, SPF_HELO_NONE,SPF_NONE,URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: <linux-kernel.vger.kernel.org> X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1773688921662652077 X-GMAIL-MSGID: 1773688921662652077 |
Series |
selftests/resctrl: Rework benchmark command handling
|
|
Commit Message
Ilpo Järvinen
Aug. 8, 2023, 9:16 a.m. UTC
Benchmark command must be the last argument because it consumes all the
remaining arguments but help misleadingly shows it as the first
argument. The benchmark command is also shown in quotes but it does not
match with the code.
Correct -b argument place in the help message and remove the quotes.
Tweak also how the options are presented by using ... notation.
Signed-off-by: Ilpo Järvinen <ilpo.jarvinen@linux.intel.com>
---
tools/testing/selftests/resctrl/resctrl_tests.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/tools/testing/selftests/resctrl/resctrl_tests.c b/tools/testing/selftests/resctrl/resctrl_tests.c index eef9e02516ad..559868b16079 100644 --- a/tools/testing/selftests/resctrl/resctrl_tests.c +++ b/tools/testing/selftests/resctrl/resctrl_tests.c @@ -52,7 +52,7 @@ int get_vendor(void) static void cmd_help(void) { - printf("usage: resctrl_tests [-h] [-b \"benchmark_cmd [options]\"] [-t test list] [-n no_of_bits]\n"); + printf("usage: resctrl_tests [-h] [-t test list] [-n no_of_bits] [-b benchmark_cmd [option]...]\n"); printf("\t-b benchmark_cmd [options]: run specified benchmark for MBM, MBA and CMT\n"); printf("\t default benchmark is builtin fill_buf\n"); printf("\t-t test list: run tests specified in the test list, ");