From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754857AbdJIPjJ (ORCPT ); Mon, 9 Oct 2017 11:39:09 -0400 Received: from one.firstfloor.org ([193.170.194.197]:45640 "EHLO one.firstfloor.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754240AbdJIPjI (ORCPT ); Mon, 9 Oct 2017 11:39:08 -0400 Date: Mon, 9 Oct 2017 08:39:06 -0700 From: Andi Kleen To: Jiri Olsa Cc: Arnaldo Carvalho de Melo , Andi Kleen , Jiri Olsa , Wang Nan , linux-kernel@vger.kernel.org, Andi Kleen , He Kuang , Alexei Starovoitov Subject: Re: [PATCH 2/2] perf, tools: Don't force MetricExprs to lower case Message-ID: <20171009153906.GH2482@two.firstfloor.org> References: <20170912195643.2611-1-andi@firstfloor.org> <20170912195643.2611-2-andi@firstfloor.org> <20171003160605.GC25388@kernel.org> <20171004103052.GC23759@krava> <20171004162711.GF2482@two.firstfloor.org> <20171009134151.GA15127@krava> <20171009140728.GG2482@two.firstfloor.org> <20171009141258.GE28623@kernel.org> <20171009143953.GA1561@krava> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20171009143953.GA1561@krava> User-Agent: Mutt/1.5.23 (2014-03-12) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org > > > > perf stat -e cpu/uops_executed.core/ ls > > > > perf stat -e uops_executed.core ls > > > > > > Ok. If it works it's fine for me. > > well it works, but it means that bpf file cannot contains any directory > part.. which im not sure is ok with bpf folks ;-) anyone? One way that may work is to - switch to a new proper syntax for bpf (like bpf("filename")) that can be parsed properly - handle simple cases like just that file name in the old syntax in a pre processing pass of the scanner that converts it. - users who specify multiple scripts or combine with other events in the same -e line would need to change their syntax, but I assume that's relatively rare. -Andi