Re: [PATCH 2/4] perf, tools: Implement duration_time as a proper event

2019-03-27 Thread Andi Kleen
> > so now that we have time in a separate event, we could > get rid of the isolated update_stats(&walltime_nsecs_stats) calls > and move them to perf_stat__update_shadow_stats? In theory yes, but it would require perf stat always setting up the duration_time event implicitely and then special ha

Re: [PATCH 2/4] perf, tools: Implement duration_time as a proper event

2019-03-27 Thread Jiri Olsa
On Tue, Mar 26, 2019 at 03:18:21PM -0700, Andi Kleen wrote: > From: Andi Kleen > > The perf metric expression use duration_time internally to normalize > events. Normal perf stat without -x also prints the duration time. > But when using -x, the interval is not output anywhere, which > is inconve

[PATCH 2/4] perf, tools: Implement duration_time as a proper event

2019-03-26 Thread Andi Kleen
From: Andi Kleen The perf metric expression use duration_time internally to normalize events. Normal perf stat without -x also prints the duration time. But when using -x, the interval is not output anywhere, which is inconvenient for any post processing which often wants to normalize values to t