mirror of
https://github.com/torvalds/linux.git
synced 2026-11-24 15:33:28 +00:00
Move libperf from its current location under tools/perf to a separate directory under tools/lib/. Also change various paths (mainly includes) to reflect the libperf move to a separate directory and add a new directory under MANIFEST. Signed-off-by: Jiri Olsa <[email protected]> Tested-by: Arnaldo Carvalho de Melo <[email protected]> Cc: Alexander Shishkin <[email protected]> Cc: Michael Petlan <[email protected]> Cc: Namhyung Kim <[email protected]> Cc: Peter Zijlstra <[email protected]> Link: http://lore.kernel.org/lkml/[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 */
|