Paul Mackerras | a12b51c | 2010-03-10 20:36:09 +1100 | [diff] [blame] | 1 | #ifndef __PERF_CPUMAP_H |
| 2 | #define __PERF_CPUMAP_H |
| 3 | |
Arnaldo Carvalho de Melo | 9ae7d33 | 2012-01-19 14:07:23 -0200 | [diff] [blame^] | 4 | #include <stdio.h> |
| 5 | |
Arnaldo Carvalho de Melo | 60d567e | 2011-01-03 17:49:48 -0200 | [diff] [blame] | 6 | struct cpu_map { |
| 7 | int nr; |
| 8 | int map[]; |
| 9 | }; |
| 10 | |
| 11 | struct cpu_map *cpu_map__new(const char *cpu_list); |
| 12 | struct cpu_map *cpu_map__dummy_new(void); |
Arnaldo Carvalho de Melo | 915fce2 | 2011-01-14 16:19:12 -0200 | [diff] [blame] | 13 | void cpu_map__delete(struct cpu_map *map); |
Paul Mackerras | a12b51c | 2010-03-10 20:36:09 +1100 | [diff] [blame] | 14 | |
Arnaldo Carvalho de Melo | 9ae7d33 | 2012-01-19 14:07:23 -0200 | [diff] [blame^] | 15 | size_t cpu_map__fprintf(struct cpu_map *map, FILE *fp); |
| 16 | |
Paul Mackerras | a12b51c | 2010-03-10 20:36:09 +1100 | [diff] [blame] | 17 | #endif /* __PERF_CPUMAP_H */ |