Received: by 2002:ab2:6816:0:b0:1f9:5764:f03e with SMTP id t22csp2529640lqo; Mon, 20 May 2024 08:31:46 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCW7Mr4QUbuXe0TlYwQPuQor/q4BbbQpLbPR0wvoTvoPPAHV9LFBhN7h+b273zAoKWD7iLhXqeHavM3z2KZw9kg9HeA91jOxtng/n7p0xg== X-Google-Smtp-Source: AGHT+IE/wz+Q4kF9TV/g8Xnu5ynSn4ltTOOl4mxlMakvsz6MZkhOZA6IcBN+Fk0fz9KyEVlthglb X-Received: by 2002:a17:903:1107:b0:1ec:2e23:4c92 with SMTP id d9443c01a7336-1ef433d3299mr324917555ad.0.1716219106645; Mon, 20 May 2024 08:31:46 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1716219106; cv=pass; d=google.com; s=arc-20160816; b=hygUzIUnKyuqh0P+V4vHXRwk8f7osPtAhXJ1A8mqGaEmLnMviAj2R5h7IbaKIpiVH4 WQoZS1JbPKdKJZlgPXaRr+/EcRWo1uPiybd6TIGPDAVx+LTT9aUO1nkXFz4ou4c5rjGj haXYP9paIeru1F0koMquQfmvUHHWfb303I+1NcPpGANbLuFUh6MkKs3dc0AI7fSzZtCL BCOiZ21InkJCDPGd3jLmcBd3d5Jh/5LLdz7lDBB5H1zkYNmlEfKiQqfaggNhTuj/7wi4 AF/ahq2ud8c6330ox4NxsWQRVuCBsViU1v3VvW3/BXDmy/ZmxsQaxRGEbGXQq95vAhw4 NcsQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:in-reply-to:message-id :date:subject:cc:to:from:dkim-signature; bh=bdHm4PODKUq82cZu+6r19XiQGOhmN7C8rzVO+E726nM=; fh=3qdKZaZnWy2Zq4/Kg/IJyvunFN5PAGmH2zs2MHj5FgQ=; b=vsYe5huZRE4T8lKFrCpJFqDusYpqOxlvuyQDEGfCurXDRXEjn9VxA9S/EWtsge20PZ 1LmVeS4A2i9DR/RQZTJ/zCQ0+AfPG+k/DtinPLOogZfjKFOJYv453zS79vfHTa/fHsVE CW7lCIabpN9LTKu0uvGS4RTCVjG7NwwvMB132vkXBe8A4ZXQ8dOE2XeocGBkLJAd9kfW F3cgdBK439jPnokfv7F+utzc9epQIsx/OWwwQuGPRpxb3zCoca3HbDOjN6v6DpXIA4F8 TocD7f+mZTNJzIIhEJWIkhdfSiF6ZJ4PJkEXxgl2AdrAx65fMmboWu+LmCtcu1Uix433 Vo+w==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b="YP/J42fq"; arc=pass (i=1 dkim=pass dkdomain=intel.com dmarc=pass fromdomain=linux.intel.com); spf=pass (google.com: domain of linux-kernel+bounces-183731-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-183731-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [2604:1380:40f1:3f00::1]) by mx.google.com with ESMTPS id d9443c01a7336-1ef0b9cf591si222432905ad.111.2024.05.20.08.31.46 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 20 May 2024 08:31:46 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-183731-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) client-ip=2604:1380:40f1:3f00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b="YP/J42fq"; arc=pass (i=1 dkim=pass dkdomain=intel.com dmarc=pass fromdomain=linux.intel.com); spf=pass (google.com: domain of linux-kernel+bounces-183731-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-183731-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sy.mirrors.kernel.org (Postfix) with ESMTPS id 5CD94B20A87 for ; Mon, 20 May 2024 12:31:28 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id A62165674E; Mon, 20 May 2024 12:31:02 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b="YP/J42fq" Received: from mgamail.intel.com (mgamail.intel.com [198.175.65.19]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 8369556440; Mon, 20 May 2024 12:31:00 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=198.175.65.19 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1716208261; cv=none; b=WDarpAMFoRYDJG1WYOWYTZNK4Z97tzk3JR4SnSmADyk5nTPf0EaB+hDRPCaEJpCgCrCwqFPOzvh+kSNgBeTG2hVMfyRPFtDBMzBtqgkgPGGmb1jO51uOb0Fh47xMIrTTf18cNLcTV9ODy7oTmNWg7ulrVyzd7eZWttn5Bk4QqpI= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1716208261; c=relaxed/simple; bh=qciJp89w73IYXrwUHbmWOg2Gey9XF1Mn/Uim9/b41Og=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version:Content-Type; b=VUeTnGKjcy9h19gmr9folGHr5U5VKU+W5k72ebO8TVL+Jqb6SjJVM5F7g+V2HLVfM48zFWGA/XofqoOiMrWwPOROsuHR7zr70vayyjf5Ykm3ILD9YPbwLvTcXb4qoz39PRGbGwTmLLjWBK1s7knHtyAsmxF3CnpvCWOTCD2IJME= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.intel.com; spf=none smtp.mailfrom=linux.intel.com; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b=YP/J42fq; arc=none smtp.client-ip=198.175.65.19 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.intel.com Authentication-Results: smtp.subspace.kernel.org; spf=none smtp.mailfrom=linux.intel.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1716208260; x=1747744260; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=qciJp89w73IYXrwUHbmWOg2Gey9XF1Mn/Uim9/b41Og=; b=YP/J42fqH5gVydWGjkc9agBnF0+n3OlTXsCIqYmylFKY4Rubx/BoNzKt B/Dk8KYA6197cL80BvM1AVPuLcFcZKrB0gKTMZKwDA2JzAciX6xfIHC66 i7OZP8APJlenQx8GIMume9YyFaoMwoLLFPdykib0aTFGSOTIQFbQu1xab Iuv5mXKX4WuxyDJvSZED9MFuy1apHZFGnCvYfDkS6rmvPchFU7XuhW/jn y092rQag+efYxa3/zkh5P0ldQ33l7fGUGvF4VfMWcML6vrGTpy7GvXtXj hTMwEF8B4Gq0AjEx+bS/aMisK3dqF4ZTwL4ZhIetvtClCNRj2MeNSQh0p A==; X-CSE-ConnectionGUID: 5sfbBTevRF6HNyL11oIG2Q== X-CSE-MsgGUID: pWY9/B8bR1qRa3YODbDBtQ== X-IronPort-AV: E=McAfee;i="6600,9927,11078"; a="12180314" X-IronPort-AV: E=Sophos;i="6.08,175,1712646000"; d="scan'208";a="12180314" Received: from orviesa008.jf.intel.com ([10.64.159.148]) by orvoesa111.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 20 May 2024 05:31:00 -0700 X-CSE-ConnectionGUID: WQDHJ4k+Rs6N/1R1Anz/NA== X-CSE-MsgGUID: A2Axa0apSSCuTMtQIjbAXQ== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.08,175,1712646000"; d="scan'208";a="33091062" Received: from unknown (HELO localhost) ([10.245.247.114]) by orviesa008-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 20 May 2024 05:30:57 -0700 From: =?UTF-8?q?Ilpo=20J=C3=A4rvinen?= To: linux-kselftest@vger.kernel.org, Reinette Chatre , Shuah Khan , Babu Moger , =?UTF-8?q?Maciej=20Wiecz=C3=B3r-Retman?= Cc: linux-kernel@vger.kernel.org, Fenghua Yu , Shuah Khan , =?UTF-8?q?Ilpo=20J=C3=A4rvinen?= Subject: [PATCH v4 03/16] selftests/resctrl: Make "bandwidth" consistent in comments & prints Date: Mon, 20 May 2024 15:30:07 +0300 Message-Id: <20240520123020.18938-4-ilpo.jarvinen@linux.intel.com> X-Mailer: git-send-email 2.39.2 In-Reply-To: <20240520123020.18938-1-ilpo.jarvinen@linux.intel.com> References: <20240520123020.18938-1-ilpo.jarvinen@linux.intel.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Resctrl selftests refer to "bandwidth" currently in two other forms in the code ("B/W" and "band width"). Use "bandwidth" consistently everywhere. While at it, fix also one "over flow" -> "overflow" on a line that is touched by the change. Suggested-by: Reinette Chatre Signed-off-by: Ilpo Järvinen --- v3: - New patch --- tools/testing/selftests/resctrl/resctrl_val.c | 14 +++++++------- tools/testing/selftests/resctrl/resctrlfs.c | 2 +- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/tools/testing/selftests/resctrl/resctrl_val.c b/tools/testing/selftests/resctrl/resctrl_val.c index bd5a1cbb8a21..126a9cad588b 100644 --- a/tools/testing/selftests/resctrl/resctrl_val.c +++ b/tools/testing/selftests/resctrl/resctrl_val.c @@ -361,11 +361,11 @@ static void do_imc_mem_bw_test(void) } /* - * get_mem_bw_imc - Memory band width as reported by iMC counters + * get_mem_bw_imc - Memory bandwidth as reported by iMC counters * @bw_report: Bandwidth report type (reads, writes) * - * Memory B/W utilized by a process on a socket can be calculated using - * iMC counters. Perf events are used to read these counters. + * Memory bandwidth utilized by a process on a socket can be calculated + * using iMC counters. Perf events are used to read these counters. * * Return: = 0 on success. < 0 on failure. */ @@ -379,7 +379,7 @@ static int get_mem_bw_imc(char *bw_report, float *bw_imc) /* * Get results which are stored in struct type imc_counter_config - * Take over flow into consideration before calculating total b/w + * Take overflow into consideration before calculating total bandwidth. */ for (imc = 0; imc < imcs; imc++) { struct imc_counter_config *r = @@ -389,13 +389,13 @@ static int get_mem_bw_imc(char *bw_report, float *bw_imc) if (read(r->fd, &r->return_value, sizeof(struct membw_read_format)) == -1) { - ksft_perror("Couldn't get read b/w through iMC"); + ksft_perror("Couldn't get read bandwidth through iMC"); goto close_fds; } if (read(w->fd, &w->return_value, sizeof(struct membw_read_format)) == -1) { - ksft_perror("Couldn't get write bw through iMC"); + ksft_perror("Couldn't get write bandwidth through iMC"); goto close_fds; } @@ -498,7 +498,7 @@ static FILE *open_mem_bw_resctrl(const char *mbm_bw_file) fp = fopen(mbm_bw_file, "r"); if (!fp) - ksft_perror("Failed to open total bw file"); + ksft_perror("Failed to open total memory bandwidth file"); return fp; } diff --git a/tools/testing/selftests/resctrl/resctrlfs.c b/tools/testing/selftests/resctrl/resctrlfs.c index 1cade75176eb..9b86f826a40c 100644 --- a/tools/testing/selftests/resctrl/resctrlfs.c +++ b/tools/testing/selftests/resctrl/resctrlfs.c @@ -850,7 +850,7 @@ int validate_bw_report_request(char *bw_report) if (strcmp(bw_report, "total") == 0) return 0; - fprintf(stderr, "Requested iMC B/W report type unavailable\n"); + fprintf(stderr, "Requested iMC bandwidth report type unavailable\n"); return -1; } -- 2.39.2