Re: [PATCH 8/8] perf stat: Add computation of TopDown formulas

2016-05-20 Thread Andi Kleen
On Fri, May 20, 2016 at 03:43:46PM +0200, Jiri Olsa wrote: > On Fri, May 20, 2016 at 06:38:33AM -0700, Andi Kleen wrote: > > > > @@ -82,6 +87,12 @@ void perf_stat__reset_shadow_stats(void) > > > > sizeof(runtime_transaction_stats)); > > > > memset(runtime_elision_stats, 0, s

Re: [PATCH 8/8] perf stat: Add computation of TopDown formulas

2016-05-20 Thread Jiri Olsa
On Fri, May 20, 2016 at 06:38:33AM -0700, Andi Kleen wrote: > > > @@ -82,6 +87,12 @@ void perf_stat__reset_shadow_stats(void) > > > sizeof(runtime_transaction_stats)); > > > memset(runtime_elision_stats, 0, sizeof(runtime_elision_stats)); > > > memset(&walltime_nsecs_stats, 0, sizeof(

Re: [PATCH 8/8] perf stat: Add computation of TopDown formulas

2016-05-20 Thread Andi Kleen
Here's an updated patch without the extra line --- Implement the TopDown formulas in perf stat. The topdown basic metrics reported by the kernel are collected, and the formulas are computed and output as normal metrics. See the kernel commit exporting the events for details on the used metrics.

Re: [PATCH 8/8] perf stat: Add computation of TopDown formulas

2016-05-20 Thread Andi Kleen
> > @@ -82,6 +87,12 @@ void perf_stat__reset_shadow_stats(void) > > sizeof(runtime_transaction_stats)); > > memset(runtime_elision_stats, 0, sizeof(runtime_elision_stats)); > > memset(&walltime_nsecs_stats, 0, sizeof(walltime_nsecs_stats)); > > + memset(runtime_topdown_total_s

Re: [PATCH 8/8] perf stat: Add computation of TopDown formulas

2016-05-20 Thread Jiri Olsa
On Fri, May 13, 2016 at 06:44:57PM -0700, Andi Kleen wrote: > From: Andi Kleen > > Implement the TopDown formulas in perf stat. The topdown basic metrics > reported by the kernel are collected, and the formulas are computed > and output as normal metrics. > > See the kernel commit exporting the

[PATCH 8/8] perf stat: Add computation of TopDown formulas

2016-05-19 Thread Andi Kleen
From: Andi Kleen Implement the TopDown formulas in perf stat. The topdown basic metrics reported by the kernel are collected, and the formulas are computed and output as normal metrics. See the kernel commit exporting the events for details on the used metrics. v2: Always print all metrics, onl

[PATCH 8/8] perf stat: Add computation of TopDown formulas

2016-05-13 Thread Andi Kleen
From: Andi Kleen Implement the TopDown formulas in perf stat. The topdown basic metrics reported by the kernel are collected, and the formulas are computed and output as normal metrics. See the kernel commit exporting the events for details on the used metrics. v2: Always print all metrics, onl