Greg Kroah-Hartman | b244131 | 2017-11-01 15:07:57 +0100 | [diff] [blame] | 1 | /* SPDX-License-Identifier: GPL-2.0 */ |
Thomas Gleixner | 6eda583 | 2009-05-01 18:29:57 +0200 | [diff] [blame] | 2 | #ifndef _PERF_PERF_H |
3 | #define _PERF_PERF_H | ||||
4 | |||||
Jiri Olsa | 82baa0e | 2014-05-05 12:58:31 +0200 | [diff] [blame] | 5 | #include <stdbool.h> |
Peter Zijlstra | a94d342 | 2013-10-30 11:42:46 +0100 | [diff] [blame] | 6 | |
Christophe Leroy | 21b8732 | 2017-09-22 13:20:43 +0200 | [diff] [blame] | 7 | #ifndef MAX_NR_CPUS |
Kyle Meyer | 9f94c7f | 2019-06-20 14:36:30 -0500 | [diff] [blame] | 8 | #define MAX_NR_CPUS 2048 |
Christophe Leroy | 21b8732 | 2017-09-22 13:20:43 +0200 | [diff] [blame] | 9 | #endif |
Thomas Gleixner | 6eda583 | 2009-05-01 18:29:57 +0200 | [diff] [blame] | 10 | |
Feng Tang | 70cb4e9 | 2012-10-30 11:56:02 +0800 | [diff] [blame] | 11 | extern const char *input_name; |
Arnaldo Carvalho de Melo | 8035458 | 2010-05-17 15:51:10 -0300 | [diff] [blame] | 12 | extern bool perf_host, perf_guest; |
Stephane Eranian | fbe96f2 | 2011-09-30 15:40:40 +0200 | [diff] [blame] | 13 | extern const char perf_version_string[]; |
Zhang, Yanmin | a1645ce | 2010-04-19 13:32:50 +0800 | [diff] [blame] | 14 | |
Arnaldo Carvalho de Melo | 3af6e33 | 2011-10-13 08:52:46 -0300 | [diff] [blame] | 15 | void pthread__unblock_sigwinch(void); |
16 | |||||
Alexey Budankov | 9d2ed64 | 2019-01-22 20:47:43 +0300 | [diff] [blame] | 17 | enum perf_affinity { |
18 | PERF_AFFINITY_SYS = 0, | ||||
19 | PERF_AFFINITY_NODE, | ||||
20 | PERF_AFFINITY_CPU, | ||||
21 | PERF_AFFINITY_MAX | ||||
Arnaldo Carvalho de Melo | 0f82ebc | 2011-11-08 14:41:57 -0200 | [diff] [blame] | 22 | }; |
23 | |||||
Jin Yao | 3aa94b1 | 2018-03-30 17:27:15 +0800 | [diff] [blame] | 24 | extern int version_verbose; |
Thomas Gleixner | 6eda583 | 2009-05-01 18:29:57 +0200 | [diff] [blame] | 25 | #endif |