Lines Matching refs:cpu_map_idx

278 static int evsel__write_stat_event(struct evsel *counter, int cpu_map_idx, u32 thread,  in evsel__write_stat_event()  argument
281 struct perf_sample_id *sid = SID(counter, cpu_map_idx, thread); in evsel__write_stat_event()
282 struct perf_cpu cpu = perf_cpu_map__cpu(evsel__cpus(counter), cpu_map_idx); in evsel__write_stat_event()
288 static int read_single_counter(struct evsel *counter, int cpu_map_idx, int thread) in read_single_counter() argument
290 int err = evsel__read_counter(counter, cpu_map_idx, thread); in read_single_counter()
296 if (err && cpu_map_idx == 0 && in read_single_counter()
301 perf_counts(counter->counts, cpu_map_idx, thread); in read_single_counter()
303 start_time = xyarray__entry(counter->start_times, cpu_map_idx, thread); in read_single_counter()
319 static int read_counter_cpu(struct evsel *counter, int cpu_map_idx) in read_counter_cpu() argument
330 count = perf_counts(counter->counts, cpu_map_idx, thread); in read_counter_cpu()
336 if (!perf_counts__is_loaded(counter->counts, cpu_map_idx, thread) && in read_counter_cpu()
337 read_single_counter(counter, cpu_map_idx, thread)) { in read_counter_cpu()
339 perf_counts(counter->counts, cpu_map_idx, thread)->ena = 0; in read_counter_cpu()
340 perf_counts(counter->counts, cpu_map_idx, thread)->run = 0; in read_counter_cpu()
344 perf_counts__set_loaded(counter->counts, cpu_map_idx, thread, false); in read_counter_cpu()
347 if (evsel__write_stat_event(counter, cpu_map_idx, thread, count)) { in read_counter_cpu()
358 cpu_map_idx).cpu, in read_counter_cpu()
388 counter->err = read_counter_cpu(counter, evlist_cpu_itr.cpu_map_idx); in read_affinity_counters()
750 evlist_cpu_itr.cpu_map_idx) < 0) { in __run_perf_stat()
796 perf_evsel__close_cpu(&counter->core, evlist_cpu_itr.cpu_map_idx); in __run_perf_stat()
807 evlist_cpu_itr.cpu_map_idx) < 0) { in __run_perf_stat()