/linux-6.1.9/tools/perf/util/ |
D | cpumap.h | 26 struct perf_cpu cpu; 53 struct perf_cpu cpu__max_cpu(void); 54 struct perf_cpu cpu__max_present_cpu(void); 68 int cpu__get_node(struct perf_cpu cpu); 73 int cpu__get_socket_id(struct perf_cpu cpu); 78 int cpu__get_die_id(struct perf_cpu cpu); 83 int cpu__get_core_id(struct perf_cpu cpu); 91 typedef struct aggr_cpu_id (*aggr_cpu_id_get_t)(struct perf_cpu cpu, void *data); 112 struct aggr_cpu_id aggr_cpu_id__socket(struct perf_cpu cpu, void *data); 118 struct aggr_cpu_id aggr_cpu_id__die(struct perf_cpu cpu, void *data); [all …]
|
D | cpumap.c | 16 static struct perf_cpu max_cpu_num; 17 static struct perf_cpu max_present_cpu_num; 204 int cpu__get_socket_id(struct perf_cpu cpu) in cpu__get_socket_id() 210 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() 280 int cpu__get_die_id(struct perf_cpu cpu) in cpu__get_die_id() 287 struct aggr_cpu_id aggr_cpu_id__die(struct perf_cpu cpu, void *data) in aggr_cpu_id__die() 310 int cpu__get_core_id(struct perf_cpu cpu) in cpu__get_core_id() 316 struct aggr_cpu_id aggr_cpu_id__core(struct perf_cpu cpu, void *data) in aggr_cpu_id__core() 335 struct aggr_cpu_id aggr_cpu_id__cpu(struct perf_cpu cpu, void *data) in aggr_cpu_id__cpu() [all …]
|
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()
|
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()
|
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()
|
D | mmap.h | 58 int mmap__mmap(struct mmap *map, struct mmap_params *mp, int fd, struct perf_cpu cpu);
|
D | stat-display.c | 449 struct perf_cpu cpu; in first_shadow_map_idx() 664 struct perf_cpu cpu; in aggr_update_shadow() 787 struct perf_cpu cpu; in aggr_cb() 820 bool *first, struct perf_cpu cpu) in print_counter_aggrdata() 886 &first, (struct perf_cpu){ .cpu = -1 }); in print_aggr() 1045 struct perf_cpu cpu; in print_counter() 1074 struct perf_cpu cpu; in print_no_aggr_metric() 1395 struct perf_cpu cpu; in print_percore_thread() 1432 &first, (struct perf_cpu){ .cpu = -1 }); in print_percore()
|
D | util.h | 72 void test_attr__open(struct perf_event_attr *attr, pid_t pid, struct perf_cpu cpu,
|
D | env.c | 309 struct perf_cpu cpu = { .cpu = idx }; in perf_env__read_cpu_topology_map() 496 int perf_env__numa_node(struct perf_env *env, struct perf_cpu cpu) in perf_env__numa_node() 523 struct perf_cpu tmp; in perf_env__numa_node()
|
D | env.h | 174 int perf_env__numa_node(struct perf_env *env, struct perf_cpu cpu);
|
D | cputopo.c | 192 struct perf_cpu cpu; in cpu_topology__core_wide() 283 if (!perf_cpu_map__has(map, (struct perf_cpu){ .cpu = i })) in cpu_topology__new()
|
/linux-6.1.9/tools/lib/perf/ |
D | cpumap.c | 15 struct perf_cpu_map *cpus = malloc(sizeof(*cpus) + sizeof(struct perf_cpu) * nr_cpus); in perf_cpu_map__alloc() 85 const struct perf_cpu *cpu_a = a, *cpu_b = b; in cmp_cpu() 90 static struct perf_cpu_map *cpu_map__trim_new(int nr_cpus, const struct perf_cpu *tmp_cpus) in cpu_map__trim_new() 92 size_t payload_size = nr_cpus * sizeof(struct perf_cpu); in cpu_map__trim_new() 98 qsort(cpus->map, nr_cpus, sizeof(struct perf_cpu), cmp_cpu); in cpu_map__trim_new() 115 struct perf_cpu *tmp_cpus = NULL, *tmp; in perf_cpu_map__read() 134 tmp = realloc(tmp_cpus, max_entries * sizeof(struct perf_cpu)); in perf_cpu_map__read() 145 tmp = realloc(tmp_cpus, max_entries * sizeof(struct perf_cpu)); in perf_cpu_map__read() 189 struct perf_cpu *tmp_cpus = NULL, *tmp; in perf_cpu_map__new() 235 tmp = realloc(tmp_cpus, max_entries * sizeof(struct perf_cpu)); in perf_cpu_map__new() [all …]
|
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()
|
/linux-6.1.9/tools/lib/perf/include/perf/ |
D | cpumap.h | 11 struct perf_cpu { struct 23 LIBPERF_API struct perf_cpu perf_cpu_map__cpu(const struct perf_cpu_map *cpus, int idx); argument 26 LIBPERF_API struct perf_cpu perf_cpu_map__max(const struct perf_cpu_map *map); 27 LIBPERF_API bool perf_cpu_map__has(const struct perf_cpu_map *map, struct perf_cpu cpu);
|
/linux-6.1.9/tools/lib/perf/include/internal/ |
D | cpumap.h | 20 struct perf_cpu map[]; 27 int perf_cpu_map__idx(const struct perf_cpu_map *cpus, struct perf_cpu cpu);
|
D | mmap.h | 28 struct perf_cpu cpu; 50 int fd, struct perf_cpu cpu);
|
D | evsel.h | 30 struct perf_cpu cpu; 35 struct perf_cpu vcpu;
|
D | evlist.h | 47 (*perf_evlist_mmap__cb_mmap_t)(struct perf_mmap*, struct perf_mmap_param*, int, struct perf_cpu);
|
/linux-6.1.9/tools/perf/ |
D | builtin-stat.c | 329 struct perf_cpu cpu = perf_cpu_map__cpu(evsel__cpus(counter), cpu_map_idx); in evsel__write_stat_event() 1311 struct perf_cpu cpu) in perf_stat__get_socket() 1317 struct perf_cpu cpu) in perf_stat__get_die() 1323 struct perf_cpu cpu) in perf_stat__get_core() 1329 struct perf_cpu cpu) in perf_stat__get_node() 1335 aggr_get_id_t get_id, struct perf_cpu cpu) in perf_stat__get_aggr() 1347 struct perf_cpu cpu) in perf_stat__get_socket_cached() 1353 struct perf_cpu cpu) in perf_stat__get_die_cached() 1359 struct perf_cpu cpu) in perf_stat__get_core_cached() 1365 struct perf_cpu cpu) in perf_stat__get_node_cached() [all …]
|
/linux-6.1.9/tools/perf/tests/ |
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()
|
D | mem2node.c | 32 struct perf_cpu cpu; in get_bitmap()
|
D | openat-syscall-all-cpus.c | 26 struct perf_cpu cpu; in test__openat_syscall_event_on_all_cpus()
|
D | stat.c | 90 !perf_event__synthesize_stat(NULL, (struct perf_cpu){.cpu = 1}, 2, 3, in test__synthesize_stat()
|
/linux-6.1.9/tools/lib/perf/tests/ |
D | test-cpumap.c | 17 struct perf_cpu cpu; in test_cpumap()
|
/linux-6.1.9/tools/perf/arch/arm/util/ |
D | cs-etm.c | 207 struct perf_cpu cpu = { .cpu = i, }; in cs_etm_set_option() 532 struct perf_cpu cpu = { .cpu = i, }; in cs_etm_info_priv_size() 548 struct perf_cpu cpu = { .cpu = i, }; in cs_etm_info_priv_size() 735 struct perf_cpu cpu = { .cpu = i, }; in cs_etm_info_fill() 759 struct perf_cpu cpu = { .cpu = i, }; in cs_etm_info_fill()
|