Home
last modified time | relevance | path

Searched refs:cpu_map_idx (Results 1 – 24 of 24) sorted by relevance

/tools/perf/util/
A Dcounts.h20 perf_counts(struct perf_counts *counts, int cpu_map_idx, int thread) in perf_counts() argument
22 return xyarray__entry(counts->values, cpu_map_idx, thread); in perf_counts()
26 perf_counts__is_loaded(struct perf_counts *counts, int cpu_map_idx, int thread) in perf_counts__is_loaded() argument
28 return *((bool *) xyarray__entry(counts->loaded, cpu_map_idx, thread)); in perf_counts__is_loaded()
32 perf_counts__set_loaded(struct perf_counts *counts, int cpu_map_idx, int thread, bool loaded) in perf_counts__set_loaded() argument
34 *((bool *) xyarray__entry(counts->loaded, cpu_map_idx, thread)) = loaded; in perf_counts__set_loaded()
A Dtool_pmu.c437 int evsel__tool_pmu_read(struct evsel *evsel, int cpu_map_idx, int thread) in evsel__tool_pmu_read() argument
446 count = perf_counts(evsel->counts, cpu_map_idx, thread); in evsel__tool_pmu_read()
459 old_count = perf_counts(evsel->prev_raw_counts, cpu_map_idx, thread); in evsel__tool_pmu_read()
461 if (cpu_map_idx == 0 && thread == 0) { in evsel__tool_pmu_read()
484 if (cpu_map_idx == 0 && thread == 0) in evsel__tool_pmu_read()
493 start_time = xyarray__entry(evsel->start_times, cpu_map_idx, thread); in evsel__tool_pmu_read()
494 fd = FD(evsel, cpu_map_idx, thread); in evsel__tool_pmu_read()
498 if (cpu_map_idx == 0) in evsel__tool_pmu_read()
506 cpu_map_idx); in evsel__tool_pmu_read()
A Devsel.h349 int evsel__enable_cpu(struct evsel *evsel, int cpu_map_idx);
352 int evsel__disable_cpu(struct evsel *evsel, int cpu_map_idx);
355 struct perf_cpu_map *cpus, int cpu_map_idx,
357 int evsel__open_per_cpu(struct evsel *evsel, struct perf_cpu_map *cpus, int cpu_map_idx);
392 int evsel__read_counter(struct evsel *evsel, int cpu_map_idx, int thread);
394 int __evsel__read_on_cpu(struct evsel *evsel, int cpu_map_idx, int thread, bool scale);
403 static inline int evsel__read_on_cpu(struct evsel *evsel, int cpu_map_idx, int thread) in evsel__read_on_cpu() argument
405 return __evsel__read_on_cpu(evsel, cpu_map_idx, thread, false); in evsel__read_on_cpu()
415 static inline int evsel__read_on_cpu_scaled(struct evsel *evsel, int cpu_map_idx, int thread) in evsel__read_on_cpu_scaled() argument
417 return __evsel__read_on_cpu(evsel, cpu_map_idx, thread, true); in evsel__read_on_cpu_scaled()
A Devsel.c1919 int cpu_map_idx) in evsel__match_other_cpu() argument
1936 return cpu_map_idx; in evsel__hybrid_group_cpu_map_idx()
1953 cpu_map_idx = evsel__hybrid_group_cpu_map_idx(evsel, cpu_map_idx); in get_group_fd()
1954 if (cpu_map_idx == -1) in get_group_fd()
1957 fd = FD(leader, cpu_map_idx, thread); in get_group_fd()
1975 int nr_cpus, int cpu_map_idx, in update_fds() argument
1999 int nr_cpus, int cpu_map_idx, in evsel__ignore_missing_thread() argument
2752 if (cpu_map_idx == -1) in evsel__open_per_cpu_and_thread()
2755 return evsel__open_cpu(evsel, cpus, threads, cpu_map_idx, cpu_map_idx + 1); in evsel__open_per_cpu_and_thread()
3880 int cpu_map_idx, thread; in store_evsel_ids() local
[all …]
A Dstat.c305 int cpu_map_idx, bool *skip) in check_per_pkg() argument
309 struct perf_cpu cpu = perf_cpu_map__cpu(cpus, cpu_map_idx); in check_per_pkg()
387 int cpu_map_idx, int thread, in process_counter_values() argument
394 if (check_per_pkg(evsel, count, cpu_map_idx, &skip)) { in process_counter_values()
403 evsel__compute_deltas(evsel, cpu_map_idx, thread, count); in process_counter_values()
425 struct perf_cpu cpu = perf_cpu_map__cpu(evsel->core.cpus, cpu_map_idx); in process_counter_values()
654 int cpu_map_idx; in perf_event__process_stat_event() local
666 if (cpu_map_idx == -1) { in perf_event__process_stat_event()
670 ptr = perf_counts(counter->counts, cpu_map_idx, st->thread); in perf_event__process_stat_event()
723 int cpu_map_idx) in create_perf_stat_counter() argument
[all …]
A Dbpf_counter.h22 int cpu_map_idx,
46 int bpf_counter__install_pe(struct evsel *evsel, int cpu_map_idx, int fd);
A Dintel-tpebs.h23 int evsel__tpebs_read(struct evsel *evsel, int cpu_map_idx, int thread);
A Ddrm_pmu.h37 int evsel__drm_pmu_read(struct evsel *evsel, int cpu_map_idx, int thread);
A Dtool_pmu.h52 int evsel__tool_pmu_read(struct evsel *evsel, int cpu_map_idx, int thread);
A Dbpf_counter.c276 static int bpf_program_profiler__install_pe(struct evsel *evsel, int cpu_map_idx, in bpf_program_profiler__install_pe() argument
288 &cpu_map_idx, &fd, BPF_ANY); in bpf_program_profiler__install_pe()
598 static int bperf__install_pe(struct evsel *evsel, int cpu_map_idx, int fd) in bperf__install_pe() argument
603 &cpu_map_idx, &fd, BPF_ANY); in bperf__install_pe()
793 int bpf_counter__install_pe(struct evsel *evsel, int cpu_map_idx, int fd) in bpf_counter__install_pe() argument
797 return evsel->bpf_counter_ops->install_pe(evsel, cpu_map_idx, fd); in bpf_counter__install_pe()
A Dintel-tpebs.c559 int evsel__tpebs_read(struct evsel *evsel, int cpu_map_idx, int thread) in evsel__tpebs_read() argument
567 if (cpu_map_idx != 0 || thread != 0) in evsel__tpebs_read()
571 old_count = perf_counts(evsel->prev_raw_counts, cpu_map_idx, thread); in evsel__tpebs_read()
573 count = perf_counts(evsel->counts, cpu_map_idx, thread); in evsel__tpebs_read()
A Dhwmon_pmu.h165 int evsel__hwmon_pmu_read(struct evsel *evsel, int cpu_map_idx, int thread);
A Dhwmon_pmu.c808 int evsel__hwmon_pmu_read(struct evsel *evsel, int cpu_map_idx, int thread) in evsel__hwmon_pmu_read() argument
816 old_count = perf_counts(evsel->prev_raw_counts, cpu_map_idx, thread); in evsel__hwmon_pmu_read()
818 count = perf_counts(evsel->counts, cpu_map_idx, thread); in evsel__hwmon_pmu_read()
819 fd = FD(evsel, cpu_map_idx, thread); in evsel__hwmon_pmu_read()
A Ddrm_pmu.c660 int evsel__drm_pmu_read(struct evsel *evsel, int cpu_map_idx, int thread) in evsel__drm_pmu_read() argument
673 old_count = perf_counts(evsel->prev_raw_counts, cpu_map_idx, thread); in evsel__drm_pmu_read()
675 count = perf_counts(evsel->counts, cpu_map_idx, thread); in evsel__drm_pmu_read()
A Devlist.c358 .cpu_map_idx = 0, in evlist__cpu_begin()
373 itr.cpu_map_idx = perf_cpu_map__idx(itr.evsel->core.cpus, itr.cpu); in evlist__cpu_begin()
378 if (itr.cpu_map_idx == -1) in evlist__cpu_begin()
389 evlist_cpu_itr->cpu_map_idx = in evlist_cpu_iterator__next()
392 if (evlist_cpu_itr->cpu_map_idx != -1) in evlist_cpu_iterator__next()
403 evlist_cpu_itr->cpu_map_idx = in evlist_cpu_iterator__next()
410 if (evlist_cpu_itr->cpu_map_idx == -1) in evlist_cpu_iterator__next()
471 evsel__disable_cpu(pos, evlist_cpu_itr.cpu_map_idx); in __evlist__disable()
534 evsel__enable_cpu(pos, evlist_cpu_itr.cpu_map_idx); in __evlist__enable()
1351 evlist_cpu_itr.cpu_map_idx); in evlist__close()
A Dstat.h229 int cpu_map_idx);
A Devlist.h351 int cpu_map_idx; member
A Dauxtrace.c660 int cpu_map_idx = perf_cpu_map__idx(evsel->core.cpus, evlist_cpu); in evlist__enable_event_idx() local
662 if (cpu_map_idx == -1) in evlist__enable_event_idx()
664 return perf_evsel__enable_cpu(&evsel->core, cpu_map_idx); in evlist__enable_event_idx()
/tools/lib/perf/
A Devsel.c117 fd = FD(leader, cpu_map_idx, thread); in get_group_fd()
198 int *fd = FD(evsel, cpu_map_idx, thread); in perf_evsel__close_fd_cpu()
233 perf_evsel__close_fd_cpu(evsel, cpu_map_idx); in perf_evsel__close_cpu()
297 int *fd = FD(evsel, cpu_map_idx, thread); in perf_evsel__mmap_base()
302 return MMAP(evsel, cpu_map_idx, thread)->base; in perf_evsel__mmap_base()
338 int *fd = FD(evsel, cpu_map_idx, thread); in perf_evsel__read_group()
404 int *fd = FD(evsel, cpu_map_idx, thread); in perf_evsel__read()
416 if (MMAP(evsel, cpu_map_idx, thread) && in perf_evsel__read()
429 int cpu_map_idx, int thread) in perf_evsel__ioctl() argument
431 int *fd = FD(evsel, cpu_map_idx, thread); in perf_evsel__ioctl()
[all …]
A Devlist.c308 int cpu_map_idx, int thread, u64 id) in perf_evlist__id_hash() argument
311 struct perf_sample_id *sid = SID(evsel, cpu_map_idx, thread); in perf_evlist__id_hash()
329 int cpu_map_idx, int thread, u64 id) in perf_evlist__id_add() argument
331 if (!SID(evsel, cpu_map_idx, thread)) in perf_evlist__id_add()
334 perf_evlist__id_hash(evlist, evsel, cpu_map_idx, thread, id); in perf_evlist__id_add()
340 int cpu_map_idx, int thread, int fd) in perf_evlist__id_add_fd() argument
347 if (!SID(evsel, cpu_map_idx, thread)) in perf_evlist__id_add_fd()
378 perf_evlist__id_add(evlist, evsel, cpu_map_idx, thread, id); in perf_evlist__id_add_fd()
/tools/lib/perf/include/perf/
A Devsel.h33 LIBPERF_API void perf_evsel__close_cpu(struct perf_evsel *evsel, int cpu_map_idx);
36 LIBPERF_API void *perf_evsel__mmap_base(struct perf_evsel *evsel, int cpu_map_idx, int thread);
37 LIBPERF_API int perf_evsel__read(struct perf_evsel *evsel, int cpu_map_idx, int thread,
40 LIBPERF_API int perf_evsel__enable_cpu(struct perf_evsel *evsel, int cpu_map_idx);
43 LIBPERF_API int perf_evsel__disable_cpu(struct perf_evsel *evsel, int cpu_map_idx);
/tools/lib/perf/include/internal/
A Devlist.h129 int cpu_map_idx, int thread, u64 id);
133 int cpu_map_idx, int thread, int fd);
/tools/lib/perf/Documentation/
A Dlibperf.txt139 void perf_evsel__close_cpu(struct perf_evsel *evsel, int cpu_map_idx);
142 void *perf_evsel__mmap_base(struct perf_evsel *evsel, int cpu_map_idx, int thread);
143 int perf_evsel__read(struct perf_evsel *evsel, int cpu_map_idx, int thread,
146 int perf_evsel__enable_cpu(struct perf_evsel *evsel, int cpu_map_idx);
148 int perf_evsel__disable_cpu(struct perf_evsel *evsel, int cpu_map_idx);
/tools/perf/
A Dbuiltin-stat.c263 struct perf_sample_id *sid = SID(counter, cpu_map_idx, thread); in evsel__write_stat_event()
272 int err = evsel__read_counter(counter, cpu_map_idx, thread); in read_single_counter()
278 if (err && cpu_map_idx == 0 && in read_single_counter()
283 perf_counts(counter->counts, cpu_map_idx, thread); in read_single_counter()
312 count = perf_counts(counter->counts, cpu_map_idx, thread); in read_counter_cpu()
319 read_single_counter(counter, cpu_map_idx, thread)) { in read_counter_cpu()
321 perf_counts(counter->counts, cpu_map_idx, thread)->ena = 0; in read_counter_cpu()
322 perf_counts(counter->counts, cpu_map_idx, thread)->run = 0; in read_counter_cpu()
340 cpu_map_idx).cpu, in read_counter_cpu()
746 evlist_cpu_itr.cpu_map_idx) < 0) { in __run_perf_stat()
[all …]

Completed in 48 milliseconds