As an internal function that will be used by both perf and libperf, but is not exported at this point. Signed-off-by: Jiri Olsa <jolsa@kernel.org> Cc: Alexander Shishkin <alexander.shishkin@linux.intel.com> Cc: Michael Petlan <mpetlan@redhat.com> Cc: Namhyung Kim <namhyung@kernel.org> Cc: Peter Zijlstra <peterz@infradead.org> Link: http://lkml.kernel.org/r/20190822111141.25823-5-jolsa@kernel.org Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
19 lines
364 B
C
19 lines
364 B
C
/* 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
|
|
|
|
int perf_cpu_map__idx(struct perf_cpu_map *cpus, int cpu);
|
|
|
|
#endif /* __LIBPERF_INTERNAL_CPUMAP_H */
|