Received: by 2002:a05:6a10:7420:0:0:0:0 with SMTP id hk32csp1829360pxb; Fri, 18 Feb 2022 16:56:06 -0800 (PST) X-Google-Smtp-Source: ABdhPJzVf+ITz974110tzknIQ68sfOdft+Ajj/ZcpO3iyLneu8Dj8xGMfDria7crsr6IrJWhJfrp X-Received: by 2002:a17:906:6158:b0:6ce:61d6:f243 with SMTP id p24-20020a170906615800b006ce61d6f243mr8306089ejl.268.1645232166464; Fri, 18 Feb 2022 16:56:06 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1645232166; cv=none; d=google.com; s=arc-20160816; b=xEFffqTgcZBd5QClbag/5W+01sAmYsbiTlZ01c7eBuv0XWNbC0fHWgBxWW5RQVULLF K4XLrekzZRqf70NnnGOjgZ4yd+NdXd96h996l3kF9X13dzz9scicoejiDxMc49YGELPs Z5Y7PFbu4RvxxtKBmslHdTjHAlh6zREyVLVu4txtWF7sASwfHLkG4Yl2KQ9alqQpnCYU cXjzfwgtB0nGclMwbnNJ5tZDBKqAowgJFz4osQEk3kRG35eC9timdOGm1b2uDGLfj/HR WFNclzwbbll+5fTjfh2qAZTpNFNuw8WocGqMNZUeXbO8l9DwZlRR3DQ6F6csiq4gmdB5 vYwg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:content-language :in-reply-to:mime-version:user-agent:date:message-id:from:references :cc:to:subject:dkim-signature; bh=MD0+yom/goJw86HmBFQYbieNADbWQVLI9oz2PsE5hQw=; b=v9bPmweprXNTSQYXN1+dBDRP8qrPmC/a19un7Ysi5KgSva6Kt5F8Z2dYSdzaVXkKOo EMraJFsBi4M0N0/kj477n/AeO6f4xO1K5R7qFsSUSKC47vomI3674xtwOtuD4Kr3vpRg Z0qyvNSuzdwMeYaaAPQRUllcKw5rUS7Jak+sjg+DzCuQUEPW/rbj2q2wXJMSyCwyYuQy GlXEcurXapovP2WyUoTqL49cEKDxM7K+/Bh/SudfCVuIfKos20DtE/pnWOK2dFQuJej2 9D1zFrLaOi0h1d9c90YkjzzKHLjFePJ9JelyzmdN+Ynz7m4YtnepWDAdp27JMpJe4s1j euzg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=google header.b=iSJ9BtKp; 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=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id s18si4895106eji.236.2022.02.18.16.55.43; Fri, 18 Feb 2022 16:56:06 -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; dkim=pass header.i=@linuxfoundation.org header.s=google header.b=iSJ9BtKp; 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=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S239498AbiBRUbe (ORCPT + 99 others); Fri, 18 Feb 2022 15:31:34 -0500 Received: from mxb-00190b01.gslb.pphosted.com ([23.128.96.19]:56886 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S237825AbiBRUbc (ORCPT ); Fri, 18 Feb 2022 15:31:32 -0500 Received: from mail-io1-xd2e.google.com (mail-io1-xd2e.google.com [IPv6:2607:f8b0:4864:20::d2e]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 3D8EC27DF05 for ; Fri, 18 Feb 2022 12:31:15 -0800 (PST) Received: by mail-io1-xd2e.google.com with SMTP id c18so6414459ioc.6 for ; Fri, 18 Feb 2022 12:31:15 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=google; h=subject:to:cc:references:from:message-id:date:user-agent :mime-version:in-reply-to:content-language:content-transfer-encoding; bh=MD0+yom/goJw86HmBFQYbieNADbWQVLI9oz2PsE5hQw=; b=iSJ9BtKpkks5QWg/HyNH/d0nwba3DUPdbpYseZadQJYR+WbLw9W5GdAVq3LlwQ8YC1 p3i/MF1om6JjWl5MKfpj5UlYKu8d2Kwh8fApeMSIx6zBK6tqCzm8vWzoH8RygxQcai4e 3tQcsqBYEEeXiEwQpiKfCOd79bZLCWZ49uGpE= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:subject:to:cc:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=MD0+yom/goJw86HmBFQYbieNADbWQVLI9oz2PsE5hQw=; b=kzKJF6WkwebWFGcrBprpP5S5/26daaqnNtxIqvEDbkbuqv6NYVJWMwoq4FP4LDWi7o lOtZfiYBEu9gu2LdlrFy9BZDjiP0RWsnfB7ji0HpJTSE19BEIzlrxMHOtyKKOle8rhbf zR7NOfdfZUV3kcCHY9QkgdLACT5naPQvE18sMKmoGaypTafUeusADMWHtbinAjlHI9bo oOieBE2t5tcKu0A8EvA4uKoRgka9Cwxr6VQARzN2L30Htko8nCw2PGc0zfQePJ8dhjtT hw9rDgSWZgg0gDkR9RfFeLip7lWQMj3vO0gFGNQmXzYJdUirtq06qICQZPAgzcqh+Ew/ pwsQ== X-Gm-Message-State: AOAM530IZ/bqKL0b5kU62RBaNgRwXVI3ul5FxHCxWl2jk4FYADixsbzQ 4ww1Cpl9PgFdFHtg+XbZFfA82w== X-Received: by 2002:a02:6d6c:0:b0:30d:bfb2:84c with SMTP id e44-20020a026d6c000000b0030dbfb2084cmr6388052jaf.205.1645216274576; Fri, 18 Feb 2022 12:31:14 -0800 (PST) Received: from [192.168.1.128] ([71.205.29.0]) by smtp.gmail.com with ESMTPSA id r7sm2055356ilc.24.2022.02.18.12.31.13 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Fri, 18 Feb 2022 12:31:14 -0800 (PST) Subject: Re: [PATCH v3 3/5] selftests/resctrl: Update README about using kselftest framework to build/run resctrl_tests To: Shaopeng Tan , Fenghua Yu , Reinette Chatre , Shuah Khan Cc: linux-kernel@vger.kernel.org, linux-kselftest@vger.kernel.org, Shuah Khan References: <20220216022641.2998318-1-tan.shaopeng@jp.fujitsu.com> <20220216022641.2998318-4-tan.shaopeng@jp.fujitsu.com> From: Shuah Khan Message-ID: Date: Fri, 18 Feb 2022 13:31:13 -0700 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.8.1 MIME-Version: 1.0 In-Reply-To: <20220216022641.2998318-4-tan.shaopeng@jp.fujitsu.com> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-2.2 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,NICE_REPLY_A, RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,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 On 2/15/22 7:26 PM, Shaopeng Tan wrote: > 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 > + Remove the above This part is relevant to this test. This is already documented in kselftest doc. ================================== > +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 > Add information how long it takes to run this test in here. thanks, -- Shuah