summaryrefslogtreecommitdiffstats
path: root/tools/perf/lib/include/internal/cpumap.h
blob: 3306319f7df86ca7b495ac0e590006afe33af66e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
/* SPDX-License-Identifier: GPL-2.0 */
#ifndef __LIBPERF_INTERNAL_CPUMAP_H
#define __LIBPERF_INTERNAL_CPUMAP_H

#include <linux/refcount.h>

struct perf_cpu_map {
	refcount_t	refcnt;
	int		nr;
	int		map[];
};

#ifndef MAX_NR_CPUS
#define MAX_NR_CPUS	2048
#endif

#endif /* __LIBPERF_INTERNAL_CPUMAP_H */