Received: by 2002:a05:6a10:eb17:0:0:0:0 with SMTP id hx23csp1017822pxb; Thu, 9 Sep 2021 18:07:28 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzlxrPrZUw0t8cfAHpXB6YocVPFKdUqNC9eP1UwU0UcIpYVbn2hzr7Fzt684RR49pE59HY+ X-Received: by 2002:a5d:914b:: with SMTP id y11mr5051693ioq.6.1631236048187; Thu, 09 Sep 2021 18:07:28 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1631236048; cv=none; d=google.com; s=arc-20160816; b=sBjoBwoAVEnIrCFAke1mcE6xvrbj3FQ7t7JFkEyVySyyof/c81UyWOkERk1JXTufRz 5GXArjKr7jk1D9jcpOj52zgCFeYrjxIVpaTtYToZVc3+Ski23NlZh4jGWltgx+ooe4iK 0G+oU7hPkyBEbye3T4iGTmtn1dNRlIhWfi99xNozVjmf+/HKKJi7KAMEVb+y8gJvwg0Q Lf+625gtTeToxdfp7G+kyOxIoP6tPNy6V5wmNqpmr+HwnzTjkwsS2o6dSpdFkIZF/b3h 9EV/4W9JDITqW+iJoRtidqBKUk0P/nfFBcyHstd4YfD04YlZxUC+dQEsPPgZJ4QL/pa2 qsdA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:content-language :in-reply-to:mime-version:user-agent:date:message-id:from:references :cc:to:subject; bh=U36f39flcgUC0PexW0nPTlAcJ/qYB39/a422gVq9J7o=; b=SYjqTdpFZ9qj44mU+P7u4HJVqz5APB9IGnuVoP57yCYaWWl7WdSJqtBmircjyCDGjw yfSWxZ/Ntb3yakgzqkhJIHDkbLo1SYupcQN6BEJOlZ26SyZ5+2ByjTko9ypFBQMy1/X/ kFd251qOuuFgx3xesJu4bCcTQ7zhy2eDKIRi80XjUFXBxdHQpaNDgLH/ZWkH6dGFjriL bUEg57JVm/BSOXCEXtdvRiD6ZSeYy3T+GZbfJ+5NKdNNFDyckWmYEQgpIsVpwpMuUgfj jp/XAtrdrIBSJ8NUj/Vm/2ozIfC7Gs1TboLX9ReRtPQCQg1jTFxERNp0vMjjM5bLJyYz cf3Q== 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 12si4555142ilx.115.2021.09.09.18.07.16; Thu, 09 Sep 2021 18:07:28 -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 S236030AbhIJBHU (ORCPT + 99 others); Thu, 9 Sep 2021 21:07:20 -0400 Received: from mga04.intel.com ([192.55.52.120]:33459 "EHLO mga04.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S240034AbhIJAlc (ORCPT ); Thu, 9 Sep 2021 20:41:32 -0400 X-IronPort-AV: E=McAfee;i="6200,9189,10102"; a="219093465" X-IronPort-AV: E=Sophos;i="5.85,282,1624345200"; d="scan'208";a="219093465" Received: from fmsmga003.fm.intel.com ([10.253.24.29]) by fmsmga104.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 09 Sep 2021 17:40:13 -0700 X-IronPort-AV: E=Sophos;i="5.85,282,1624345200"; d="scan'208";a="540053524" Received: from yjin15-mobl1.ccr.corp.intel.com (HELO [10.238.2.86]) ([10.238.2.86]) by fmsmga003-auth.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 09 Sep 2021 17:40:10 -0700 Subject: Re: [PATCH v2] perf list: Display hybrid pmu events with cpu type To: Andi Kleen , Ian Rogers Cc: acme@kernel.org, jolsa@kernel.org, peterz@infradead.org, mingo@redhat.com, alexander.shishkin@linux.intel.com, linux-kernel@vger.kernel.org, linux-perf-users@vger.kernel.org, kan.liang@intel.com, yao.jin@intel.com References: <20210903025239.22754-1-yao.jin@linux.intel.com> <0ccb62bf-34be-b986-4794-d8cc2a767a3e@linux.intel.com> From: "Jin, Yao" Message-ID: <59cf3fcb-e6cd-ddbe-84e5-6c3e85d575b4@linux.intel.com> Date: Fri, 10 Sep 2021 08:39:47 +0800 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:78.0) Gecko/20100101 Thunderbird/78.14.0 MIME-Version: 1.0 In-Reply-To: <0ccb62bf-34be-b986-4794-d8cc2a767a3e@linux.intel.com> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 9/10/2021 6:56 AM, Andi Kleen wrote: > > On 9/9/2021 3:37 PM, Ian Rogers wrote: >> On Thu, Sep 2, 2021 at 7:54 PM Jin Yao wrote: >>> Add a new option '--cputype' to perf-list to display core-only pmu events >>> or atom-only pmu events. >>> >>> Each hybrid pmu event has been assigned with a pmu name, this patch >>> compares the pmu name before listing the result. >> Would this work more broadly for any PMU type? If so perhaps pmu >> rather than cputype is a more appropriate option name? > > It's not just the cpu pmu, because it still lists the uncore events, which makes sense. > > If you want to match the pmu it probably would make sense to match it in the default matching for > non option arguments in perf list. But that would be a different patch. > > -Andi > > Yes, agree with Andi. Besides for cpu pmu events, it also lists the software events and uncore events. So probably cputype is an appropriate option name. Thanks Jin Yao