Lines Matching refs:perf_cpu_map
18 void perf_cpu_map__set_nr(struct perf_cpu_map *map, int nr_cpus) in perf_cpu_map__set_nr()
23 struct perf_cpu_map *perf_cpu_map__alloc(int nr_cpus) in perf_cpu_map__alloc()
25 RC_STRUCT(perf_cpu_map) *cpus; in perf_cpu_map__alloc()
26 struct perf_cpu_map *result; in perf_cpu_map__alloc()
39 struct perf_cpu_map *perf_cpu_map__new_any_cpu(void) in perf_cpu_map__new_any_cpu()
41 struct perf_cpu_map *cpus = perf_cpu_map__alloc(1); in perf_cpu_map__new_any_cpu()
49 static void cpu_map__delete(struct perf_cpu_map *map) in cpu_map__delete()
58 struct perf_cpu_map *perf_cpu_map__get(struct perf_cpu_map *map) in perf_cpu_map__get()
60 struct perf_cpu_map *result; in perf_cpu_map__get()
68 void perf_cpu_map__put(struct perf_cpu_map *map) in perf_cpu_map__put()
78 static struct perf_cpu_map *cpu_map__new_sysconf(void) in cpu_map__new_sysconf()
80 struct perf_cpu_map *cpus; in cpu_map__new_sysconf()
104 static struct perf_cpu_map *cpu_map__new_sysfs_online(void) in cpu_map__new_sysfs_online()
106 struct perf_cpu_map *cpus = NULL; in cpu_map__new_sysfs_online()
117 struct perf_cpu_map *perf_cpu_map__new_online_cpus(void) in perf_cpu_map__new_online_cpus()
119 struct perf_cpu_map *cpus = cpu_map__new_sysfs_online(); in perf_cpu_map__new_online_cpus()
135 static struct perf_cpu __perf_cpu_map__cpu(const struct perf_cpu_map *cpus, int idx) in __perf_cpu_map__cpu()
140 static struct perf_cpu_map *cpu_map__trim_new(int nr_cpus, const struct perf_cpu *tmp_cpus) in cpu_map__trim_new()
143 struct perf_cpu_map *cpus = perf_cpu_map__alloc(nr_cpus); in cpu_map__trim_new()
165 struct perf_cpu_map *perf_cpu_map__new(const char *cpu_list) in perf_cpu_map__new()
167 struct perf_cpu_map *cpus = NULL; in perf_cpu_map__new()
245 static int __perf_cpu_map__nr(const struct perf_cpu_map *cpus) in __perf_cpu_map__nr()
250 struct perf_cpu perf_cpu_map__cpu(const struct perf_cpu_map *cpus, int idx) in perf_cpu_map__cpu()
262 int perf_cpu_map__nr(const struct perf_cpu_map *cpus) in perf_cpu_map__nr()
267 bool perf_cpu_map__has_any_cpu_or_is_empty(const struct perf_cpu_map *map) in perf_cpu_map__has_any_cpu_or_is_empty()
272 bool perf_cpu_map__is_any_cpu_or_is_empty(const struct perf_cpu_map *map) in perf_cpu_map__is_any_cpu_or_is_empty()
280 bool perf_cpu_map__is_empty(const struct perf_cpu_map *map) in perf_cpu_map__is_empty()
285 int perf_cpu_map__idx(const struct perf_cpu_map *cpus, struct perf_cpu cpu) in perf_cpu_map__idx()
310 bool perf_cpu_map__has(const struct perf_cpu_map *cpus, struct perf_cpu cpu) in perf_cpu_map__has()
315 bool perf_cpu_map__equal(const struct perf_cpu_map *lhs, const struct perf_cpu_map *rhs) in perf_cpu_map__equal()
336 bool perf_cpu_map__has_any_cpu(const struct perf_cpu_map *map) in perf_cpu_map__has_any_cpu()
341 struct perf_cpu perf_cpu_map__min(const struct perf_cpu_map *map) in perf_cpu_map__min()
355 struct perf_cpu perf_cpu_map__max(const struct perf_cpu_map *map) in perf_cpu_map__max()
368 bool perf_cpu_map__is_subset(const struct perf_cpu_map *a, const struct perf_cpu_map *b) in perf_cpu_map__is_subset()
398 int perf_cpu_map__merge(struct perf_cpu_map **orig, struct perf_cpu_map *other) in perf_cpu_map__merge()
403 struct perf_cpu_map *merged; in perf_cpu_map__merge()
443 struct perf_cpu_map *perf_cpu_map__intersect(struct perf_cpu_map *orig, in perf_cpu_map__intersect()
444 struct perf_cpu_map *other) in perf_cpu_map__intersect()
449 struct perf_cpu_map *merged = NULL; in perf_cpu_map__intersect()