Re: [PATCH v3 2/9] perf evlist: implement control command handling functions

2020-05-20 Thread Alexey Budankov
On 20.05.2020 15:38, Jiri Olsa wrote: > On Wed, May 13, 2020 at 11:00:02AM +0300, Alexey Budankov wrote: > > SNIP > >> + >> +static int evlist__ctlfd_recv(struct evlist *evlist, enum evlist_ctl_cmd >> *cmd, >> + char *cmd_data, size_t data_size) >> +{ >> +int err;

Re: [PATCH v3 2/9] perf evlist: implement control command handling functions

2020-05-20 Thread Jiri Olsa
On Wed, May 13, 2020 at 11:00:02AM +0300, Alexey Budankov wrote: SNIP > + > +static int evlist__ctlfd_recv(struct evlist *evlist, enum evlist_ctl_cmd > *cmd, > + char *cmd_data, size_t data_size) > +{ > + int err; > + char c; > + size_t bytes_read = 0; > +

[PATCH v3 2/9] perf evlist: implement control command handling functions

2020-05-13 Thread Alexey Budankov
Implement functions of initialization, finalization and processing of control commands coming from control file descriptors. Signed-off-by: Alexey Budankov --- tools/perf/util/evlist.c | 128 +++ tools/perf/util/evlist.h | 17 ++ 2 files changed, 145

[PATCH v3 2/9] perf evlist: implement control command handling functions

2020-05-08 Thread Alexey Budankov
Implement functions of initialization, finalization and processing of control commands coming from control file descriptors. Signed-off-by: Alexey Budankov --- tools/perf/util/evlist.c | 128 +++ tools/perf/util/evlist.h | 17 ++ 2 files changed, 145