/linux-master/tools/perf/util/ |
H A D | counts.h | 20 perf_counts(struct perf_counts *counts, int cpu_map_idx, int thread) argument 22 return xyarray__entry(counts->values, cpu_map_idx, thread); 26 perf_counts__is_loaded(struct perf_counts *counts, int cpu_map_idx, int thread) argument 28 return *((bool *) xyarray__entry(counts->loaded, cpu_map_idx, thread)); 32 perf_counts__set_loaded(struct perf_counts *counts, int cpu_map_idx, int thread, bool loaded) argument 34 *((bool *) xyarray__entry(counts->loaded, cpu_map_idx, thread)) = loaded;
|
H A D | evsel.c | 1412 int evsel__enable_cpu(struct evsel *evsel, int cpu_map_idx) argument 1414 return perf_evsel__enable_cpu(&evsel->core, cpu_map_idx); 1427 int evsel__disable_cpu(struct evsel *evsel, int cpu_map_idx) argument 1429 return perf_evsel__disable_cpu(&evsel->core, cpu_map_idx); 1501 void evsel__compute_deltas(struct evsel *evsel, int cpu_map_idx, int thread, argument 1509 tmp = *perf_counts(evsel->prev_raw_counts, cpu_map_idx, thread); 1510 *perf_counts(evsel->prev_raw_counts, cpu_map_idx, thread) = *count; 1517 static int evsel__read_one(struct evsel *evsel, int cpu_map_idx, int thread) argument 1519 struct perf_counts_values *count = perf_counts(evsel->counts, cpu_map_idx, thread); 1521 return perf_evsel__read(&evsel->core, cpu_map_idx, threa 1524 evsel__set_count(struct evsel *counter, int cpu_map_idx, int thread, u64 val, u64 ena, u64 run, u64 lost) argument 1539 evsel__process_group_data(struct evsel *leader, int cpu_map_idx, int thread, u64 *data) argument 1573 evsel__read_group(struct evsel *leader, int cpu_map_idx, int thread) argument 1603 evsel__read_counter(struct evsel *evsel, int cpu_map_idx, int thread) argument 1613 __evsel__read_on_cpu(struct evsel *evsel, int cpu_map_idx, int thread, bool scale) argument 1633 evsel__match_other_cpu(struct evsel *evsel, struct evsel *other, int cpu_map_idx) argument 1642 evsel__hybrid_group_cpu_map_idx(struct evsel *evsel, int cpu_map_idx) argument 1654 get_group_fd(struct evsel *evsel, int cpu_map_idx, int thread) argument 1689 update_fds(struct evsel *evsel, int nr_cpus, int cpu_map_idx, int nr_threads, int thread_idx) argument 1713 evsel__ignore_missing_thread(struct evsel *evsel, int nr_cpus, int cpu_map_idx, struct perf_thread_map *threads, int thread, int err) argument 2164 evsel__open_per_cpu(struct evsel *evsel, struct perf_cpu_map *cpus, int cpu_map_idx) argument 3123 int cpu_map_idx, thread; local [all...] |
H A D | stat.c | 305 int cpu_map_idx, bool *skip) 309 struct perf_cpu cpu = perf_cpu_map__cpu(cpus, cpu_map_idx); 387 int cpu_map_idx, int thread, 394 if (check_per_pkg(evsel, count, cpu_map_idx, &skip)) { 403 evsel__compute_deltas(evsel, cpu_map_idx, thread, count); 425 struct perf_cpu cpu = perf_cpu_map__cpu(evsel->core.cpus, cpu_map_idx); 679 int cpu_map_idx; local 690 cpu_map_idx = perf_cpu_map__idx(evsel__cpus(counter), (struct perf_cpu){.cpu = st->cpu}); 691 if (cpu_map_idx == -1) { 695 ptr = perf_counts(counter->counts, cpu_map_idx, s 304 check_per_pkg(struct evsel *counter, struct perf_counts_values *vals, int cpu_map_idx, bool *skip) argument 386 process_counter_values(struct perf_stat_config *config, struct evsel *evsel, int cpu_map_idx, int thread, struct perf_counts_values *count) argument 745 create_perf_stat_counter(struct evsel *evsel, struct perf_stat_config *config, struct target *target, int cpu_map_idx) argument [all...] |
H 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);
|
H A D | evsel.h | 320 int evsel__enable_cpu(struct evsel *evsel, int cpu_map_idx); 323 int evsel__disable_cpu(struct evsel *evsel, int cpu_map_idx); 325 int evsel__open_per_cpu(struct evsel *evsel, struct perf_cpu_map *cpus, int cpu_map_idx); 377 int evsel__read_counter(struct evsel *evsel, int cpu_map_idx, int thread); 379 int __evsel__read_on_cpu(struct evsel *evsel, int cpu_map_idx, int thread, bool scale); 385 * @cpu_map_idx - CPU of interest 388 static inline int evsel__read_on_cpu(struct evsel *evsel, int cpu_map_idx, int thread) argument 390 return __evsel__read_on_cpu(evsel, cpu_map_idx, thread, false); 397 * @cpu_map_idx - CPU of interest 400 static inline int evsel__read_on_cpu_scaled(struct evsel *evsel, int cpu_map_idx, in argument [all...] |
H A D | bpf_counter.c | 276 static int bpf_program_profiler__install_pe(struct evsel *evsel, int cpu_map_idx, argument 288 &cpu_map_idx, &fd, BPF_ANY); 577 static int bperf__install_pe(struct evsel *evsel, int cpu_map_idx, int fd) argument 582 &cpu_map_idx, &fd, BPF_ANY); 772 int bpf_counter__install_pe(struct evsel *evsel, int cpu_map_idx, int fd) argument 776 return evsel->bpf_counter_ops->install_pe(evsel, cpu_map_idx, fd);
|
H A D | evlist.c | 405 .cpu_map_idx = 0, 420 itr.cpu_map_idx = perf_cpu_map__idx(itr.evsel->core.cpus, itr.cpu); 425 if (itr.cpu_map_idx == -1) 436 evlist_cpu_itr->cpu_map_idx = 439 if (evlist_cpu_itr->cpu_map_idx != -1) 450 evlist_cpu_itr->cpu_map_idx = 457 if (evlist_cpu_itr->cpu_map_idx == -1) 518 evsel__disable_cpu(pos, evlist_cpu_itr.cpu_map_idx); 581 evsel__enable_cpu(pos, evlist_cpu_itr.cpu_map_idx); 1337 evlist_cpu_itr.cpu_map_idx); [all...] |
H A D | stat.h | 222 int cpu_map_idx);
|
H A D | evlist.h | 351 int cpu_map_idx; member in struct:evlist_cpu_iterator 354 * current CPU. Distinct from cpu_map_idx as the evsel's cpu map may
|
H A D | auxtrace.c | 655 int cpu_map_idx = perf_cpu_map__idx(evsel->core.cpus, evlist_cpu); local 657 if (cpu_map_idx == -1) 659 return perf_evsel__enable_cpu(&evsel->core, cpu_map_idx);
|
/linux-master/tools/lib/perf/include/perf/ |
H 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-master/tools/lib/perf/ |
H A D | evsel.c | 87 static int get_group_fd(struct perf_evsel *evsel, int cpu_map_idx, int thread, int *group_fd) argument 104 fd = FD(leader, cpu_map_idx, thread); 180 static void perf_evsel__close_fd_cpu(struct perf_evsel *evsel, int cpu_map_idx) argument 185 int *fd = FD(evsel, cpu_map_idx, thread); 215 void perf_evsel__close_cpu(struct perf_evsel *evsel, int cpu_map_idx) argument 220 perf_evsel__close_fd_cpu(evsel, cpu_map_idx); 282 void *perf_evsel__mmap_base(struct perf_evsel *evsel, int cpu_map_idx, int thread) argument 284 int *fd = FD(evsel, cpu_map_idx, thread); 286 if (fd == NULL || *fd < 0 || MMAP(evsel, cpu_map_idx, thread) == NULL) 289 return MMAP(evsel, cpu_map_idx, threa 321 perf_evsel__read_group(struct perf_evsel *evsel, int cpu_map_idx, int thread, struct perf_counts_values *count) argument 387 perf_evsel__read(struct perf_evsel *evsel, int cpu_map_idx, int thread, struct perf_counts_values *count) argument 415 perf_evsel__ioctl(struct perf_evsel *evsel, int ioc, void *arg, int cpu_map_idx, int thread) argument 426 perf_evsel__run_ioctl(struct perf_evsel *evsel, int ioc, void *arg, int cpu_map_idx) argument 442 perf_evsel__enable_cpu(struct perf_evsel *evsel, int cpu_map_idx) argument 472 perf_evsel__disable_cpu(struct perf_evsel *evsel, int cpu_map_idx) argument [all...] |
H A D | evlist.c | 251 int cpu_map_idx, int thread, u64 id) 254 struct perf_sample_id *sid = SID(evsel, cpu_map_idx, thread); 272 int cpu_map_idx, int thread, u64 id) 274 if (!SID(evsel, cpu_map_idx, thread)) 277 perf_evlist__id_hash(evlist, evsel, cpu_map_idx, thread, id); 283 int cpu_map_idx, int thread, int fd) 290 if (!SID(evsel, cpu_map_idx, thread)) 321 perf_evlist__id_add(evlist, evsel, cpu_map_idx, thread, id); 249 perf_evlist__id_hash(struct perf_evlist *evlist, struct perf_evsel *evsel, int cpu_map_idx, int thread, u64 id) argument 270 perf_evlist__id_add(struct perf_evlist *evlist, struct perf_evsel *evsel, int cpu_map_idx, int thread, u64 id) argument 281 perf_evlist__id_add_fd(struct perf_evlist *evlist, struct perf_evsel *evsel, int cpu_map_idx, int thread, int fd) argument
|
/linux-master/tools/lib/perf/include/internal/ |
H A D | evlist.h | 129 int cpu_map_idx, int thread, u64 id); 133 int cpu_map_idx, int thread, int fd);
|
/linux-master/tools/perf/ |
H A D | builtin-stat.c | 268 static int evsel__write_stat_event(struct evsel *counter, int cpu_map_idx, u32 thread, argument 271 struct perf_sample_id *sid = SID(counter, cpu_map_idx, thread); 272 struct perf_cpu cpu = perf_cpu_map__cpu(evsel__cpus(counter), cpu_map_idx); 278 static int read_single_counter(struct evsel *counter, int cpu_map_idx, argument 285 perf_counts(counter->counts, cpu_map_idx, thread); 294 perf_counts(counter->counts, cpu_map_idx, thread); 305 return evsel__read_counter(counter, cpu_map_idx, thread); 316 static int read_counter_cpu(struct evsel *counter, struct timespec *rs, int cpu_map_idx) argument 327 count = perf_counts(counter->counts, cpu_map_idx, thread); 333 if (!perf_counts__is_loaded(counter->counts, cpu_map_idx, threa [all...] |