Received: by 2002:a05:6a10:9afc:0:0:0:0 with SMTP id t28csp1985499pxm; Fri, 4 Mar 2022 07:19:42 -0800 (PST) X-Google-Smtp-Source: ABdhPJz8FZwPtGW9Y+0YMjFu84WkqVBntviB7BY7utVu9qSXqRD2zAhb/ylrw7i8/HTK3a7qbkSZ X-Received: by 2002:a17:906:8616:b0:6ce:36ab:a289 with SMTP id o22-20020a170906861600b006ce36aba289mr30933259ejx.127.1646407181987; Fri, 04 Mar 2022 07:19:41 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1646407181; cv=none; d=google.com; s=arc-20160816; b=t1k58lCQIoBvHz+AQj9VY3/BvGfw1aljSbPSudC3g/bMClqXoRRIJPhc5ge7re8EWa d/FnMrg+kWdvNNUwibpPRxQzgB4f2tFD8ZMpU2HAW/3weW77A63ZxEglVHd8YLL7WAtb 0NsSn5uAGAKlAvoiPdFmR9v+XUHg7PcOZeaosnwPgn0winCNZa8p3Pp8+hNv5QZiFh/b tQ2AVVgx4B5hKJ3A9fiEn4Ikd32rnPHFE8NY9G7BgdS6xcKIsHLEpsv/1EniPtptoJZk s+QqK+Ky/Xe9WXoXj4wPlXyJVlo6sSv6rBaJCytlsoign2Ucr9VLPJWPc2FyurC6xRV3 7blw== 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:ironport-sdr; bh=ueim4/EvsnK7M1dJ9RwWGwlCygtTI57rYXp9ADtSMXc=; b=eNq2Boa/+OdAqnIcixoV44zNcZ17rOnuoBMBe7vZddEDeQUe9DxLpCsOcfEDibWuMd 2vb42Fpxxs0PWFCH/MFQRok74ioLajVlBx5t1cpgvadyd336FOQIBKQ4A/oFp4fJAQgR BC+S0yB1ViGXYDhdBvo8fm4uH4IQZ2TgAgkgMkrLlXlnqWy7MDqfbJ7/uuiNJ/XiG8N+ k5N+Ri5+7bjfcPaHrrKaJq1MUF9Ja5oiSCWCmAbr7NeIJZuCFZnKmbPVrmw9CSBI5foP pPMK0S+k4Q/qMpJP6I/PEomz7HzrdY9UKtQNUmDKgte6cWINNtI8grcObZDYxFoHxqeu BlKw== 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 hd38-20020a17090796a600b006cf5489da60si3274320ejc.36.2022.03.04.07.19.17; Fri, 04 Mar 2022 07:19:41 -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 S236010AbiCDKkI (ORCPT + 99 others); Fri, 4 Mar 2022 05:40:08 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46080 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233598AbiCDKkG (ORCPT ); Fri, 4 Mar 2022 05:40:06 -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 0D33515470D; Fri, 4 Mar 2022 02:39:17 -0800 (PST) IronPort-SDR: g6dqHpVDV44/E8otWBN4C4sfb/AB//wSPKMxI7V8vHPT25UGtBR+PuAwJQ5zwBvnJCJ//MpcGM 0rL7JRUrEtJBvImpya8o/+LN+TP9mBPHgCUTzSMFHwmd8oCNOfo3JomO/ukjkNVJQELEeJ0kzy odUaj9+VOwUINiL2wzsth8VorFLl8ILrHDPDF6q1Pv1g+S4PhDwVXrESyJrv0/qBmVGKZSidzi 2zBcqEyqht48nwzDUxdfru/pkbZaNeaEV5ACcAu57dGgvrV1XNMeFztso/+j8UgET6+DspYE5F vuymswNb814mU/LfpliGjxpN X-IronPort-AV: E=McAfee;i="6200,9189,10275"; a="65137593" X-IronPort-AV: E=Sophos;i="5.90,154,1643641200"; d="scan'208";a="65137593" Received: from unknown (HELO yto-r2.gw.nic.fujitsu.com) ([218.44.52.218]) by esa1.hc1455-7.c3s2.iphmx.com with ESMTP; 04 Mar 2022 19:39:15 +0900 Received: from yto-m4.gw.nic.fujitsu.com (yto-nat-yto-m4.gw.nic.fujitsu.com [192.168.83.67]) by yto-r2.gw.nic.fujitsu.com (Postfix) with ESMTP id 7517FC68A7; Fri, 4 Mar 2022 19:39:14 +0900 (JST) Received: from oym-om4.fujitsu.com (oym-om4.o.css.fujitsu.com [10.85.58.164]) by yto-m4.gw.nic.fujitsu.com (Postfix) with ESMTP id B614ED5070; Fri, 4 Mar 2022 19:39:13 +0900 (JST) Received: from cn-r05-10.example.com (n3235113.np.ts.nmh.cs.fujitsu.co.jp [10.123.235.113]) by oym-om4.fujitsu.com (Postfix) with ESMTP id 8441140450F7F; Fri, 4 Mar 2022 19:39:13 +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 v4 0/6] selftests/resctrl: Add resctrl_tests into kselftest set Date: Fri, 4 Mar 2022 19:38:28 +0900 Message-Id: <20220304103834.486892-1-tan.shaopeng@jp.fujitsu.com> X-Mailer: git-send-email 2.27.0 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 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 v3: - I reodered all patches of this patch series. - I updated the print message of ksft_exit_skip() to give more information. [PATCH v4 3/6] - I simplified tools/testing/selftests/resctrl/Makefile to use kselftest's lib.mk. [PATCH v4 4/6] - I improved README of resctrl_tests. [PATCH v4 5/6] - I moved license patch to this patch series. [PATCH v4 6/6] https://lore.kernel.org/lkml/20220216022641.2998318-1-tan.shaopeng@jp.fujitsu.com/ [PATCH V3] This patch series is based on v5.16. Thanks, 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 | 31 ++++++++++++++++++- .../testing/selftests/resctrl/resctrl_tests.c | 4 +-- tools/testing/selftests/resctrl/resctrl_val.c | 1 + tools/testing/selftests/resctrl/settings | 1 + 6 files changed, 39 insertions(+), 17 deletions(-) create mode 100644 tools/testing/selftests/resctrl/settings -- 2.27.0