Home
last modified time | relevance | path

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

/openbmc/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);
/openbmc/linux/tools/perf/util/
H A Devlist.c78 evlist->ctl_fd.fd = -1; in evlist__init()
79 evlist->ctl_fd.ack = -1; in evlist__init()
80 evlist->ctl_fd.pos = -1; in evlist__init()
1891 *ctl_fd = fd; in evlist__parse_control_fifo()
1940 close(ctl_fd); in evlist__close_control()
1957 evlist->ctl_fd.pos = -1; in evlist__initialize_ctlfd()
1962 evlist->ctl_fd.fd = fd; in evlist__initialize_ctlfd()
1963 evlist->ctl_fd.ack = ack; in evlist__initialize_ctlfd()
1984 evlist->ctl_fd.pos = -1; in evlist__finalize_ctlfd()
1985 evlist->ctl_fd.ack = -1; in evlist__finalize_ctlfd()
[all …]
H A Devlist.h83 } ctl_fd; member
423 int evlist__parse_control(const char *str, int *ctl_fd, int *ctl_fd_ack, bool *ctl_fd_close);
424 void evlist__close_control(int ctl_fd, int ctl_fd_ack, bool *ctl_fd_close);
425 int evlist__initialize_ctlfd(struct evlist *evlist, int ctl_fd, int ctl_fd_ack);
H A Drecord.h76 int ctl_fd; member
H A Dstat.h112 int ctl_fd; member
/openbmc/linux/tools/testing/selftests/cgroup/
H A Dtest_memcontrol.c933 int sk, client_sk, ctl_fd, yes = 1, ret = -1; in tcp_server() local
936 ctl_fd = srv_args->ctl[1]; in tcp_server()
950 write(ctl_fd, &errno, sizeof(errno)); in tcp_server()
958 if (write(ctl_fd, &ret, sizeof(ret)) != sizeof(ret)) { in tcp_server()
/openbmc/linux/tools/perf/bench/
H A Devlist-open-close.c45 .ctl_fd = -1,
/openbmc/linux/tools/perf/Documentation/
H A Dperf-stat.txt241 exec {ctl_fd}<>${ctl_fifo}
249 --control fd:${ctl_fd},${ctl_fd_ack} \
253 sleep 5 && echo 'enable' >&${ctl_fd} && read -u ${ctl_fd_ack} e1 && echo "enabled(${e1})"
254 sleep 10 && echo 'disable' >&${ctl_fd} && read -u ${ctl_fd_ack} d1 && echo "disabled(${d1})"
259 exec {ctl_fd}>&-
H A Dperf-record.txt747 exec {ctl_fd}<>${ctl_fifo}
755 --control fd:${ctl_fd},${ctl_fd_ack} \
759 sleep 5 && echo 'enable' >&${ctl_fd} && read -u ${ctl_fd_ack} e1 && echo "enabled(${e1})"
760 sleep 10 && echo 'disable' >&${ctl_fd} && read -u ${ctl_fd_ack} d1 && echo "disabled(${d1})"
765 exec {ctl_fd}>&-
/openbmc/linux/tools/perf/
H A Dbuiltin-stat.c162 .ctl_fd = -1,
1078 return evlist__parse_control(str, &config->ctl_fd, &config->ctl_fd_ack, &config->ctl_fd_close); in parse_control_option()
2817 if (evlist__initialize_ctlfd(evsel_list, stat_config.ctl_fd, stat_config.ctl_fd_ack)) in cmd_stat()
2898 evlist__close_control(stat_config.ctl_fd, stat_config.ctl_fd_ack, &stat_config.ctl_fd_close); in cmd_stat()
H A Dbuiltin-record.c1282 if (evlist__initialize_ctlfd(evlist, opts->ctl_fd, opts->ctl_fd_ack)) in record__mmap_evlist()
3106 return evlist__parse_control(str, &opts->ctl_fd, &opts->ctl_fd_ack, &opts->ctl_fd_close); in parse_control_option()
3286 .ctl_fd = -1,
4214 evlist__close_control(rec->opts.ctl_fd, rec->opts.ctl_fd_ack, &rec->opts.ctl_fd_close); in cmd_record()