perf tools: Consolidate close_control_option()'s into one function
Consolidate control option fifo closing into one function. Signed-off-by: Adrian Hunter <adrian.hunter@intel.com> Suggested-by: Alexey Budankov <alexey.budankov@linux.intel.com> Cc: Andi Kleen <ak@linux.intel.com> Cc: Jiri Olsa <jolsa@redhat.com> Cc: Namhyung Kim <namhyung@kernel.org> Link: http://lore.kernel.org/lkml/20200903122937.25691-1-adrian.hunter@intel.com Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
This commit is contained in:

committed by
Arnaldo Carvalho de Melo

parent
9818923634
commit
ee7fe31e6e
@@ -376,6 +376,7 @@ enum evlist_ctl_cmd {
|
||||
};
|
||||
|
||||
int evlist__parse_control(const char *str, int *ctl_fd, int *ctl_fd_ack, bool *ctl_fd_close);
|
||||
void evlist__close_control(int ctl_fd, int ctl_fd_ack, bool *ctl_fd_close);
|
||||
int evlist__initialize_ctlfd(struct evlist *evlist, int ctl_fd, int ctl_fd_ack);
|
||||
int evlist__finalize_ctlfd(struct evlist *evlist);
|
||||
bool evlist__ctlfd_initialized(struct evlist *evlist);
|
||||
|
Reference in New Issue
Block a user