Lines Matching refs:thread_idx
1148 int cpu = 0, cpu_idx, thread = 0, thread_idx; in pyrf_evsel__read() local
1164 thread_idx = perf_thread_map__idx(evsel->core.threads, thread); in pyrf_evsel__read()
1165 if (thread_idx < 0) { in pyrf_evsel__read()
1175 old_count = perf_counts(evsel->prev_raw_counts, cpu_idx, thread_idx); in pyrf_evsel__read()
1176 new_count = perf_counts(evsel->counts, cpu_idx, thread_idx); in pyrf_evsel__read()
1178 evsel__read_counter(evsel, cpu_idx, thread_idx); in pyrf_evsel__read()
1337 int cpu_idx, int thread_idx) in prepare_metric() argument
1381 old_count = perf_counts(cur->prev_raw_counts, cpu_idx, thread_idx); in prepare_metric()
1382 new_count = perf_counts(cur->counts, cpu_idx, thread_idx); in prepare_metric()
1384 evsel__read_counter(cur, cpu_idx, thread_idx); in prepare_metric()
1410 int ret, cpu = 0, cpu_idx = 0, thread = 0, thread_idx = 0; in pyrf_evlist__compute_metric() local
1445 thread_idx = perf_thread_map__idx(pos2->core.threads, thread); in pyrf_evlist__compute_metric()
1446 if (thread_idx < 0) in pyrf_evlist__compute_metric()
1465 ret = prepare_metric(mexp, metric_evsel, pctx, cpu_idx, thread_idx); in pyrf_evlist__compute_metric()