Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from picard.linux.it (picard.linux.it [213.254.12.146]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 38CF1C433F5 for ; Tue, 15 Mar 2022 13:41:40 +0000 (UTC) Received: from picard.linux.it (localhost [IPv6:::1]) by picard.linux.it (Postfix) with ESMTP id 55EBB3C9355 for ; Tue, 15 Mar 2022 14:41:37 +0100 (CET) Received: from in-6.smtp.seeweb.it (in-6.smtp.seeweb.it [217.194.8.6]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-384) server-digest SHA384) (No client certificate requested) by picard.linux.it (Postfix) with ESMTPS id 5CB543C91EA for ; Tue, 15 Mar 2022 14:41:27 +0100 (CET) Received: from smtp-out1.suse.de (smtp-out1.suse.de [195.135.220.28]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by in-6.smtp.seeweb.it (Postfix) with ESMTPS id D5F621400FBD for ; Tue, 15 Mar 2022 14:41:26 +0100 (CET) Received: from relay2.suse.de (relay2.suse.de [149.44.160.134]) by smtp-out1.suse.de (Postfix) with ESMTP id 0921C21112; Tue, 15 Mar 2022 13:41:26 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.com; s=susede1; t=1647351686; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version: content-transfer-encoding:content-transfer-encoding; bh=zQdDxfmhqbEI4IyP3Np6JHfkqWhPZKKP2EpeQw/CCvw=; b=PjtFOBoBSNRCKHrrwqmE9P9u8+hk+CzX9dnijVfJYIfjTQOeR5o9MoaaJ1SpuNfoz4DfFm Kl8xFBuwUsWX4rZGlG12BJ7ObmUGVRl8tnZn/O8d7guvvf3NfkWof2+l5qmN3GmfdrcDY6 /jnxGWA7KoDz/eUVOOHsVGxQAetIFsE= Received: from g78.suse.de (unknown [10.163.24.182]) by relay2.suse.de (Postfix) with ESMTP id B9C43A3B96; Tue, 15 Mar 2022 13:41:25 +0000 (UTC) To: ltp@lists.linux.it Date: Tue, 15 Mar 2022 13:41:21 +0000 Message-Id: <20220315134122.22912-1-rpalethorpe@suse.com> X-Mailer: git-send-email 2.35.1 MIME-Version: 1.0 X-Virus-Scanned: clamav-milter 0.102.4 at in-6.smtp.seeweb.it X-Virus-Status: Clean Subject: [LTP] [PATCH 1/2] API/cgroup: Add io controller X-BeenThere: ltp@lists.linux.it X-Mailman-Version: 2.1.29 Precedence: list List-Id: Linux Test Project List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , From: Richard Palethorpe via ltp Reply-To: Richard Palethorpe Cc: Richard Palethorpe Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Errors-To: ltp-bounces+ltp=archiver.kernel.org@lists.linux.it Sender: "ltp" Signed-off-by: Richard Palethorpe --- lib/tst_cgroup.c | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/lib/tst_cgroup.c b/lib/tst_cgroup.c index 8cca0654d..62e1c00db 100644 --- a/lib/tst_cgroup.c +++ b/lib/tst_cgroup.c @@ -83,6 +83,7 @@ enum cgroup_ctrl_indx { CTRL_MEMORY = 1, CTRL_CPU, CTRL_CPUSET, + CTRL_IO, }; #define CTRLS_MAX CTRL_CPUSET @@ -191,6 +192,11 @@ static const struct cgroup_file cpuset_ctrl_files[] = { { } }; +static const struct cgroup_file io_ctrl_files[] = { + { "io.stat", NULL, CTRL_IO }, + { } +}; + /* Lookup tree for item names. */ static struct cgroup_ctrl controllers[] = { [0] = { "cgroup", cgroup_ctrl_files, 0, NULL, 0 }, @@ -203,6 +209,9 @@ static struct cgroup_ctrl controllers[] = { [CTRL_CPUSET] = { "cpuset", cpuset_ctrl_files, CTRL_CPUSET, NULL, 0 }, + [CTRL_IO] = { + "io", io_ctrl_files, CTRL_IO, NULL, 0 + }, { } }; -- 2.35.1 -- Mailing list info: https://lists.linux.it/listinfo/ltp