rw_ti 22 tools/virtio/virtio-trace/trace-agent-rw.c struct rw_thread_info *rw_ti; rw_ti 24 tools/virtio/virtio-trace/trace-agent-rw.c rw_ti = zalloc(sizeof(struct rw_thread_info)); rw_ti 25 tools/virtio/virtio-trace/trace-agent-rw.c if (rw_ti == NULL) { rw_ti 30 tools/virtio/virtio-trace/trace-agent-rw.c rw_ti->cpu_num = -1; rw_ti 31 tools/virtio/virtio-trace/trace-agent-rw.c rw_ti->in_fd = -1; rw_ti 32 tools/virtio/virtio-trace/trace-agent-rw.c rw_ti->out_fd = -1; rw_ti 33 tools/virtio/virtio-trace/trace-agent-rw.c rw_ti->read_pipe = -1; rw_ti 34 tools/virtio/virtio-trace/trace-agent-rw.c rw_ti->write_pipe = -1; rw_ti 35 tools/virtio/virtio-trace/trace-agent-rw.c rw_ti->pipe_size = PIPE_INIT; rw_ti 37 tools/virtio/virtio-trace/trace-agent-rw.c return rw_ti; rw_ti 42 tools/virtio/virtio-trace/trace-agent-rw.c struct rw_thread_info *rw_ti) rw_ti 46 tools/virtio/virtio-trace/trace-agent-rw.c rw_ti->cpu_num = cpu; rw_ti 49 tools/virtio/virtio-trace/trace-agent-rw.c rw_ti->in_fd = open(in_path, O_RDONLY); rw_ti 50 tools/virtio/virtio-trace/trace-agent-rw.c if (rw_ti->in_fd == -1) { rw_ti 58 tools/virtio/virtio-trace/trace-agent-rw.c rw_ti->out_fd = open(out_path, O_WRONLY); rw_ti 59 tools/virtio/virtio-trace/trace-agent-rw.c if (rw_ti->out_fd == -1) { rw_ti 65 tools/virtio/virtio-trace/trace-agent-rw.c rw_ti->out_fd = STDOUT_FILENO; rw_ti 81 tools/virtio/virtio-trace/trace-agent-rw.c rw_ti->read_pipe = data_pipe[1]; rw_ti 82 tools/virtio/virtio-trace/trace-agent-rw.c rw_ti->write_pipe = data_pipe[0]; rw_ti 83 tools/virtio/virtio-trace/trace-agent-rw.c rw_ti->pipe_size = pipe_size; rw_ti 178 tools/virtio/virtio-trace/trace-agent-rw.c pthread_t rw_thread_run(struct rw_thread_info *rw_ti) rw_ti 183 tools/virtio/virtio-trace/trace-agent-rw.c ret = pthread_create(&rw_thread_per_cpu, NULL, rw_thread_main, rw_ti); rw_ti 185 tools/virtio/virtio-trace/trace-agent-rw.c pr_err("Could not create a rw thread(%d)\n", rw_ti->cpu_num); rw_ti 65 tools/virtio/virtio-trace/trace-agent.c s->rw_ti[i] = rw_thread_info_new(); rw_ti 173 tools/virtio/virtio-trace/trace-agent.c s->pipe_size, s->rw_ti[cpu]); rw_ti 225 tools/virtio/virtio-trace/trace-agent.c rw_thread_per_cpu[cpu] = rw_thread_run(s->rw_ti[cpu]); rw_ti 247 tools/virtio/virtio-trace/trace-agent.c close(s->rw_ti[i]->in_fd); rw_ti 248 tools/virtio/virtio-trace/trace-agent.c close(s->rw_ti[i]->out_fd); rw_ti 249 tools/virtio/virtio-trace/trace-agent.c close(s->rw_ti[i]->read_pipe); rw_ti 250 tools/virtio/virtio-trace/trace-agent.c close(s->rw_ti[i]->write_pipe); rw_ti 251 tools/virtio/virtio-trace/trace-agent.c free(s->rw_ti[i]); rw_ti 23 tools/virtio/virtio-trace/trace-agent.h struct rw_thread_info *rw_ti[MAX_CPUS]; rw_ti 60 tools/virtio/virtio-trace/trace-agent.h struct rw_thread_info *rw_ti); rw_ti 61 tools/virtio/virtio-trace/trace-agent.h extern pthread_t rw_thread_run(struct rw_thread_info *rw_ti);