Lines Matching refs:perf_cpu_map
14 void perf_cpu_map__set_nr(struct perf_cpu_map *map, int nr_cpus) in perf_cpu_map__set_nr()
19 struct perf_cpu_map *perf_cpu_map__alloc(int nr_cpus) in perf_cpu_map__alloc()
21 RC_STRUCT(perf_cpu_map) *cpus; in perf_cpu_map__alloc()
22 struct perf_cpu_map *result; in perf_cpu_map__alloc()
35 struct perf_cpu_map *perf_cpu_map__new_any_cpu(void) in perf_cpu_map__new_any_cpu()
37 struct perf_cpu_map *cpus = perf_cpu_map__alloc(1); in perf_cpu_map__new_any_cpu()
45 static void cpu_map__delete(struct perf_cpu_map *map) in cpu_map__delete()
54 struct perf_cpu_map *perf_cpu_map__get(struct perf_cpu_map *map) in perf_cpu_map__get()
56 struct perf_cpu_map *result; in perf_cpu_map__get()
64 void perf_cpu_map__put(struct perf_cpu_map *map) in perf_cpu_map__put()
74 static struct perf_cpu_map *cpu_map__new_sysconf(void) in cpu_map__new_sysconf()
76 struct perf_cpu_map *cpus; in cpu_map__new_sysconf()
100 static struct perf_cpu_map *cpu_map__new_sysfs_online(void) in cpu_map__new_sysfs_online()
102 struct perf_cpu_map *cpus = NULL; in cpu_map__new_sysfs_online()
113 struct perf_cpu_map *perf_cpu_map__new_online_cpus(void) in perf_cpu_map__new_online_cpus()
115 struct perf_cpu_map *cpus = cpu_map__new_sysfs_online(); in perf_cpu_map__new_online_cpus()
131 static struct perf_cpu __perf_cpu_map__cpu(const struct perf_cpu_map *cpus, int idx) in __perf_cpu_map__cpu()
136 static struct perf_cpu_map *cpu_map__trim_new(int nr_cpus, const struct perf_cpu *tmp_cpus) in cpu_map__trim_new()
139 struct perf_cpu_map *cpus = perf_cpu_map__alloc(nr_cpus); in cpu_map__trim_new()
161 struct perf_cpu_map *perf_cpu_map__read(FILE *file) in perf_cpu_map__read()
163 struct perf_cpu_map *cpus = NULL; in perf_cpu_map__read()
217 struct perf_cpu_map *perf_cpu_map__new(const char *cpu_list) in perf_cpu_map__new()
219 struct perf_cpu_map *cpus = NULL; in perf_cpu_map__new()
296 static int __perf_cpu_map__nr(const struct perf_cpu_map *cpus) in __perf_cpu_map__nr()
301 struct perf_cpu perf_cpu_map__cpu(const struct perf_cpu_map *cpus, int idx) in perf_cpu_map__cpu()
313 int perf_cpu_map__nr(const struct perf_cpu_map *cpus) in perf_cpu_map__nr()
318 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()
323 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()
331 bool perf_cpu_map__is_empty(const struct perf_cpu_map *map) in perf_cpu_map__is_empty()
336 int perf_cpu_map__idx(const struct perf_cpu_map *cpus, struct perf_cpu cpu) in perf_cpu_map__idx()
361 bool perf_cpu_map__has(const struct perf_cpu_map *cpus, struct perf_cpu cpu) in perf_cpu_map__has()
366 bool perf_cpu_map__equal(const struct perf_cpu_map *lhs, const struct perf_cpu_map *rhs) in perf_cpu_map__equal()
387 bool perf_cpu_map__has_any_cpu(const struct perf_cpu_map *map) in perf_cpu_map__has_any_cpu()
392 struct perf_cpu perf_cpu_map__min(const struct perf_cpu_map *map) in perf_cpu_map__min()
406 struct perf_cpu perf_cpu_map__max(const struct perf_cpu_map *map) in perf_cpu_map__max()
419 bool perf_cpu_map__is_subset(const struct perf_cpu_map *a, const struct perf_cpu_map *b) in perf_cpu_map__is_subset()
446 struct perf_cpu_map *perf_cpu_map__merge(struct perf_cpu_map *orig, in perf_cpu_map__merge()
447 struct perf_cpu_map *other) in perf_cpu_map__merge()
452 struct perf_cpu_map *merged; in perf_cpu_map__merge()
490 struct perf_cpu_map *perf_cpu_map__intersect(struct perf_cpu_map *orig, in perf_cpu_map__intersect()
491 struct perf_cpu_map *other) in perf_cpu_map__intersect()
496 struct perf_cpu_map *merged = NULL; in perf_cpu_map__intersect()