Searched refs:ctl_fd (Results 1 – 13 of 13) sorted by relevance
/linux-6.3-rc2/tools/virtio/virtio-trace/ |
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()
|
A D | trace-agent.c | 61 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 D | trace-agent.h | 22 int ctl_fd; member 54 extern void *rw_ctl_loop(int ctl_fd);
|
/linux-6.3-rc2/tools/perf/util/ |
A D | evlist.c | 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() 1858 *ctl_fd = fd; in evlist__parse_control_fifo() 1907 close(ctl_fd); in evlist__close_control() 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() 1951 evlist->ctl_fd.pos = -1; in evlist__finalize_ctlfd() 1952 evlist->ctl_fd.ack = -1; in evlist__finalize_ctlfd() [all …]
|
A D | evlist.h | 83 } ctl_fd; member 424 int evlist__parse_control(const char *str, int *ctl_fd, int *ctl_fd_ack, bool *ctl_fd_close); 425 void evlist__close_control(int ctl_fd, int ctl_fd_ack, bool *ctl_fd_close); 426 int evlist__initialize_ctlfd(struct evlist *evlist, int ctl_fd, int ctl_fd_ack);
|
A D | record.h | 77 int ctl_fd; member
|
A D | stat.h | 184 int ctl_fd; member
|
/linux-6.3-rc2/tools/testing/selftests/cgroup/ |
A D | test_memcontrol.c | 916 int sk, client_sk, ctl_fd, yes = 1, ret = -1; in tcp_server() local 919 ctl_fd = srv_args->ctl[1]; in tcp_server() 933 write(ctl_fd, &errno, sizeof(errno)); in tcp_server() 941 if (write(ctl_fd, &ret, sizeof(ret)) != sizeof(ret)) { in tcp_server()
|
/linux-6.3-rc2/tools/perf/bench/ |
A D | evlist-open-close.c | 45 .ctl_fd = -1,
|
/linux-6.3-rc2/tools/perf/Documentation/ |
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}>&-
|
A D | perf-record.txt | 710 exec {ctl_fd}<>${ctl_fifo} 718 --control fd:${ctl_fd},${ctl_fd_ack} \ 722 sleep 5 && echo 'enable' >&${ctl_fd} && read -u ${ctl_fd_ack} e1 && echo "enabled(${e1})" 723 sleep 10 && echo 'disable' >&${ctl_fd} && read -u ${ctl_fd_ack} d1 && echo "disabled(${d1})" 728 exec {ctl_fd}>&-
|
/linux-6.3-rc2/tools/perf/ |
A D | builtin-stat.c | 222 .ctl_fd = -1, 1129 return evlist__parse_control(str, &config->ctl_fd, &config->ctl_fd_ack, &config->ctl_fd_close); in parse_control_option() 2632 if (evlist__initialize_ctlfd(evsel_list, stat_config.ctl_fd, stat_config.ctl_fd_ack)) in cmd_stat() 2710 evlist__close_control(stat_config.ctl_fd, stat_config.ctl_fd_ack, &stat_config.ctl_fd_close); in cmd_stat()
|
A D | builtin-record.c | 1252 if (evlist__initialize_ctlfd(evlist, opts->ctl_fd, opts->ctl_fd_ack)) in record__mmap_evlist() 3125 return evlist__parse_control(str, &opts->ctl_fd, &opts->ctl_fd_ack, &opts->ctl_fd_close); in parse_control_option() 3305 .ctl_fd = -1, 4262 evlist__close_control(rec->opts.ctl_fd, rec->opts.ctl_fd_ack, &rec->opts.ctl_fd_close); in cmd_record()
|
Completed in 31 milliseconds