Re: [PATCH v8 09/13] perf stat: implement control commands handling

2020-06-25 Thread Alexey Budankov
On 25.06.2020 15:14, Jiri Olsa wrote: > On Wed, Jun 24, 2020 at 05:10:10PM +0300, Alexey Budankov wrote: >> >> On 23.06.2020 17:54, Jiri Olsa wrote: >>> On Wed, Jun 17, 2020 at 11:41:30AM +0300, Alexey Budankov wrote: >>> >>> SNIP >>> while (1) { if (forks) @@

Re: [PATCH v8 09/13] perf stat: implement control commands handling

2020-06-25 Thread Alexey Budankov
On 25.06.2020 15:12, Jiri Olsa wrote: > On Wed, Jun 24, 2020 at 04:39:11PM +0300, Alexey Budankov wrote: >> >> >> On 23.06.2020 17:54, Jiri Olsa wrote: >>> On Wed, Jun 17, 2020 at 11:41:30AM +0300, Alexey Budankov wrote: Implement handling of 'enable' and 'disable' control commands c

Re: [PATCH v8 09/13] perf stat: implement control commands handling

2020-06-25 Thread Jiri Olsa
On Wed, Jun 24, 2020 at 05:10:10PM +0300, Alexey Budankov wrote: > > On 23.06.2020 17:54, Jiri Olsa wrote: > > On Wed, Jun 17, 2020 at 11:41:30AM +0300, Alexey Budankov wrote: > > > > SNIP > > > >> > >>while (1) { > >>if (forks) > >> @@ -581,8 +617,17 @@ static int dispatch_eve

Re: [PATCH v8 09/13] perf stat: implement control commands handling

2020-06-25 Thread Jiri Olsa
On Wed, Jun 24, 2020 at 04:39:11PM +0300, Alexey Budankov wrote: > > > On 23.06.2020 17:54, Jiri Olsa wrote: > > On Wed, Jun 17, 2020 at 11:41:30AM +0300, Alexey Budankov wrote: > >> > >> Implement handling of 'enable' and 'disable' control commands > >> coming from control file descriptor. proce

Re: [PATCH v8 09/13] perf stat: implement control commands handling

2020-06-24 Thread Alexey Budankov
On 23.06.2020 17:54, Jiri Olsa wrote: > On Wed, Jun 17, 2020 at 11:41:30AM +0300, Alexey Budankov wrote: > > SNIP > >> >> while (1) { >> if (forks) >> @@ -581,8 +617,17 @@ static int dispatch_events(bool forks, int timeout, int >> interval, int *times, st >> if

Re: [PATCH v8 09/13] perf stat: implement control commands handling

2020-06-24 Thread Alexey Budankov
On 23.06.2020 17:54, Jiri Olsa wrote: > On Wed, Jun 17, 2020 at 11:41:30AM +0300, Alexey Budankov wrote: >> >> Implement handling of 'enable' and 'disable' control commands >> coming from control file descriptor. process_evlist() function >> checks for events on control fds and makes required op

Re: [PATCH v8 09/13] perf stat: implement control commands handling

2020-06-23 Thread Jiri Olsa
On Wed, Jun 17, 2020 at 11:41:30AM +0300, Alexey Budankov wrote: > > Implement handling of 'enable' and 'disable' control commands > coming from control file descriptor. process_evlist() function > checks for events on control fds and makes required operations. > If poll event splits initiated tim

Re: [PATCH v8 09/13] perf stat: implement control commands handling

2020-06-23 Thread Jiri Olsa
On Wed, Jun 17, 2020 at 11:41:30AM +0300, Alexey Budankov wrote: SNIP > > while (1) { > if (forks) > @@ -581,8 +617,17 @@ static int dispatch_events(bool forks, int timeout, int > interval, int *times, st > if (done || stop || child) > br