Received: by 2002:a05:6a10:7420:0:0:0:0 with SMTP id hk32csp489241pxb; Tue, 15 Feb 2022 19:35:34 -0800 (PST) X-Google-Smtp-Source: ABdhPJy4ansIzV6c+SBqAxC041oEf5chTCiTiJjeXpgnrel6zL79dz72Vm+yZDwtdHRO2Jfh93oA X-Received: by 2002:a17:906:3fc3:b0:6ce:3eda:95a4 with SMTP id k3-20020a1709063fc300b006ce3eda95a4mr728658ejj.271.1644982534211; Tue, 15 Feb 2022 19:35:34 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1644982534; cv=none; d=google.com; s=arc-20160816; b=Afds7lvRaqWkR0/IvE9mI8PH59iU6V1eCDB9S/OW0lpujy1mj+93yUZT40LQJREZwZ 5ghoswaR3cSwF+/ZGdS1dyNf2Dlb2uiE7JcZ+qxCmeaomHKUC1G8IMhECxNL6o2kjS49 rtExGHuPY1wZwG/NLKvrwU+sqHpgx/82rgPPdp/j3Gx7lLWHTMJkre817nvjkQUuSUBO rnhm8RESgcsblIhLpa/ICTxUGpWYefhNLj6bDC058hpCCj0vTUMSON1Y7S/U6/6EdMZa 8ilMNhAkOyGwa/V6dPhmmRq0ZdPDfPDAsxxXwD+6WClH9nwLgAN14a1EpdBXN4LNNrEb GG4g== 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 :ironport-sdr; bh=LcnZ6x/3BO6n1KUGbfwiNk0Oak33S6MthWWG0Z/KAYI=; b=a5rEUJPUfcZL+0rVwsOhqgtSzBOlEHTabmhNSP8KZbAsYXAHNN/Gz1TR3cRUDJzTON kHes+YpL+o8iYalBssbBrnGPIZ9dgxhCoqbr6Wrx2vOHvy+GKCTQo10QTYJnRJeSWqvG 2ufkfqdMTUmXV8Ojn3aezXRel35O0qrITh3n11pSacskQk4fFvM0VP8hprKyXZSQSzsz JDLJKHW4PgyRoYCjXsu7iQusmAyhhQ8GHs+mlkBFrL+TJ3z0kT82BzuzqIwLM2YYyt/5 TqUxQIIJcMGhhLqDhmEJZYmEGFCAmKXjvicj/hXphTSJ3op1GE1pQo7mU2ZKGOfRZxHh qhZA== ARC-Authentication-Results: i=1; mx.google.com; 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=fail (p=NONE sp=NONE dis=NONE) header.from=fujitsu.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id di2si28831393ejc.62.2022.02.15.19.35.09; Tue, 15 Feb 2022 19:35:34 -0800 (PST) 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; 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=fail (p=NONE sp=NONE dis=NONE) header.from=fujitsu.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1343737AbiBPCaD (ORCPT + 99 others); Tue, 15 Feb 2022 21:30:03 -0500 Received: from mxb-00190b01.gslb.pphosted.com ([23.128.96.19]:37030 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230075AbiBPCaB (ORCPT ); Tue, 15 Feb 2022 21:30:01 -0500 X-Greylist: delayed 64 seconds by postgrey-1.37 at lindbergh.monkeyblade.net; Tue, 15 Feb 2022 18:29:50 PST Received: from esa11.hc1455-7.c3s2.iphmx.com (esa11.hc1455-7.c3s2.iphmx.com [207.54.90.137]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 6E066F5437; Tue, 15 Feb 2022 18:29:50 -0800 (PST) IronPort-SDR: 57nfTPdI84U20D21PecGXc83Y9mI9d7w9oCCr6K4Geh5Eah3T+d1o5emFfxlCJrb3u+rwYbmM5 XPWHeIa2xEe2BY+LzYtxEZ0xDTWvb+YVE9SML/iHrWEjCvMSWEzV+FRCiiHawRZrA8vfqMpGws 5AAYOGsm2tkZMo0o19+d5uTGOaNBlnIpfVDh8eEEJtQS+MuiFmAr2PBcrUDbxlq4MXpbre6L7S Pa+ZLhqPyLBeuu9bvbDIpCQLbeFBE3qMqnWB01GnUXSM0Ph/fVQNzsQ2n+mYWKg1vmv/tQokhd Gw0dihpB8ebcy+suG4dgn9Ww X-IronPort-AV: E=McAfee;i="6200,9189,10259"; a="42653835" X-IronPort-AV: E=Sophos;i="5.88,371,1635174000"; d="scan'208";a="42653835" Received: from unknown (HELO oym-r2.gw.nic.fujitsu.com) ([210.162.30.90]) by esa11.hc1455-7.c3s2.iphmx.com with ESMTP; 16 Feb 2022 11:28:44 +0900 Received: from oym-m4.gw.nic.fujitsu.com (oym-nat-oym-m4.gw.nic.fujitsu.com [192.168.87.61]) by oym-r2.gw.nic.fujitsu.com (Postfix) with ESMTP id 63097F030A; Wed, 16 Feb 2022 11:28:43 +0900 (JST) Received: from yto-om4.fujitsu.com (yto-om4.o.css.fujitsu.com [10.128.89.165]) by oym-m4.gw.nic.fujitsu.com (Postfix) with ESMTP id 2C7F0D69CC; Wed, 16 Feb 2022 11:28:42 +0900 (JST) Received: from cn-r05-10.example.com (n3235113.np.ts.nmh.cs.fujitsu.co.jp [10.123.235.113]) by yto-om4.fujitsu.com (Postfix) with ESMTP id E942E40078D9D; Wed, 16 Feb 2022 11:28:41 +0900 (JST) From: Shaopeng Tan To: Fenghua Yu , Reinette Chatre , Shuah Khan Cc: linux-kernel@vger.kernel.org, linux-kselftest@vger.kernel.org, tan.shaopeng@jp.fujitsu.com Subject: [PATCH v3 3/5] selftests/resctrl: Update README about using kselftest framework to build/run resctrl_tests Date: Wed, 16 Feb 2022 11:26:39 +0900 Message-Id: <20220216022641.2998318-4-tan.shaopeng@jp.fujitsu.com> X-Mailer: git-send-email 2.27.0 In-Reply-To: <20220216022641.2998318-1-tan.shaopeng@jp.fujitsu.com> References: <20220216022641.2998318-1-tan.shaopeng@jp.fujitsu.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-TM-AS-GCONF: 00 X-Spam-Status: No, score=-4.2 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_MED, SPF_HELO_PASS,SPF_PASS,T_SCC_BODY_TEXT_LINE 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: X-Mailing-List: linux-kernel@vger.kernel.org In this patch series, I make restrl_tests build/run using kselftest framework, but some users do not known how to build/run resctrl_tests using kseltest framework. Add manual of how to make resctrl_tests build/run using kselftest framework into README. Signed-off-by: Shaopeng Tan --- tools/testing/selftests/resctrl/README | 34 ++++++++++++++++++++++++++ 1 file changed, 34 insertions(+) diff --git a/tools/testing/selftests/resctrl/README b/tools/testing/selftests/resctrl/README index 3d2bbd4fa3aa..a0dd459049b7 100644 --- a/tools/testing/selftests/resctrl/README +++ b/tools/testing/selftests/resctrl/README @@ -12,9 +12,43 @@ Allocation test on Intel RDT hardware. More tests will be added in the future. And the test suit can be extended to cover AMD QoS and ARM MPAM hardware as well. +resctrl_tests can be run with or without kselftest framework. + +USE KSELFTEST FRAMEWORK +----------------------- + +BUILD +----- + +Execute the following command in top level directory of the kernel source. + +Build resctrl: + $ make -C tools/testing/selftests TARGETS=resctrl + +Build all self tests: + $ make -C tools/testing/selftests + +RUN +--- + +Run resctrl: + $ make -C tools/testing/selftests TARGETS=resctrl run_tests + +Run all self tests: + $ make -C tools/testing/selftests run_tests + +Using kselftest framework, the ./resctrl_tests will be run without any parameters. + +More details about kselftest framework as follow. +Documentation/dev-tools/kselftest.rst + +NOT USE KSELFTEST FRAMEWORK +--------------------------- + BUILD ----- +Execute the following command in this directory(tools/testing/selftests/resctrl/). Run "make" to build executable file "resctrl_tests". RUN -- 2.27.0