Received: by 2002:a05:7412:b101:b0:e2:908c:2ebd with SMTP id az1csp2878907rdb; Wed, 15 Nov 2023 13:22:26 -0800 (PST) X-Google-Smtp-Source: AGHT+IFZD5y/jeqP342bmFDPc4Xra83QsBFPL678uC6TJ/vr8V9ka2rGMNodR+aJnkgHdu4gnMnP X-Received: by 2002:a17:902:f64b:b0:1cc:520a:54c with SMTP id m11-20020a170902f64b00b001cc520a054cmr8721523plg.56.1700083346002; Wed, 15 Nov 2023 13:22:26 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1700083345; cv=none; d=google.com; s=arc-20160816; b=yeNkyEngodJnf1FDCzGSPwytrP/EhtFrGepJnnjcJ4baeSs2dqZyNakzRQYeIBnlID KU/raDCA9GUq++u/ORQZvVPVw/1K4lx2LtxQ1ngQspKxVMSVPNyZrKophYKlQAPIZjvS Zvh+hJxCB5LWZxwCY8Dz196hUtEUVe+QfGdbfygX2GM942p58u6XNoz8i+TPJLqhnMsz LzvfPkG7sIXYWfK9VR08nM9aZK/iYgIwQWhPgswH3c8Sj7un/pNndDwGyhFxLBG6P6Lz tRj6TftXtvMHt/LLDPOWoPEkprTj3vpLjHxvPi7DWK0m/QsQykYKS/Pf5UC2wyhNHTQI uEOA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:user-agent:in-reply-to:message-id:organization :from:content-transfer-encoding:mime-version:date:references:subject :cc:to:dkim-signature; bh=IpCcNfZ4tvIBvyjGw97eyTC3iQaxN64HZ8D0zAV2wzI=; fh=IW1LR/8Q6y7RtoOuca0SdGcbM6tV0e3oBDAGRULYchA=; b=TD47hx3TRVfrSzzhm2ylrr7qbxlO9ryiSjzBqdPHtUZETRCngaEvjhlIlgXBN6D6i4 At7/Zv/hpNxohTSBTdu03sKYV7tzMsCybTIQvsaY/HABo3yujfBjyR8HXOTdk+AAztWi 3oGe8rygGCANSZ07/q6ctE3SYCjPOgUvx8Ni/b0S/dYGAJA/aJDJUnXyTnSlFFF0amCJ T61M9qtjHVLtzY5iA69O9pl7IQ6QjKZ5BILOVzA0UCvC2x9Y3ZMrTvuUjke9f5DjRCeP PURH9pT36pCuDPvVwCquy+QP+dojwCj5iz6OZUUbCCF76aqroglEcdtjydZtJA4K7XKx ClJQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b="Vo+JG/GA"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:7 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from snail.vger.email (snail.vger.email. [2620:137:e000::3:7]) by mx.google.com with ESMTPS id d10-20020a170903230a00b001b8b4330585si11089691plh.510.2023.11.15.13.22.25 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 15 Nov 2023 13:22:25 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:7 as permitted sender) client-ip=2620:137:e000::3:7; Authentication-Results: mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b="Vo+JG/GA"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:7 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by snail.vger.email (Postfix) with ESMTP id D067F80781F6; Wed, 15 Nov 2023 13:22:24 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at snail.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1343977AbjKOVWW (ORCPT + 99 others); Wed, 15 Nov 2023 16:22:22 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59774 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235568AbjKOVWV (ORCPT ); Wed, 15 Nov 2023 16:22:21 -0500 Received: from mgamail.intel.com (mgamail.intel.com [198.175.65.9]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 78C8292; Wed, 15 Nov 2023 13:22:18 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1700083338; x=1731619338; h=to:cc:subject:references:date:mime-version: content-transfer-encoding:from:message-id:in-reply-to; bh=FT7PreuJ3lVSxdZI3Kl8HWil/xrTD5aZhsrselUmF1M=; b=Vo+JG/GA9YN1ktsxqjLakemjqQEe+wFJvXY39OLSrO+cD5noQWzfJH55 2QLUBXlS5zskBsJydDrg2euawxvSzMIrCSPr8vmIfmn+Ots/LII9cskm9 NHi0mAcVpwjZv/WcadjU3B62nwvgJ4zyvRyNJzFGIPlE/zl5pWfp9NZAA /Up+/+AAvzCXfjjsaR16GoGMRTbSYv6wWxDP+P3hQENjPIUW4/bSLIYgF 7It6TC3HdJij3iyj8BxYc3I8EPJKBt7hTJC2KCg+aJ1GRro2lz0hlj1s/ d5EcKmVvGF2tWLSLQzXEXDT0+4Nh9FL56muNQNfY7Co3sVclOgKrqYQv8 A==; X-IronPort-AV: E=McAfee;i="6600,9927,10895"; a="9598794" X-IronPort-AV: E=Sophos;i="6.03,306,1694761200"; d="scan'208";a="9598794" Received: from fmsmga008.fm.intel.com ([10.253.24.58]) by orvoesa101.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 15 Nov 2023 13:22:18 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10895"; a="831050068" X-IronPort-AV: E=Sophos;i="6.03,306,1694761200"; d="scan'208";a="831050068" Received: from hhuan26-mobl.amr.corp.intel.com ([10.93.50.236]) by fmsmga008-auth.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-SHA; 15 Nov 2023 13:22:15 -0800 Content-Type: text/plain; charset=iso-8859-15; format=flowed; delsp=yes To: dave.hansen@linux.intel.com, tj@kernel.org, mkoutny@suse.com, 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, "Jarkko Sakkinen" Cc: 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 Subject: Re: [PATCH v6 12/12] selftests/sgx: Add scripts for EPC cgroup testing References: <20231030182013.40086-1-haitao.huang@linux.intel.com> <20231030182013.40086-13-haitao.huang@linux.intel.com> Date: Wed, 15 Nov 2023 15:22:13 -0600 MIME-Version: 1.0 Content-Transfer-Encoding: 7bit From: "Haitao Huang" Organization: Intel Message-ID: In-Reply-To: User-Agent: Opera Mail/1.0 (Win32) X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_EF,RCVD_IN_DNSWL_BLOCKED, SPF_HELO_NONE,SPF_NONE,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 X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (snail.vger.email [0.0.0.0]); Wed, 15 Nov 2023 13:22:25 -0800 (PST) >> +CG_ROOT=/sys/fs/cgroup >> +if [ ! -d "/sys/fs/cgroup/misc" ]; then >> + echo "# cgroup V2 is in use." >> +else >> + echo "# cgroup V1 is in use." >> + CG_ROOT=/sys/fs/cgroup/misc >> +fi > > Does the test need to support v1 cgroups? > I thought some distro may still only support V1. I do my most work on Ubuntu22.04 which by default is v1 so it's convenient for me to test. But not strong opinions. Thanks Haitao