Received: by 2002:a05:7208:3003:b0:81:def:69cd with SMTP id f3csp4225921rba; Tue, 2 Apr 2024 10:40:26 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCWM/U5iLODOXOWnxbHtx72c3GKoZWA8zKKE3HXazVa5RPGM28PKRLwdxrHay8o6j5UrKTj4WgzSJNTKGn0ugi9oE6CKWndDVP8ImgRyzQ== X-Google-Smtp-Source: AGHT+IFk5kD9ZFCDWR/+fG2B0yfp88ENRzWty0Kw2PikTAgcSFDAGZuc+IJTZjWW0WgiyzaV/58h X-Received: by 2002:a05:6214:15cf:b0:699:1798:27dd with SMTP id p15-20020a05621415cf00b00699179827ddmr338330qvz.15.1712079625932; Tue, 02 Apr 2024 10:40:25 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1712079625; cv=pass; d=google.com; s=arc-20160816; b=E2FTkv0XqR3HFlWDKyI8GNKyTwB6UPYH/wVLZoMJ0fFZyKLgkpsgGWumNIGlSRAuc8 74wJBvxxeO9Kd3VMRoJ6WlaKYspUhKT+weAr0faleVVsHxQlf0iRFi3vzcKjLWxgHBOl nwzT1sS6pNH9VC59Et2nd5OaL+cFXkZ3SkXjzVDTcXyktQZQmVx+sc4AUEGsSGdk6+sp bJ4lFw5yHT9EEwsiwd14MUJFKmByi/pwQ9SmeTC2IuJld0ogLG10/pcQ4cugodKZw/hF /0FGp1nGe4d7egX5IbQLSiXyLstKMB4J1+TRxOQ1CWsfpZ1UAguwmx0GvRsJ8ocLoOWv n0Hw== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-disposition:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:message-id:subject:cc :to:from:date:dkim-signature; bh=H5F6GGyhdpvo/TM/Z4dxkuGDKQ/Qzalz5AOzBbLucHQ=; fh=1ID+u/kOibZz56dBlJInCTRD42iV4lBpdSdXx999lbI=; b=x4MB4oec0hyDkGiKpb6ZatvTVm1YfMbewseSCAQA1pM3DHiL7XSoY9hu6pbpflrM/Q p09tF7WFR0Jw13+XWZqminJ+fT4z8WaggHwNzSMgxBCMqCOlcok8hSmmJK8vox8+aVzc cJGdHkR0nNbBrP29O1MLcyoyioyrYND3RBXlcmWCncmLWMI25AYIu0is6h9RAX+S5FtB P9M9Uz2uZD5eTQXW4B+LEsmOX3OZHYtoXKwKhdzlsVI6m9sWzvM7ykjZWEjcaqfMuuwI sOBBg1VraVKRj00jU+8Rm72tvfx1H2O29rX9j3PoyEqXOJtRfWVOk+9R1y05aRW3yqkw rWKQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@suse.com header.s=susede1 header.b=MYizSPNJ; arc=pass (i=1 spf=pass spfdomain=suse.com dkim=pass dkdomain=suse.com dmarc=pass fromdomain=suse.com); spf=pass (google.com: domain of linux-kernel+bounces-128441-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-128441-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=suse.com Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [2604:1380:45d1:ec00::1]) by mx.google.com with ESMTPS id f4-20020a0cf7c4000000b0069917822df2si1971226qvo.58.2024.04.02.10.40.25 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 02 Apr 2024 10:40:25 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-128441-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) client-ip=2604:1380:45d1:ec00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@suse.com header.s=susede1 header.b=MYizSPNJ; arc=pass (i=1 spf=pass spfdomain=suse.com dkim=pass dkdomain=suse.com dmarc=pass fromdomain=suse.com); spf=pass (google.com: domain of linux-kernel+bounces-128441-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-128441-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=suse.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ny.mirrors.kernel.org (Postfix) with ESMTPS id 153DD1C21F8E for ; Tue, 2 Apr 2024 17:40:25 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 7CE4915AAC4; Tue, 2 Apr 2024 17:40:09 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=suse.com header.i=@suse.com header.b="MYizSPNJ" Received: from smtp-out2.suse.de (smtp-out2.suse.de [195.135.223.131]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id CF17415991B; Tue, 2 Apr 2024 17:40:06 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=195.135.223.131 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712079608; cv=none; b=F3jZAYRLMgArQsGKR8kIS0j0kQHbxuheHfO2d8qy9aT346AnFt7kBTlNB9ZMP96yBJwwXwp3WriA013mTX5P8RrFaKySO2Hm6vdXbcbvKnZDPogNgcTaw5IAQ1CcgYogWmuGTj/2wMte+dqmDoUNI+IczEycLeg/xIGWWpkNmj0= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712079608; c=relaxed/simple; bh=+6iOyRz9ZaM1hjjBwv9H9tsp/d85fEt5HBevd/gKSYs=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=OKlm+3xHn9Vw3Lg94VtSTDp1ufXh3ofrq/NdZrO71wpkZEhar1cwD2mgUtBimjqrYMi8Eyj2qQsHv47aEmN0tGWHM1Vrew62YYWWYaQyJCckL3OnntR0sTCaCfZ+HmQ8FiPLSzWjZ3gQXcxktqIXd58mtXnutwTGBFt1m393nzo= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=suse.com; spf=pass smtp.mailfrom=suse.com; dkim=pass (1024-bit key) header.d=suse.com header.i=@suse.com header.b=MYizSPNJ; arc=none smtp.client-ip=195.135.223.131 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=suse.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=suse.com Received: from imap2.dmz-prg2.suse.org (imap2.dmz-prg2.suse.org [10.150.64.98]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by smtp-out2.suse.de (Postfix) with ESMTPS id CF2FD5C0B3; Tue, 2 Apr 2024 17:40:04 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.com; s=susede1; t=1712079604; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=H5F6GGyhdpvo/TM/Z4dxkuGDKQ/Qzalz5AOzBbLucHQ=; b=MYizSPNJqr9GMzaMQfyIO9JwnVNU2Ig6nmXsBZqXDBHJ8R1PdmkHgbClwifgWkc7CgH54D XO8DenBimyBtFcyd6T79pGlsdamcvHECD+G8oRW9WBObAV/4bislB1VEBnuCLFy1WkmloS TqO0dFxwCjwkJl2RBltQdDyhH0r/S+g= Authentication-Results: smtp-out2.suse.de; none Received: from imap2.dmz-prg2.suse.org (localhost [127.0.0.1]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by imap2.dmz-prg2.suse.org (Postfix) with ESMTPS id AF26413A90; Tue, 2 Apr 2024 17:40:04 +0000 (UTC) Received: from dovecot-director2.suse.de ([2a07:de40:b281:106:10:150:64:167]) by imap2.dmz-prg2.suse.org with ESMTPSA id n0+TKvRCDGaRKQAAn2gu4w (envelope-from ); Tue, 02 Apr 2024 17:40:04 +0000 Date: Tue, 2 Apr 2024 19:40:03 +0200 From: Michal =?utf-8?Q?Koutn=C3=BD?= To: Haitao Huang Cc: Jarkko Sakkinen , dave.hansen@linux.intel.com, tj@kernel.org, linux-kernel@vger.kernel.org, linux-sgx@vger.kernel.org, x86@kernel.org, cgroups@vger.kernel.org, tglx@linutronix.de, mingo@redhat.com, bp@alien8.de, hpa@zytor.com, sohil.mehta@intel.com, tim.c.chen@linux.intel.com, zhiquan1.li@intel.com, kristen@linux.intel.com, seanjc@google.com, zhanb@microsoft.com, anakrish@microsoft.com, mikko.ylinen@linux.intel.com, yangjie@microsoft.com, chrisyan@microsoft.com Subject: Re: Re: [PATCH v9 15/15] selftests/sgx: Add scripts for EPC cgroup testing Message-ID: References: <20240205210638.157741-1-haitao.huang@linux.intel.com> <20240205210638.157741-16-haitao.huang@linux.intel.com> <4be7b291010973c203ed8c7bcd25b626c1290231.camel@kernel.org> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="qtyyx7wt5l7xfjnz" Content-Disposition: inline In-Reply-To: X-Spamd-Result: default: False [-1.94 / 50.00]; SIGNED_PGP(-2.00)[]; MID_RHS_NOT_FQDN(0.50)[]; MIME_GOOD(-0.20)[multipart/signed,text/plain]; NEURAL_HAM_SHORT(-0.20)[-0.998]; BAYES_HAM(-0.04)[58.36%]; FUZZY_BLOCKED(0.00)[rspamd.com]; DKIM_SIGNED(0.00)[suse.com:s=susede1]; ARC_NA(0.00)[]; RCPT_COUNT_TWELVE(0.00)[22]; MIME_TRACE(0.00)[0:+,1:+,2:~]; TO_MATCH_ENVRCPT_ALL(0.00)[]; FROM_HAS_DN(0.00)[]; RCVD_TLS_ALL(0.00)[]; FROM_EQ_ENVFROM(0.00)[]; TO_DN_SOME(0.00)[]; RCVD_COUNT_TWO(0.00)[2]; MISSING_XM_UA(0.00)[]; RCVD_VIA_SMTP_AUTH(0.00)[]; DBL_BLOCKED_OPENRESOLVER(0.00)[intel.com:email,imap2.dmz-prg2.suse.org:rdns,imap2.dmz-prg2.suse.org:helo] X-Spam-Score: -1.94 X-Spam-Level: X-Spam-Flag: NO --qtyyx7wt5l7xfjnz Content-Type: text/plain; charset=us-ascii Content-Disposition: inline On Tue, Apr 02, 2024 at 11:20:21AM -0500, Haitao Huang wrote: > Do we really want to have it implemented in c? I only pointed to the available C boilerplate. > There are much fewer lines of > code in shell scripts. Note we are not really testing basic cgroup stuff. > All we needed were creating/deleting cgroups and set limits which I think > have been demonstrated feasible in the ash scripts now. I assume you refer to Message-Id: <20240331174442.51019-1-haitao.huang@linux.intel.com> right? Could it be even simpler if you didn't stick to cgtools APIs and v1 compatibility? Reducing ash_cgexec.sh to something like echo 0 >$R/$1/cgroup.procs shift exec "$@" (with some small builerplate for $R and previous mkdirs) Thanks, Michal --qtyyx7wt5l7xfjnz Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iHUEABYKAB0WIQQpEWyjXuwGT2dDBqAGvrMr/1gcjgUCZgxC8AAKCRAGvrMr/1gc jigRAP4mWe5bB10SBzjHzWt7c38yCgtq7Vmjj/SA7W8goippqAEAovEnsLpMZFKJ LXRH+hlVdIAOhf4njhycDoJINsgoUQ0= =Lkg+ -----END PGP SIGNATURE----- --qtyyx7wt5l7xfjnz--