Home
last modified time | relevance | path

Searched refs:ctl_fd (Results 1 – 15 of 15) sorted by relevance

/linux/tools/virtio/virtio-trace/
H A Dtrace-agent-ctl.c34 int ctl_fd; in rw_ctl_init() local
36 ctl_fd = open(ctl_path, O_RDONLY); in rw_ctl_init()
37 if (ctl_fd == -1) { in rw_ctl_init()
42 return ctl_fd; in rw_ctl_init()
48 static int wait_order(int ctl_fd) in wait_order() argument
54 poll_fd.fd = ctl_fd; in wait_order()
89 void *rw_ctl_loop(int ctl_fd) in rw_ctl_loop() argument
102 ret = wait_order(ctl_fd); in rw_ctl_loop()
106 rlen = read(ctl_fd, buf, sizeof(buf)); in rw_ctl_loop()
H A Dtrace-agent.c62 s->ctl_fd = -1; in agent_info_new()
181 s->ctl_fd = rw_ctl_init((const char *)CTL_PATH); in agent_info_init()
231 rw_ctl_loop(s->ctl_fd); in agent_main_loop()
249 close(s->ctl_fd); in agent_info_free()
H A Dtrace-agent.h22 int ctl_fd; member
54 extern void *rw_ctl_loop(int ctl_fd);
/linux/tools/perf/util/
H A Devlist.c2048 static int evlist__parse_control_fifo(const char *str, int *ctl_fd, int *ctl_fd_ack, bool *ctl_fd_close)
2078 *ctl_fd = fd; in evlist__ctlfd_recv()
2097 int evlist__parse_control(const char *str, int *ctl_fd, int *ctl_fd_ack, bool *ctl_fd_close) in evlist__ctlfd_recv()
2105 return evlist__parse_control_fifo(str, ctl_fd, ctl_fd_ack, ctl_fd_close); in evlist__ctlfd_recv()
2107 *ctl_fd = strtoul(&str[3], &endptr, 0); in evlist__ctlfd_recv()
2124 void evlist__close_control(int ctl_fd, int ctl_fd_ack, bool *ctl_fd_close) in evlist__ctlfd_recv()
2128 close(ctl_fd); in evlist__ctlfd_ack()
2212 pr_debug("Message from ctl_fd: \"%s%s\"\n", cmd_data, in evlist__ctlfd_list()
1936 evlist__parse_control_fifo(const char * str,int * ctl_fd,int * ctl_fd_ack,bool * ctl_fd_close) evlist__parse_control_fifo() argument
1985 evlist__parse_control(const char * str,int * ctl_fd,int * ctl_fd_ack,bool * ctl_fd_close) evlist__parse_control() argument
2012 evlist__close_control(int ctl_fd,int ctl_fd_ack,bool * ctl_fd_close) evlist__close_control() argument
H A Devlist.h95 } ctl_fd;
279 return RC_CHK_ACCESS(evlist)->ctl_fd.fd;
284 RC_CHK_ACCESS(evlist)->ctl_fd.fd = fd;
289 return RC_CHK_ACCESS(evlist)->ctl_fd.ack;
294 RC_CHK_ACCESS(evlist)->ctl_fd.ack = ack;
299 return RC_CHK_ACCESS(evlist)->ctl_fd.pos;
304 RC_CHK_ACCESS(evlist)->ctl_fd.pos = pos;
660 int evlist__parse_control(const char *str, int *ctl_fd, int *ctl_fd_ack, bool *ctl_fd_close);
661 void evlist__close_control(int ctl_fd, int ctl_fd_ack, bool *ctl_fd_close);
662 int evlist__initialize_ctlfd(struct evlist *evlist, int ctl_fd, in
90 } ctl_fd; global() member
[all...]
H A Drecord.h79 int ctl_fd; member
H A Dstat.h105 int ctl_fd;
104 int ctl_fd; global() member
H A Dconfig.c52 .ctl_fd = -1,
H A Dpython.c3086 .ctl_fd = -1,
/linux/tools/testing/selftests/cgroup/
H A Dtest_memcontrol.c1276 int sk, client_sk, ctl_fd, yes = 1, ret = -1; in tcp_server()
1279 ctl_fd = srv_args->ctl[1]; in tcp_server()
1287 /* Pass back errno to the ctl_fd */ in tcp_server()
1288 write(ctl_fd, &errno, sizeof(errno)); in tcp_server()
1296 write(ctl_fd, &errno, sizeof(errno)); in tcp_server()
1304 if (write(ctl_fd, &ret, sizeof(ret)) != sizeof(ret)) { in tcp_server()
1271 int sk, client_sk, ctl_fd, yes = 1, ret = -1; tcp_server() local
/linux/tools/perf/bench/
H A Devlist-open-close.c46 .ctl_fd = -1,
/linux/tools/perf/Documentation/
H A Dperf-stat.txt244 exec {ctl_fd}<>${ctl_fifo}
252 --control fd:${ctl_fd},${ctl_fd_ack} \
256 sleep 5 && echo 'enable' >&${ctl_fd} && read -u ${ctl_fd_ack} e1 && echo "enabled(${e1})"
257 sleep 10 && echo 'disable' >&${ctl_fd} && read -u ${ctl_fd_ack} d1 && echo "disabled(${d1})"
262 exec {ctl_fd}>&-
H A Dperf-record.txt775 exec {ctl_fd}<>${ctl_fifo}
783 --control fd:${ctl_fd},${ctl_fd_ack} \
787 sleep 5 && echo 'enable' >&${ctl_fd} && read -u ${ctl_fd_ack} e1 && echo "enabled(${e1})"
788 sleep 10 && echo 'disable' >&${ctl_fd} && read -u ${ctl_fd_ack} d1 && echo "disabled(${d1})"
793 exec {ctl_fd}>&-
/linux/tools/perf/
H A Dbuiltin-stat.c1184 return evlist__parse_control(str, &config->ctl_fd, &config->ctl_fd_ack, &config->ctl_fd_close); in parse_stat_cgroups()
3016 if (evlist__initialize_ctlfd(evsel_list, stat_config.ctl_fd, stat_config.ctl_fd_ack)) in cmd_stat()
3099 evlist__close_control(stat_config.ctl_fd, stat_config.ctl_fd_ack, &stat_config.ctl_fd_close);
H A Dbuiltin-record.c1251 pr_debug2("thread_data[%p]: pollfd[%d] <- ctl_fd=%d\n", in record__alloc_thread_data()
1306 if (evlist__initialize_ctlfd(evlist, opts->ctl_fd, opts->ctl_fd_ack)) in record__mmap_evlist()
3261 return evlist__parse_control(str, &opts->ctl_fd, &opts->ctl_fd_ack, &opts->ctl_fd_close); in record__parse_off_cpu_thresh()
3441 .ctl_fd = -1,
4419 evlist__close_control(rec->opts.ctl_fd, rec->opts.ctl_fd_ack, &rec->opts.ctl_fd_close); in cmd_record()