Re: [PATCH v5 5/5] perf stat: Report summary for interval mode

2020-05-18 Thread Jin, Yao
Hi Jiri, On 5/18/2020 8:47 PM, Jiri Olsa wrote: On Thu, May 14, 2020 at 01:36:38PM +0800, Jin Yao wrote: SNIP evlist__for_each_entry(evsel_list, counter) { if (counter->err) @@ -394,6 +403,7 @@ static void runtime_stat_reset(struct perf_stat_config *config) static voi

Re: [PATCH v5 5/5] perf stat: Report summary for interval mode

2020-05-18 Thread Jiri Olsa
On Thu, May 14, 2020 at 01:36:38PM +0800, Jin Yao wrote: SNIP > > evlist__for_each_entry(evsel_list, counter) { > if (counter->err) > @@ -394,6 +403,7 @@ static void runtime_stat_reset(struct perf_stat_config > *config) > static void process_interval(void) > { > str

[PATCH v5 5/5] perf stat: Report summary for interval mode

2020-05-13 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->prev_raw_counts' to get counts for summary. Copy the counts to 'evsel->counts' after printing the interval results. Next, we just follow the