Lines Matching refs:threads
56 struct perf_thread_map *threads; in test_stat_thread() local
64 threads = perf_thread_map__new_dummy(); in test_stat_thread()
65 __T("failed to create threads", threads); in test_stat_thread()
67 perf_thread_map__set_pid(threads, 0, 0); in test_stat_thread()
72 err = perf_evsel__open(evsel, NULL, threads); in test_stat_thread()
81 perf_thread_map__put(threads); in test_stat_thread()
88 struct perf_thread_map *threads; in test_stat_thread_enable() local
97 threads = perf_thread_map__new_dummy(); in test_stat_thread_enable()
98 __T("failed to create threads", threads); in test_stat_thread_enable()
100 perf_thread_map__set_pid(threads, 0, 0); in test_stat_thread_enable()
105 err = perf_evsel__open(evsel, NULL, threads); in test_stat_thread_enable()
123 perf_thread_map__put(threads); in test_stat_thread_enable()
130 struct perf_thread_map *threads; in test_stat_user_read() local
142 threads = perf_thread_map__new_dummy(); in test_stat_user_read()
143 __T("failed to create threads", threads); in test_stat_user_read()
145 perf_thread_map__set_pid(threads, 0, 0); in test_stat_user_read()
150 err = perf_evsel__open(evsel, NULL, threads); in test_stat_user_read()
191 perf_thread_map__put(threads); in test_stat_user_read()
195 …tic int test_stat_read_format_single(struct perf_event_attr *attr, struct perf_thread_map *threads) in test_stat_read_format_single() argument
206 err = perf_evsel__open(evsel, NULL, threads); in test_stat_read_format_single()
230 …atic int test_stat_read_format_group(struct perf_event_attr *attr, struct perf_thread_map *threads) in test_stat_read_format_group() argument
249 err = perf_evsel__open(leader, NULL, threads); in test_stat_read_format_group()
252 err = perf_evsel__open(member, NULL, threads); in test_stat_read_format_group()
293 struct perf_thread_map *threads; in test_stat_read_format() local
317 threads = perf_thread_map__new_dummy(); in test_stat_read_format()
318 __T("failed to create threads", threads); in test_stat_read_format()
320 perf_thread_map__set_pid(threads, 0, 0); in test_stat_read_format()
327 err = test_stat_read_format_single(&attr, threads); in test_stat_read_format()
331 perf_thread_map__put(threads); in test_stat_read_format()
333 threads = perf_thread_map__new_array(2, NULL); in test_stat_read_format()
334 __T("failed to create threads", threads); in test_stat_read_format()
336 perf_thread_map__set_pid(threads, 0, 0); in test_stat_read_format()
337 perf_thread_map__set_pid(threads, 1, 0); in test_stat_read_format()
344 err = test_stat_read_format_group(&attr, threads); in test_stat_read_format()
348 perf_thread_map__put(threads); in test_stat_read_format()