Lines Matching refs:perf_cpu

27 	cpus = malloc(sizeof(*cpus) + sizeof(struct perf_cpu) * nr_cpus);  in perf_cpu_map__alloc()
126 const struct perf_cpu *cpu_a = a, *cpu_b = b; in cmp_cpu()
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()
138 size_t payload_size = nr_cpus * sizeof(struct perf_cpu); in cpu_map__trim_new()
144 qsort(RC_CHK_ACCESS(cpus)->map, nr_cpus, sizeof(struct perf_cpu), cmp_cpu); in cpu_map__trim_new()
165 struct perf_cpu *tmp_cpus = NULL, *tmp; in perf_cpu_map__read()
184 tmp = realloc(tmp_cpus, max_entries * sizeof(struct perf_cpu)); in perf_cpu_map__read()
195 tmp = realloc(tmp_cpus, max_entries * sizeof(struct perf_cpu)); in perf_cpu_map__read()
223 struct perf_cpu *tmp_cpus = NULL, *tmp; in perf_cpu_map__new()
269 tmp = realloc(tmp_cpus, max_entries * sizeof(struct perf_cpu)); in perf_cpu_map__new()
301 struct perf_cpu perf_cpu_map__cpu(const struct perf_cpu_map *cpus, int idx) in perf_cpu_map__cpu()
303 struct perf_cpu result = { in perf_cpu_map__cpu()
336 int perf_cpu_map__idx(const struct perf_cpu_map *cpus, struct perf_cpu cpu) in perf_cpu_map__idx()
347 struct perf_cpu cpu_at_idx = __perf_cpu_map__cpu(cpus, idx); 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()
392 struct perf_cpu perf_cpu_map__min(const struct perf_cpu_map *map) in perf_cpu_map__min()
394 struct perf_cpu cpu, result = { in perf_cpu_map__min()
406 struct perf_cpu perf_cpu_map__max(const struct perf_cpu_map *map) in perf_cpu_map__max()
408 struct perf_cpu result = { in perf_cpu_map__max()
449 struct perf_cpu *tmp_cpus; in perf_cpu_map__merge()
462 tmp_cpus = malloc(tmp_len * sizeof(struct perf_cpu)); in perf_cpu_map__merge()
493 struct perf_cpu *tmp_cpus; in perf_cpu_map__intersect()
504 tmp_cpus = malloc(tmp_len * sizeof(struct perf_cpu)); in perf_cpu_map__intersect()