diff options
Diffstat (limited to 'tools/lib/perf/include')
| -rw-r--r-- | tools/lib/perf/include/internal/cpumap.h | 6 | ||||
| -rw-r--r-- | tools/lib/perf/include/perf/cpumap.h | 5 | 
2 files changed, 6 insertions, 5 deletions
| diff --git a/tools/lib/perf/include/internal/cpumap.h b/tools/lib/perf/include/internal/cpumap.h index 581f9ffb4237..1973a18c096b 100644 --- a/tools/lib/perf/include/internal/cpumap.h +++ b/tools/lib/perf/include/internal/cpumap.h @@ -3,11 +3,7 @@  #define __LIBPERF_INTERNAL_CPUMAP_H  #include <linux/refcount.h> - -/** A wrapper around a CPU to avoid confusion with the perf_cpu_map's map's indices. */ -struct perf_cpu { -	int cpu; -}; +#include <perf/cpumap.h>  /**   * A sized, reference counted, sorted array of integers representing CPU diff --git a/tools/lib/perf/include/perf/cpumap.h b/tools/lib/perf/include/perf/cpumap.h index 15b8faafd615..4a2edbdb5e2b 100644 --- a/tools/lib/perf/include/perf/cpumap.h +++ b/tools/lib/perf/include/perf/cpumap.h @@ -7,6 +7,11 @@  #include <stdio.h>  #include <stdbool.h> +/** A wrapper around a CPU to avoid confusion with the perf_cpu_map's map's indices. */ +struct perf_cpu { +	int cpu; +}; +  LIBPERF_API struct perf_cpu_map *perf_cpu_map__dummy_new(void);  LIBPERF_API struct perf_cpu_map *perf_cpu_map__default_new(void);  LIBPERF_API struct perf_cpu_map *perf_cpu_map__new(const char *cpu_list); |