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()
168 perf_thread_map__put(threads); in test__basic_mmap()
175 struct perf_thread_map *threads; in test_stat_user_read() local
188 threads = perf_thread_map__new_dummy(); in test_stat_user_read()
189 TEST_ASSERT_VAL("failed to create threads", threads); in test_stat_user_read()
191 perf_thread_map__set_pid(threads, 0, 0); in test_stat_user_read()
196 err = perf_evsel__open(evsel, NULL, threads); in test_stat_user_read()
265 perf_thread_map__put(threads); in test_stat_user_read()