blob: c41518573c6af013e5de3c16d916bfac84e92897 [file] [log] [blame]
Paul Mackerrasa12b51c2010-03-10 20:36:09 +11001#ifndef __PERF_CPUMAP_H
2#define __PERF_CPUMAP_H
3
Arnaldo Carvalho de Melo9ae7d332012-01-19 14:07:23 -02004#include <stdio.h>
5
Arnaldo Carvalho de Melo60d567e2011-01-03 17:49:48 -02006struct cpu_map {
7 int nr;
8 int map[];
9};
10
11struct cpu_map *cpu_map__new(const char *cpu_list);
12struct cpu_map *cpu_map__dummy_new(void);
Arnaldo Carvalho de Melo915fce22011-01-14 16:19:12 -020013void cpu_map__delete(struct cpu_map *map);
Paul Mackerrasa12b51c2010-03-10 20:36:09 +110014
Arnaldo Carvalho de Melo9ae7d332012-01-19 14:07:23 -020015size_t cpu_map__fprintf(struct cpu_map *map, FILE *fp);
16
Paul Mackerrasa12b51c2010-03-10 20:36:09 +110017#endif /* __PERF_CPUMAP_H */