diff options
author | Arnaldo Carvalho de Melo <acme@redhat.com> | 2019-09-18 17:36:13 +0300 |
---|---|---|
committer | Arnaldo Carvalho de Melo <acme@redhat.com> | 2019-09-20 15:19:22 +0300 |
commit | ea49e01cfabd73c94a61649cd04fa524a2beff3c (patch) | |
tree | 3f8598c62cf6d33fcabf0561a8a43d49f8acf4c7 /tools/perf/arch/x86/util/machine.c | |
parent | bd23ac11fe9312bab40e129b402757fd7a23dc8e (diff) | |
download | linux-ea49e01cfabd73c94a61649cd04fa524a2beff3c.tar.xz |
perf tools: Move event synthesizing routines to separate header
Those are the only routines using the perf_event__handler_t typedef and
are all related, so move to a separate header to reduce the header
dependency tree, lots of places were getting event.h and even stdio.h,
limits.h indirectly, so fix those as well.
Cc: Adrian Hunter <adrian.hunter@intel.com>
Cc: Jiri Olsa <jolsa@kernel.org>
Cc: Namhyung Kim <namhyung@kernel.org>
Link: https://lkml.kernel.org/n/tip-yvx9u1mf7baq6cu1abfhbqgs@git.kernel.org
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
Diffstat (limited to 'tools/perf/arch/x86/util/machine.c')
-rw-r--r-- | tools/perf/arch/x86/util/machine.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/tools/perf/arch/x86/util/machine.c b/tools/perf/arch/x86/util/machine.c index 42418040bc07..f0c289862f9f 100644 --- a/tools/perf/arch/x86/util/machine.c +++ b/tools/perf/arch/x86/util/machine.c @@ -1,6 +1,7 @@ // SPDX-License-Identifier: GPL-2.0 #include <linux/types.h> #include <linux/string.h> +#include <limits.h> #include <stdlib.h> #include "../../util/util.h" // page_size |