Re: [PATCH 10/13] perf, tools, stat: Output JSON MetricExpr metric

2017-03-21 Thread Andi Kleen
On Tue, Mar 21, 2017 at 04:42:45PM -0300, Arnaldo Carvalho de Melo wrote: > Em Tue, Mar 21, 2017 at 08:45:22AM -0700, Andi Kleen escreveu: > > > > % perf stat -a -I 1000 -e '{unc_p_clockticks,unc_p_freq_max_os_cycles}' > > > > --metric-only > > > > 1.000127077 0.9 > > > > 2.00030143

Re: [PATCH 10/13] perf, tools, stat: Output JSON MetricExpr metric

2017-03-21 Thread Arnaldo Carvalho de Melo
Em Tue, Mar 21, 2017 at 08:45:22AM -0700, Andi Kleen escreveu: > > > % perf stat -a -I 1000 -e '{unc_p_clockticks,unc_p_freq_max_os_cycles}' > > > --metric-only > > > 1.000127077 0.9 > > > 2.000301436 0.7 > > > 3.000456379 0.0 > > > > The comment above suggest I'll s

Re: [PATCH 10/13] perf, tools, stat: Output JSON MetricExpr metric

2017-03-21 Thread Andi Kleen
> > % perf stat -a -I 1000 -e '{unc_p_clockticks,unc_p_freq_max_os_cycles}' > > --metric-only > > 1.000127077 0.9 > > 2.000301436 0.7 > > 3.000456379 0.0 > > The comment above suggest I'll see 'original event as description' in this > example?? Yes the latest code

Re: [PATCH 10/13] perf, tools, stat: Output JSON MetricExpr metric

2017-03-21 Thread Jiri Olsa
On Mon, Mar 20, 2017 at 01:17:08PM -0700, Andi Kleen wrote: > From: Andi Kleen > > Add generic infrastructure to perf stat to output ratios for "MetricExpr" > entries in the event lists. Many events are more useful as ratios > than in raw form, typically some count in relation to total ticks. >

[PATCH 10/13] perf, tools, stat: Output JSON MetricExpr metric

2017-03-20 Thread Andi Kleen
From: Andi Kleen Add generic infrastructure to perf stat to output ratios for "MetricExpr" entries in the event lists. Many events are more useful as ratios than in raw form, typically some count in relation to total ticks. Transfer the MetricExpr information from the alias to the evsel. We mar

[PATCH 10/13] perf, tools, stat: Output JSON MetricExpr metric

2017-03-10 Thread Andi Kleen
From: Andi Kleen Add generic infrastructure to perf stat to output ratios for "MetricExpr" entries in the event lists. Many events are more useful as ratios than in raw form, typically some count in relation to total ticks. Transfer the MetricExpr information from the alias to the evsel. We mar