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