Home
last modified time | relevance | path

Searched refs:perf_cpu_map (Results 1 – 25 of 73) sorted by relevance

123

/Linux-v5.15/tools/perf/util/
Dcpumap.h26 struct perf_cpu_map *perf_cpu_map__empty_new(int nr);
29 struct perf_cpu_map *cpu_map__new_data(struct perf_record_cpu_map_data *data);
30 size_t cpu_map__snprint(struct perf_cpu_map *map, char *buf, size_t size);
31 size_t cpu_map__snprint_mask(struct perf_cpu_map *map, char *buf, size_t size);
32 size_t cpu_map__fprintf(struct perf_cpu_map *map, FILE *fp);
34 struct aggr_cpu_id cpu_map__get_socket(struct perf_cpu_map *map, int idx, void *data);
36 struct aggr_cpu_id cpu_map__get_die(struct perf_cpu_map *map, int idx, void *data);
38 struct aggr_cpu_id cpu_map__get_core(struct perf_cpu_map *map, int idx, void *data);
40 struct aggr_cpu_id cpu_map__get_node(struct perf_cpu_map *map, int idx, void *data);
41 int cpu_map__build_socket_map(struct perf_cpu_map *cpus, struct cpu_aggr_map **sockp);
[all …]
Dcpumap.c21 static struct perf_cpu_map *cpu_map__from_entries(struct cpu_map_entries *cpus) in cpu_map__from_entries()
23 struct perf_cpu_map *map; in cpu_map__from_entries()
45 static struct perf_cpu_map *cpu_map__from_mask(struct perf_record_record_cpu_map *mask) in cpu_map__from_mask()
47 struct perf_cpu_map *map; in cpu_map__from_mask()
63 struct perf_cpu_map *cpu_map__new_data(struct perf_record_cpu_map_data *data) in cpu_map__new_data()
71 size_t cpu_map__fprintf(struct perf_cpu_map *map, FILE *fp) in cpu_map__fprintf()
81 struct perf_cpu_map *perf_cpu_map__empty_new(int nr) in perf_cpu_map__empty_new()
83 struct perf_cpu_map *cpus = malloc(sizeof(*cpus) + sizeof(int) * nr); in perf_cpu_map__empty_new()
131 struct aggr_cpu_id cpu_map__get_socket(struct perf_cpu_map *map, int idx, in cpu_map__get_socket()
163 int cpu_map__build_map(struct perf_cpu_map *cpus, struct cpu_aggr_map **res, in cpu_map__build_map()
[all …]
Dpmu.h14 struct perf_cpu_map;
46 struct perf_cpu_map *cpus;
142 int perf_pmu__cpus_match(struct perf_pmu *pmu, struct perf_cpu_map *cpus,
143 struct perf_cpu_map **mcpus_ptr,
144 struct perf_cpu_map **ucpus_ptr);
Devlist-hybrid.c24 struct perf_cpu_map *cpus; in evlist__add_default_hybrid()
92 struct perf_cpu_map *cpus; in evlist__fix_hybrid_cpus()
113 struct perf_cpu_map *matched_cpus, *unmatched_cpus; in evlist__fix_hybrid_cpus()
Devsel.h179 struct perf_cpu_map;
183 static inline struct perf_cpu_map *evsel__cpus(struct evsel *evsel) in evsel__cpus()
289 int evsel__open_per_cpu(struct evsel *evsel, struct perf_cpu_map *cpus, int cpu);
291 int evsel__open(struct evsel *evsel, struct perf_cpu_map *cpus,
294 int evsel__prepare_open(struct evsel *evsel, struct perf_cpu_map *cpus,
Dperf_api_probe.c63 struct perf_cpu_map *cpus; in perf_probe_api()
138 struct perf_cpu_map *cpus; in perf_can_record_cpu_wide()
Denv.h9 struct perf_cpu_map;
31 struct perf_cpu_map *map;
Devent.h305 struct perf_cpu_map;
413 void *cpu_map_data__alloc(struct perf_cpu_map *map, size_t *size, u16 *type, int *max);
414 void cpu_map_data__synthesize(struct perf_record_cpu_map_data *data, struct perf_cpu_map *map,
/Linux-v5.15/tools/lib/perf/include/perf/
Dcpumap.h9 struct perf_cpu_map;
11 LIBPERF_API struct perf_cpu_map *perf_cpu_map__dummy_new(void);
12 LIBPERF_API struct perf_cpu_map *perf_cpu_map__default_new(void);
13 LIBPERF_API struct perf_cpu_map *perf_cpu_map__new(const char *cpu_list);
14 LIBPERF_API struct perf_cpu_map *perf_cpu_map__read(FILE *file);
15 LIBPERF_API struct perf_cpu_map *perf_cpu_map__get(struct perf_cpu_map *map);
16 LIBPERF_API struct perf_cpu_map *perf_cpu_map__merge(struct perf_cpu_map *orig,
17 struct perf_cpu_map *other);
18 LIBPERF_API void perf_cpu_map__put(struct perf_cpu_map *map);
19 LIBPERF_API int perf_cpu_map__cpu(const struct perf_cpu_map *cpus, int idx);
[all …]
Devsel.h10 struct perf_cpu_map;
26 LIBPERF_API int perf_evsel__open(struct perf_evsel *evsel, struct perf_cpu_map *cpus,
39 LIBPERF_API struct perf_cpu_map *perf_evsel__cpus(struct perf_evsel *evsel);
Devlist.h10 struct perf_cpu_map;
32 struct perf_cpu_map *cpus,
/Linux-v5.15/tools/lib/perf/
Dcpumap.c13 struct perf_cpu_map *perf_cpu_map__dummy_new(void) in perf_cpu_map__dummy_new()
15 struct perf_cpu_map *cpus = malloc(sizeof(*cpus) + sizeof(int)); in perf_cpu_map__dummy_new()
26 static void cpu_map__delete(struct perf_cpu_map *map) in cpu_map__delete()
35 struct perf_cpu_map *perf_cpu_map__get(struct perf_cpu_map *map) in perf_cpu_map__get()
42 void perf_cpu_map__put(struct perf_cpu_map *map) in perf_cpu_map__put()
48 static struct perf_cpu_map *cpu_map__default_new(void) in cpu_map__default_new()
50 struct perf_cpu_map *cpus; in cpu_map__default_new()
71 struct perf_cpu_map *perf_cpu_map__default_new(void) in perf_cpu_map__default_new()
81 static struct perf_cpu_map *cpu_map__trim_new(int nr_cpus, int *tmp_cpus) in cpu_map__trim_new()
84 struct perf_cpu_map *cpus = malloc(sizeof(*cpus) + payload_size); in cpu_map__trim_new()
[all …]
/Linux-v5.15/tools/lib/perf/Documentation/
Dlibperf.txt38 struct perf_cpu_map;
40 struct perf_cpu_map *perf_cpu_map__dummy_new(void);
41 struct perf_cpu_map *perf_cpu_map__new(const char *cpu_list);
42 struct perf_cpu_map *perf_cpu_map__read(FILE *file);
43 struct perf_cpu_map *perf_cpu_map__get(struct perf_cpu_map *map);
44 struct perf_cpu_map *perf_cpu_map__merge(struct perf_cpu_map *orig,
45 struct perf_cpu_map *other);
46 void perf_cpu_map__put(struct perf_cpu_map *map);
47 int perf_cpu_map__cpu(const struct perf_cpu_map *cpus, int idx);
48 int perf_cpu_map__nr(const struct perf_cpu_map *cpus);
[all …]
/Linux-v5.15/tools/perf/tests/
Dcpumap.c22 struct perf_cpu_map *map; in process_event_mask()
56 struct perf_cpu_map *map; in process_event_cpus()
80 struct perf_cpu_map *cpus; in test__cpu_map_synthesize()
102 struct perf_cpu_map *map = perf_cpu_map__new(str); in cpu_map_print()
128 struct perf_cpu_map *a = perf_cpu_map__new("4,2,1"); in test__cpu_map_merge()
129 struct perf_cpu_map *b = perf_cpu_map__new("4,5,7"); in test__cpu_map_merge()
130 struct perf_cpu_map *c = perf_cpu_map__merge(a, b); in test__cpu_map_merge()
Devent-times.c115 struct perf_cpu_map *cpus; in attach__cpu_disabled()
144 struct perf_cpu_map *cpus; in attach__cpu_enabled()
Dtopology.c70 static int check_cpu_topology(char *path, struct perf_cpu_map *map) in check_cpu_topology()
179 struct perf_cpu_map *map; in test__session_topology()
/Linux-v5.15/tools/lib/perf/include/internal/
Devsel.h10 struct perf_cpu_map;
40 struct perf_cpu_map *cpus;
41 struct perf_cpu_map *own_cpus;
Dcpumap.h7 struct perf_cpu_map { struct
17 int perf_cpu_map__idx(struct perf_cpu_map *cpus, int cpu); argument
Devlist.h12 struct perf_cpu_map;
21 struct perf_cpu_map *cpus;
22 struct perf_cpu_map *all_cpus;
/Linux-v5.15/tools/perf/
Dbuiltin-stat.c202 struct perf_cpu_map *cpus;
1302 struct perf_cpu_map *map, int cpu) in perf_stat__get_socket()
1308 struct perf_cpu_map *map, int cpu) in perf_stat__get_die()
1314 struct perf_cpu_map *map, int cpu) in perf_stat__get_core()
1320 struct perf_cpu_map *map, int cpu) in perf_stat__get_node()
1326 aggr_get_id_t get_id, struct perf_cpu_map *map, int idx) in perf_stat__get_aggr()
1344 struct perf_cpu_map *map, int idx) in perf_stat__get_socket_cached()
1350 struct perf_cpu_map *map, int idx) in perf_stat__get_die_cached()
1356 struct perf_cpu_map *map, int idx) in perf_stat__get_core_cached()
1362 struct perf_cpu_map *map, int idx) in perf_stat__get_node_cached()
[all …]
/Linux-v5.15/tools/perf/arch/arm64/util/
Dheader.c17 static int _get_cpuid(char *buf, size_t sz, struct perf_cpu_map *cpus) in _get_cpuid()
67 struct perf_cpu_map *cpus = perf_cpu_map__new(NULL); in get_cpuid()
/Linux-v5.15/tools/perf/arch/arm/util/
Dcs-etm.c202 struct perf_cpu_map *event_cpus = evsel->evlist->core.cpus; in cs_etm_set_option()
203 struct perf_cpu_map *online_cpus = perf_cpu_map__new(NULL); in cs_etm_set_option()
300 struct perf_cpu_map *cpus = evlist->core.cpus; in cs_etm_recording_options()
539 struct perf_cpu_map *event_cpus = evlist->core.cpus; in cs_etm_info_priv_size()
540 struct perf_cpu_map *online_cpus = perf_cpu_map__new(NULL); in cs_etm_info_priv_size()
725 struct perf_cpu_map *cpu_map; in cs_etm_info_fill()
726 struct perf_cpu_map *event_cpus = session->evlist->core.cpus; in cs_etm_info_fill()
727 struct perf_cpu_map *online_cpus = perf_cpu_map__new(NULL); in cs_etm_info_fill()
/Linux-v5.15/tools/lib/perf/tests/
Dtest-cpumap.c16 struct perf_cpu_map *cpus; in test_cpumap()
Dtest-evlist.c32 struct perf_cpu_map *cpus; in test_stat_cpu()
214 struct perf_cpu_map *cpus; in test_mmap_thread()
325 struct perf_cpu_map *cpus; in test_mmap_cpus()
/Linux-v5.15/tools/perf/bench/
Dfutex-wake.c98 pthread_attr_t thread_attr, struct perf_cpu_map *cpu) in block_threads()
131 struct perf_cpu_map *cpu; in bench_futex_wake()

123