Received: by 2002:a05:6a10:17d3:0:0:0:0 with SMTP id hz19csp358953pxb; Fri, 16 Apr 2021 07:26:19 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwjbHOqvOGumafjoO7BZbRVBSHhPYQITN47WIuZM+NqGDnkVXBYF5LdYuU5HLaszbkdX3eB X-Received: by 2002:aa7:d1ce:: with SMTP id g14mr3763623edp.122.1618583179278; Fri, 16 Apr 2021 07:26:19 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1618583179; cv=none; d=google.com; s=arc-20160816; b=MNxeQ/eweuA2el6VtojM7aCoch5li78t1FunuJOxrSbVtZIlBXN3pVROq2UYGIEw4Z Pwl2nq2ou8vpBHNrYJSbjeuOXyyIPTZUhbTOz4td8Xb4vJTaLmNdLOZ+asLgv2bLtpt9 3JmHPwnezP6yQS7GpoLVjfwz7YttcDf60ghXtAHJP8mMKsvN5t5fxxAR65HxQUtsiMp9 gLgRHdHAfPFC6pCK0f+ABcGJqPr39jOvIkmnMAbTvumwGxeRCtjsHwaLS6iPpjyBS+P8 fo2XfW5TlWm3XWx6sD/jkesVjXrk43IfviGYNZz0HSxSTaU3kwJh+qmxU7sqbrvWUyoN THtA== 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=ppvIIL2xmRp9sOJCdRlO4TLI10BKtbAe0hul0gJHQlY=; b=vwyljaomCVK2UprgER6Re8hVtFSO/dtvoj9RcXDzu+zrGq67p2iG882w2z3+KY9/1l nc8K0gIixdUIJZgSv3hD7g8rVDT1/ftKFBVPiW/s4je80PPZR6IQaM7i9hWe8pTa1NAC qxopx7vTL4keTU7zhVxZSnTRnOdZOMbvygkgBpEGXikCl0t16hU40+95+el3u2oSLcVi hIBPoL7Rg8ZqxvB8v9Nl+kq7vntTwPTGbmSijnrdr2Uy7lJRjkVixwig2gt8UCuUG3DL VdNz9AJcXW6y3/PkI87YjgUo2uGuXdeF++5+9KNl1m+Pu9T4TfvdzJkGaHazlGNx4S46 +ysQ== 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 h12si4031381ejc.210.2021.04.16.07.25.56; Fri, 16 Apr 2021 07:26:19 -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 S237851AbhDPOJD (ORCPT + 99 others); Fri, 16 Apr 2021 10:09:03 -0400 Received: from mga11.intel.com ([192.55.52.93]:23086 "EHLO mga11.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S241863AbhDPOIA (ORCPT ); Fri, 16 Apr 2021 10:08:00 -0400 IronPort-SDR: y+3E1UpHv2dIVWuIYdImN5Z6/wEwv3CltVS86NOydi5vcU4kuTRyNU/COArnD/Fs+DaiQTFLB/ cCpKoOgMa3Xg== X-IronPort-AV: E=McAfee;i="6200,9189,9956"; a="191854397" X-IronPort-AV: E=Sophos;i="5.82,226,1613462400"; d="scan'208";a="191854397" 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:19 -0700 IronPort-SDR: +VCllLRugaJPeZuWnSQohWdaqeQMcPLQA291tQCl59GrxjTt5q4+lfzdfJ6rSIfk7vjEpuKaZd z+Aa3Q+5jvfA== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.82,226,1613462400"; d="scan'208";a="612766911" Received: from kbl-ppc.sh.intel.com ([10.239.159.163]) by fmsmga006.fm.intel.com with ESMTP; 16 Apr 2021 07:07:15 -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 20/25] perf tests: Skip 'Setup struct perf_event_attr' test for hybrid Date: Fri, 16 Apr 2021 22:05:12 +0800 Message-Id: <20210416140517.18206-21-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 For hybrid, the attr.type consists of pmu type id + original type. There will be much changes for this test. Now we temporarily skip this test case and TODO in future. Signed-off-by: Jin Yao --- tools/perf/tests/attr.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/tools/perf/tests/attr.c b/tools/perf/tests/attr.c index dd39ce9b0277..b37c35fb5a46 100644 --- a/tools/perf/tests/attr.c +++ b/tools/perf/tests/attr.c @@ -34,6 +34,7 @@ #include "event.h" #include "util.h" #include "tests.h" +#include "pmu.h" #define ENV "PERF_TEST_ATTR" @@ -184,6 +185,9 @@ int test__attr(struct test *test __maybe_unused, int subtest __maybe_unused) char path_dir[PATH_MAX]; char *exec_path; + if (perf_pmu__has_hybrid()) + return 0; + /* First try development tree tests. */ if (!lstat("./tests", &st)) return run_dir("./tests", "./perf"); -- 2.17.1