Received: by 2002:a05:6a10:9848:0:0:0:0 with SMTP id x8csp128569pxf; Wed, 10 Mar 2021 23:12:51 -0800 (PST) X-Google-Smtp-Source: ABdhPJywwBs7LS892St6sQmsXnD1Z3xWSaAJiXW5/a8p4GGvbCQW2Q4I6xueaFlIj/aKhDTNoVxE X-Received: by 2002:a17:906:a944:: with SMTP id hh4mr1657406ejb.479.1615446771713; Wed, 10 Mar 2021 23:12:51 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1615446771; cv=none; d=google.com; s=arc-20160816; b=yXlpDCwZpWEv23RfkwIxfzC4ysbaeQxhYUHFraKFOkPbGd0skKA3csYOoXbiRRs9bB ejpYLnZ5/VfXjo/kh+cdMIkHYqjFq6KvFtc9jk14/2pMIvJipoMEQMRAwR/LPo0yrC0y jLeSIfte4ppELPueTUOleLZyXXO7MsLOI82FWwDIlRuOIE8dMtnxgCrN20t5yVb8X1Ce zI03j6CBEbW3wjSK+7LoSLy76qKeMeKPmU+/d0xTUFp6rZTqOa9lvWENbo1Rc3JxxRJy ADVFDWIzuBZabvoqM4r86MzVSzVOrsWdK90CFnkQn1hmn2A8Koin2s6hnZt9m5J3sOP8 D3hQ== 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=2w9HL3A0VavKegmrpQ/1TbcfidO/7vYL+j2BdKFV2Qs=; b=I7AC/e3vySQVdj/fQ1ag8hhwO+0CW84d///wYUgZTx6O4aoMzACwvuP1By2DnNBCff qJUyNgI1Et2xgvpArXaYdCvZ46Hn2/tNZiHZVuOqc57qGX5iAmTh1s6QVlAKYrZDG60h pYG9o1c2jBNz8YUCU+PKF2z0djzbA/ucCGqu9gZ28m2HICtuxOENDRHf5/7eSxa8+eCH 9T+SWpOLC7Jn0PYyTA1raB2QfxfyY9pWvZNaqhLdAtqjZgOJyvgpSrdy8kYk1vX39e9k ho3fretWF56JOITuqxn20XuwPBdBpkOUKKo5Vx3qHIflmReMSlUvUu8KwIyjcWPaa/UX MdQg== 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 j10si1103348edw.468.2021.03.10.23.12.29; Wed, 10 Mar 2021 23:12:51 -0800 (PST) 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 S232057AbhCKHJp (ORCPT + 99 others); Thu, 11 Mar 2021 02:09:45 -0500 Received: from mga04.intel.com ([192.55.52.120]:22599 "EHLO mga04.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231863AbhCKHJX (ORCPT ); Thu, 11 Mar 2021 02:09:23 -0500 IronPort-SDR: WTJ0PJ7WCUOo2EbU7PoKn+sRtyR3n7PywWwMSdfgrDY1Sfu5aM8It9mK61akNS39YQqODCfU8N oLjXSEysawPg== X-IronPort-AV: E=McAfee;i="6000,8403,9919"; a="186246131" X-IronPort-AV: E=Sophos;i="5.81,239,1610438400"; d="scan'208";a="186246131" Received: from fmsmga001.fm.intel.com ([10.253.24.23]) by fmsmga104.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 10 Mar 2021 23:09:23 -0800 IronPort-SDR: /BoT5uFE2PbCmSYokGIXZkY5wXkvDe2RiGl2VHZgUZ1rUKQ1hP4gPfrcDl6iRl15FrZQjelXjb vZW/67oWiJsQ== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.81,239,1610438400"; d="scan'208";a="509938044" Received: from kbl-ppc.sh.intel.com ([10.239.159.163]) by fmsmga001.fm.intel.com with ESMTP; 10 Mar 2021 23:09:20 -0800 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 v2 26/27] perf tests: Skip 'perf stat metrics (shadow stat) test' for hybrid Date: Thu, 11 Mar 2021 15:07:41 +0800 Message-Id: <20210311070742.9318-27-yao.jin@linux.intel.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20210311070742.9318-1-yao.jin@linux.intel.com> References: <20210311070742.9318-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 --- 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