Lines Matching refs:threads
267 struct thread_map *threads; in test__open_syscall_event() local
278 threads = thread_map__new(-1, getpid()); in test__open_syscall_event()
279 if (threads == NULL) { in test__open_syscall_event()
293 if (perf_evsel__open_per_thread(evsel, threads, false) < 0) { in test__open_syscall_event()
318 perf_evsel__close_fd(evsel, 1, threads->nr); in test__open_syscall_event()
322 thread_map__delete(threads); in test__open_syscall_event()
331 struct thread_map *threads; in test__open_syscall_event_on_all_cpus() local
344 threads = thread_map__new(-1, getpid()); in test__open_syscall_event_on_all_cpus()
345 if (threads == NULL) { in test__open_syscall_event_on_all_cpus()
368 if (perf_evsel__open(evsel, cpus, threads, false) < 0) { in test__open_syscall_event_on_all_cpus()
435 perf_evsel__close_fd(evsel, 1, threads->nr); in test__open_syscall_event_on_all_cpus()
439 thread_map__delete(threads); in test__open_syscall_event_on_all_cpus()
462 struct thread_map *threads; in test__basic_mmap()
496 threads = thread_map__new(-1, getpid()); in test__basic_mmap()
497 if (threads == NULL) { in test__basic_mmap()
517 evlist = perf_evlist__new(cpus, threads); in test__basic_mmap()
537 if (perf_evsel__open(evsels[i], cpus, threads, false) < 0) { in test__basic_mmap()
596 perf_evsel__close_fd(evsels[i], 1, threads->nr); in test__basic_mmap()
602 thread_map__delete(threads); in test__basic_mmap()