• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 /* SPDX-License-Identifier: GPL-2.0 */
2 #ifndef __LIBPERF_INTERNAL_CPUMAP_H
3 #define __LIBPERF_INTERNAL_CPUMAP_H
4 
5 #include <linux/refcount.h>
6 
7 struct perf_cpu_map {
8 	refcount_t	refcnt;
9 	int		nr;
10 	int		map[];
11 };
12 
13 #ifndef MAX_NR_CPUS
14 #define MAX_NR_CPUS	2048
15 #endif
16 
17 int perf_cpu_map__idx(struct perf_cpu_map *cpus, int cpu);
18 
19 #endif /* __LIBPERF_INTERNAL_CPUMAP_H */
20