/linux/tools/perf/util/ |
H 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()
|
H A D | evsel.c | 1579 int evsel__enable_cpu(struct evsel *evsel, int cpu_map_idx) in evsel__enable_cpu() argument 1581 return perf_evsel__enable_cpu(&evsel->core, cpu_map_idx); in evsel__enable_cpu() 1594 int evsel__disable_cpu(struct evsel *evsel, int cpu_map_idx) in evsel__disable_cpu() argument 1596 return perf_evsel__disable_cpu(&evsel->core, cpu_map_idx); in evsel__disable_cpu() 1674 void evsel__compute_deltas(struct evsel *evsel, int cpu_map_idx, int thread, in evsel__compute_deltas() argument 1682 tmp = *perf_counts(evsel->prev_raw_counts, cpu_map_idx, thread); in evsel__compute_deltas() 1683 *perf_counts(evsel->prev_raw_counts, cpu_map_idx, thread) = *count; in evsel__compute_deltas() 1690 static int evsel__read_one(struct evsel *evsel, int cpu_map_idx, int thread) in evsel__read_one() argument 1692 struct perf_counts_values *count = perf_counts(evsel->counts, cpu_map_idx, thread); in evsel__read_one() 1694 return perf_evsel__read(&evsel->core, cpu_map_idx, thread, count); in evsel__read_one() [all …]
|
H A D | intel-tpebs.h | 16 int tpebs_set_evsel(struct evsel *evsel, int cpu_map_idx, int thread); 28 int cpu_map_idx __maybe_unused, in tpebs_set_evsel()
|
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 | intel-tpebs.c | 342 int tpebs_set_evsel(struct evsel *evsel, int cpu_map_idx, int thread) in tpebs_set_evsel() argument 358 count = perf_counts(evsel->counts, cpu_map_idx, thread); in tpebs_set_evsel() 385 if (cpu_map_idx == 0 && thread == 0) in tpebs_set_evsel()
|
H A D | hwmon_pmu.c | 811 int evsel__hwmon_pmu_read(struct evsel *evsel, int cpu_map_idx, int thread) in evsel__hwmon_pmu_read() argument 819 old_count = perf_counts(evsel->prev_raw_counts, cpu_map_idx, thread); in evsel__hwmon_pmu_read() 821 count = perf_counts(evsel->counts, cpu_map_idx, thread); in evsel__hwmon_pmu_read() 822 fd = FD(evsel, cpu_map_idx, thread); in evsel__hwmon_pmu_read()
|
H A D | auxtrace.c | 660 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()
|
/linux/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/tools/lib/perf/ |
H A D | evlist.c | 265 int cpu_map_idx, int thread, u64 id) in perf_evlist__id_hash() argument 268 struct perf_sample_id *sid = SID(evsel, cpu_map_idx, thread); in perf_evlist__id_hash() 286 int cpu_map_idx, int thread, u64 id) in perf_evlist__id_add() argument 288 if (!SID(evsel, cpu_map_idx, thread)) in perf_evlist__id_add() 291 perf_evlist__id_hash(evlist, evsel, cpu_map_idx, thread, id); in perf_evlist__id_add() 297 int cpu_map_idx, int thread, int fd) in perf_evlist__id_add_fd() argument 304 if (!SID(evsel, cpu_map_idx, thread)) in perf_evlist__id_add_fd() 335 perf_evlist__id_add(evlist, evsel, cpu_map_idx, thread, id); in perf_evlist__id_add_fd()
|
/linux/tools/lib/perf/Documentation/ |
H A D | libperf.txt | 139 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);
|
/linux/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);
|