From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mx1.redhat.com (mx1.redhat.com [209.132.183.28]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by lists.ozlabs.org (Postfix) with ESMTPS id 3spBdw2sw0zDrPW for ; Tue, 4 Oct 2016 19:19:16 +1100 (AEDT) Date: Tue, 4 Oct 2016 10:19:11 +0200 From: Jiri Olsa To: Arnaldo Carvalho de Melo Cc: Sukadev Bhattiprolu , peterz@infradead.org, maddy@linux.vnet.ibm.com, linuxppc-dev@lists.ozlabs.org, linux-kernel@vger.kernel.org, Jiri Olsa , Andi Kleen Subject: Re: [PATCH v21 16/19] perf, tools: Make alias matching case-insensitive Message-ID: <20161004081911.GA29784@krava> References: <1473978296-20712-1-git-send-email-sukadev@linux.vnet.ibm.com> <1473978296-20712-17-git-send-email-sukadev@linux.vnet.ibm.com> <20161004004706.GF7143@kernel.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii In-Reply-To: <20161004004706.GF7143@kernel.org> List-Id: Linux on PowerPC Developers Mail List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , On Mon, Oct 03, 2016 at 09:47:06PM -0300, Arnaldo Carvalho de Melo wrote: > Em Thu, Sep 15, 2016 at 03:24:53PM -0700, Sukadev Bhattiprolu escreveu: > > From: Andi Kleen > > > > Make alias matching the events parser case-insensitive. This is useful > > with the JSON events. perf uses lower case events, but the CPU manuals > > generally use upper case event names. The JSON files use lower > > case by default too. But if we search case insensitively then > > users can cut-n-paste the upper case event names. > > > > So the following works: > > > > % perf stat -e BR_INST_EXEC.TAKEN_INDIRECT_NEAR_CALL true > > > > Performance counter stats for 'true': > > > > 305 BR_INST_EXEC.TAKEN_INDIRECT_NEAR_CALL > > > > 0.000492799 seconds time elapsed > > So now trying to figure this out: > > [acme@jouet linux]$ perf stat -e br_inst_exec.all_direct_near_call true > event syntax error: 'br_inst_exec.all_direct_near_call' > \___ 'period' is not usable in 'perf stat' > Run 'perf list' for a list of valid events looks like you need also this one: 155128eaa62f Allow period= in perf stat CPU event descriptions. jirka