Re: [RFC 0/4] perf tool: Adding ratios support

2013-01-22 Thread Will Deacon
On Mon, Jan 21, 2013 at 07:13:25PM +, Jiri Olsa wrote: > On Thu, Jan 17, 2013 at 10:23:26AM +, Will Deacon wrote: > > On Wed, Jan 16, 2013 at 01:30:33PM +, Jiri Olsa wrote: > > > On Wed, Jan 16, 2013 at 01:13:18PM +, Will Deacon wrote: > > > > On Tue, Jan 15, 2013 at 01:39:50PM +000

Re: [RFC 0/4] perf tool: Adding ratios support

2013-01-21 Thread Jiri Olsa
On Thu, Jan 17, 2013 at 10:23:26AM +, Will Deacon wrote: > On Wed, Jan 16, 2013 at 01:30:33PM +, Jiri Olsa wrote: > > On Wed, Jan 16, 2013 at 01:13:18PM +, Will Deacon wrote: > > > On Tue, Jan 15, 2013 at 01:39:50PM +, Jiri Olsa wrote: > > > > The formula can currently contain any e

Re: [RFC 0/4] perf tool: Adding ratios support

2013-01-17 Thread Jiri Olsa
On Thu, Jan 17, 2013 at 10:03:32AM +0900, Namhyung Kim wrote: > Hi, > > On Wed, 16 Jan 2013 10:12:14 -0500, Ulrich Drepper wrote: > > On Wed, Jan 16, 2013 at 9:25 AM, Jiri Olsa wrote: > >> I was thinking having config files (global and arch specific) > >> comming with perf having predefined formu

Re: [RFC 0/4] perf tool: Adding ratios support

2013-01-17 Thread Will Deacon
On Wed, Jan 16, 2013 at 01:30:33PM +, Jiri Olsa wrote: > On Wed, Jan 16, 2013 at 01:13:18PM +, Will Deacon wrote: > > On Tue, Jan 15, 2013 at 01:39:50PM +, Jiri Olsa wrote: > > > The formula can currently contain any event from the set::events > > > plus any number (int). There'll be su

Re: [RFC 0/4] perf tool: Adding ratios support

2013-01-16 Thread Namhyung Kim
Hi, On Wed, 16 Jan 2013 10:12:14 -0500, Ulrich Drepper wrote: > On Wed, Jan 16, 2013 at 9:25 AM, Jiri Olsa wrote: >> I was thinking having config files (global and arch specific) >> comming with perf having predefined formulas. > > All the more reason to not mention the file name or really any so

Re: [RFC 0/4] perf tool: Adding ratios support

2013-01-16 Thread Ulrich Drepper
On Wed, Jan 16, 2013 at 9:25 AM, Jiri Olsa wrote: > I was thinking having config files (global and arch specific) > comming with perf having predefined formulas. All the more reason to not mention the file name or really any source for the definition of the formula in the name, > 1) -e 'ratio/

Re: [RFC 0/4] perf tool: Adding ratios support

2013-01-16 Thread Jiri Olsa
On Wed, Jan 16, 2013 at 09:00:07AM -0500, Ulrich Drepper wrote: > On Tue, Jan 15, 2013 at 8:39 AM, Jiri Olsa wrote: > > $ perf stat -f formula.conf:cpi kill > > usage: kill [ -s signal | -p ] [ -a ] pid ... > > kill -l [ signal ] > > I do like this proposal. The only comment I have

Re: [RFC 0/4] perf tool: Adding ratios support

2013-01-16 Thread Ulrich Drepper
On Tue, Jan 15, 2013 at 8:39 AM, Jiri Olsa wrote: > $ perf stat -f formula.conf:cpi kill > usage: kill [ -s signal | -p ] [ -a ] pid ... > kill -l [ signal ] I do like this proposal. The only comment I have is that perhaps the command line syntax isn't ideal. What you use above is

Re: [RFC 0/4] perf tool: Adding ratios support

2013-01-16 Thread Jiri Olsa
On Wed, Jan 16, 2013 at 01:13:18PM +, Will Deacon wrote: > On Tue, Jan 15, 2013 at 01:39:50PM +, Jiri Olsa wrote: > > hi, > > Hi Jiri, > > > adding support to predefine event ratios formulas so they could > > be used easily in perf. > > > > The formulas are handed in the config file with

Re: [RFC 0/4] perf tool: Adding ratios support

2013-01-16 Thread Will Deacon
On Tue, Jan 15, 2013 at 01:39:50PM +, Jiri Olsa wrote: > hi, Hi Jiri, > adding support to predefine event ratios formulas so they could > be used easily in perf. > > The formulas are handed in the config file with following format: > > set { > events = {cycles,instructions,branch-

[RFC 0/4] perf tool: Adding ratios support

2013-01-15 Thread Jiri Olsa
hi, adding support to predefine event ratios formulas so they could be used easily in perf. The formulas are handed in the config file with following format: set { events = {cycles,instructions,branch-instructions}:u cpi { formula = cycles / instructions