Received: by 2002:a25:e7d8:0:0:0:0:0 with SMTP id e207csp208729ybh; Fri, 6 Mar 2020 19:46:42 -0800 (PST) X-Google-Smtp-Source: ADFU+vtiYoOP2koSV/wbOOZ/HDt5iLDpMvyvQUZYAVArzRKCSPIbSyoL0071Dz4TpMDnHpuaTjjd X-Received: by 2002:a05:6830:1290:: with SMTP id z16mr5381974otp.231.1583552802051; Fri, 06 Mar 2020 19:46:42 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1583552802; cv=none; d=google.com; s=arc-20160816; b=CN//rmc/j6d1dpugSwaptOfFbKyJ8ZgIAeJf7o228/9dRYV39FljMesv6wNV9w2ax4 8YhMmXkb3TzjyQTYpVXcZO58pYJOPGJlp068WDi38eK9wXeIYjJ/yh7zDvkLMgyU90X8 s8RLknseFw1tHZsgMCjSftX8iUGh4LBLJHcB1GtRO2ZzQVt/JerK1IjWhK8CpFMOiNU/ ST0pDDEqcpzclWtaYzUi/u9L1Cnb5tDKbqFMjdfA//N+pJsHQw0sjxTnmK2xAlzwDfC/ 9bL9k1FDcoI8j/8949NZOF9CFwLkH6xmFhxlyZ8hLfkceoVAfNtodxuY2//tmL9Yblq+ Q51w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from; bh=hBcT3eOYVmemSNcLXs+Yyn+F0dYw2dMJg+bEMwgaLEw=; b=lOeeOIHiBQdphewyg2OByhykdqPpd0g7JASG2MrgPoqHHZWcDwCp7NTY50doMos+LD UxgiP3tzQPCJ76XG7ZSYiXFWMWuDt2Lg/Jw7YTa79YdFvAPGSnb6bibn+UozhyGSRAca 6wQuFjY5z7fOGwugXEKO+XAUn7fhxmtwyb3rW7IsjMnjURM6nWEXDvu7ZgygA7c0sob4 eMRQZVxggLm0gOlURkQKEvnTCPOahLdTZXzSBgGqwrY4tH3F9ynB2pUHWFoG+2LJKbcp WSH4hiERZfoafcaeZ4cy7uLkt+0JnaR1or3wSbPtCjlaGXO/BPnK/kWZYy0wZ59NkTLr IK+Q== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id e5si807075oie.209.2020.03.06.19.46.30; Fri, 06 Mar 2020 19:46:42 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726859AbgCGDqJ (ORCPT + 99 others); Fri, 6 Mar 2020 22:46:09 -0500 Received: from mga11.intel.com ([192.55.52.93]:57577 "EHLO mga11.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726300AbgCGDqJ (ORCPT ); Fri, 6 Mar 2020 22:46:09 -0500 X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from fmsmga008.fm.intel.com ([10.253.24.58]) by fmsmga102.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 06 Mar 2020 19:46:09 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.70,524,1574150400"; d="scan'208";a="235035981" Received: from sai-dev-mach.sc.intel.com ([143.183.140.153]) by fmsmga008.fm.intel.com with ESMTP; 06 Mar 2020 19:46:08 -0800 From: Sai Praneeth Prakhya To: shuah@kernel.org, linux-kselftest@vger.kernel.org Cc: tglx@linutronix.de, mingo@redhat.com, bp@alien8.de, tony.luck@intel.com, reinette.chatre@intel.com, babu.moger@amd.com, james.morse@arm.com, ravi.v.shankar@intel.com, fenghua.yu@intel.com, x86@kernel.org, linux-kernel@vger.kernel.org, Sai Praneeth Prakhya Subject: [PATCH V1 00/13] Miscellaneous fixes for resctrl selftests Date: Fri, 6 Mar 2020 19:40:41 -0800 Message-Id: X-Mailer: git-send-email 2.19.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org This patch set has several miscellaneous fixes to resctrl selftest tool. Some fixes are minor in nature while other are major fixes. The minor fixes are 1. Typos, comment format 2. Fix MBA feature detection 3. Fix a bug while selecting sibling cpu 4. Remove unnecessary use of variable arguments 5. Change MBM/MBA results reporting format from absolute values to percentage The major fixes are changing CAT and CQM test cases. CAT test wasn't testing CAT as it isn't using the cache it's allocated, hence, change the test case to test noisy neighbor use case. CAT guarantees a user specified amount of cache for a process or a group of processes, hence test this use case. The updated test case checks if critical process is impacted by noisy neighbor or not. If it's impacted the test fails. The present CQM test assumes that all the allocated memory (size less than LLC size) for a process will fit into cache and there won't be any overlappings. While this is mostly true, it cannot be *always* true by the nature of how cache works i.e. two addresses could index into same cache line. Hence, change CQM test such that it now uses CAT. Allocate a specific amount of cache using CAT and check if CQM reports more than what CAT has allocated. Fenghua Yu (1): selftests/resctrl: Fix missing options "-n" and "-p" Reinette Chatre (4): selftests/resctrl: Fix feature detection selftests/resctrl: Fix typo selftests/resctrl: Fix typo in help text selftests/resctrl: Ensure sibling CPU is not same as original CPU Sai Praneeth Prakhya (8): selftests/resctrl: Fix MBA/MBM results reporting format selftests/resctrl: Don't use variable argument list for setup function selftests/resctrl: Fix typos selftests/resctrl: Modularize fill_buf for new CAT test case selftests/resctrl: Change Cache Allocation Technology (CAT) test selftests/resctrl: Change Cache Quality Monitoring (CQM) test selftests/resctrl: Dynamically select buffer size for CAT test selftests/resctrl: Cleanup fill_buff after changing CAT test tools/testing/selftests/resctrl/cache.c | 179 ++++++++----- tools/testing/selftests/resctrl/cat_test.c | 322 +++++++++++++----------- tools/testing/selftests/resctrl/cqm_test.c | 210 +++++++++------- tools/testing/selftests/resctrl/fill_buf.c | 113 ++++++--- tools/testing/selftests/resctrl/mba_test.c | 32 ++- tools/testing/selftests/resctrl/mbm_test.c | 33 ++- tools/testing/selftests/resctrl/resctrl.h | 19 +- tools/testing/selftests/resctrl/resctrl_tests.c | 26 +- tools/testing/selftests/resctrl/resctrl_val.c | 22 +- tools/testing/selftests/resctrl/resctrlfs.c | 52 +++- 10 files changed, 592 insertions(+), 416 deletions(-) -- 2.7.4