Lines Matching defs:thread

59 		int idx, thread;
62 for (thread = 0; thread < nthreads; thread++) {
63 int *fd = FD(evsel, idx, thread);
89 static int get_group_fd(struct perf_evsel *evsel, int cpu_map_idx, int thread, int *group_fd)
106 fd = FD(leader, cpu_map_idx, thread);
119 int idx, thread, err = 0;
150 for (thread = 0; thread < threads->nr; thread++) {
153 evsel_fd = FD(evsel, idx, thread);
159 err = get_group_fd(evsel, idx, thread, &group_fd);
164 threads->map[thread].pid,
184 int thread;
186 for (thread = 0; thread < xyarray__max_y(evsel->fd); ++thread) {
187 int *fd = FD(evsel, cpu_map_idx, thread);
227 int idx, thread;
233 for (thread = 0; thread < xyarray__max_y(evsel->fd); thread++) {
234 int *fd = FD(evsel, idx, thread);
239 perf_mmap__munmap(MMAP(evsel, idx, thread));
249 int ret, idx, thread;
262 for (thread = 0; thread < xyarray__max_y(evsel->fd); thread++) {
263 int *fd = FD(evsel, idx, thread);
270 map = MMAP(evsel, idx, thread);
284 void *perf_evsel__mmap_base(struct perf_evsel *evsel, int cpu_map_idx, int thread)
286 int *fd = FD(evsel, cpu_map_idx, thread);
288 if (fd == NULL || *fd < 0 || MMAP(evsel, cpu_map_idx, thread) == NULL)
291 return MMAP(evsel, cpu_map_idx, thread)->base;
324 int thread, struct perf_counts_values *count)
327 int *fd = FD(evsel, cpu_map_idx, thread);
389 int perf_evsel__read(struct perf_evsel *evsel, int cpu_map_idx, int thread,
393 int *fd = FD(evsel, cpu_map_idx, thread);
403 return perf_evsel__read_group(evsel, cpu_map_idx, thread, count);
405 if (MMAP(evsel, cpu_map_idx, thread) &&
407 !perf_mmap__read_self(MMAP(evsel, cpu_map_idx, thread), count))
418 int cpu_map_idx, int thread)
420 int *fd = FD(evsel, cpu_map_idx, thread);
432 int thread;
434 for (thread = 0; thread < xyarray__max_y(evsel->fd); thread++) {
435 int err = perf_evsel__ioctl(evsel, ioc, arg, cpu_map_idx, thread);
449 int perf_evsel__enable_thread(struct perf_evsel *evsel, int thread)
456 err = perf_evsel__ioctl(evsel, PERF_EVENT_IOC_ENABLE, NULL, idx, thread);