Re: [PATCH v2 2/2] perf stat: Report summary for interval mode

2020-05-06 Thread Jin, Yao
Hi Jiri, On 5/5/2020 7:41 AM, Jiri Olsa wrote: On Sat, May 02, 2020 at 10:07:05AM +0800, Jin Yao wrote: SNIP init_stats(_nsecs_stats); update_stats(_nsecs_stats, stat_config.interval * 100); print_counters(, 0, NULL); + walltime_nsecs_stats =

Re: [PATCH v2 2/2] perf stat: Report summary for interval mode

2020-05-04 Thread Jiri Olsa
On Sat, May 02, 2020 at 10:07:05AM +0800, Jin Yao wrote: SNIP > init_stats(_nsecs_stats); > update_stats(_nsecs_stats, stat_config.interval * 100); > print_counters(, 0, NULL); > + walltime_nsecs_stats = walltime_nsecs_stats_bak; > } > > static void

[PATCH v2 2/2] perf stat: Report summary for interval mode

2020-05-01 Thread Jin Yao
Currently perf-stat supports to print counts at regular interval (-I), but it's not very easy for user to get the overall statistics. The patch uses 'evsel->summary_counts' to sum up the per interval counts and copy the counts to 'evsel->counts' after printing the interval results. Next, we just