Lines Matching refs:cpu_map
12 struct cpu_map { struct
18 struct cpu_map *cpu_map__new(const char *cpu_list); argument
19 struct cpu_map *cpu_map__empty_new(int nr);
20 struct cpu_map *cpu_map__dummy_new(void);
21 struct cpu_map *cpu_map__new_data(struct cpu_map_data *data);
22 struct cpu_map *cpu_map__read(FILE *file);
23 size_t cpu_map__snprint(struct cpu_map *map, char *buf, size_t size);
24 size_t cpu_map__snprint_mask(struct cpu_map *map, char *buf, size_t size);
25 size_t cpu_map__fprintf(struct cpu_map *map, FILE *fp);
27 int cpu_map__get_socket(struct cpu_map *map, int idx, void *data);
29 int cpu_map__get_core(struct cpu_map *map, int idx, void *data);
30 int cpu_map__build_socket_map(struct cpu_map *cpus, struct cpu_map **sockp);
31 int cpu_map__build_core_map(struct cpu_map *cpus, struct cpu_map **corep);
33 struct cpu_map *cpu_map__get(struct cpu_map *map);
34 void cpu_map__put(struct cpu_map *map);
36 static inline int cpu_map__socket(struct cpu_map *sock, int s) in cpu_map__socket()
53 static inline int cpu_map__nr(const struct cpu_map *map) in cpu_map__nr()
58 static inline bool cpu_map__empty(const struct cpu_map *map) in cpu_map__empty()
70 int cpu_map__build_map(struct cpu_map *cpus, struct cpu_map **res,
71 int (*f)(struct cpu_map *map, int cpu, void *data),
74 int cpu_map__cpu(struct cpu_map *cpus, int idx);
75 bool cpu_map__has(struct cpu_map *cpus, int cpu);
76 int cpu_map__idx(struct cpu_map *cpus, int cpu);