/linux/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); 106 typedef struct aggr_cpu_id (*aggr_cpu_id_get_t)(struct perf_cpu cpu, void *data); 127 struct aggr_cpu_id aggr_cpu_id__socket(struct perf_cpu cp [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 aggr_cpu_id__cmp() 222 struct aggr_cpu_id aggr_cpu_id__socket(struct perf_cpu cpu, void *data __maybe_unused) in aggr_cpu_id__cmp() 258 struct perf_cpu cpu; in cpu_aggr_map__new() 300 int cpu__get_die_id(struct perf_cpu cpu) in aggr_cpu_id__die() 307 struct aggr_cpu_id aggr_cpu_id__die(struct perf_cpu cpu, void *data) in aggr_cpu_id__die() 330 int cpu__get_cluster_id(struct perf_cpu cpu) in aggr_cpu_id__cluster() 337 struct aggr_cpu_id aggr_cpu_id__cluster(struct perf_cpu cpu, void *data) in cpu__get_core_id() 354 int cpu__get_core_id(struct perf_cpu cp in aggr_cpu_id__core() [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 | 204 int get_cpuid(char *buffer, size_t sz, struct perf_cpu cpu); 206 char *get_cpuid_str(struct perf_cpu cpu); 208 char *get_cpuid_allow_env_override(struct perf_cpu cpu);
|
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 | 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 | 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() 582 struct perf_cpu cpu; in evsel__update_percore_stats() 619 struct perf_cpu cpu; in evsel__process_percore() 665 cpu_map_idx = perf_cpu_map__idx(evsel__cpus(counter), (struct perf_cpu){.cpu = st->cpu}); in perf_event__process_stat_event()
|
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() 505 struct perf_cpu cpu = perf_cpu_map__cpu(evsel->core.cpus, in evsel__tool_pmu_read()
|
H A D | mmap.h | 52 int mmap__mmap(struct mmap *map, struct mmap_params *mp, int fd, struct perf_cpu cpu);
|
H A D | affinity.c | 92 struct perf_cpu cpu; in cpu_map__set_affinity()
|
H A D | env.c | 349 struct perf_cpu cpu = { .cpu = idx }; in perf_env__read_cpu_topology_map() 401 struct perf_cpu cpu = {-1}; in perf_env__read_cpuid() 664 int perf_env__numa_node(struct perf_env *env, struct perf_cpu cpu) in perf_env__numa_node() 691 struct perf_cpu tmp; in perf_env__numa_node()
|
H A D | bpf_trace_augment.c | 62 struct perf_cpu cpu; in augmented_syscalls__setup_bpf_output()
|
/linux/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() 135 static struct perf_cpu __perf_cpu_map__cpu(const struct perf_cpu_map *cpus, int idx) in __perf_cpu_map__cpu() 140 static struct perf_cpu_map *cpu_map__trim_new(int nr_cpus, const struct perf_cpu *tmp_cpus) in cpu_map__trim_new() 142 size_t payload_size = nr_cpus * sizeof(struct perf_cpu); in cpu_map__trim_new() 148 qsort(RC_CHK_ACCESS(cpus)->map, nr_cpus, sizeof(struct perf_cpu), cmp_cpu); in cpu_map__trim_new() 171 struct perf_cpu *tmp_cpus = NULL, *tmp; in perf_cpu_map__new() 217 tmp = realloc(tmp_cpus, max_entries * sizeof(struct perf_cpu)); in perf_cpu_map__new() 260 struct perf_cpu perf_cpu_map__cpu(const struct perf_cpu_map *cpus, int idx) in perf_cpu_map__cpu() 262 struct perf_cpu result = { in perf_cpu_map__cpu() [all …]
|
H A D | evsel.c | 94 pid_t pid, struct perf_cpu cpu, int group_fd, in sys_perf_event_open() 129 struct perf_cpu cpu; in perf_evsel__open() 276 struct perf_cpu cpu = perf_cpu_map__cpu(evsel->cpus, idx); in perf_evsel__mmap() 462 struct perf_cpu cpu __maybe_unused; in perf_evsel__enable_thread()
|
/linux/tools/lib/perf/include/perf/ |
H A D | cpumap.h | 10 struct perf_cpu { struct 52 LIBPERF_API struct perf_cpu perf_cpu_map__cpu(const struct perf_cpu_map *cpus, int idx); 77 LIBPERF_API struct perf_cpu perf_cpu_map__min(const struct perf_cpu_map *map); 81 LIBPERF_API struct perf_cpu perf_cpu_map__max(const struct perf_cpu_map *map); 82 LIBPERF_API bool perf_cpu_map__has(const struct perf_cpu_map *map, struct perf_cpu cpu);
|
/linux/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); 72 static int cs_etm_get_ro(struct perf_pmu *pmu, struct perf_cpu cpu, const char *path, __u64 *val); 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() 574 static int cs_etm_get_ro(struct perf_pmu *pmu, struct perf_cpu cpu, const char *path, __u64 *val) in cs_etm_get_ro() 591 static int cs_etm_get_ro_signed(struct perf_pmu *pmu, struct perf_cpu cpu, const char *path, in cs_etm_get_ro_signed() [all …]
|
/linux/tools/perf/ |
H A D | builtin-stat.c | 264 struct perf_cpu cpu = perf_cpu_map__cpu(evsel__cpus(counter), cpu_map_idx); in evsel__write_stat_event() 1184 static int cpu__get_cache_id_from_map(struct perf_cpu cpu, char *map) in cpu__get_cache_id_from_map() 1211 static int cpu__get_cache_details(struct perf_cpu cpu, struct perf_cache *cache) in cpu__get_cache_details() 1282 static struct aggr_cpu_id aggr_cpu_id__cache(struct perf_cpu cpu, void *data) in aggr_cpu_id__cache() 1315 struct perf_cpu cpu) in perf_stat__get_socket() 1321 struct perf_cpu cpu) in perf_stat__get_die() 1327 struct perf_cpu cpu) in perf_stat__get_cache_id() 1333 struct perf_cpu cpu) in perf_stat__get_cluster() 1339 struct perf_cpu cpu) in perf_stat__get_core() 1345 struct perf_cpu cpu) in perf_stat__get_node() [all …]
|
/linux/tools/lib/perf/include/internal/ |
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;
|
H A D | evlist.h | 46 (*perf_evlist_mmap__cb_mmap_t)(struct perf_mmap*, struct perf_mmap_param*, int, struct perf_cpu);
|
/linux/tools/perf/arch/x86/util/ |
H A D | pmu.c | 32 char *cpuid = get_cpuid_str((struct perf_cpu){0}); in x86__is_intel_graniterapids() 229 struct perf_cpu cpu; in gnr_uncore_cha_imc_adjust_cpumask_for_snc()
|
/linux/tools/lib/perf/tests/ |
H A D | test-cpumap.c | 17 struct perf_cpu cpu; in test_cpumap()
|
/linux/tools/perf/pmu-events/ |
H A D | empty-pmu-events.c | 614 static const struct pmu_events_map *map_for_cpu(struct perf_cpu cpu) in map_for_cpu() 618 struct perf_cpu cpu; in map_for_cpu() 671 struct perf_cpu cpu = {-1}; in map_for_pmu() 712 struct perf_cpu cpu = {-1}; in pmu_metrics_table__find()
|
/linux/tools/perf/tests/ |
H A D | mem2node.c | 32 struct perf_cpu cpu; in get_bitmap()
|
H A D | openat-syscall-all-cpus.c | 26 struct perf_cpu cpu; in test__openat_syscall_event_on_all_cpus()
|