Received: by 2002:a05:6a10:f3d0:0:0:0:0 with SMTP id a16csp2924pxv; Wed, 7 Jul 2021 18:40:37 -0700 (PDT) X-Google-Smtp-Source: ABdhPJx0EuMDsJYJRSKG5HCLCQlj44rQrHM7Pl+N/kw+f3Pp1tEst6G/cA2kGFRHYHWJCuHA9m8s X-Received: by 2002:a05:6402:90a:: with SMTP id g10mr34120571edz.365.1625708437495; Wed, 07 Jul 2021 18:40:37 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1625708437; cv=none; d=google.com; s=arc-20160816; b=sxNnA/QUlvGpxsbVp+87gAv9MiJjUYm0BFA8sdStmOiyegoYoN+IS/ICAKKHNMdkoi eiCsVzDkcVhBjXQatyTZUIUOaK29BSdqxF8FT6uBLP+Hij9mWWId9sdnI30hLtvblrtR 6Q6G0hPAQ6UW/BfcZlh6ypcyugkFInng366B/st+sqBX3jlQa5TMIAcbOGHbFSaGtqWh kai+oCzZc3yPL6+SSA8J4/ZIfGGdTIjJCeORP2MCQZdDI1j4tZ9jngOt0mg4YqW7qVDe uw6JFCclXDTraTN/qRcUdXTOXOoXCyC5AZ9wS2ZxVKFFhwQiv5jsKqEBOfHfCMgZMtSt 2ngg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:message-id:date:subject:cc:to:from; bh=EooVeu1c/blMaPZjCigmQeOCVH9uEFwzgfK1z4EmTCo=; b=aLpAGrbejlwUoec4f/3L+tw/L8ZhIcUC+h2ELVnf4dRpoOux9lfBPUZxOxAg1OnevJ 2r7y81gtHkX1jqHmJEFD/Sm++awH/lCnMWQvqP+Y5vsstO3qEilFhdYdteWMXhv8h3PQ 8BBVYEzADwGKnSEhbk+tsWaPeG8uBYp/KZSv/47LDnQvm0IbnXWovLGLHO8f8gkI87z/ TusWDAW5cF7YIon1I5Ur/mrn3jucYHg++j/mhDo5H846/Zm2YFqjTVAHBQ5tg/Hexpv6 +jPj8YegGA8lpCR2DIBoVLeg9vNecTrJe6Rby86Yk6H6U6HRskJLl/Ejg1v1S4TK/Gy3 pYnQ== 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 dn10si900957ejc.671.2021.07.07.18.39.41; Wed, 07 Jul 2021 18: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 S230164AbhGHBlJ (ORCPT + 99 others); Wed, 7 Jul 2021 21:41:09 -0400 Received: from mga06.intel.com ([134.134.136.31]:38898 "EHLO mga06.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230121AbhGHBlJ (ORCPT ); Wed, 7 Jul 2021 21:41:09 -0400 X-IronPort-AV: E=McAfee;i="6200,9189,10038"; a="270538739" X-IronPort-AV: E=Sophos;i="5.84,222,1620716400"; d="scan'208";a="270538739" Received: from orsmga008.jf.intel.com ([10.7.209.65]) by orsmga104.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 07 Jul 2021 18:38:23 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.84,222,1620716400"; d="scan'208";a="457708819" Received: from kbl-ppc.sh.intel.com ([10.239.159.163]) by orsmga008.jf.intel.com with ESMTP; 07 Jul 2021 18:38:20 -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 v2 0/4] perf tool: Skip invalid hybrid PMU Date: Thu, 8 Jul 2021 09:36:57 +0800 Message-Id: <20210708013701.20347-1-yao.jin@linux.intel.com> X-Mailer: git-send-email 2.17.1 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On hybrid platform, such as Alderlake, if atom CPUs are offlined, the kernel still exports the sysfs path '/sys/devices/cpu_atom/' for 'cpu_atom' pmu but the file '/sys/devices/cpu_atom/cpus' is empty, which indicates this is an invalid pmu. So we need to check and skip the invalid hybrid pmu. Also we need to update some perf test cases for core-only system. Jin Yao (4): perf pmu: Skip invalid hybrid pmu perf tests: Fix 'Parse event definition strings' on core-only system perf tests: Fix 'Roundtrip evsel->name' on core-only system perf tests: Fix 'Convert perf time to TSC' on core-only system tools/perf/tests/evsel-roundtrip-name.c | 3 ++- tools/perf/tests/parse-events.c | 16 ++++++++++------ tools/perf/tests/perf-time-to-tsc.c | 3 ++- tools/perf/util/pmu.c | 9 ++++++++- 4 files changed, 22 insertions(+), 9 deletions(-) -- 2.17.1