From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1030472AbcJQR1A (ORCPT ); Mon, 17 Oct 2016 13:27:00 -0400 Received: from mx1.redhat.com ([209.132.183.28]:52962 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S933633AbcJQR0u (ORCPT ); Mon, 17 Oct 2016 13:26:50 -0400 Date: Mon, 17 Oct 2016 19:26:47 +0200 From: Jiri Olsa To: Andi Kleen Cc: acme@kernel.org, jolsa@kernel.org, sukadev@linux.vnet.ibm.com, eranian@google.com, linux-kernel@vger.kernel.org, Andi Kleen Subject: Re: [PATCH 08/10] perf, tools: Expand PMU events by prefix match Message-ID: <20161017172647.GA21680@krava> References: <1476393332-20732-1-git-send-email-andi@firstfloor.org> <1476393332-20732-9-git-send-email-andi@firstfloor.org> <20161017114038.GD24552@krava> <20161017165642.GO26852@two.firstfloor.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20161017165642.GO26852@two.firstfloor.org> User-Agent: Mutt/1.7.1 (2016-10-04) X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.32]); Mon, 17 Oct 2016 17:26:49 +0000 (UTC) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Oct 17, 2016 at 09:56:42AM -0700, Andi Kleen wrote: > > so there's a special treatment for uncore events, > > what if user says 'uncore_box/..' then? > > It should work. There's nothing special for uncore later, this > is just for convenience so that I have less to type. really.. 'uncore_cbox_0/clockticks/' [jolsa@krava perf]$ sudo ./perf stat -e 'uncore_cbox_0/clockticks/' -a ^C Performance counter stats for 'system wide': 0 uncore_cbox_0/clockticks/ 0.676237018 seconds time elapsed 'cbox_0/clockticks/' [jolsa@krava perf]$ sudo ./perf stat -e 'cbox_0/clockticks/' -a ^C Performance counter stats for 'system wide': 0 cbox_0/clockticks/ 0.991623038 seconds time elapsed 'cbox/clockticks' [jolsa@krava perf]$ sudo ./perf stat -e 'cbox/clockticks/' -a ^C Performance counter stats for 'system wide': 0 cbox/clockticks/ 0.708006656 seconds time elapsed 'uncore_cbox/clockticks/' [jolsa@krava perf]$ sudo ./perf stat -e 'uncore_cbox/clockticks/' -a invalid or unsupported event: 'uncore_cbox/clockticks/' Run 'perf list' for a list of valid events Usage: perf stat [] [] -e, --event event selector. use 'perf list' to list available events jirka