Received: by 2002:a05:6a10:9848:0:0:0:0 with SMTP id x8csp458098pxf; Thu, 18 Mar 2021 04:53:40 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwPigcAPENKVD0M4vHdmn37uQTScyelEqbt6HDfkx/fkGkwbvEMytcQ95mdCSR0YSe1I8Z9 X-Received: by 2002:a17:906:18a1:: with SMTP id c1mr23946520ejf.62.1616068420428; Thu, 18 Mar 2021 04:53:40 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1616068420; cv=none; d=google.com; s=arc-20160816; b=N7eUbNQH4SwtdZzQM+Yoow4qjQKOJUnF4Z4GikbXVFTjc/T2v3cPs18j4AGjx2q5qU 7fxfEcnlLeZBZvwnzR8ofYNCFNzCTTmqJI12TEfuy2y/joqygPBdyXQa2RadMkIQX1uV thbhwk344LWyQB4OMb4dX2H/uuVaiL10H0aPzJhi1EweTDGHWmozA8g0b7JSNAyrvD69 bmYKI9OvZx8M3iWiZV5dVTFnC8xAmcOtN3TiEaAAJ1GXwB4W1G9gPjPJrDFLgADAse7a FarYOzrVYalV6ysvyc2DClj3cqV55vbJBmbvMawc1R+tQy9KSTnz2bd3rdcf9R/ewNAL uTUg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=RgtsA5KUehMmtmf9kRkW1SBSeTOUxt617f5ZR2KNNlc=; b=zZBgi2BxrhoFy5weO3s3+0jRJsgHDEx/CJ4ym9vwsoGxuwkUAeLtZzNktH7RU3rH0c vZ/rLwHn3PkXHBoQyepTacX3sLnUNJyRoP0vtBpi36RQou00oDvusDzcPnsWxnddwuaD pYCFY4T8Pbs7NRj88DJuIIOS7azYm2FlavGsyLhCA4VAQkTfS1x8qPXlYDSbnjNf7ycq hfebajKSNvov5dBCl1V9cxWCWoLqBjeBKUQvzoq8C7hx/h0a0KtdEcJVSmXxEwZ9rpqG aDZjxKqnTHpedoHVjjTHCbUpoRHQg0j6VRdHa8y9GnnI2aX8SaITp0nRuQHEk0sXtXSQ bERQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=VAIcaAl6; 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=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id y2si1454674edu.245.2021.03.18.04.53.17; Thu, 18 Mar 2021 04:53:40 -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; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=VAIcaAl6; 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=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230266AbhCRLwW (ORCPT + 99 others); Thu, 18 Mar 2021 07:52:22 -0400 Received: from us-smtp-delivery-124.mimecast.com ([216.205.24.124]:24457 "EHLO us-smtp-delivery-124.mimecast.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229747AbhCRLvx (ORCPT ); Thu, 18 Mar 2021 07:51:53 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1616068312; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=RgtsA5KUehMmtmf9kRkW1SBSeTOUxt617f5ZR2KNNlc=; b=VAIcaAl6mPFWRyF98AwQncZHnMOp/hxXSmgX0neC11DVR1ax0pbAXEknx8O2zbw4ThSUbn iUZPfsg5sAztjkItelDAGFMnlHXf8+T91kGV6RTPbXD8r4bwRhgPJsCf6CNqhDfUkXl9Aa JbedZ0EdXdPk3lHcqI0qCiXebajUPx0= Received: from mimecast-mx01.redhat.com (mimecast-mx01.redhat.com [209.132.183.4]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-513-dt9R1DmIPT26mo52n5ETBw-1; Thu, 18 Mar 2021 07:51:50 -0400 X-MC-Unique: dt9R1DmIPT26mo52n5ETBw-1 Received: from smtp.corp.redhat.com (int-mx07.intmail.prod.int.phx2.redhat.com [10.5.11.22]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx01.redhat.com (Postfix) with ESMTPS id B9039107ACCA; Thu, 18 Mar 2021 11:51:48 +0000 (UTC) Received: from krava (unknown [10.40.194.6]) by smtp.corp.redhat.com (Postfix) with SMTP id 6DE4010016F8; Thu, 18 Mar 2021 11:51:46 +0000 (UTC) Date: Thu, 18 Mar 2021 12:51:45 +0100 From: Jiri Olsa To: "Jin, Yao" Cc: acme@kernel.org, jolsa@kernel.org, peterz@infradead.org, mingo@redhat.com, alexander.shishkin@linux.intel.com, Linux-kernel@vger.kernel.org, ak@linux.intel.com, kan.liang@intel.com, yao.jin@intel.com Subject: Re: [PATCH v2 11/27] perf parse-events: Support hardware events inside PMU Message-ID: References: <20210311070742.9318-1-yao.jin@linux.intel.com> <20210311070742.9318-12-yao.jin@linux.intel.com> <65624432-2752-8381-d299-9b48ec508406@linux.intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-Scanned-By: MIMEDefang 2.84 on 10.5.11.22 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Mar 17, 2021 at 08:17:52PM +0800, Jin, Yao wrote: SNIP > > > > > > For example, > > > > > > perf stat -e '{cpu_core/cycles/,cpu_core/instructions/}' -e '{cpu_atom/cycles/,cpu_atom/instructions/}' > > > > > > This usage is common and reasonable. So I think we may need to support pmu style events. > > > > sure, but we don't support 'cpu/cycles/' but we support 'cpu/cpu-cycles/' > > why do you insist on supporting cpu_core/cycles/ ? > > > > jirka > > > > I'm OK to only support 'cpu_core/cpu-cycles/' or 'cpu_atom/cpu-cycles/'. But > what would we do for cache event? > > 'perf stat -e LLC-loads' is OK, but 'perf stat -e cpu/LLC-loads/' is not supported currently. ugh, I keep forgetting those ;-) > > For hybrid platform, user may only want to enable the LLC-loads on core CPUs > or on atom CPUs. That's reasonable. While if we don't support the pmu style > event, how to satisfy this requirement? > > If we can support the pmu style event, we can also use the same way for > cpu_core/cycles/. At least it's not a bad thing, right? :) right, it's probably best to use the pmu/LLC-.../ for this, I'll check the patch again jirka