| /linux-6.15/tools/perf/util/ |
| H A D | cpumap.h | 34 struct perf_cpu cpu; 63 struct perf_cpu cpu__max_cpu(void); 64 struct perf_cpu cpu__max_present_cpu(void); 78 int cpu__get_node(struct perf_cpu cpu); 83 int cpu__get_socket_id(struct perf_cpu cpu); 88 int cpu__get_die_id(struct perf_cpu cpu); 93 int cpu__get_cluster_id(struct perf_cpu cpu); 98 int cpu__get_core_id(struct perf_cpu cpu); 133 struct aggr_cpu_id aggr_cpu_id__die(struct perf_cpu cpu, void *data); 145 struct aggr_cpu_id aggr_cpu_id__core(struct perf_cpu cpu, void *data); [all …]
|
| H A D | cpumap.c | 17 static struct perf_cpu max_cpu_num; 18 static struct perf_cpu max_present_cpu_num; 216 int cpu__get_socket_id(struct perf_cpu cpu) in cpu__get_socket_id() 258 struct perf_cpu cpu; in cpu_aggr_map__new() 300 int cpu__get_die_id(struct perf_cpu cpu) in cpu__get_die_id() 330 int cpu__get_cluster_id(struct perf_cpu cpu) in cpu__get_cluster_id() 354 int cpu__get_core_id(struct perf_cpu cpu) in cpu__get_core_id() 527 struct perf_cpu cpu__max_cpu(void) in cpu__max_cpu() 535 struct perf_cpu cpu__max_present_cpu(void) in cpu__max_present_cpu() 544 int cpu__get_node(struct perf_cpu cpu) in cpu__get_node() [all …]
|
| H A D | perf_api_probe.c | 14 static int perf_do_probe_api(setup_probe_fn_t fn, struct perf_cpu cpu, const char *str) in perf_do_probe_api() 64 struct perf_cpu cpu; in perf_probe_api() 140 struct perf_cpu cpu; in perf_can_record_cpu_wide()
|
| H A D | header.h | 203 int get_cpuid(char *buffer, size_t sz, struct perf_cpu cpu); 205 char *get_cpuid_str(struct perf_cpu cpu); 207 char *get_cpuid_allow_env_override(struct perf_cpu cpu);
|
| H A D | mmap.c | 97 static int perf_mmap__aio_bind(struct mmap *map, int idx, struct perf_cpu cpu, int affinity) in perf_mmap__aio_bind() 141 struct perf_cpu cpu __maybe_unused, int affinity __maybe_unused) in perf_mmap__aio_bind() 246 struct perf_cpu cpu; in build_node_mask() 276 int mmap__mmap(struct mmap *map, struct mmap_params *mp, int fd, struct perf_cpu cpu) in mmap__mmap()
|
| H A D | bpf_counter_cgroup.c | 50 struct perf_cpu cpu; in bperf_load_program() 200 struct perf_cpu cpu; in bperf_cgrp__sync_counters() 254 struct perf_cpu cpu; in bperf_cgrp__read()
|
| H A D | tool_pmu.c | 121 static int read_stat_field(int fd, struct perf_cpu cpu, int field, __u64 *val) in read_stat_field() 277 struct perf_cpu cpu; in evsel__tool_pmu_open() 463 struct perf_cpu cpu = perf_cpu_map__cpu(evsel->core.cpus, in evsel__tool_pmu_read()
|
| H A D | stat.c | 309 struct perf_cpu cpu = perf_cpu_map__cpu(cpus, cpu_map_idx); in check_per_pkg() 425 struct perf_cpu cpu = perf_cpu_map__cpu(evsel->core.cpus, cpu_map_idx); in process_counter_values() 616 struct perf_cpu cpu; in evsel__update_percore_stats() 653 struct perf_cpu cpu; in evsel__process_percore() 699 cpu_map_idx = perf_cpu_map__idx(evsel__cpus(counter), (struct perf_cpu){.cpu = st->cpu}); in perf_event__process_stat_event()
|
| /linux-6.15/tools/lib/perf/ |
| H A D | cpumap.c | 31 cpus = malloc(sizeof(*cpus) + sizeof(struct perf_cpu) * nr_cpus); in perf_cpu_map__alloc() 130 const struct perf_cpu *cpu_a = a, *cpu_b = b; in cmp_cpu() 142 size_t payload_size = nr_cpus * sizeof(struct perf_cpu); in cpu_map__trim_new() 171 struct perf_cpu *tmp_cpus = NULL, *tmp; in perf_cpu_map__new() 252 struct perf_cpu result = { in perf_cpu_map__cpu() 343 struct perf_cpu cpu, result = { in perf_cpu_map__min() 357 struct perf_cpu result = { in perf_cpu_map__max() 400 struct perf_cpu *tmp_cpus; in perf_cpu_map__merge() 414 tmp_cpus = malloc(tmp_len * sizeof(struct perf_cpu)); in perf_cpu_map__merge() 446 struct perf_cpu *tmp_cpus; in perf_cpu_map__intersect() [all …]
|
| H A D | evsel.c | 83 pid_t pid, struct perf_cpu cpu, int group_fd, in sys_perf_event_open() 118 struct perf_cpu cpu; in perf_evsel__open() 265 struct perf_cpu cpu = perf_cpu_map__cpu(evsel->cpus, idx); in perf_evsel__mmap() 451 struct perf_cpu cpu __maybe_unused; in perf_evsel__enable_thread()
|
| /linux-6.15/tools/lib/perf/include/perf/ |
| H A D | cpumap.h | 10 struct perf_cpu { struct 50 LIBPERF_API struct perf_cpu perf_cpu_map__cpu(const struct perf_cpu_map *cpus, int idx); 75 LIBPERF_API struct perf_cpu perf_cpu_map__min(const struct perf_cpu_map *map); 79 LIBPERF_API struct perf_cpu perf_cpu_map__max(const struct perf_cpu_map *map); 80 LIBPERF_API bool perf_cpu_map__has(const struct perf_cpu_map *map, struct perf_cpu cpu);
|
| /linux-6.15/tools/perf/arch/arm/util/ |
| H A D | cs-etm.c | 71 static bool cs_etm_is_ete(struct perf_pmu *cs_etm_pmu, struct perf_cpu cpu); 73 static bool cs_etm_pmu_path_exists(struct perf_pmu *pmu, struct perf_cpu cpu, const char *path); 76 struct perf_cpu cpu) in cs_etm_get_version() 89 struct perf_cpu cpu) in cs_etm_validate_context_id() 149 struct perf_cpu cpu) in cs_etm_validate_timestamp() 204 struct perf_cpu cpu; in cs_etm_validate_config() 545 struct perf_cpu cpu; in cs_etm_info_priv_size() 629 static bool cs_etm_is_ete(struct perf_pmu *cs_etm_pmu, struct perf_cpu cpu) in cs_etm_is_ete() 644 static __u64 cs_etm_get_legacy_trace_id(struct perf_cpu cpu) in cs_etm_get_legacy_trace_id() 713 static void cs_etm_get_metadata(struct perf_cpu cpu, u32 *offset, in cs_etm_get_metadata() [all …]
|
| /linux-6.15/tools/perf/ |
| H A D | builtin-stat.c | 1319 struct perf_cpu cpu) in perf_stat__get_socket() 1325 struct perf_cpu cpu) in perf_stat__get_die() 1331 struct perf_cpu cpu) in perf_stat__get_cache_id() 1337 struct perf_cpu cpu) in perf_stat__get_cluster() 1355 struct perf_cpu cpu) in perf_stat__get_global() 1395 struct perf_cpu cpu) in perf_stat__get_cluster_cached() 1401 struct perf_cpu cpu) in perf_stat__get_cache_id_cached() 1702 struct perf_cpu cpu) in perf_stat__get_die_file() 1720 struct perf_cpu cpu) in perf_stat__get_core_file() 1726 struct perf_cpu cpu) in perf_stat__get_cpu_file() [all …]
|
| /linux-6.15/tools/perf/arch/arm64/util/ |
| H A D | header.c | 17 static int _get_cpuid(char *buf, size_t sz, struct perf_cpu cpu) in _get_cpuid() 44 int get_cpuid(char *buf, size_t sz, struct perf_cpu cpu) in get_cpuid() 65 char *get_cpuid_str(struct perf_cpu cpu) in get_cpuid_str()
|
| /linux-6.15/tools/lib/perf/include/internal/ |
| H A D | cpumap.h | 21 struct perf_cpu map[]; in DECLARE_RC_STRUCT() 25 int perf_cpu_map__idx(const struct perf_cpu_map *cpus, struct perf_cpu cpu);
|
| H A D | mmap.h | 28 struct perf_cpu cpu; 51 int fd, struct perf_cpu cpu);
|
| H A D | evsel.h | 56 struct perf_cpu cpu; 61 struct perf_cpu vcpu;
|
| /linux-6.15/tools/perf/arch/powerpc/util/ |
| H A D | header.c | 27 get_cpuid(char *buffer, size_t sz, struct perf_cpu cpu __maybe_unused) in get_cpuid() 45 get_cpuid_str(struct perf_cpu cpu __maybe_unused) in get_cpuid_str()
|
| /linux-6.15/tools/perf/arch/loongarch/util/ |
| H A D | header.c | 73 int get_cpuid(char *buffer, size_t sz, struct perf_cpu cpu __maybe_unused) in get_cpuid() 93 char *get_cpuid_str(struct perf_cpu cpu __maybe_unused) in get_cpuid_str()
|
| /linux-6.15/tools/perf/arch/riscv/util/ |
| H A D | header.c | 84 int get_cpuid(char *buffer, size_t sz, struct perf_cpu cpu __maybe_unused) in get_cpuid() 101 get_cpuid_str(struct perf_cpu cpu __maybe_unused) in get_cpuid_str()
|
| /linux-6.15/tools/perf/arch/x86/util/ |
| H A D | header.c | 61 get_cpuid(char *buffer, size_t sz, struct perf_cpu cpu __maybe_unused) in get_cpuid() 66 char *get_cpuid_str(struct perf_cpu cpu __maybe_unused) in get_cpuid_str()
|
| /linux-6.15/tools/perf/arch/s390/util/ |
| H A D | header.c | 30 int get_cpuid(char *buffer, size_t sz, struct perf_cpu cpu __maybe_unused) in get_cpuid() 140 char *get_cpuid_str(struct perf_cpu cpu) in get_cpuid_str()
|
| /linux-6.15/tools/perf/pmu-events/ |
| H A D | empty-pmu-events.c | 506 static const struct pmu_events_map *map_for_cpu(struct perf_cpu cpu) in map_for_cpu() 510 struct perf_cpu cpu; in map_for_cpu() 563 struct perf_cpu cpu = {-1}; in map_for_pmu() 592 struct perf_cpu cpu = {-1}; in pmu_metrics_table__find()
|
| /linux-6.15/tools/lib/perf/tests/ |
| H A D | test-cpumap.c | 17 struct perf_cpu cpu; in test_cpumap()
|
| /linux-6.15/tools/perf/tests/ |
| H A D | bitmap.c | 20 struct perf_cpu cpu; in get_bitmap()
|