Received: by 2002:a05:6a10:17d3:0:0:0:0 with SMTP id hz19csp359954pxb; Fri, 16 Apr 2021 07:27:53 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxEyLWC5oylaIiO+4xJcVkz9x8Nxnt1dGGMBYTPa+quqO4Zz5JQ2jNhIKC7yO4HmptnZ9vo X-Received: by 2002:a17:906:b28c:: with SMTP id q12mr8755277ejz.284.1618583273251; Fri, 16 Apr 2021 07:27:53 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1618583273; cv=none; d=google.com; s=arc-20160816; b=W6/wR4L8gN6UP2TaL1nh1myGdGRnqXhlBY7X7Kc3vcFfKU+eWU3A3oevcblsoAF/kk 53POjSAixqK4vMdm008BTksxumoOSKgvx4dBPrQibdrEK5XzBP2OoV3yr5RviSsP14IH zPH5MOp2ZDNEG0pdsIiqOKHsG6wZ2edd0eYgVqdyq8EmIo5CcapxMD34GsV+wGgxYIG1 OYTdm9bIOX+B1IZoRjufR5G+MD4sEVP9/FoNuY20J9YngXDrlWkTyQ5wn0juat8vGO7d iQlMRYufcSIWnPpkC/i2gTqIbw/WqwGvmI/4IEtkqTAGFNbqrgqRWQtjmk0f9LeqvgVh m4Rg== 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=RNP6ewyYMmZoA/2zHy9QiYbGT8MK8Kf2/lxI4fntY27xgj6vnwdDvIhaZzm7VVM9v9 Jm0MZnILPzH9DjzVOrKrv1VJ9Y4MkYNB00H+aAH1t4fr/lH//zVQZqRvYtL3nUrRvPL5 0MIXWKqyWaizOufnPus8eFJsK7US8egKzRlbMlALH2qCei73WrF4Vgxnqdaw/BheZMQ/ jq96ebCIRuagTFDEL79OZQKnCeuDSuvqTW+G0Qf9vFDbHZjmzmW7fqhNWyh0B/p7j4KN hPRw+8VaIjx9+sw2xFAIJfSYxyLggCyo5n+xwGmvE+2v4ZMh6Nn6C8LV4umGUuuS1uPd rxAQ== 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 cf11si4601967ejb.342.2021.04.16.07.27.30; Fri, 16 Apr 2021 07:27:53 -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 S241863AbhDPOJz (ORCPT + 99 others); Fri, 16 Apr 2021 10:09:55 -0400 Received: from mga11.intel.com ([192.55.52.93]:23091 "EHLO mga11.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S244408AbhDPOJQ (ORCPT ); Fri, 16 Apr 2021 10:09:16 -0400 IronPort-SDR: MX0FP0TAjxEPtma/sjFE4xDBJTypKpl5FudksUKCAiMqf+dDVbPtNJSxliMIz2Agd2gOZ/OBG8 OF6sUKlpkJsw== X-IronPort-AV: E=McAfee;i="6200,9189,9956"; a="191854457" X-IronPort-AV: E=Sophos;i="5.82,226,1613462400"; d="scan'208";a="191854457" Received: from fmsmga006.fm.intel.com ([10.253.24.20]) by fmsmga102.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 16 Apr 2021 07:07:37 -0700 IronPort-SDR: NnmW2e7S+mIqvqy4rBBKZmMDMSBxmKcuILZ7EURNplWrQzOvaXaQ0VUDc3ceMi54WDNYkO7qEc AwSsr6TsofEQ== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.82,226,1613462400"; d="scan'208";a="612767048" Received: from kbl-ppc.sh.intel.com ([10.239.159.163]) by fmsmga006.fm.intel.com with ESMTP; 16 Apr 2021 07:07:33 -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 v4 25/25] perf tests: Skip 'perf stat metrics (shadow stat) test' for hybrid Date: Fri, 16 Apr 2021 22:05:17 +0800 Message-Id: <20210416140517.18206-26-yao.jin@linux.intel.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20210416140517.18206-1-yao.jin@linux.intel.com> References: <20210416140517.18206-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