Lines Matching defs:thread
251 int cpu, int thread, u64 id)
254 struct perf_sample_id *sid = SID(evsel, cpu, thread);
272 int cpu, int thread, u64 id)
274 perf_evlist__id_hash(evlist, evsel, cpu, thread, id);
280 int cpu, int thread, int fd)
315 perf_evlist__id_add(evlist, evsel, cpu, thread, id);
400 static void perf_evsel__set_sid_idx(struct perf_evsel *evsel, int idx, int cpu, int thread)
402 struct perf_sample_id *sid = SID(evsel, cpu, thread);
406 sid->tid = perf_thread_map__pid(evsel->threads, thread);
451 int thread, int *_output, int *_output_overwrite, int *nr_mmaps)
463 if (evsel->system_wide && thread)
482 fd = FD(evsel, cpu, thread);
532 if (perf_evlist__id_add_fd(evlist, evsel, cpu, thread,
535 perf_evsel__set_sid_idx(evsel, idx, cpu, thread);
548 int cpu, thread, idx = 0;
554 /* per-thread mmaps */
555 for (thread = 0; thread < nr_threads; thread++, idx++) {
559 if (mmap_per_evsel(evlist, ops, idx, mp, 0, thread, &output,
591 int cpu, thread;
599 for (thread = 0; thread < nr_threads; thread++) {
601 thread, &output, &output_overwrite, &nr_mmaps))
623 /* Plus one for each thread */
625 /* Minus the per-thread CPU (-1) */