diff options
author | Arnaldo Carvalho de Melo <acme@redhat.com> | 2019-08-22 14:40:29 -0400 |
---|---|---|
committer | Arnaldo Carvalho de Melo <acme@redhat.com> | 2019-08-26 10:58:22 -0400 |
commit | aeb00b1aeab6dadd72c24f93bea51a46e109c2ba (patch) | |
tree | 892b5327ab415f62b61dcd39d6400eb66ef47e6d /tools/perf/arch | |
parent | 38b7b678fe989f9c403c001d96887939aaa1b68a (diff) |
perf record: Move record_opts and other record decls out of perf.h
And into a separate util/record.h, to better isolate things and make
sure that those who use record_opts and the other moved declarations
are explicitly including the necessary header.
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-31q8mei1qkh74qvkl9nwidfq@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/util/cs-etm.c | 2 | ||||
-rw-r--r-- | tools/perf/arch/arm64/util/arm-spe.c | 1 | ||||
-rw-r--r-- | tools/perf/arch/s390/util/auxtrace.c | 1 | ||||
-rw-r--r-- | tools/perf/arch/x86/tests/perf-time-to-tsc.c | 2 | ||||
-rw-r--r-- | tools/perf/arch/x86/util/intel-bts.c | 1 | ||||
-rw-r--r-- | tools/perf/arch/x86/util/intel-pt.c | 3 |
6 files changed, 8 insertions, 2 deletions
diff --git a/tools/perf/arch/arm/util/cs-etm.c b/tools/perf/arch/arm/util/cs-etm.c index c73da3245b67..a185dab2d903 100644 --- a/tools/perf/arch/arm/util/cs-etm.c +++ b/tools/perf/arch/arm/util/cs-etm.c | |||
@@ -15,7 +15,7 @@ | |||
15 | #include <linux/zalloc.h> | 15 | #include <linux/zalloc.h> |
16 | 16 | ||
17 | #include "cs-etm.h" | 17 | #include "cs-etm.h" |
18 | #include "../../perf.h" | 18 | #include "../../util/record.h" |
19 | #include "../../util/auxtrace.h" | 19 | #include "../../util/auxtrace.h" |
20 | #include "../../util/cpumap.h" | 20 | #include "../../util/cpumap.h" |
21 | #include "../../util/evlist.h" | 21 | #include "../../util/evlist.h" |
diff --git a/tools/perf/arch/arm64/util/arm-spe.c b/tools/perf/arch/arm64/util/arm-spe.c index 00915b8fd05b..cdd5c0c84183 100644 --- a/tools/perf/arch/arm64/util/arm-spe.c +++ b/tools/perf/arch/arm64/util/arm-spe.c | |||
@@ -19,6 +19,7 @@ | |||
19 | #include "../../util/pmu.h" | 19 | #include "../../util/pmu.h" |
20 | #include "../../util/debug.h" | 20 | #include "../../util/debug.h" |
21 | #include "../../util/auxtrace.h" | 21 | #include "../../util/auxtrace.h" |
22 | #include "../../util/record.h" | ||
22 | #include "../../util/arm-spe.h" | 23 | #include "../../util/arm-spe.h" |
23 | 24 | ||
24 | #define KiB(x) ((x) * 1024) | 25 | #define KiB(x) ((x) * 1024) |
diff --git a/tools/perf/arch/s390/util/auxtrace.c b/tools/perf/arch/s390/util/auxtrace.c index cab46f517b83..f32d7a72d039 100644 --- a/tools/perf/arch/s390/util/auxtrace.c +++ b/tools/perf/arch/s390/util/auxtrace.c | |||
@@ -8,6 +8,7 @@ | |||
8 | #include "../../util/evlist.h" | 8 | #include "../../util/evlist.h" |
9 | #include "../../util/auxtrace.h" | 9 | #include "../../util/auxtrace.h" |
10 | #include "../../util/evsel.h" | 10 | #include "../../util/evsel.h" |
11 | #include "../../util/record.h" | ||
11 | 12 | ||
12 | #define PERF_EVENT_CPUM_SF 0xB0000 /* Event: Basic-sampling */ | 13 | #define PERF_EVENT_CPUM_SF 0xB0000 /* Event: Basic-sampling */ |
13 | #define PERF_EVENT_CPUM_SF_DIAG 0xBD000 /* Event: Combined-sampling */ | 14 | #define PERF_EVENT_CPUM_SF_DIAG 0xBD000 /* Event: Combined-sampling */ |
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 582182d98a7f..02776109ba46 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 <stdbool.h> | ||
4 | #include <stdio.h> | 5 | #include <stdio.h> |
5 | #include <unistd.h> | 6 | #include <unistd.h> |
6 | #include <linux/types.h> | 7 | #include <linux/types.h> |
@@ -13,6 +14,7 @@ | |||
13 | #include "evsel.h" | 14 | #include "evsel.h" |
14 | #include "thread_map.h" | 15 | #include "thread_map.h" |
15 | #include "cpumap.h" | 16 | #include "cpumap.h" |
17 | #include "record.h" | ||
16 | #include "tsc.h" | 18 | #include "tsc.h" |
17 | #include "tests/tests.h" | 19 | #include "tests/tests.h" |
18 | 20 | ||
diff --git a/tools/perf/arch/x86/util/intel-bts.c b/tools/perf/arch/x86/util/intel-bts.c index 2d5d8a12dd1f..1f2cf612bc9c 100644 --- a/tools/perf/arch/x86/util/intel-bts.c +++ b/tools/perf/arch/x86/util/intel-bts.c | |||
@@ -17,6 +17,7 @@ | |||
17 | #include "../../util/session.h" | 17 | #include "../../util/session.h" |
18 | #include "../../util/pmu.h" | 18 | #include "../../util/pmu.h" |
19 | #include "../../util/debug.h" | 19 | #include "../../util/debug.h" |
20 | #include "../../util/record.h" | ||
20 | #include "../../util/tsc.h" | 21 | #include "../../util/tsc.h" |
21 | #include "../../util/auxtrace.h" | 22 | #include "../../util/auxtrace.h" |
22 | #include "../../util/intel-bts.h" | 23 | #include "../../util/intel-bts.h" |
diff --git a/tools/perf/arch/x86/util/intel-pt.c b/tools/perf/arch/x86/util/intel-pt.c index c72a77a82b39..44cfe72c1a4c 100644 --- a/tools/perf/arch/x86/util/intel-pt.c +++ b/tools/perf/arch/x86/util/intel-pt.c | |||
@@ -13,7 +13,6 @@ | |||
13 | #include <linux/zalloc.h> | 13 | #include <linux/zalloc.h> |
14 | #include <cpuid.h> | 14 | #include <cpuid.h> |
15 | 15 | ||
16 | #include "../../perf.h" | ||
17 | #include "../../util/session.h" | 16 | #include "../../util/session.h" |
18 | #include "../../util/event.h" | 17 | #include "../../util/event.h" |
19 | #include "../../util/evlist.h" | 18 | #include "../../util/evlist.h" |
@@ -24,6 +23,8 @@ | |||
24 | #include "../../util/pmu.h" | 23 | #include "../../util/pmu.h" |
25 | #include "../../util/debug.h" | 24 | #include "../../util/debug.h" |
26 | #include "../../util/auxtrace.h" | 25 | #include "../../util/auxtrace.h" |
26 | #include "../../util/record.h" | ||
27 | #include "../../util/target.h" | ||
27 | #include "../../util/tsc.h" | 28 | #include "../../util/tsc.h" |
28 | #include "../../util/intel-pt.h" | 29 | #include "../../util/intel-pt.h" |
29 | 30 | ||