diff options
author | Arnaldo Carvalho de Melo <acme@redhat.com> | 2019-09-18 10:36:13 -0400 |
---|---|---|
committer | Arnaldo Carvalho de Melo <acme@redhat.com> | 2019-09-20 08:19:22 -0400 |
commit | ea49e01cfabd73c94a61649cd04fa524a2beff3c (patch) | |
tree | 3f8598c62cf6d33fcabf0561a8a43d49f8acf4c7 /tools/perf/arch | |
parent | bd23ac11fe9312bab40e129b402757fd7a23dc8e (diff) |
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')
-rw-r--r-- | tools/perf/arch/x86/util/archinsn.c | 1 | ||||
-rw-r--r-- | tools/perf/arch/x86/util/event.c | 2 | ||||
-rw-r--r-- | tools/perf/arch/x86/util/machine.c | 1 | ||||
-rw-r--r-- | tools/perf/arch/x86/util/tsc.c | 2 |
4 files changed, 6 insertions, 0 deletions
diff --git a/tools/perf/arch/x86/util/archinsn.c b/tools/perf/arch/x86/util/archinsn.c index 9876c7a7ed7c..3e6791531ca5 100644 --- a/tools/perf/arch/x86/util/archinsn.c +++ b/tools/perf/arch/x86/util/archinsn.c | |||
@@ -1,6 +1,7 @@ | |||
1 | // SPDX-License-Identifier: GPL-2.0 | 1 | // SPDX-License-Identifier: GPL-2.0 |
2 | #include "../../../../arch/x86/include/asm/insn.h" | 2 | #include "../../../../arch/x86/include/asm/insn.h" |
3 | #include "archinsn.h" | 3 | #include "archinsn.h" |
4 | #include "event.h" | ||
4 | #include "machine.h" | 5 | #include "machine.h" |
5 | #include "thread.h" | 6 | #include "thread.h" |
6 | #include "symbol.h" | 7 | #include "symbol.h" |
diff --git a/tools/perf/arch/x86/util/event.c b/tools/perf/arch/x86/util/event.c index a3a0b6884779..d357c625c09f 100644 --- a/tools/perf/arch/x86/util/event.c +++ b/tools/perf/arch/x86/util/event.c | |||
@@ -3,6 +3,8 @@ | |||
3 | #include <linux/string.h> | 3 | #include <linux/string.h> |
4 | #include <linux/zalloc.h> | 4 | #include <linux/zalloc.h> |
5 | 5 | ||
6 | #include "../../util/event.h" | ||
7 | #include "../../util/synthetic-events.h" | ||
6 | #include "../../util/machine.h" | 8 | #include "../../util/machine.h" |
7 | #include "../../util/tool.h" | 9 | #include "../../util/tool.h" |
8 | #include "../../util/map.h" | 10 | #include "../../util/map.h" |
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 @@ | |||
1 | // SPDX-License-Identifier: GPL-2.0 | 1 | // SPDX-License-Identifier: GPL-2.0 |
2 | #include <linux/types.h> | 2 | #include <linux/types.h> |
3 | #include <linux/string.h> | 3 | #include <linux/string.h> |
4 | #include <limits.h> | ||
4 | #include <stdlib.h> | 5 | #include <stdlib.h> |
5 | 6 | ||
6 | #include "../../util/util.h" // page_size | 7 | #include "../../util/util.h" // page_size |
diff --git a/tools/perf/arch/x86/util/tsc.c b/tools/perf/arch/x86/util/tsc.c index c5197a15119b..2f55afb14e1f 100644 --- a/tools/perf/arch/x86/util/tsc.c +++ b/tools/perf/arch/x86/util/tsc.c | |||
@@ -8,6 +8,8 @@ | |||
8 | #include <linux/types.h> | 8 | #include <linux/types.h> |
9 | #include <asm/barrier.h> | 9 | #include <asm/barrier.h> |
10 | #include "../../../util/debug.h" | 10 | #include "../../../util/debug.h" |
11 | #include "../../../util/event.h" | ||
12 | #include "../../../util/synthetic-events.h" | ||
11 | #include "../../../util/tsc.h" | 13 | #include "../../../util/tsc.h" |
12 | 14 | ||
13 | int perf_read_tsc_conversion(const struct perf_event_mmap_page *pc, | 15 | int perf_read_tsc_conversion(const struct perf_event_mmap_page *pc, |