Lines Matching refs:thread
339 int cpu, thread; in perf_evlist__disable() local
349 for (thread = 0; thread < nr_threads; thread++) in perf_evlist__disable()
350 ioctl(FD(pos, cpu, thread), in perf_evlist__disable()
360 int cpu, thread; in perf_evlist__enable() local
370 for (thread = 0; thread < nr_threads; thread++) in perf_evlist__enable()
371 ioctl(FD(pos, cpu, thread), in perf_evlist__enable()
387 int cpu, thread, err; in perf_evlist__disable_event() local
395 for (thread = 0; thread < nr_threads; thread++) { in perf_evlist__disable_event()
396 err = ioctl(FD(evsel, cpu, thread), in perf_evlist__disable_event()
408 int cpu, thread, err; in perf_evlist__enable_event() local
416 for (thread = 0; thread < nr_threads; thread++) { in perf_evlist__enable_event()
417 err = ioctl(FD(evsel, cpu, thread), in perf_evlist__enable_event()
429 int thread, err; in perf_evlist__enable_event_cpu() local
435 for (thread = 0; thread < nr_threads; thread++) { in perf_evlist__enable_event_cpu()
436 err = ioctl(FD(evsel, cpu, thread), in perf_evlist__enable_event_cpu()
446 int thread) in perf_evlist__enable_event_thread() argument
455 err = ioctl(FD(evsel, cpu, thread), PERF_EVENT_IOC_ENABLE, 0); in perf_evlist__enable_event_thread()
535 int cpu, int thread, u64 id) in perf_evlist__id_hash() argument
538 struct perf_sample_id *sid = SID(evsel, cpu, thread); in perf_evlist__id_hash()
547 int cpu, int thread, u64 id) in perf_evlist__id_add() argument
549 perf_evlist__id_hash(evlist, evsel, cpu, thread, id); in perf_evlist__id_add()
555 int cpu, int thread, int fd) in perf_evlist__id_add_fd() argument
590 perf_evlist__id_add(evlist, evsel, cpu, thread, id); in perf_evlist__id_add_fd()
596 int thread) in perf_evlist__set_sid_idx() argument
598 struct perf_sample_id *sid = SID(evsel, cpu, thread); in perf_evlist__set_sid_idx()
604 if (!evsel->system_wide && evlist->threads && thread >= 0) in perf_evlist__set_sid_idx()
605 sid->tid = thread_map__pid(evlist->threads, thread); in perf_evlist__set_sid_idx()
916 int thread, int *output) in perf_evlist__mmap_per_evsel() argument
923 if (evsel->system_wide && thread) in perf_evlist__mmap_per_evsel()
926 fd = FD(evsel, cpu, thread); in perf_evlist__mmap_per_evsel()
953 if (perf_evlist__id_add_fd(evlist, evsel, cpu, thread, in perf_evlist__mmap_per_evsel()
957 thread); in perf_evlist__mmap_per_evsel()
967 int cpu, thread; in perf_evlist__mmap_per_cpu() local
978 for (thread = 0; thread < nr_threads; thread++) { in perf_evlist__mmap_per_cpu()
980 thread, &output)) in perf_evlist__mmap_per_cpu()
996 int thread; in perf_evlist__mmap_per_thread() local
1000 for (thread = 0; thread < nr_threads; thread++) { in perf_evlist__mmap_per_thread()
1003 auxtrace_mmap_params__set_idx(&mp->auxtrace_mp, evlist, thread, in perf_evlist__mmap_per_thread()
1006 if (perf_evlist__mmap_per_evsel(evlist, thread, mp, 0, thread, in perf_evlist__mmap_per_thread()
1014 for (thread = 0; thread < nr_threads; thread++) in perf_evlist__mmap_per_thread()
1015 __perf_evlist__munmap(evlist, thread); in perf_evlist__mmap_per_thread()