blob: 74014033df6054f149da59f6504cbdc2d1aa007b [file] [log] [blame]
Greg Kroah-Hartmanb2441312017-11-01 15:07:57 +01001/* SPDX-License-Identifier: GPL-2.0 */
Thomas Gleixner6eda5832009-05-01 18:29:57 +02002#ifndef _PERF_PERF_H
3#define _PERF_PERF_H
4
Jiri Olsa82baa0e2014-05-05 12:58:31 +02005#include <stdbool.h>
Peter Zijlstraa94d3422013-10-30 11:42:46 +01006
Christophe Leroy21b87322017-09-22 13:20:43 +02007#ifndef MAX_NR_CPUS
Kyle Meyer9f94c7f2019-06-20 14:36:30 -05008#define MAX_NR_CPUS 2048
Christophe Leroy21b87322017-09-22 13:20:43 +02009#endif
Thomas Gleixner6eda5832009-05-01 18:29:57 +020010
Feng Tang70cb4e92012-10-30 11:56:02 +080011extern const char *input_name;
Arnaldo Carvalho de Melo80354582010-05-17 15:51:10 -030012extern bool perf_host, perf_guest;
Stephane Eranianfbe96f22011-09-30 15:40:40 +020013extern const char perf_version_string[];
Zhang, Yanmina1645ce2010-04-19 13:32:50 +080014
Arnaldo Carvalho de Melo3af6e332011-10-13 08:52:46 -030015void pthread__unblock_sigwinch(void);
16
Alexey Budankov9d2ed642019-01-22 20:47:43 +030017enum perf_affinity {
18 PERF_AFFINITY_SYS = 0,
19 PERF_AFFINITY_NODE,
20 PERF_AFFINITY_CPU,
21 PERF_AFFINITY_MAX
Arnaldo Carvalho de Melo0f82ebc2011-11-08 14:41:57 -020022};
23
Jin Yao3aa94b12018-03-30 17:27:15 +080024extern int version_verbose;
Thomas Gleixner6eda5832009-05-01 18:29:57 +020025#endif