Lines Matching refs:ctl_fd

76 	evlist->ctl_fd.fd = -1;  in evlist__init()
77 evlist->ctl_fd.ack = -1; in evlist__init()
78 evlist->ctl_fd.pos = -1; in evlist__init()
1828 static int evlist__parse_control_fifo(const char *str, int *ctl_fd, int *ctl_fd_ack, bool *ctl_fd_c… in evlist__parse_control_fifo() argument
1858 *ctl_fd = fd; in evlist__parse_control_fifo()
1877 int evlist__parse_control(const char *str, int *ctl_fd, int *ctl_fd_ack, bool *ctl_fd_close) in evlist__parse_control() argument
1884 return evlist__parse_control_fifo(str, ctl_fd, ctl_fd_ack, ctl_fd_close); in evlist__parse_control()
1886 *ctl_fd = strtoul(&str[3], &endptr, 0); in evlist__parse_control()
1903 void evlist__close_control(int ctl_fd, int ctl_fd_ack, bool *ctl_fd_close) in evlist__close_control() argument
1907 close(ctl_fd); in evlist__close_control()
1920 evlist->ctl_fd.pos = perf_evlist__add_pollfd(&evlist->core, fd, NULL, POLLIN, in evlist__initialize_ctlfd()
1923 if (evlist->ctl_fd.pos < 0) { in evlist__initialize_ctlfd()
1924 evlist->ctl_fd.pos = -1; in evlist__initialize_ctlfd()
1929 evlist->ctl_fd.fd = fd; in evlist__initialize_ctlfd()
1930 evlist->ctl_fd.ack = ack; in evlist__initialize_ctlfd()
1937 return evlist->ctl_fd.pos >= 0; in evlist__ctlfd_initialized()
1947 entries[evlist->ctl_fd.pos].fd = -1; in evlist__finalize_ctlfd()
1948 entries[evlist->ctl_fd.pos].events = 0; in evlist__finalize_ctlfd()
1949 entries[evlist->ctl_fd.pos].revents = 0; in evlist__finalize_ctlfd()
1951 evlist->ctl_fd.pos = -1; in evlist__finalize_ctlfd()
1952 evlist->ctl_fd.ack = -1; in evlist__finalize_ctlfd()
1953 evlist->ctl_fd.fd = -1; in evlist__finalize_ctlfd()
1970 err = read(evlist->ctl_fd.fd, &c, 1); in evlist__ctlfd_recv()
1984 pr_err("Failed to read from ctlfd %d: %m\n", evlist->ctl_fd.fd); in evlist__ctlfd_recv()
2022 if (evlist->ctl_fd.ack == -1) in evlist__ctlfd_ack()
2025 err = write(evlist->ctl_fd.ack, EVLIST_CTL_CMD_ACK_TAG, in evlist__ctlfd_ack()
2028 pr_err("failed to write to ctl_ack_fd %d: %m\n", evlist->ctl_fd.ack); in evlist__ctlfd_ack()
2129 int ctlfd_pos = evlist->ctl_fd.pos; in evlist__ctlfd_process()