From patchwork Mon Jun 10 15:14:56 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: 803103 Received: from mgamail.intel.com (mgamail.intel.com [198.175.65.12]) (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 4E4141420DD; Mon, 10 Jun 2024 15:17:23 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=198.175.65.12 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1718032644; cv=none; b=bbfKVOsv9BHPcHk9KKry//t0O86s91mbvLi5DLJbYUbLYo/jjmxjUCKNUPhrEbrEU0n9LnY228ZxmIeGBCex2L0t/3C8dadX1cA0P+WUKqlWc+mtioZCpIlnC48zbicPCKp3c3EL9ou29yRHFnPLtZOQ+L3mO4pDkWfL5WPL4Ro= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1718032644; c=relaxed/simple; bh=eheohbSQURPQS0WEawrCBZbNeF43tCvxTAbYaEVSAm8=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version:Content-Type; b=ACpUnbot17G+Zckh8XN4UIcg28Gw5tbDUOL/zg81x0Hf4g2z2MRwBYn1WCgdYAm0V4D0A918AJi3X62xN51J87YRT4T8qL2x4dbCm/uBIdLkxP3NiPghRMTbtOEmNBej/fAmZZ4r/HaHKiWRrF5dPXQRH3APOFDUAGhZHalYS6Y= 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=As0sHoW9; arc=none smtp.client-ip=198.175.65.12 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="As0sHoW9" DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1718032644; x=1749568644; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=eheohbSQURPQS0WEawrCBZbNeF43tCvxTAbYaEVSAm8=; b=As0sHoW9+/kWnfPXRSYe74WNXKUmRPRYK4844VVLCrzH2mBp8lNZe6WO MoRYUQIAaSYJa0A5VwU4fXq2maF32kIpEzB93AvCzetiH25S8A/n4evDI QglzULCMUZSpxxAOmgKg5r4cIlUzXxk8dgo5e5n5XCT6Cs5qVawRWOJYr Vi9i3jObPAO6Xd7BOBRIwYaR2i3OFuO765dhjz/eWC7xqpNnD2mUVAdVF iNr9w1EqOoaljhEp5hREx4mn+i9Dlrt3GdXLOWqyhi7dQwllDXrH0rDyV UIIDrQM6azCZekQg/scd5WegUAk2QI3XGXpo8zob10eaerltbeTTvqoRq w==; X-CSE-ConnectionGUID: NLTR8XymQaOWyxse2p8ylg== X-CSE-MsgGUID: dVOu+rf7T0aQoZxsjCpJFg== X-IronPort-AV: E=McAfee;i="6600,9927,11099"; a="26115496" X-IronPort-AV: E=Sophos;i="6.08,227,1712646000"; d="scan'208";a="26115496" Received: from orviesa003.jf.intel.com ([10.64.159.143]) by orvoesa104.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 10 Jun 2024 08:17:23 -0700 X-CSE-ConnectionGUID: i+JHnuP/Rs+mKs2cFE9fIg== X-CSE-MsgGUID: MGaG4EiZSPW8wAfTGEH0qw== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.08,227,1712646000"; d="scan'208";a="44026637" Received: from ijarvine-desk1.ger.corp.intel.com (HELO localhost) ([10.245.247.194]) by ORVIESA003-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 10 Jun 2024 08:17:20 -0700 From: =?utf-8?q?Ilpo_J=C3=A4rvinen?= To: linux-kselftest@vger.kernel.org, Shuah Khan , Reinette Chatre , Babu Moger , =?utf-8?q?Maciej_Wiecz=C3=B3r-Retman?= Cc: Fenghua Yu , linux-kernel@vger.kernel.org, Shuah Khan , =?utf-8?q?Ilpo_J=C3=A4rvinen?= Subject: [PATCH v7 15/16] selftests/resctrl: Remove mongrp from CMT test Date: Mon, 10 Jun 2024 18:14:56 +0300 Message-Id: <20240610151457.7305-16-ilpo.jarvinen@linux.intel.com> X-Mailer: git-send-email 2.39.2 In-Reply-To: <20240610151457.7305-1-ilpo.jarvinen@linux.intel.com> References: <20240610151457.7305-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 Tested-by: Babu Moger Reviewed-by: Reinette Chatre --- v7: - Fix separator to use 3 dashes 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,