mirror of
https://github.com/torvalds/linux.git
synced 2026-11-26 16:33:17 +00:00
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 <[email protected]> Cc: Alexander Shishkin <[email protected]> Cc: Michael Petlan <[email protected]> Cc: Namhyung Kim <[email protected]> Cc: Peter Zijlstra <[email protected]> Link: http://lkml.kernel.org/r/[email protected] Signed-off-by: Arnaldo Carvalho de Melo <[email protected]>
20 lines
364 B
C
20 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 */
|