Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp909161pxj; Wed, 16 Jun 2021 16:59:27 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxFiKByA/Hwohfhkny0VSi5wZdo/3dhVp54a9IIYfioyAkF0ZBHYxs7TAiVZtnzXIVjIMtT X-Received: by 2002:a17:906:4e06:: with SMTP id z6mr2104815eju.34.1623887967185; Wed, 16 Jun 2021 16:59:27 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1623887967; cv=none; d=google.com; s=arc-20160816; b=bR/FjKa4hE8c4qdfP1zzWmPbGyeD8cnJAHs8UqQzm5HPCqls/0snKXoj5GVuKzaZjL kbn+5jyaCd2Z5pJmZeUoZ1qj70nNwpv40M7UBkrmXGjAUewRbjkjF39VbGVyiqR0h6de Zxumvy9UVXQJ6WsmpV6ETZ1qCeNCxX+kfuS1ujxrzZqGXYPLsvyrJwAY3KR5EtHOQ3U+ Ar2lsaywGGslijV9MABu+P+w9P9xqSzSRmbaWzFIaf5uixkRqUYTEU+eH8+XCRIFMkOB WrUBgG4izcENu3sO82MNucb0lDNHve2/rIj83kqD9gWtTt0bSqRwC3wj+U5cGJ6oXVp2 gvBA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-language:content-transfer-encoding :in-reply-to:mime-version:user-agent:date:message-id:from:references :cc:to:subject:ironport-sdr:ironport-sdr; bh=yqLUcc59JB1nRD+7qbabQtI1ZR5remkbp5DIB3SBY+A=; b=VvvtFoucj8uN3H+JYvzYgq/Et57I+9Mb6CEXoGI8PXXwdgXVu/h58lK5MAx3AZE6BJ hqm036guJuMGPTjBsGMOOBMdHBkzXsoBCxYItnUi3edwWXNqYoyIrSKor/hGzrCJNjGi /Tf9M4li411n4ExQ7JohSZK4b2yEkm9k/J77ByErj8psS9j4IZkeQjGa3CQQaT9AzN7g 1PVbipccE8qxXWfwvZWZRe4Xocxk2VCHPyMGA+CC2GZvhiauvNP4JFu3HDkSlAK1deOm CaYw479wgdqx/sWEZt570Zwd+ssIFD4COvX7VcMnQtf+eH8eUbECEcB/l6ic5RhfF0qz hDZw== 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 d19si3621236ejo.263.2021.06.16.16.59.04; Wed, 16 Jun 2021 16:59:27 -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 S230075AbhFPQkL (ORCPT + 99 others); Wed, 16 Jun 2021 12:40:11 -0400 Received: from mga07.intel.com ([134.134.136.100]:60374 "EHLO mga07.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229693AbhFPQkF (ORCPT ); Wed, 16 Jun 2021 12:40:05 -0400 IronPort-SDR: 0LJkyUWwsIUyDnZqm8XLzTrWNSaYU4o1bhWbTdLjlF0fJExSFZzLv85EgzDxqG2fV3V/4/PaMe Oim7RIHiFtSg== X-IronPort-AV: E=McAfee;i="6200,9189,10016"; a="270062752" X-IronPort-AV: E=Sophos;i="5.83,278,1616482800"; d="scan'208";a="270062752" Received: from orsmga008.jf.intel.com ([10.7.209.65]) by orsmga105.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 16 Jun 2021 09:37:52 -0700 IronPort-SDR: 3tuiW0suDf8PSG0katMJfGxBKUH/unKXo7FzyA5EIBu+tXv9TwSXN87cNLN1Wp35EQZnrydkaL t4q1rq2rzigQ== X-IronPort-AV: E=Sophos;i="5.83,278,1616482800"; d="scan'208";a="450686398" Received: from akleen-mobl1.amr.corp.intel.com (HELO [10.209.90.123]) ([10.209.90.123]) by orsmga008-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 16 Jun 2021 09:37:52 -0700 Subject: Re: [PATCH] perf list: Skip the invalid hybrid pmu To: Jin Yao , acme@kernel.org, jolsa@kernel.org, peterz@infradead.org, mingo@redhat.com, alexander.shishkin@linux.intel.com Cc: Linux-kernel@vger.kernel.org, kan.liang@intel.com, yao.jin@intel.com References: <20210610051646.4003-1-yao.jin@linux.intel.com> From: Andi Kleen Message-ID: <77380298-b3d5-d165-c8d4-a24b22d15b0c@linux.intel.com> Date: Wed, 16 Jun 2021 09:37:47 -0700 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:78.0) Gecko/20100101 Thunderbird/78.11.0 MIME-Version: 1.0 In-Reply-To: <20210610051646.4003-1-yao.jin@linux.intel.com> Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit Content-Language: en-US Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 6/9/2021 10:16 PM, Jin Yao wrote: > 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. The patch looks good, but it would probably make sense to fix the kernel to avoid this too. Of course the tools patch would still be needed for older kernels. -Andi