/openbmc/linux/tools/perf/util/ |
H A D | cpumap.h | 33 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_core_id(struct perf_cpu cpu); 101 typedef struct aggr_cpu_id (*aggr_cpu_id_get_t)(struct perf_cpu cpu, void *data); 122 struct aggr_cpu_id aggr_cpu_id__socket(struct perf_cpu cpu, void *data); 128 struct aggr_cpu_id aggr_cpu_id__die(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; 200 int cpu__get_socket_id(struct perf_cpu cpu) in cpu__get_socket_id() 206 struct aggr_cpu_id aggr_cpu_id__socket(struct perf_cpu cpu, void *data __maybe_unused) in aggr_cpu_id__socket() 240 struct perf_cpu cpu; in cpu_aggr_map__new() 282 int cpu__get_die_id(struct perf_cpu cpu) in cpu__get_die_id() 289 struct aggr_cpu_id aggr_cpu_id__die(struct perf_cpu cpu, void *data) in aggr_cpu_id__die() 312 int cpu__get_core_id(struct perf_cpu cpu) in cpu__get_core_id() 318 struct aggr_cpu_id aggr_cpu_id__core(struct perf_cpu cpu, void *data) in aggr_cpu_id__core() 337 struct aggr_cpu_id aggr_cpu_id__cpu(struct perf_cpu cpu, void *data) in aggr_cpu_id__cpu() [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 | bpf_counter_cgroup.c | 50 struct perf_cpu cpu; in bperf_load_program() 201 struct perf_cpu cpu; in bperf_cgrp__sync_counters() 255 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() 248 struct perf_cpu cpu; in build_node_mask() 278 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() 607 struct perf_cpu cpu; in evsel__update_percore_stats() 644 struct perf_cpu cpu; in evsel__process_percore() 690 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 | mmap.h | 53 int mmap__mmap(struct mmap *map, struct mmap_params *mp, int fd, struct perf_cpu cpu);
|
H A D | util.h | 80 void test_attr__open(struct perf_event_attr *attr, pid_t pid, struct perf_cpu cpu,
|
H A D | env.c | 324 struct perf_cpu cpu = { .cpu = idx }; in perf_env__read_cpu_topology_map() 509 int perf_env__numa_node(struct perf_env *env, struct perf_cpu cpu) in perf_env__numa_node() 536 struct perf_cpu tmp; in perf_env__numa_node()
|
H A D | cputopo.c | 193 struct perf_cpu cpu; in cpu_topology__core_wide() 298 if (!perf_cpu_map__has(map, (struct perf_cpu){ .cpu = i })) in cpu_topology__new()
|
H A D | env.h | 178 int perf_env__numa_node(struct perf_env *env, struct perf_cpu cpu);
|
/openbmc/linux/tools/lib/perf/ |
H A D | cpumap.c | 20 RC_STRUCT(perf_cpu_map) *cpus = malloc(sizeof(*cpus) + sizeof(struct perf_cpu) * nr_cpus); in perf_cpu_map__alloc() 97 const struct perf_cpu *cpu_a = a, *cpu_b = b; in cmp_cpu() 102 static struct perf_cpu __perf_cpu_map__cpu(const struct perf_cpu_map *cpus, int idx) in __perf_cpu_map__cpu() 107 static struct perf_cpu_map *cpu_map__trim_new(int nr_cpus, const struct perf_cpu *tmp_cpus) in cpu_map__trim_new() 109 size_t payload_size = nr_cpus * sizeof(struct perf_cpu); in cpu_map__trim_new() 115 qsort(RC_CHK_ACCESS(cpus)->map, nr_cpus, sizeof(struct perf_cpu), cmp_cpu); in cpu_map__trim_new() 136 struct perf_cpu *tmp_cpus = NULL, *tmp; in perf_cpu_map__read() 155 tmp = realloc(tmp_cpus, max_entries * sizeof(struct perf_cpu)); in perf_cpu_map__read() 166 tmp = realloc(tmp_cpus, max_entries * sizeof(struct perf_cpu)); in perf_cpu_map__read() 210 struct perf_cpu *tmp_cpus = NULL, *tmp; in perf_cpu_map__new() [all …]
|
H A D | evsel.c | 81 pid_t pid, struct perf_cpu cpu, int group_fd, in sys_perf_event_open() 116 struct perf_cpu cpu; in perf_evsel__open() 263 struct perf_cpu cpu = perf_cpu_map__cpu(evsel->cpus, idx); in perf_evsel__mmap() 449 struct perf_cpu cpu __maybe_unused; in perf_evsel__enable_thread()
|
/openbmc/linux/tools/lib/perf/include/perf/ |
H A D | cpumap.h | 10 struct perf_cpu { struct 34 LIBPERF_API struct perf_cpu perf_cpu_map__cpu(const struct perf_cpu_map *cpus, int idx); argument 40 LIBPERF_API struct perf_cpu perf_cpu_map__max(const struct perf_cpu_map *map); 41 LIBPERF_API bool perf_cpu_map__has(const struct perf_cpu_map *map, struct perf_cpu cpu);
|
/openbmc/linux/tools/perf/ |
H A D | builtin-stat.c | 272 struct perf_cpu cpu = perf_cpu_map__cpu(evsel__cpus(counter), cpu_map_idx); in evsel__write_stat_event() 1331 static int cpu__get_cache_id_from_map(struct perf_cpu cpu, char *map) in cpu__get_cache_id_from_map() 1359 static int cpu__get_cache_details(struct perf_cpu cpu, struct perf_cache *cache) in cpu__get_cache_details() 1430 static struct aggr_cpu_id aggr_cpu_id__cache(struct perf_cpu cpu, void *data) in aggr_cpu_id__cache() 1462 struct perf_cpu cpu) in perf_stat__get_socket() 1468 struct perf_cpu cpu) in perf_stat__get_die() 1474 struct perf_cpu cpu) in perf_stat__get_cache_id() 1480 struct perf_cpu cpu) in perf_stat__get_core() 1486 struct perf_cpu cpu) in perf_stat__get_node() 1492 struct perf_cpu cpu) in perf_stat__get_global() [all …]
|
/openbmc/linux/tools/lib/perf/include/internal/ |
H A D | cpumap.h | 21 struct perf_cpu map[]; in DECLARE_RC_STRUCT() 29 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; 50 int fd, struct perf_cpu cpu);
|
H A D | evsel.h | 30 struct perf_cpu cpu; 35 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);
|
/openbmc/linux/tools/perf/tests/ |
H A D | attr.c | 68 static int store_event(struct perf_event_attr *attr, pid_t pid, struct perf_cpu cpu, in store_event() 147 void test_attr__open(struct perf_event_attr *attr, pid_t pid, struct perf_cpu cpu, in test_attr__open()
|
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()
|
H A D | stat.c | 90 !perf_event__synthesize_stat(NULL, (struct perf_cpu){.cpu = 1}, 2, 3, in test__synthesize_stat()
|
/openbmc/linux/tools/lib/perf/tests/ |
H A D | test-cpumap.c | 17 struct perf_cpu cpu; in test_cpumap()
|
/openbmc/linux/tools/perf/arch/arm/util/ |
H A D | cs-etm.c | 206 struct perf_cpu cpu = { .cpu = i, }; in cs_etm_validate_config() 526 struct perf_cpu cpu = { .cpu = i, }; in cs_etm_info_priv_size() 542 struct perf_cpu cpu = { .cpu = i, }; in cs_etm_info_priv_size() 804 struct perf_cpu cpu = { .cpu = i, }; in cs_etm_info_fill() 828 struct perf_cpu cpu = { .cpu = i, }; in cs_etm_info_fill()
|