[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <20130515091331.GF10510@laptop.programming.kicks-ass.net>
Date: Wed, 15 May 2013 11:13:31 +0200
From: Peter Zijlstra <peterz@...radead.org>
To: Jiri Olsa <jolsa@...hat.com>
Cc: linux-kernel@...r.kernel.org, Andi Kleen <andi@...stfloor.org>,
Corey Ashford <cjashfor@...ux.vnet.ibm.com>,
David Ahern <dsahern@...il.com>,
Frederic Weisbecker <fweisbec@...il.com>,
Ingo Molnar <mingo@...e.hu>,
Namhyung Kim <namhyung@...nel.org>,
Paul Mackerras <paulus@...ba.org>,
Ulrich Drepper <drepper@...il.com>,
Arnaldo Carvalho de Melo <acme@...hat.com>,
Will Deacon <will.deacon@....com>,
Stephane Eranian <eranian@...gle.com>
Subject: Re: [PATCH 4/8] perf tools: Add formula interface to interface
formula definitions
On Wed, May 01, 2013 at 05:15:42PM +0200, Jiri Olsa wrote:
> Each counter (cpi/branch-rate above) defines formula that
> produces the counter number.
>
> Formula grammar:
>
> expr: '-' expr |
> expr '+' expr |
> expr '-' expr |
> expr '*' expr |
> expr '/' expr |
> value |
> name
>
I was going to suggest adding (), but then I saw
> +<expr>{
> +"*" { return '*'; }
> +"-" { return '-'; }
> +"+" { return '+'; }
> +"/" { return '/'; }
> +"(" { return '('; }
> +")" { return ')'; }
> +
> +'(' expr ')'
> +{
> + $$ = $2;
> + pr_debug2("( %F )\n", $$);
> +}
:-)
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists