Home
last modified time | relevance | path

Searched refs:rw_ti (Results 1 – 3 of 3) sorted by relevance

/linux/tools/virtio/virtio-trace/
H A Dtrace-agent-rw.c22 struct rw_thread_info *rw_ti; in rw_thread_info_new() local
24 rw_ti = zalloc(sizeof(struct rw_thread_info)); in rw_thread_info_new()
25 if (rw_ti == NULL) { in rw_thread_info_new()
30 rw_ti->cpu_num = -1; in rw_thread_info_new()
31 rw_ti->in_fd = -1; in rw_thread_info_new()
32 rw_ti->out_fd = -1; in rw_thread_info_new()
33 rw_ti->read_pipe = -1; in rw_thread_info_new()
34 rw_ti->write_pipe = -1; in rw_thread_info_new()
35 rw_ti->pipe_size = PIPE_INIT; in rw_thread_info_new()
37 return rw_ti; in rw_thread_info_new()
[all …]
H A Dtrace-agent.c66 s->rw_ti[i] = rw_thread_info_new(); in agent_info_new()
177 s->pipe_size, s->rw_ti[cpu]); in agent_info_init()
229 rw_thread_per_cpu[cpu] = rw_thread_run(s->rw_ti[cpu]); in agent_main_loop()
251 close(s->rw_ti[i]->in_fd); in agent_info_free()
252 close(s->rw_ti[i]->out_fd); in agent_info_free()
253 close(s->rw_ti[i]->read_pipe); in agent_info_free()
254 close(s->rw_ti[i]->write_pipe); in agent_info_free()
255 free(s->rw_ti[i]); in agent_info_free()
H A Dtrace-agent.h23 struct rw_thread_info *rw_ti[MAX_CPUS]; member
60 struct rw_thread_info *rw_ti);
61 extern pthread_t rw_thread_run(struct rw_thread_info *rw_ti);