Home
last modified time | relevance | path

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

123

/linux/tools/perf/util/
A 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);
45 const struct perf_cpu_map *cpu_map__online(void); /* thread unsafe */
47 static inline int cpu_map__socket(struct perf_cpu_map *sock, int s) in cpu_map__socket()
61 int cpu_map__build_map(struct perf_cpu_map *cpus, struct cpu_aggr_map **res,
62 struct aggr_cpu_id (*f)(struct perf_cpu_map *map, int cpu, void *data),
65 int cpu_map__cpu(struct perf_cpu_map *cpus, int idx);
[all …]
A 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()
47 struct perf_cpu_map *map; in cpu_map__from_mask()
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()
505 bool cpu_map__has(struct perf_cpu_map *cpus, int cpu) in cpu_map__has()
510 int cpu_map__cpu(struct perf_cpu_map *cpus, int idx) in cpu_map__cpu()
607 const struct perf_cpu_map *cpu_map__online(void) /* thread unsafe */ in cpu_map__online()
[all …]
A Dpmu.h14 struct perf_cpu_map;
46 struct perf_cpu_map *cpus;
146 int perf_pmu__cpus_match(struct perf_pmu *pmu, struct perf_cpu_map *cpus,
147 struct perf_cpu_map **mcpus_ptr,
148 struct perf_cpu_map **ucpus_ptr);
A 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()
A Devsel.h184 struct perf_cpu_map;
188 static inline struct perf_cpu_map *evsel__cpus(struct evsel *evsel) in evsel__cpus()
296 int evsel__open_per_cpu(struct evsel *evsel, struct perf_cpu_map *cpus, int cpu);
298 int evsel__open(struct evsel *evsel, struct perf_cpu_map *cpus,
301 int evsel__prepare_open(struct evsel *evsel, struct perf_cpu_map *cpus,
A Denv.h9 struct perf_cpu_map;
31 struct perf_cpu_map *map;
A 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()
A Devent.h308 struct perf_cpu_map;
421 void *cpu_map_data__alloc(struct perf_cpu_map *map, size_t *size, u16 *type, int *max);
422 void cpu_map_data__synthesize(struct perf_record_cpu_map_data *data, struct perf_cpu_map *map,
A Dstat.h12 struct perf_cpu_map;
112 struct perf_cpu_map *m, int cpu);
/linux/tools/lib/perf/include/perf/
A 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);
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);
20 LIBPERF_API int perf_cpu_map__nr(const struct perf_cpu_map *cpus);
21 LIBPERF_API bool perf_cpu_map__empty(const struct perf_cpu_map *map);
[all …]
A 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);
A Devlist.h10 struct perf_cpu_map;
32 struct perf_cpu_map *cpus,
/linux/tools/lib/perf/
A Dcpumap.c13 struct perf_cpu_map *perf_cpu_map__dummy_new(void) 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()
50 struct perf_cpu_map *cpus; in cpu_map__default_new()
106 struct perf_cpu_map *cpus = NULL; in perf_cpu_map__read()
164 struct perf_cpu_map *cpus = NULL; in cpu_map__read_all_cpu_map()
178 struct perf_cpu_map *cpus = NULL; in perf_cpu_map__new()
305 struct perf_cpu_map *perf_cpu_map__merge(struct perf_cpu_map *orig, in perf_cpu_map__merge()
306 struct perf_cpu_map *other) in perf_cpu_map__merge()
[all …]
/linux/tools/lib/perf/Documentation/
A Dlibperf.txt38 struct perf_cpu_map;
40 struct perf_cpu_map *perf_cpu_map__dummy_new(void);
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,
46 void perf_cpu_map__put(struct perf_cpu_map *map);
48 int perf_cpu_map__nr(const struct perf_cpu_map *cpus);
49 bool perf_cpu_map__empty(const struct perf_cpu_map *map);
50 int perf_cpu_map__max(struct perf_cpu_map *map);
98 struct perf_cpu_map *cpus,
[all …]
/linux/tools/perf/tests/
A 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()
A Devent-times.c115 struct perf_cpu_map *cpus; in attach__cpu_disabled()
144 struct perf_cpu_map *cpus; in attach__cpu_enabled()
A Dtopology.c72 static int check_cpu_topology(char *path, struct perf_cpu_map *map) in check_cpu_topology()
181 struct perf_cpu_map *map; in test__session_topology()
/linux/tools/lib/perf/include/internal/
A Devsel.h10 struct perf_cpu_map;
40 struct perf_cpu_map *cpus;
41 struct perf_cpu_map *own_cpus;
A Dcpumap.h7 struct perf_cpu_map { struct
17 int perf_cpu_map__idx(struct perf_cpu_map *cpus, int cpu); argument
A Devlist.h12 struct perf_cpu_map;
21 struct perf_cpu_map *cpus;
22 struct perf_cpu_map *all_cpus;
/linux/tools/perf/
A 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()
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()
1567 struct perf_cpu_map *map, int idx) in perf_stat__get_die_file()
1573 struct perf_cpu_map *map, int idx) in perf_stat__get_core_file()
1579 struct perf_cpu_map *map, int idx) in perf_stat__get_node_file()
[all …]
/linux/tools/perf/arch/arm/util/
A 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/tools/perf/arch/arm64/util/
A 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/tools/lib/perf/tests/
A 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/tools/perf/bench/
A 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()

Completed in 31 milliseconds

123