diff options
author | Arnaldo Carvalho de Melo <acme@redhat.com> | 2019-08-30 13:45:20 -0400 |
---|---|---|
committer | Arnaldo Carvalho de Melo <acme@redhat.com> | 2019-08-31 21:24:10 -0400 |
commit | f2a39fe84901df2b3d1bec3459b65cee3e8db57c (patch) | |
tree | 399cb01cdf9a8c771e734ed4344a18840845f9bf /tools/perf/arch | |
parent | fa0d98462fae5d4951f22f3ac1090d48c53396d1 (diff) |
perf auxtrace: Uninline functions that touch perf_session
So that we don't carry the session.h include directive in auxtrace.h,
which in turn opens a can of worms of files that were getting all sorts
of things via that include, fix them all.
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-d2d83aovpgri2z75wlitquni@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/arm/annotate/instructions.c | 1 | ||||
-rw-r--r-- | tools/perf/arch/arm/util/cs-etm.c | 1 | ||||
-rw-r--r-- | tools/perf/arch/arm64/annotate/instructions.c | 1 | ||||
-rw-r--r-- | tools/perf/arch/x86/tests/perf-time-to-tsc.c | 1 |
4 files changed, 4 insertions, 0 deletions
diff --git a/tools/perf/arch/arm/annotate/instructions.c b/tools/perf/arch/arm/annotate/instructions.c index c7d1a69b894f..e1d4b484cc4b 100644 --- a/tools/perf/arch/arm/annotate/instructions.c +++ b/tools/perf/arch/arm/annotate/instructions.c | |||
@@ -3,6 +3,7 @@ | |||
3 | #include <linux/zalloc.h> | 3 | #include <linux/zalloc.h> |
4 | #include <sys/types.h> | 4 | #include <sys/types.h> |
5 | #include <regex.h> | 5 | #include <regex.h> |
6 | #include <stdlib.h> | ||
6 | 7 | ||
7 | struct arm_annotate { | 8 | struct arm_annotate { |
8 | regex_t call_insn, | 9 | regex_t call_insn, |
diff --git a/tools/perf/arch/arm/util/cs-etm.c b/tools/perf/arch/arm/util/cs-etm.c index 59e44f90dc46..c32db09baf0d 100644 --- a/tools/perf/arch/arm/util/cs-etm.c +++ b/tools/perf/arch/arm/util/cs-etm.c | |||
@@ -26,6 +26,7 @@ | |||
26 | #include "../../util/pmu.h" | 26 | #include "../../util/pmu.h" |
27 | #include "../../util/cs-etm.h" | 27 | #include "../../util/cs-etm.h" |
28 | #include "../../util/util.h" | 28 | #include "../../util/util.h" |
29 | #include "../../util/session.h" | ||
29 | 30 | ||
30 | #include <errno.h> | 31 | #include <errno.h> |
31 | #include <stdlib.h> | 32 | #include <stdlib.h> |
diff --git a/tools/perf/arch/arm64/annotate/instructions.c b/tools/perf/arch/arm64/annotate/instructions.c index 8f70a1b282df..43aa93ed8414 100644 --- a/tools/perf/arch/arm64/annotate/instructions.c +++ b/tools/perf/arch/arm64/annotate/instructions.c | |||
@@ -2,6 +2,7 @@ | |||
2 | #include <linux/compiler.h> | 2 | #include <linux/compiler.h> |
3 | #include <sys/types.h> | 3 | #include <sys/types.h> |
4 | #include <regex.h> | 4 | #include <regex.h> |
5 | #include <stdlib.h> | ||
5 | 6 | ||
6 | struct arm64_annotate { | 7 | struct arm64_annotate { |
7 | regex_t call_insn, | 8 | regex_t call_insn, |
diff --git a/tools/perf/arch/x86/tests/perf-time-to-tsc.c b/tools/perf/arch/x86/tests/perf-time-to-tsc.c index 2d1f4713b728..eb3635941c2b 100644 --- a/tools/perf/arch/x86/tests/perf-time-to-tsc.c +++ b/tools/perf/arch/x86/tests/perf-time-to-tsc.c | |||
@@ -1,6 +1,7 @@ | |||
1 | // SPDX-License-Identifier: GPL-2.0 | 1 | // SPDX-License-Identifier: GPL-2.0 |
2 | #include <errno.h> | 2 | #include <errno.h> |
3 | #include <inttypes.h> | 3 | #include <inttypes.h> |
4 | #include <limits.h> | ||
4 | #include <stdbool.h> | 5 | #include <stdbool.h> |
5 | #include <stdio.h> | 6 | #include <stdio.h> |
6 | #include <unistd.h> | 7 | #include <unistd.h> |