Searched refs:ctl_fd (Results 1 – 8 of 8) sorted by relevance
/linux/tools/virtio/virtio-trace/ |
H A D | trace-agent-ctl.c | 34 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 D | trace-agent.c | 62 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 D | trace-agent.h | 22 int ctl_fd; member 54 extern void *rw_ctl_loop(int ctl_fd);
|
/linux/tools/perf/util/ |
H A D | record.h | 76 int ctl_fd; member
|
/linux/tools/testing/selftests/cgroup/ |
H A D | test_memcontrol.c | 1183 int sk, client_sk, ctl_fd, yes = 1, ret = -1; in tcp_server() local 1186 ctl_fd = srv_args->ctl[1]; in tcp_server() 1200 write(ctl_fd, &errno, sizeof(errno)); in tcp_server() 1208 if (write(ctl_fd, &ret, sizeof(ret)) != sizeof(ret)) { in tcp_server()
|
/linux/tools/perf/bench/ |
H A D | evlist-open-close.c | 45 .ctl_fd = -1,
|
/linux/tools/perf/Documentation/ |
H A D | perf-stat.txt | 241 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 D | perf-record.txt | 759 exec {ctl_fd}<>${ctl_fifo} 767 --control fd:${ctl_fd},${ctl_fd_ack} \ 771 sleep 5 && echo 'enable' >&${ctl_fd} && read -u ${ctl_fd_ack} e1 && echo "enabled(${e1})" 772 sleep 10 && echo 'disable' >&${ctl_fd} && read -u ${ctl_fd_ack} d1 && echo "disabled(${d1})" 777 exec {ctl_fd}>&-
|