Lines Matching defs:thread
337 int cpu_map_idx, int thread, u64 id)
340 struct perf_sample_id *sid = SID(evsel, cpu_map_idx, thread);
358 int cpu_map_idx, int thread, u64 id)
360 if (!SID(evsel, cpu_map_idx, thread))
363 perf_evlist__id_hash(evlist, evsel, cpu_map_idx, thread, id);
369 int cpu_map_idx, int thread, int fd)
376 if (!SID(evsel, cpu_map_idx, thread))
407 perf_evlist__id_add(evlist, evsel, cpu_map_idx, thread, id);
492 static void perf_evsel__set_sid_idx(struct perf_evsel *evsel, int idx, int cpu, int thread)
494 struct perf_sample_id *sid = SID(evsel, cpu, thread);
498 sid->tid = perf_thread_map__pid(evsel->threads, thread);
543 int thread, int *_output, int *_output_overwrite, int *nr_mmaps)
555 if (evsel->system_wide && thread)
574 fd = FD(evsel, cpu, thread);
624 if (perf_evlist__id_add_fd(evlist, evsel, cpu, thread,
627 perf_evsel__set_sid_idx(evsel, idx, cpu, thread);
640 int cpu, thread, idx = 0;
646 /* per-thread mmaps */
647 for (thread = 0; thread < nr_threads; thread++, idx++) {
651 if (mmap_per_evsel(evlist, ops, idx, mp, 0, thread, &output,
683 int cpu, thread;
691 for (thread = 0; thread < nr_threads; thread++) {
693 thread, &output, &output_overwrite, &nr_mmaps))
715 /* Plus one for each thread */
717 /* Minus the per-thread CPU (-1) */