Home
last modified time | relevance | path

Searched refs:perf_cpu (Results 1 – 25 of 52) sorted by relevance

123

/openbmc/linux/tools/perf/util/
H A Dcpumap.h33 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 Dcpumap.c17 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 Dperf_api_probe.c14 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 Dbpf_counter_cgroup.c50 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 Dmmap.c97 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 Dstat.c309 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 Dmmap.h53 int mmap__mmap(struct mmap *map, struct mmap_params *mp, int fd, struct perf_cpu cpu);
H A Dutil.h80 void test_attr__open(struct perf_event_attr *attr, pid_t pid, struct perf_cpu cpu,
H A Denv.c324 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 Dcputopo.c193 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 Denv.h178 int perf_env__numa_node(struct perf_env *env, struct perf_cpu cpu);
/openbmc/linux/tools/lib/perf/
H A Dcpumap.c20 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 Devsel.c81 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 Dcpumap.h10 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 Dbuiltin-stat.c272 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 Dcpumap.h21 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 Dmmap.h28 struct perf_cpu cpu;
50 int fd, struct perf_cpu cpu);
H A Devsel.h30 struct perf_cpu cpu;
35 struct perf_cpu vcpu;
H A Devlist.h46 (*perf_evlist_mmap__cb_mmap_t)(struct perf_mmap*, struct perf_mmap_param*, int, struct perf_cpu);
/openbmc/linux/tools/perf/tests/
H A Dattr.c68 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 Dmem2node.c32 struct perf_cpu cpu; in get_bitmap()
H A Dopenat-syscall-all-cpus.c26 struct perf_cpu cpu; in test__openat_syscall_event_on_all_cpus()
H A Dstat.c90 !perf_event__synthesize_stat(NULL, (struct perf_cpu){.cpu = 1}, 2, 3, in test__synthesize_stat()
/openbmc/linux/tools/lib/perf/tests/
H A Dtest-cpumap.c17 struct perf_cpu cpu; in test_cpumap()
/openbmc/linux/tools/perf/arch/arm/util/
H A Dcs-etm.c206 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()

123