Received: by 2002:a05:6a10:413:0:0:0:0 with SMTP id 19csp793178pxp; Fri, 11 Mar 2022 15:16:59 -0800 (PST) X-Google-Smtp-Source: ABdhPJy5+L5K+RFvBYIfvkng+GlROhJCACo0zdKjuHU7h+cjZi5warB7uXNoVLAAuhw6snmSIm5v X-Received: by 2002:a17:90a:8595:b0:1bf:4592:a819 with SMTP id m21-20020a17090a859500b001bf4592a819mr13075912pjn.183.1647040619372; Fri, 11 Mar 2022 15:16:59 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1647040619; cv=none; d=google.com; s=arc-20160816; b=L7JUAgEfLnBsOw/3v3ig8KOaBvOQZFgNwHu8CBHgLAtoff6yWvCgdq4pUEowA2iu8x qKGEh4pnhz7VLiyUoq+WnbkudFOzJB0+L9kM3NQvD1cMLFfa+/i5wDawBvQfMJmQU4Eh W+Z3yArm1f5M1Mhy9VA70+SwX+LmgYrUeV5RMu9sk+m9EpRYyTjsHveC+WA1NzaaVk4P iWk2d/bpH3dGY5y/NpZSc2Zeygtcf04qevAzIvDU2VkW0i2hAHOrs6vpCiTCHwACzpkV sOOB+0UjELT8a+Lik412GAxM95mEWKDHN6g/TlwV0WtqPpFKDQSsP3YDqW6jifOMg9Oy QEaw== 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 :message-id:date:subject:cc:to:from; bh=sWSxChidbPY1jtdWHxCiWQmswNtfZb4QV2fn8+Mgvw4=; b=IVHYuBEBTdklYq8aFRtS1/uDDsSOClNb2oATd4oo1HwpT2zPSJyrxblDrkSeVAhHyN 2lUZzY6ND/icxi2Eb8pav3AIDRcQsuiUKwtWzjD0B4cYFf/JRJpUyBoK4gdqqoWgRlyz /dUrKW6VVonP8t38RPwxnhB0Miajo7x+r2zqeVjcQX/VlacOG4+u9ouyqrMlhkr/kMwp 0eI1gyt14YO+PbFZVzT1qSNOm84M1N0coNihpA+/9QDIU8nA13pjXCyPUmfMddnyghgO mv9JaNvizlcoijAeQQlT7quC0UuIsy9YukERCEUMvojrOUt/JyQ5eQFNqNqegocKrqug 9zRw== 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:18 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 lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [2620:137:e000::1:18]) by mx.google.com with ESMTPS id cm18-20020a056a00339200b004f785e0f808si4406174pfb.104.2022.03.11.15.16.57 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 11 Mar 2022 15:16:59 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) client-ip=2620:137:e000::1:18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=fujitsu.com Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 0BCB2203BF9; Fri, 11 Mar 2022 14:03:10 -0800 (PST) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1347066AbiCKHYi (ORCPT + 99 others); Fri, 11 Mar 2022 02:24:38 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39102 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235117AbiCKHYg (ORCPT ); Fri, 11 Mar 2022 02:24:36 -0500 Received: from esa1.hc1455-7.c3s2.iphmx.com (esa1.hc1455-7.c3s2.iphmx.com [207.54.90.47]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E23CD17ED95; Thu, 10 Mar 2022 23:23:32 -0800 (PST) X-IronPort-AV: E=McAfee;i="6200,9189,10282"; a="65931102" X-IronPort-AV: E=Sophos;i="5.90,173,1643641200"; d="scan'208";a="65931102" Received: from unknown (HELO oym-r1.gw.nic.fujitsu.com) ([210.162.30.89]) by esa1.hc1455-7.c3s2.iphmx.com with ESMTP; 11 Mar 2022 16:23:30 +0900 Received: from oym-m2.gw.nic.fujitsu.com (oym-nat-oym-m2.gw.nic.fujitsu.com [192.168.87.59]) by oym-r1.gw.nic.fujitsu.com (Postfix) with ESMTP id A0C36531F2; Fri, 11 Mar 2022 16:23:28 +0900 (JST) Received: from yto-om4.fujitsu.com (yto-om4.o.css.fujitsu.com [10.128.89.165]) by oym-m2.gw.nic.fujitsu.com (Postfix) with ESMTP id 071EB14153; Fri, 11 Mar 2022 16:23:27 +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 BD70A401110B2; Fri, 11 Mar 2022 16:23:26 +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 v5 0/6] selftests/resctrl: Add resctrl_tests into kselftest set Date: Fri, 11 Mar 2022 16:21:41 +0900 Message-Id: <20220311072147.3301525-1-tan.shaopeng@jp.fujitsu.com> X-Mailer: git-send-email 2.27.0 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,RDNS_NONE, SPF_HELO_NONE,T_SCC_BODY_TEXT_LINE autolearn=no 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 Hello, The aim of this series is to make resctrl_tests run by using kselftest framework. - I modify resctrl_test Makefile and kselftest Makefile, to enable build/run resctrl_tests by using kselftest framework. Of course, users can also build/run resctrl_tests without using framework as before. - I change the default limited time for resctrl_tests to 120 seconds, to ensure the resctrl_tests finish in limited time on different environments. - When resctrl file system is not supported by environment or resctrl_tests is not run as root, return skip code of kselftest framework. - If resctrl_tests does not finish in limited time, terminate it as same as executing ctrl+c that kills parent process and child process. Difference from v4: - Add comment for settings file. [PATCH v5 2/6] - Improved README of resctrl_tests and rewirte changelog. [PATCH v5 5/6] https://lore.kernel.org/lkml/20220304103834.486892-1-tan.shaopeng@jp.fujitsu.com/ [PATCH V4] This patch series is based on v5.17-rc7. Shaopeng Tan (6): selftests/resctrl: Kill child process before parent process terminates if SIGTERM is received selftests/resctrl: Change the default limited time to 120 seconds selftests/resctrl: Fix resctrl_tests' return code to work with selftest framework selftests/resctrl: Make resctrl_tests run using kselftest framework selftests/resctrl: Update README about using kselftest framework to build/run resctrl_tests selftests/resctrl: Add missing SPDX license to Makefile tools/testing/selftests/Makefile | 1 + tools/testing/selftests/resctrl/Makefile | 18 ++------ tools/testing/selftests/resctrl/README | 43 +++++++++++++++---- .../testing/selftests/resctrl/resctrl_tests.c | 4 +- tools/testing/selftests/resctrl/resctrl_val.c | 1 + tools/testing/selftests/resctrl/settings | 3 ++ 6 files changed, 45 insertions(+), 25 deletions(-) create mode 100644 tools/testing/selftests/resctrl/settings -- 2.27.0