Re: [PATCH v4 04/10] perf stat: factor out event handling loop into a function

2020-06-01 Thread Alexey Budankov
On 01.06.2020 10:38, Alexey Budankov wrote: > > On 31.05.2020 21:19, Jiri Olsa wrote: >> On Mon, May 25, 2020 at 05:19:45PM +0300, Alexey Budankov wrote: >> >> SNIP >> >>> @@ -544,12 +598,10 @@ static enum counter_recovery stat_handle_error(struct >>> evsel *counter) >>> static int __run_perf

Re: [PATCH v4 04/10] perf stat: factor out event handling loop into a function

2020-06-01 Thread Alexey Budankov
On 31.05.2020 21:19, Jiri Olsa wrote: > On Mon, May 25, 2020 at 05:19:45PM +0300, Alexey Budankov wrote: > > SNIP > >> @@ -544,12 +598,10 @@ static enum counter_recovery stat_handle_error(struct >> evsel *counter) >> static int __run_perf_stat(int argc, const char **argv, int run_idx) >> { >

Re: [PATCH v4 04/10] perf stat: factor out event handling loop into a function

2020-05-31 Thread Jiri Olsa
On Mon, May 25, 2020 at 05:19:45PM +0300, Alexey Budankov wrote: SNIP > @@ -544,12 +598,10 @@ static enum counter_recovery stat_handle_error(struct > evsel *counter) > static int __run_perf_stat(int argc, const char **argv, int run_idx) > { > int interval = stat_config.interval; > -

[PATCH v4 04/10] perf stat: factor out event handling loop into a function

2020-05-25 Thread Alexey Budankov
Factor out event handling loop into dispatch_events() function. Signed-off-by: Alexey Budankov --- tools/perf/builtin-stat.c | 93 --- 1 file changed, 58 insertions(+), 35 deletions(-) diff --git a/tools/perf/builtin-stat.c b/tools/perf/builtin-stat.c index