Received: by 2002:a05:6a10:a841:0:0:0:0 with SMTP id d1csp1074452pxy; Thu, 22 Apr 2021 22:40:37 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxjayPqBYME3DwdmtY3/wpm6H5069MKAblE7gIaqpMsXSPDMcXa/5vidwp2fRGsLKWJha8/ X-Received: by 2002:a17:907:2ccf:: with SMTP id hg15mr2302406ejc.219.1619156437138; Thu, 22 Apr 2021 22:40:37 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1619156437; cv=none; d=google.com; s=arc-20160816; b=empnXiVFCQ2YnTNtgg+Fp3glhpcamnrkUa+HApTEvOLoAjpYRW0wTLVx2rdLYhNGYN Qru84nLua30NpMwzlcNC0M2eoEyJ0G/Xtt0Iwq+epCfuU0hPiDgq++ivp4yeO95f7xoH N70Tb2xIoa9KyWJDD9HcslHneX36ioC3AnD3/ViuQ2fXjgAUTKfSSQdaFmi/GpaVhAJG pi8goeMTXxJce1OQ3lDWq4f7YhIZDSAJQWeDuNweyKyFVf9uzA/TL0ljJ2U5WheBak+v TAUAUq4eGdETyqWo8kCOLBBqW731XPm7hukr8UlBgYDGt6yTeJj57rv9Wn4mcDt29s9i VCAQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:references:in-reply-to:message-id:date:subject :cc:to:from:ironport-sdr:ironport-sdr; bh=t6e9Ps6c2FO50X3T/Oyw+7DOzrvJjQ3HUMqJZL68y0Y=; b=UkqoDReq0YovUa9Tz8ZLDwLVSRtJPxAIoINI2SNnWY6w31HcTNQjwPXESKjLSuMPly EBczWV/yq+k9T8hqJMVPdrJwEQAqn7d1V2O0zP89CB7T1CgQZKFh/mgJOMRRkbxfMVsc S3qA6CUMNzMbv9cYbF8Q90lfYBLWG/p/E1Kl7TZJb0vU471IHNQSqfl5uLOwP2vbdFjj XhtX/OZJhrgUOH5xg5LrHbrzBuIn1GHM63jjAF90IYKP8I5WDbYHLSEfQG1r/GHrKLSb oENhPcHZ4dTYdIl5Jrc6GnOQcZqWriYylHVG4C6jNfv1ZOGcPDF99vOF3+8fPIJj3yFj 8jPg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id q17si4258138eds.148.2021.04.22.22.40.14; Thu, 22 Apr 2021 22:40:37 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S241068AbhDWFij (ORCPT + 99 others); Fri, 23 Apr 2021 01:38:39 -0400 Received: from mga18.intel.com ([134.134.136.126]:9365 "EHLO mga18.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S240962AbhDWFiW (ORCPT ); Fri, 23 Apr 2021 01:38:22 -0400 IronPort-SDR: OBZi2xpQNqH5QCHk7iCkZg74EEXIsQG/PzRkWWVIviJFhhMclm/Yfei7AjfnxZMV7lgczmV455 buxA2BvbwzyQ== X-IronPort-AV: E=McAfee;i="6200,9189,9962"; a="183501894" X-IronPort-AV: E=Sophos;i="5.82,244,1613462400"; d="scan'208";a="183501894" Received: from orsmga006.jf.intel.com ([10.7.209.51]) by orsmga106.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 22 Apr 2021 22:37:46 -0700 IronPort-SDR: fK/PNKNsYe92pgx8MWQqeZfT5z+48MQzGYdSHHxtDbycFPnU4t96SgBy3dYq8uHQZJGSpjrA6I m8OS9yUgQzOA== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.82,244,1613462400"; d="scan'208";a="386293788" Received: from kbl-ppc.sh.intel.com ([10.239.159.163]) by orsmga006.jf.intel.com with ESMTP; 22 Apr 2021 22:37:43 -0700 From: Jin Yao To: acme@kernel.org, jolsa@kernel.org, peterz@infradead.org, mingo@redhat.com, alexander.shishkin@linux.intel.com Cc: Linux-kernel@vger.kernel.org, ak@linux.intel.com, kan.liang@intel.com, yao.jin@intel.com, Jin Yao Subject: [PATCH v5 25/26] perf tests: Skip 'perf stat metrics (shadow stat) test' for hybrid Date: Fri, 23 Apr 2021 13:35:40 +0800 Message-Id: <20210423053541.12521-26-yao.jin@linux.intel.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20210423053541.12521-1-yao.jin@linux.intel.com> References: <20210423053541.12521-1-yao.jin@linux.intel.com> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Currently we don't support shadow stat for hybrid. root@ssp-pwrt-002:~# ./perf stat -e cycles,instructions -a -- sleep 1 Performance counter stats for 'system wide': 12,883,109,591 cpu_core/cycles/ 6,405,163,221 cpu_atom/cycles/ 555,553,778 cpu_core/instructions/ 841,158,734 cpu_atom/instructions/ 1.002644773 seconds time elapsed Now there is no shadow stat 'insn per cycle' reported. We will support it later and now just skip the 'perf stat metrics (shadow stat) test'. Signed-off-by: Jin Yao --- v5: - No change. tools/perf/tests/shell/stat+shadow_stat.sh | 3 +++ 1 file changed, 3 insertions(+) diff --git a/tools/perf/tests/shell/stat+shadow_stat.sh b/tools/perf/tests/shell/stat+shadow_stat.sh index ebebd3596cf9..e6e35fc6c882 100755 --- a/tools/perf/tests/shell/stat+shadow_stat.sh +++ b/tools/perf/tests/shell/stat+shadow_stat.sh @@ -7,6 +7,9 @@ set -e # skip if system-wide mode is forbidden perf stat -a true > /dev/null 2>&1 || exit 2 +# skip if on hybrid platform +perf stat -a -e cycles sleep 1 2>&1 | grep -e cpu_core && exit 2 + test_global_aggr() { perf stat -a --no-big-num -e cycles,instructions sleep 1 2>&1 | \ -- 2.17.1