From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S933890AbbDVOh6 (ORCPT ); Wed, 22 Apr 2015 10:37:58 -0400 Received: from mail.kernel.org ([198.145.29.136]:35678 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932874AbbDVOh4 (ORCPT ); Wed, 22 Apr 2015 10:37:56 -0400 Date: Wed, 22 Apr 2015 11:37:51 -0300 From: Arnaldo Carvalho de Melo To: Jiri Olsa Cc: Ingo Molnar , Jiri Olsa , lkml , Peter Zijlstra , Paul Mackerras , David Ahern , Namhyung Kim Subject: Re: [RFC 0/6] perf tools: Report event parsing errors Message-ID: <20150422143751.GB2316@kernel.org> References: <1429377946-2147-1-git-send-email-jolsa@kernel.org> <20150418173927.GA5897@gmail.com> <20150418204258.GA26943@krava.redhat.com> <20150420200936.GM11111@kernel.org> <20150420201539.GC10644@krava.redhat.com> <20150420203852.GO11111@kernel.org> <20150422140850.GC29174@krava.redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20150422140850.GC29174@krava.redhat.com> X-Url: http://acmel.wordpress.com 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 Em Wed, Apr 22, 2015 at 04:08:50PM +0200, Jiri Olsa escreveu: > On Mon, Apr 20, 2015 at 05:38:52PM -0300, Arnaldo Carvalho de Melo wrote: > > Em Mon, Apr 20, 2015 at 10:15:39PM +0200, Jiri Olsa escreveu: > > > On Mon, Apr 20, 2015 at 05:09:36PM -0300, Arnaldo Carvalho de Melo wrote: > > > > Which is nice, wouldn't it be good to have it for the that as well, i.e. > > > > for your example "ev=" would be a valid, and shorter form of "even=" or > > > > "event=". > > > hum, not sure I follow.. could you please explain in more details? > > This would be considered valid: > > $ ./perf record -e 'cpu/even=0x1/' ls > > event syntax error: 'cpu/even=0x1/' > > \___ unknown term > > valid terms: "event", "raw". > > "even=" would be recognized as a shorter form of "event=", "evint=" > > would be invalid :-) > hum I see.. seem to be touching the bison/flex core part, might not > be that easy I'll think about it.. ;-) This is just a "nice to have" feature, that would make it consistent accross the tools, i.e. it works for long option processing, it would work for event parsing, etc, but I guess you can leave it for when there is a blizzard and you get stuck at home or something like that ;-) - Arnaldo