Home
last modified time | relevance | path

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

/linux/tools/virtio/virtio-trace/
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()
A Dtrace-agent.c61 s->ctl_fd = -1; in agent_info_new()
177 s->ctl_fd = rw_ctl_init((const char *)CTL_PATH); in agent_info_init()
227 rw_ctl_loop(s->ctl_fd); in agent_main_loop()
245 close(s->ctl_fd); in agent_info_free()
A Dtrace-agent.h22 int ctl_fd; member
54 extern void *rw_ctl_loop(int ctl_fd);
/linux/tools/perf/util/
A Devlist.c71 evlist->ctl_fd.fd = -1; in evlist__init()
72 evlist->ctl_fd.ack = -1; in evlist__init()
73 evlist->ctl_fd.pos = -1; in evlist__init()
1805 *ctl_fd = fd; in evlist__parse_control_fifo()
1854 close(ctl_fd); in evlist__close_control()
1870 evlist->ctl_fd.pos = -1; in evlist__initialize_ctlfd()
1875 evlist->ctl_fd.fd = fd; in evlist__initialize_ctlfd()
1876 evlist->ctl_fd.ack = ack; in evlist__initialize_ctlfd()
1897 evlist->ctl_fd.pos = -1; in evlist__finalize_ctlfd()
1898 evlist->ctl_fd.ack = -1; in evlist__finalize_ctlfd()
[all …]
A Devlist.h80 } ctl_fd; member
370 int evlist__parse_control(const char *str, int *ctl_fd, int *ctl_fd_ack, bool *ctl_fd_close);
371 void evlist__close_control(int ctl_fd, int ctl_fd_ack, bool *ctl_fd_close);
372 int evlist__initialize_ctlfd(struct evlist *evlist, int ctl_fd, int ctl_fd_ack);
A Drecord.h77 int ctl_fd; member
A Dstat.h157 int ctl_fd; member
/linux/tools/testing/selftests/cgroup/
A Dtest_memcontrol.c826 int sk, client_sk, ctl_fd, yes = 1, ret = -1; in tcp_server() local
829 ctl_fd = srv_args->ctl[1]; in tcp_server()
843 write(ctl_fd, &errno, sizeof(errno)); in tcp_server()
851 if (write(ctl_fd, &ret, sizeof(ret)) != sizeof(ret)) { in tcp_server()
/linux/tools/perf/Documentation/
A Dperf-stat.txt239 exec {ctl_fd}<>${ctl_fifo}
247 --control fd:${ctl_fd},${ctl_fd_ack} \
251 sleep 5 && echo 'enable' >&${ctl_fd} && read -u ${ctl_fd_ack} e1 && echo "enabled(${e1})"
252 sleep 10 && echo 'disable' >&${ctl_fd} && read -u ${ctl_fd_ack} d1 && echo "disabled(${d1})"
257 exec {ctl_fd}>&-
A Dperf-record.txt690 exec {ctl_fd}<>${ctl_fifo}
698 --control fd:${ctl_fd},${ctl_fd_ack} \
702 sleep 5 && echo 'enable' >&${ctl_fd} && read -u ${ctl_fd_ack} e1 && echo "enabled(${e1})"
703 sleep 10 && echo 'disable' >&${ctl_fd} && read -u ${ctl_fd_ack} d1 && echo "disabled(${d1})"
708 exec {ctl_fd}>&-
/linux/tools/perf/bench/
A Devlist-open-close.c45 .ctl_fd = -1,
/linux/tools/perf/
A Dbuiltin-stat.c220 .ctl_fd = -1,
1157 return evlist__parse_control(str, &config->ctl_fd, &config->ctl_fd_ack, &config->ctl_fd_close); in parse_control_option()
2538 if (evlist__initialize_ctlfd(evsel_list, stat_config.ctl_fd, stat_config.ctl_fd_ack)) in cmd_stat()
2614 evlist__close_control(stat_config.ctl_fd, stat_config.ctl_fd_ack, &stat_config.ctl_fd_close); in cmd_stat()
A Dbuiltin-record.c1857 if (evlist__initialize_ctlfd(rec->evlist, opts->ctl_fd, opts->ctl_fd_ack)) in __cmd_record()
2276 return evlist__parse_control(str, &opts->ctl_fd, &opts->ctl_fd_ack, &opts->ctl_fd_close); in parse_control_option()
2446 .ctl_fd = -1,
2948 evlist__close_control(rec->opts.ctl_fd, rec->opts.ctl_fd_ack, &rec->opts.ctl_fd_close); in cmd_record()

Completed in 29 milliseconds