Received: by 2002:a05:6a10:9848:0:0:0:0 with SMTP id x8csp129432pxf; Wed, 10 Mar 2021 23:14:32 -0800 (PST) X-Google-Smtp-Source: ABdhPJxsuruVdxm7fUFMZXDAYyrAkfs2uFkRauWWkp3XBnuajPat1xKXgIexy4dAF1nNzqMxN9TS X-Received: by 2002:a17:906:4cd6:: with SMTP id q22mr1685041ejt.469.1615446872753; Wed, 10 Mar 2021 23:14:32 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1615446872; cv=none; d=google.com; s=arc-20160816; b=IwMl5VKrZYYoPzm3tgvRast6kT19EDzodxrM7cyZf/wzV0yPEYywWcQPYmoxizs7uJ CTyGB2vEONXiCAjWzAlciLXKZEVrShe4NDSRvd0C5a3T4G+F122txneNjGp7DRokAxof fd59qluJoH2OG3gAl1yQs29Wl80HTiDEcUpLjyKTRv1aoUtj9pkuQA0wsoNNNJJIlR74 08f2bVSt56n6+qVhfZdv6zEsMLUJ/IVVZeJgDVZuLFIfxevm/mbcnbqI8Ar/jtlwYDiP PM8xjlW8Xpbz64ivbVPxm0/094tEomzOvOpYiMvJSlbYYROXCgQqi42NtoWp2lrC6RWQ tHsg== 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=Kog/dWDVXLI7hEv7oh0jzPW1cp08GtcirSvHwpTYfcE=; b=sMNtL7QmL1k4ueqxBkZUMNXxqv7kzgcQjmNRmnlO48YJIHD2NUDIX+yFAPPQlg8Hll cYqZlqsco3j+rAH/LVWfTnufv5n+PVtyswKJEvY/YpCgbTbaJrLaIMso42uh3MEr6Bw/ zyzS/f8Iyc6dTXql2wdozfSOYegFTvPKNnDePDH4BCwM/5svno+Q3Xj10htFIm1LxAvI XZyIwXCKjGY/WdROi6t1CFwY53uAPI58DVh+xg1faoG6IWuLEkt5SXWNvM8CiToWvNHe 1GAZD2QSMCMRCDroHTNT1uJLy77xWW+K0XcfP9/s+WdfIzx6k4YBIEKRhMA6sPkM4BRC zHug== 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 g21si1199476eje.108.2021.03.10.23.14.09; Wed, 10 Mar 2021 23:14:32 -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 S231989AbhCKHJl (ORCPT + 99 others); Thu, 11 Mar 2021 02:09:41 -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 S231860AbhCKHJP (ORCPT ); Thu, 11 Mar 2021 02:09:15 -0500 IronPort-SDR: jk/ZFEvFJPvR2QgrUTNID9Sx1Cj8GIsb1YOBzcau9mKyAL1hRXD6dcSpC8vFhw+n7rv6Xn51wf WFkuk+aAkqzw== X-IronPort-AV: E=McAfee;i="6000,8403,9919"; a="186246122" X-IronPort-AV: E=Sophos;i="5.81,239,1610438400"; d="scan'208";a="186246122" 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:15 -0800 IronPort-SDR: vV+YanEh9LKqg+gp0E3bsxYV14vgjAtt5YMMvuonP5IOT3ThpBavsMRYyb5O7SXoX0h5kELGv2 bKHQey+5f0hw== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.81,239,1610438400"; d="scan'208";a="509938020" Received: from kbl-ppc.sh.intel.com ([10.239.159.163]) by fmsmga001.fm.intel.com with ESMTP; 10 Mar 2021 23:09:13 -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 23/27] perf tests: Support 'Parse and process metrics' test for hybrid Date: Thu, 11 Mar 2021 15:07:38 +0800 Message-Id: <20210311070742.9318-24-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 Some events are not supported. Only pick up some cases for hybrid. root@otcpl-adl-s-2:~# ./perf test 67 67: Parse and process metrics : Ok Signed-off-by: Jin Yao --- tools/perf/tests/parse-metric.c | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/tools/perf/tests/parse-metric.c b/tools/perf/tests/parse-metric.c index 55bf52e588be..149b18f1f96a 100644 --- a/tools/perf/tests/parse-metric.c +++ b/tools/perf/tests/parse-metric.c @@ -370,12 +370,17 @@ static int test_metric_group(void) int test__parse_metric(struct test *test __maybe_unused, int subtest __maybe_unused) { + perf_pmu__scan(NULL); + TEST_ASSERT_VAL("IPC failed", test_ipc() == 0); TEST_ASSERT_VAL("frontend failed", test_frontend() == 0); - TEST_ASSERT_VAL("cache_miss_cycles failed", test_cache_miss_cycles() == 0); TEST_ASSERT_VAL("DCache_L2 failed", test_dcache_l2() == 0); TEST_ASSERT_VAL("recursion fail failed", test_recursion_fail() == 0); - TEST_ASSERT_VAL("test metric group", test_metric_group() == 0); TEST_ASSERT_VAL("Memory bandwidth", test_memory_bandwidth() == 0); - return 0; + + if (!perf_pmu__hybrid_exist()) { + TEST_ASSERT_VAL("cache_miss_cycles failed", test_cache_miss_cycles() == 0); + TEST_ASSERT_VAL("test metric group", test_metric_group() == 0); + } + return 0; } -- 2.17.1