diff options
author | Arnaldo Carvalho de Melo <acme@redhat.com> | 2019-01-22 08:24:34 -0500 |
---|---|---|
committer | Arnaldo Carvalho de Melo <acme@redhat.com> | 2019-01-25 09:12:09 -0500 |
commit | 40f3b2d20b52b090976a60fe56fb838a45eb362f (patch) | |
tree | b1a9e501bc562c8f86dc36829b459510996092f8 | |
parent | 68c0188ea77891266c048d0768250eba51441cb2 (diff) |
perf namespaces: Remove namespaces.h from .h headers
There we need just forward declarations, so remove it and add it just on
the .c files that actually touch the struct definitions.
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-wsjxzt99p83jubt6hu0med0f@git.kernel.org
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
-rw-r--r-- | tools/perf/builtin-probe.c | 1 | ||||
-rw-r--r-- | tools/perf/util/build-id.c | 1 | ||||
-rw-r--r-- | tools/perf/util/build-id.h | 3 | ||||
-rw-r--r-- | tools/perf/util/dso.c | 1 | ||||
-rw-r--r-- | tools/perf/util/dso.h | 2 | ||||
-rw-r--r-- | tools/perf/util/probe-event.c | 1 | ||||
-rw-r--r-- | tools/perf/util/probe-event.h | 5 | ||||
-rw-r--r-- | tools/perf/util/probe-file.c | 1 | ||||
-rw-r--r-- | tools/perf/util/thread.h | 1 | ||||
-rw-r--r-- | tools/perf/util/util.c | 1 |
10 files changed, 13 insertions, 4 deletions
diff --git a/tools/perf/builtin-probe.c b/tools/perf/builtin-probe.c index 99de91698de1..46d3c2deeb40 100644 --- a/tools/perf/builtin-probe.c +++ b/tools/perf/builtin-probe.c | |||
@@ -32,6 +32,7 @@ | |||
32 | 32 | ||
33 | #include "perf.h" | 33 | #include "perf.h" |
34 | #include "builtin.h" | 34 | #include "builtin.h" |
35 | #include "namespaces.h" | ||
35 | #include "util/util.h" | 36 | #include "util/util.h" |
36 | #include "util/strlist.h" | 37 | #include "util/strlist.h" |
37 | #include "util/strfilter.h" | 38 | #include "util/strfilter.h" |
diff --git a/tools/perf/util/build-id.c b/tools/perf/util/build-id.c index 04b1d53e4bf9..07ef7fad689c 100644 --- a/tools/perf/util/build-id.c +++ b/tools/perf/util/build-id.c | |||
@@ -15,6 +15,7 @@ | |||
15 | #include <sys/types.h> | 15 | #include <sys/types.h> |
16 | #include "build-id.h" | 16 | #include "build-id.h" |
17 | #include "event.h" | 17 | #include "event.h" |
18 | #include "namespaces.h" | ||
18 | #include "symbol.h" | 19 | #include "symbol.h" |
19 | #include "thread.h" | 20 | #include "thread.h" |
20 | #include <linux/kernel.h> | 21 | #include <linux/kernel.h> |
diff --git a/tools/perf/util/build-id.h b/tools/perf/util/build-id.h index f0c565164a97..93668f38f1ed 100644 --- a/tools/perf/util/build-id.h +++ b/tools/perf/util/build-id.h | |||
@@ -6,9 +6,10 @@ | |||
6 | #define SBUILD_ID_SIZE (BUILD_ID_SIZE * 2 + 1) | 6 | #define SBUILD_ID_SIZE (BUILD_ID_SIZE * 2 + 1) |
7 | 7 | ||
8 | #include "tool.h" | 8 | #include "tool.h" |
9 | #include "namespaces.h" | ||
10 | #include <linux/types.h> | 9 | #include <linux/types.h> |
11 | 10 | ||
11 | struct nsinfo; | ||
12 | |||
12 | extern struct perf_tool build_id__mark_dso_hit_ops; | 13 | extern struct perf_tool build_id__mark_dso_hit_ops; |
13 | struct dso; | 14 | struct dso; |
14 | struct feat_fd; | 15 | struct feat_fd; |
diff --git a/tools/perf/util/dso.c b/tools/perf/util/dso.c index 1b17f6de957d..cbe6e7dc6af3 100644 --- a/tools/perf/util/dso.c +++ b/tools/perf/util/dso.c | |||
@@ -10,6 +10,7 @@ | |||
10 | #include <fcntl.h> | 10 | #include <fcntl.h> |
11 | #include <libgen.h> | 11 | #include <libgen.h> |
12 | #include "compress.h" | 12 | #include "compress.h" |
13 | #include "namespaces.h" | ||
13 | #include "path.h" | 14 | #include "path.h" |
14 | #include "symbol.h" | 15 | #include "symbol.h" |
15 | #include "srcline.h" | 16 | #include "srcline.h" |
diff --git a/tools/perf/util/dso.h b/tools/perf/util/dso.h index 56001b82d448..2de54c0b26b2 100644 --- a/tools/perf/util/dso.h +++ b/tools/perf/util/dso.h | |||
@@ -10,9 +10,9 @@ | |||
10 | #include <stdio.h> | 10 | #include <stdio.h> |
11 | #include "rwsem.h" | 11 | #include "rwsem.h" |
12 | #include <linux/bitops.h> | 12 | #include <linux/bitops.h> |
13 | #include "namespaces.h" | ||
14 | #include "build-id.h" | 13 | #include "build-id.h" |
15 | 14 | ||
15 | struct machine; | ||
16 | struct map; | 16 | struct map; |
17 | 17 | ||
18 | enum dso_binary_type { | 18 | enum dso_binary_type { |
diff --git a/tools/perf/util/probe-event.c b/tools/perf/util/probe-event.c index 18a59fba97ff..736787a18b9e 100644 --- a/tools/perf/util/probe-event.c +++ b/tools/perf/util/probe-event.c | |||
@@ -35,6 +35,7 @@ | |||
35 | 35 | ||
36 | #include "util.h" | 36 | #include "util.h" |
37 | #include "event.h" | 37 | #include "event.h" |
38 | #include "namespaces.h" | ||
38 | #include "strlist.h" | 39 | #include "strlist.h" |
39 | #include "strfilter.h" | 40 | #include "strfilter.h" |
40 | #include "debug.h" | 41 | #include "debug.h" |
diff --git a/tools/perf/util/probe-event.h b/tools/perf/util/probe-event.h index 15a98c3a2a2f..05c8d571a901 100644 --- a/tools/perf/util/probe-event.h +++ b/tools/perf/util/probe-event.h | |||
@@ -4,8 +4,9 @@ | |||
4 | 4 | ||
5 | #include <linux/compiler.h> | 5 | #include <linux/compiler.h> |
6 | #include <stdbool.h> | 6 | #include <stdbool.h> |
7 | #include "intlist.h" | 7 | |
8 | #include "namespaces.h" | 8 | struct intlist; |
9 | struct nsinfo; | ||
9 | 10 | ||
10 | /* Probe related configurations */ | 11 | /* Probe related configurations */ |
11 | struct probe_conf { | 12 | struct probe_conf { |
diff --git a/tools/perf/util/probe-file.c b/tools/perf/util/probe-file.c index 0b1195cad0e5..4062bc4412a9 100644 --- a/tools/perf/util/probe-file.c +++ b/tools/perf/util/probe-file.c | |||
@@ -20,6 +20,7 @@ | |||
20 | #include <sys/types.h> | 20 | #include <sys/types.h> |
21 | #include <sys/uio.h> | 21 | #include <sys/uio.h> |
22 | #include <unistd.h> | 22 | #include <unistd.h> |
23 | #include "namespaces.h" | ||
23 | #include "util.h" | 24 | #include "util.h" |
24 | #include "event.h" | 25 | #include "event.h" |
25 | #include "strlist.h" | 26 | #include "strlist.h" |
diff --git a/tools/perf/util/thread.h b/tools/perf/util/thread.h index 712dd48cc0ca..f3c939150f90 100644 --- a/tools/perf/util/thread.h +++ b/tools/perf/util/thread.h | |||
@@ -13,6 +13,7 @@ | |||
13 | #include <intlist.h> | 13 | #include <intlist.h> |
14 | #include "rwsem.h" | 14 | #include "rwsem.h" |
15 | 15 | ||
16 | struct namespaces_event; | ||
16 | struct thread_stack; | 17 | struct thread_stack; |
17 | struct unwind_libunwind_ops; | 18 | struct unwind_libunwind_ops; |
18 | 19 | ||
diff --git a/tools/perf/util/util.c b/tools/perf/util/util.c index 093352e93d50..320b0fef249a 100644 --- a/tools/perf/util/util.c +++ b/tools/perf/util/util.c | |||
@@ -2,6 +2,7 @@ | |||
2 | #include "../perf.h" | 2 | #include "../perf.h" |
3 | #include "util.h" | 3 | #include "util.h" |
4 | #include "debug.h" | 4 | #include "debug.h" |
5 | #include "namespaces.h" | ||
5 | #include <api/fs/fs.h> | 6 | #include <api/fs/fs.h> |
6 | #include <sys/mman.h> | 7 | #include <sys/mman.h> |
7 | #include <sys/stat.h> | 8 | #include <sys/stat.h> |