From patchwork Fri May 31 13:11:41 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?q?Ilpo_J=C3=A4rvinen?= X-Patchwork-Id: 800735 Received: from mgamail.intel.com (mgamail.intel.com [198.175.65.15]) (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 D13AE176AC9; Fri, 31 May 2024 13:14:23 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=198.175.65.15 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717161265; cv=none; b=h2gJE0pcvFrroPuwDr0kNAt1aU3Y4hMAsIxXqhn9wfoqoKET+nYnb/R5MhMxpXm7yRaGOfnt+QsDKHXIRHXD4vJcB0fsdVOFp6kWSKsqy3LX8CWsUtWaoMYOaNqysnZSY9EMDgXK0QG0y6yirsanmPGF1EILGYTwQIxLKjwwixY= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717161265; c=relaxed/simple; bh=CvFqSJiNzfsGJ0vkCckpwpi4AWMEa7rfewympWlIBiE=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version:Content-Type; b=q+/M9XZnAVOCxJpfrJCGZudgHMbyYUpTrhkthRewW46etlNpLUx1AXuEpYNw2ywpCvvv7TpfrinrHoDUdxY+qqw/zg/sMlwe7Gszhz9BCzZbG/7cGUxdFam6aROe0C2HVBaZdOo/CYQ1wgCLZtfXGeJT6jRqygLUM/O9H4Utbec= 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=cd7VRIKb; arc=none smtp.client-ip=198.175.65.15 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 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b="cd7VRIKb" DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1717161264; x=1748697264; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=CvFqSJiNzfsGJ0vkCckpwpi4AWMEa7rfewympWlIBiE=; b=cd7VRIKbbA5V8+XXP8VkesR6kroGd00OPp1Fzln14N5bMYXpkQCgBqcp HrozOO/1GZ0I7uckCb7TnDCdVfAnKOfkQnuzpZbZjWj2YtQdQMFFOssfR SyY/7jCzvcLnDlP0y7mXdAGHGhlpR10iDAeH5G+UFKQAzAKWi6PAnxAnA aeCAhy6aWiAQWztTgty8UoczdJN3t+0PRlkn3dtbw4yGJI2k2mDx6HF5m c0V0zp8L/mRGuiQTQlUiYc5Vj9O2cMwRe9q04haKuKh+UQJ2TmY2LLBeN CMQRkkNajmNdthJv4g82MTbD7WLxXGTUJn4lwLG+f5d7qFG/cVDTMKWRQ A==; X-CSE-ConnectionGUID: 0noPJ0dzSh6uLWNso3nWsQ== X-CSE-MsgGUID: /oTECt9dRqW7w+R5se8ITg== X-IronPort-AV: E=McAfee;i="6600,9927,11088"; a="17501591" X-IronPort-AV: E=Sophos;i="6.08,204,1712646000"; d="scan'208";a="17501591" Received: from orviesa009.jf.intel.com ([10.64.159.149]) by orvoesa107.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 31 May 2024 06:14:23 -0700 X-CSE-ConnectionGUID: xdABLVBuTx2nkFoeVUs5AQ== X-CSE-MsgGUID: 05NSAZhBSHCaDnD00btXsQ== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.08,204,1712646000"; d="scan'208";a="36240683" Received: from ijarvine-desk1.ger.corp.intel.com (HELO localhost) ([10.245.247.152]) by orviesa009-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 31 May 2024 06:14:21 -0700 From: =?utf-8?q?Ilpo_J=C3=A4rvinen?= To: linux-kselftest@vger.kernel.org, Reinette Chatre , Shuah Khan , Babu Moger , =?utf-8?q?Maciej_Wiecz=C3=B3r-Retman?= Cc: linux-kernel@vger.kernel.org, Fenghua Yu , Shuah Khan , =?utf-8?q?Ilpo_J=C3=A4rvinen?= Subject: [PATCH v5 15/16] selftests/resctrl: Remove mongrp from CMT test Date: Fri, 31 May 2024 16:11:41 +0300 Message-Id: <20240531131142.1716-16-ilpo.jarvinen@linux.intel.com> X-Mailer: git-send-email 2.39.2 In-Reply-To: <20240531131142.1716-1-ilpo.jarvinen@linux.intel.com> References: <20240531131142.1716-1-ilpo.jarvinen@linux.intel.com> Precedence: bulk X-Mailing-List: linux-kselftest@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 The CMT selftest instantiates a monitor group to read LLC occupancy. Since the test also creates a control group, it is unnecessary to create another one for monitoring because control groups already provide monitoring too. Remove the unnecessary monitor group from the CMT selftest. Suggested-by: Reinette Chatre Signed-off-by: Ilpo Järvinen Reviewed-by: Reinette Chatre --- v4: - New patch --- tools/testing/selftests/resctrl/cmt_test.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/tools/testing/selftests/resctrl/cmt_test.c b/tools/testing/selftests/resctrl/cmt_test.c index 238f514ba7e6..b63fa1e93307 100644 --- a/tools/testing/selftests/resctrl/cmt_test.c +++ b/tools/testing/selftests/resctrl/cmt_test.c @@ -17,12 +17,12 @@ #define MAX_DIFF_PERCENT 15 #define CON_MON_LCC_OCCUP_PATH \ - "%s/%s/mon_groups/%s/mon_data/mon_L3_%02d/llc_occupancy" + "%s/%s/mon_data/mon_L3_%02d/llc_occupancy" static int cmt_init(const struct resctrl_val_param *param, int domain_id) { sprintf(llc_occup_path, CON_MON_LCC_OCCUP_PATH, RESCTRL_PATH, - param->ctrlgrp, param->mongrp, domain_id); + param->ctrlgrp, domain_id); return 0; } @@ -146,7 +146,6 @@ static int cmt_run_test(const struct resctrl_test *test, const struct user_param struct resctrl_val_param param = { .resctrl_val = CMT_STR, .ctrlgrp = "c1", - .mongrp = "m1", .filename = RESULT_FILE_NAME, .mask = ~(long_mask << n) & long_mask, .num_of_runs = 0,