Lines Matching defs:ctl_fd
84 evlist->ctl_fd.fd = -1;
85 evlist->ctl_fd.ack = -1;
86 evlist->ctl_fd.pos = -1;
1948 static int evlist__parse_control_fifo(const char *str, int *ctl_fd, int *ctl_fd_ack, bool *ctl_fd_close)
1978 *ctl_fd = fd;
1997 int evlist__parse_control(const char *str, int *ctl_fd, int *ctl_fd_ack, bool *ctl_fd_close)
2005 return evlist__parse_control_fifo(str, ctl_fd, ctl_fd_ack, ctl_fd_close);
2007 *ctl_fd = strtoul(&str[3], &endptr, 0);
2024 void evlist__close_control(int ctl_fd, int ctl_fd_ack, bool *ctl_fd_close)
2028 close(ctl_fd);
2041 evlist->ctl_fd.pos = perf_evlist__add_pollfd(&evlist->core, fd, NULL, POLLIN,
2044 if (evlist->ctl_fd.pos < 0) {
2045 evlist->ctl_fd.pos = -1;
2050 evlist->ctl_fd.fd = fd;
2051 evlist->ctl_fd.ack = ack;
2058 return evlist->ctl_fd.pos >= 0;
2068 entries[evlist->ctl_fd.pos].fd = -1;
2069 entries[evlist->ctl_fd.pos].events = 0;
2070 entries[evlist->ctl_fd.pos].revents = 0;
2072 evlist->ctl_fd.pos = -1;
2073 evlist->ctl_fd.ack = -1;
2074 evlist->ctl_fd.fd = -1;
2091 err = read(evlist->ctl_fd.fd, &c, 1);
2105 pr_err("Failed to read from ctlfd %d: %m\n", evlist->ctl_fd.fd);
2110 pr_debug("Message from ctl_fd: \"%s%s\"\n", cmd_data,
2143 if (evlist->ctl_fd.ack == -1)
2146 err = write(evlist->ctl_fd.ack, EVLIST_CTL_CMD_ACK_TAG,
2149 pr_err("failed to write to ctl_ack_fd %d: %m\n", evlist->ctl_fd.ack);
2250 int ctlfd_pos = evlist->ctl_fd.pos;