Re: [PATCH 5/7] perf header: use struct feat_fd for process and read

2017-05-18 Thread David Carrillo-Cisneros
On Thu, May 18, 2017 at 9:13 AM, Jiri Olsa wrote: > On Wed, May 17, 2017 at 09:16:00PM -0700, David Carrillo-Cisneros wrote: >> As preparation for using header records in pipe mode, replace >> int fd with struct feat_fd fd in process and read functions for >> all header record types. >> >> To redu

Re: [PATCH 5/7] perf header: use struct feat_fd for process and read

2017-05-18 Thread Jiri Olsa
On Wed, May 17, 2017 at 09:16:00PM -0700, David Carrillo-Cisneros wrote: > As preparation for using header records in pipe mode, replace > int fd with struct feat_fd fd in process and read functions for > all header record types. > > To reduce the boiler plate, define and use the FEAT_PROCESS_STR_

[PATCH 5/7] perf header: use struct feat_fd for process and read

2017-05-17 Thread David Carrillo-Cisneros
As preparation for using header records in pipe mode, replace int fd with struct feat_fd fd in process and read functions for all header record types. To reduce the boiler plate, define and use the FEAT_PROCESS_STR_FUN macro for the common case of header records that are a simple string. Signed-o