/linux-6.3-rc2/tools/lib/perf/ |
A D | evsel.c | 104 fd = FD(leader, cpu_map_idx, thread); in get_group_fd() 185 int *fd = FD(evsel, cpu_map_idx, thread); in perf_evsel__close_fd_cpu() 220 perf_evsel__close_fd_cpu(evsel, cpu_map_idx); in perf_evsel__close_cpu() 284 int *fd = FD(evsel, cpu_map_idx, thread); in perf_evsel__mmap_base() 289 return MMAP(evsel, cpu_map_idx, thread)->base; in perf_evsel__mmap_base() 325 int *fd = FD(evsel, cpu_map_idx, thread); in perf_evsel__read_group() 391 int *fd = FD(evsel, cpu_map_idx, thread); in perf_evsel__read() 403 if (MMAP(evsel, cpu_map_idx, thread) && in perf_evsel__read() 416 int cpu_map_idx, int thread) in perf_evsel__ioctl() argument 418 int *fd = FD(evsel, cpu_map_idx, thread); in perf_evsel__ioctl() [all …]
|
/linux-6.3-rc2/tools/perf/util/ |
A D | counts.h | 20 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 D | evsel.c | 1656 int cpu_map_idx) in evsel__match_other_cpu() argument 1673 return cpu_map_idx; in evsel__hybrid_group_cpu_map_idx() 1690 cpu_map_idx = evsel__hybrid_group_cpu_map_idx(evsel, cpu_map_idx); in get_group_fd() 1691 if (cpu_map_idx == -1) in get_group_fd() 1694 fd = FD(leader, cpu_map_idx, thread); in get_group_fd() 1708 int nr_cpus, int cpu_map_idx, in update_fds() argument 1732 int nr_cpus, int cpu_map_idx, in evsel__ignore_missing_thread() argument 2197 if (cpu_map_idx == -1) in evsel__open_per_cpu() 2200 return evsel__open_cpu(evsel, cpus, NULL, cpu_map_idx, cpu_map_idx + 1); in evsel__open_per_cpu() 3097 int cpu_map_idx, thread; in store_evsel_ids() local [all …]
|
A D | evsel.h | 311 int evsel__enable_cpu(struct evsel *evsel, int cpu_map_idx); 314 int evsel__disable_cpu(struct evsel *evsel, int cpu_map_idx); 316 int evsel__open_per_cpu(struct evsel *evsel, struct perf_cpu_map *cpus, int cpu_map_idx); 358 int evsel__read_counter(struct evsel *evsel, int cpu_map_idx, int thread); 360 int __evsel__read_on_cpu(struct evsel *evsel, int cpu_map_idx, int thread, bool scale); 369 static inline int evsel__read_on_cpu(struct evsel *evsel, int cpu_map_idx, int thread) in evsel__read_on_cpu() argument 371 return __evsel__read_on_cpu(evsel, cpu_map_idx, thread, false); in evsel__read_on_cpu() 381 static inline int evsel__read_on_cpu_scaled(struct evsel *evsel, int cpu_map_idx, int thread) in evsel__read_on_cpu_scaled() argument 383 return __evsel__read_on_cpu(evsel, cpu_map_idx, thread, true); in evsel__read_on_cpu_scaled()
|
A D | stat.c | 333 int cpu_map_idx, bool *skip) in check_per_pkg() argument 337 struct perf_cpu cpu = perf_cpu_map__cpu(cpus, cpu_map_idx); in check_per_pkg() 415 int cpu_map_idx, int thread, in process_counter_values() argument 422 if (check_per_pkg(evsel, count, cpu_map_idx, &skip)) { in process_counter_values() 431 evsel__compute_deltas(evsel, cpu_map_idx, thread, count); in process_counter_values() 453 struct perf_cpu cpu = perf_cpu_map__cpu(evsel->core.cpus, cpu_map_idx); in process_counter_values() 731 int cpu_map_idx; in perf_event__process_stat_event() local 743 if (cpu_map_idx == -1) { in perf_event__process_stat_event() 747 ptr = perf_counts(counter->counts, cpu_map_idx, st->thread); in perf_event__process_stat_event() 800 int cpu_map_idx) in create_perf_stat_counter() argument [all …]
|
A D | bpf_counter.h | 22 int cpu_map_idx, 46 int bpf_counter__install_pe(struct evsel *evsel, int cpu_map_idx, int fd);
|
A D | bpf_counter.c | 273 static int bpf_program_profiler__install_pe(struct evsel *evsel, int cpu_map_idx, in bpf_program_profiler__install_pe() argument 285 &cpu_map_idx, &fd, BPF_ANY); in bpf_program_profiler__install_pe() 592 static int bperf__install_pe(struct evsel *evsel, int cpu_map_idx, int fd) in bperf__install_pe() argument 597 &cpu_map_idx, &fd, BPF_ANY); in bperf__install_pe() 788 int bpf_counter__install_pe(struct evsel *evsel, int cpu_map_idx, int fd) in bpf_counter__install_pe() argument 792 return evsel->bpf_counter_ops->install_pe(evsel, cpu_map_idx, fd); in bpf_counter__install_pe()
|
A D | evlist.c | 400 .cpu_map_idx = 0, in evlist__cpu_begin() 415 itr.cpu_map_idx = perf_cpu_map__idx(itr.evsel->core.cpus, itr.cpu); in evlist__cpu_begin() 420 if (itr.cpu_map_idx == -1) in evlist__cpu_begin() 431 evlist_cpu_itr->cpu_map_idx = in evlist_cpu_iterator__next() 434 if (evlist_cpu_itr->cpu_map_idx != -1) in evlist_cpu_iterator__next() 445 evlist_cpu_itr->cpu_map_idx = in evlist_cpu_iterator__next() 452 if (evlist_cpu_itr->cpu_map_idx == -1) in evlist_cpu_iterator__next() 513 evsel__disable_cpu(pos, evlist_cpu_itr.cpu_map_idx); in __evlist__disable() 576 evsel__enable_cpu(pos, evlist_cpu_itr.cpu_map_idx); in __evlist__enable() 1322 evlist_cpu_itr.cpu_map_idx); in evlist__close()
|
A D | stat.h | 292 int cpu_map_idx);
|
A D | evlist.h | 353 int cpu_map_idx; member
|
A D | auxtrace.c | 655 int cpu_map_idx = perf_cpu_map__idx(evsel->core.cpus, evlist_cpu); in evlist__enable_event_idx() local 657 if (cpu_map_idx == -1) in evlist__enable_event_idx() 659 return perf_evsel__enable_cpu(&evsel->core, cpu_map_idx); in evlist__enable_event_idx()
|
/linux-6.3-rc2/tools/lib/perf/include/perf/ |
A D | evsel.h | 33 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);
|
/linux-6.3-rc2/tools/lib/perf/Documentation/ |
A D | libperf.txt | 140 void perf_evsel__close_cpu(struct perf_evsel *evsel, int cpu_map_idx); 143 void *perf_evsel__mmap_base(struct perf_evsel *evsel, int cpu_map_idx, int thread); 144 int perf_evsel__read(struct perf_evsel *evsel, int cpu_map_idx, int thread, 147 int perf_evsel__enable_cpu(struct perf_evsel *evsel, int cpu_map_idx); 149 int perf_evsel__disable_cpu(struct perf_evsel *evsel, int cpu_map_idx);
|
/linux-6.3-rc2/tools/perf/ |
A D | builtin-stat.c | 342 perf_counts(counter->counts, cpu_map_idx, thread); in read_single_counter() 351 perf_counts(counter->counts, cpu_map_idx, thread); in read_single_counter() 362 return evsel__read_counter(counter, cpu_map_idx, thread); in read_single_counter() 384 count = perf_counts(counter->counts, cpu_map_idx, thread); in read_counter_cpu() 391 read_single_counter(counter, cpu_map_idx, thread, rs)) { in read_counter_cpu() 393 perf_counts(counter->counts, cpu_map_idx, thread)->ena = 0; in read_counter_cpu() 394 perf_counts(counter->counts, cpu_map_idx, thread)->run = 0; in read_counter_cpu() 412 cpu_map_idx).cpu, in read_counter_cpu() 443 evlist_cpu_itr.cpu_map_idx); in read_affinity_counters() 796 evlist_cpu_itr.cpu_map_idx) < 0) { in __run_perf_stat() [all …]
|