Lines Matching refs:thread

54 		int cpu, thread;  in perf_evsel__alloc_fd()  local
56 for (thread = 0; thread < nthreads; thread++) { in perf_evsel__alloc_fd()
57 int *fd = FD(evsel, cpu, thread); in perf_evsel__alloc_fd()
83 static int get_group_fd(struct perf_evsel *evsel, int cpu, int thread, int *group_fd) in get_group_fd() argument
100 fd = FD(leader, cpu, thread); in get_group_fd()
112 int cpu, thread, err = 0; in perf_evsel__open() local
143 for (thread = 0; thread < threads->nr; thread++) { in perf_evsel__open()
146 evsel_fd = FD(evsel, cpu, thread); in perf_evsel__open()
150 err = get_group_fd(evsel, cpu, thread, &group_fd); in perf_evsel__open()
155 threads->map[thread].pid, in perf_evsel__open()
170 int thread; in perf_evsel__close_fd_cpu() local
172 for (thread = 0; thread < xyarray__max_y(evsel->fd); ++thread) { in perf_evsel__close_fd_cpu()
173 int *fd = FD(evsel, cpu, thread); in perf_evsel__close_fd_cpu()
215 int cpu, thread; in perf_evsel__munmap() local
221 for (thread = 0; thread < xyarray__max_y(evsel->fd); thread++) { in perf_evsel__munmap()
222 int *fd = FD(evsel, cpu, thread); in perf_evsel__munmap()
227 perf_mmap__munmap(MMAP(evsel, cpu, thread)); in perf_evsel__munmap()
237 int ret, cpu, thread; in perf_evsel__mmap() local
250 for (thread = 0; thread < xyarray__max_y(evsel->fd); thread++) { in perf_evsel__mmap()
251 int *fd = FD(evsel, cpu, thread); in perf_evsel__mmap()
257 map = MMAP(evsel, cpu, thread); in perf_evsel__mmap()
271 void *perf_evsel__mmap_base(struct perf_evsel *evsel, int cpu, int thread) in perf_evsel__mmap_base() argument
273 int *fd = FD(evsel, cpu, thread); in perf_evsel__mmap_base()
275 if (fd == NULL || *fd < 0 || MMAP(evsel, cpu, thread) == NULL) in perf_evsel__mmap_base()
278 return MMAP(evsel, cpu, thread)->base; in perf_evsel__mmap_base()
306 int perf_evsel__read(struct perf_evsel *evsel, int cpu, int thread, in perf_evsel__read() argument
310 int *fd = FD(evsel, cpu, thread); in perf_evsel__read()
317 if (MMAP(evsel, cpu, thread) && in perf_evsel__read()
318 !perf_mmap__read_self(MMAP(evsel, cpu, thread), count)) in perf_evsel__read()
331 int thread; in perf_evsel__run_ioctl() local
333 for (thread = 0; thread < xyarray__max_y(evsel->fd); thread++) { in perf_evsel__run_ioctl()
335 int *fd = FD(evsel, cpu, thread); in perf_evsel__run_ioctl()