Lines Matching defs:thread

57 		int idx, thread;
60 for (thread = 0; thread < nthreads; thread++) {
61 int *fd = FD(evsel, idx, thread);
87 static int get_group_fd(struct perf_evsel *evsel, int cpu_map_idx, int thread, int *group_fd)
104 fd = FD(leader, cpu_map_idx, thread);
117 int idx, thread, err = 0;
148 for (thread = 0; thread < threads->nr; thread++) {
151 evsel_fd = FD(evsel, idx, thread);
157 err = get_group_fd(evsel, idx, thread, &group_fd);
162 threads->map[thread].pid,
182 int thread;
184 for (thread = 0; thread < xyarray__max_y(evsel->fd); ++thread) {
185 int *fd = FD(evsel, cpu_map_idx, thread);
225 int idx, thread;
231 for (thread = 0; thread < xyarray__max_y(evsel->fd); thread++) {
232 int *fd = FD(evsel, idx, thread);
237 perf_mmap__munmap(MMAP(evsel, idx, thread));
247 int ret, idx, thread;
260 for (thread = 0; thread < xyarray__max_y(evsel->fd); thread++) {
261 int *fd = FD(evsel, idx, thread);
268 map = MMAP(evsel, idx, thread);
282 void *perf_evsel__mmap_base(struct perf_evsel *evsel, int cpu_map_idx, int thread)
284 int *fd = FD(evsel, cpu_map_idx, thread);
286 if (fd == NULL || *fd < 0 || MMAP(evsel, cpu_map_idx, thread) == NULL)
289 return MMAP(evsel, cpu_map_idx, thread)->base;
322 int thread, struct perf_counts_values *count)
325 int *fd = FD(evsel, cpu_map_idx, thread);
387 int perf_evsel__read(struct perf_evsel *evsel, int cpu_map_idx, int thread,
391 int *fd = FD(evsel, cpu_map_idx, thread);
401 return perf_evsel__read_group(evsel, cpu_map_idx, thread, count);
403 if (MMAP(evsel, cpu_map_idx, thread) &&
405 !perf_mmap__read_self(MMAP(evsel, cpu_map_idx, thread), count))
416 int cpu_map_idx, int thread)
418 int *fd = FD(evsel, cpu_map_idx, thread);
430 int thread;
432 for (thread = 0; thread < xyarray__max_y(evsel->fd); thread++) {
433 int err = perf_evsel__ioctl(evsel, ioc, arg, cpu_map_idx, thread);
447 int perf_evsel__enable_thread(struct perf_evsel *evsel, int thread)
454 err = perf_evsel__ioctl(evsel, PERF_EVENT_IOC_ENABLE, NULL, idx, thread);