Lines Matching refs:perf_cpu_map
13 void perf_cpu_map__set_nr(struct perf_cpu_map *map, int nr_cpus) in perf_cpu_map__set_nr()
18 struct perf_cpu_map *perf_cpu_map__alloc(int nr_cpus) in perf_cpu_map__alloc()
20 RC_STRUCT(perf_cpu_map) *cpus = malloc(sizeof(*cpus) + sizeof(struct perf_cpu) * nr_cpus); in perf_cpu_map__alloc()
21 struct perf_cpu_map *result; in perf_cpu_map__alloc()
30 struct perf_cpu_map *perf_cpu_map__dummy_new(void) in perf_cpu_map__dummy_new()
32 struct perf_cpu_map *cpus = perf_cpu_map__alloc(1); in perf_cpu_map__dummy_new()
40 static void cpu_map__delete(struct perf_cpu_map *map) in cpu_map__delete()
49 struct perf_cpu_map *perf_cpu_map__get(struct perf_cpu_map *map) in perf_cpu_map__get()
51 struct perf_cpu_map *result; in perf_cpu_map__get()
59 void perf_cpu_map__put(struct perf_cpu_map *map) in perf_cpu_map__put()
69 static struct perf_cpu_map *cpu_map__default_new(void) in cpu_map__default_new()
71 struct perf_cpu_map *cpus; in cpu_map__default_new()
89 struct perf_cpu_map *perf_cpu_map__default_new(void) in perf_cpu_map__default_new()
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()
110 struct perf_cpu_map *cpus = perf_cpu_map__alloc(nr_cpus); in cpu_map__trim_new()
132 struct perf_cpu_map *perf_cpu_map__read(FILE *file) in perf_cpu_map__read()
134 struct perf_cpu_map *cpus = NULL; in perf_cpu_map__read()
190 static struct perf_cpu_map *cpu_map__read_all_cpu_map(void) in cpu_map__read_all_cpu_map()
192 struct perf_cpu_map *cpus = NULL; in cpu_map__read_all_cpu_map()
204 struct perf_cpu_map *perf_cpu_map__new(const char *cpu_list) in perf_cpu_map__new()
206 struct perf_cpu_map *cpus = NULL; in perf_cpu_map__new()
281 static int __perf_cpu_map__nr(const struct perf_cpu_map *cpus) in __perf_cpu_map__nr()
286 struct perf_cpu perf_cpu_map__cpu(const struct perf_cpu_map *cpus, int idx) in perf_cpu_map__cpu()
298 int perf_cpu_map__nr(const struct perf_cpu_map *cpus) in perf_cpu_map__nr()
303 bool perf_cpu_map__empty(const struct perf_cpu_map *map) in perf_cpu_map__empty()
308 int perf_cpu_map__idx(const struct perf_cpu_map *cpus, struct perf_cpu cpu) in perf_cpu_map__idx()
333 bool perf_cpu_map__has(const struct perf_cpu_map *cpus, struct perf_cpu cpu) in perf_cpu_map__has()
338 bool perf_cpu_map__equal(const struct perf_cpu_map *lhs, const struct perf_cpu_map *rhs) in perf_cpu_map__equal()
359 bool perf_cpu_map__has_any_cpu(const struct perf_cpu_map *map) in perf_cpu_map__has_any_cpu()
364 struct perf_cpu perf_cpu_map__max(const struct perf_cpu_map *map) in perf_cpu_map__max()
377 bool perf_cpu_map__is_subset(const struct perf_cpu_map *a, const struct perf_cpu_map *b) in perf_cpu_map__is_subset()
404 struct perf_cpu_map *perf_cpu_map__merge(struct perf_cpu_map *orig, in perf_cpu_map__merge()
405 struct perf_cpu_map *other) in perf_cpu_map__merge()
410 struct perf_cpu_map *merged; in perf_cpu_map__merge()
448 struct perf_cpu_map *perf_cpu_map__intersect(struct perf_cpu_map *orig, in perf_cpu_map__intersect()
449 struct perf_cpu_map *other) in perf_cpu_map__intersect()
454 struct perf_cpu_map *merged = NULL; in perf_cpu_map__intersect()