Lines Matching refs:threads
36 struct perf_thread_map *threads; in test__basic_mmap() local
49 threads = thread_map__new(-1, getpid(), UINT_MAX); in test__basic_mmap()
50 if (threads == NULL) { in test__basic_mmap()
77 perf_evlist__set_maps(&evlist->core, cpus, threads); in test__basic_mmap()
98 if (evsel__open(evsels[i], cpus, threads) < 0) { in test__basic_mmap()
171 perf_thread_map__put(threads); in test__basic_mmap()
178 struct perf_thread_map *threads; in test_stat_user_read() local
191 threads = perf_thread_map__new_dummy(); in test_stat_user_read()
192 TEST_ASSERT_VAL("failed to create threads", threads); in test_stat_user_read()
194 perf_thread_map__set_pid(threads, 0, 0); in test_stat_user_read()
199 err = perf_evsel__open(evsel, NULL, threads); in test_stat_user_read()
268 perf_thread_map__put(threads); in test_stat_user_read()