diff options
author | Arnaldo Carvalho de Melo <acme@redhat.com> | 2019-01-29 07:06:18 -0500 |
---|---|---|
committer | Arnaldo Carvalho de Melo <acme@redhat.com> | 2019-02-06 08:00:39 -0500 |
commit | ebc52aee6130653b934a86637108ac2a7c95c74c (patch) | |
tree | 975055070a0d1a6f1f76fb993e1e2691a210e9b3 | |
parent | 5afbb37c68ab1ca9746e5c9ee2f61e9cae67da42 (diff) |
perf bpf-loader: Remove unecessary includes from bpf-loader.h
To cut the header dep tree, to get unecessary object rebuilds to be
reduced when a change happens in headers.
Cc: Adrian Hunter <adrian.hunter@intel.com>
Cc: Jiri Olsa <jolsa@kernel.org>
Cc: Namhyung Kim <namhyung@kernel.org>
Cc: Wang Nan <wangnan0@huawei.com>
Link: https://lkml.kernel.org/n/tip-ph72xhl9moqa0g1hxcyudwfn@git.kernel.org
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
-rw-r--r-- | tools/perf/util/bpf-loader.c | 1 | ||||
-rw-r--r-- | tools/perf/util/bpf-loader.h | 7 |
2 files changed, 4 insertions, 4 deletions
diff --git a/tools/perf/util/bpf-loader.c b/tools/perf/util/bpf-loader.c index 2f3eb6d293ee..6e68698aa0ad 100644 --- a/tools/perf/util/bpf-loader.c +++ b/tools/perf/util/bpf-loader.c | |||
@@ -15,6 +15,7 @@ | |||
15 | #include <errno.h> | 15 | #include <errno.h> |
16 | #include "perf.h" | 16 | #include "perf.h" |
17 | #include "debug.h" | 17 | #include "debug.h" |
18 | #include "evlist.h" | ||
18 | #include "bpf-loader.h" | 19 | #include "bpf-loader.h" |
19 | #include "bpf-prologue.h" | 20 | #include "bpf-prologue.h" |
20 | #include "probe-event.h" | 21 | #include "probe-event.h" |
diff --git a/tools/perf/util/bpf-loader.h b/tools/perf/util/bpf-loader.h index 62d245a90e1d..3f46856e3330 100644 --- a/tools/perf/util/bpf-loader.h +++ b/tools/perf/util/bpf-loader.h | |||
@@ -8,11 +8,7 @@ | |||
8 | 8 | ||
9 | #include <linux/compiler.h> | 9 | #include <linux/compiler.h> |
10 | #include <linux/err.h> | 10 | #include <linux/err.h> |
11 | #include <string.h> | ||
12 | #include <bpf/libbpf.h> | 11 | #include <bpf/libbpf.h> |
13 | #include "probe-event.h" | ||
14 | #include "evlist.h" | ||
15 | #include "debug.h" | ||
16 | 12 | ||
17 | enum bpf_loader_errno { | 13 | enum bpf_loader_errno { |
18 | __BPF_LOADER_ERRNO__START = __LIBBPF_ERRNO__START - 100, | 14 | __BPF_LOADER_ERRNO__START = __LIBBPF_ERRNO__START - 100, |
@@ -44,6 +40,7 @@ enum bpf_loader_errno { | |||
44 | }; | 40 | }; |
45 | 41 | ||
46 | struct perf_evsel; | 42 | struct perf_evsel; |
43 | struct perf_evlist; | ||
47 | struct bpf_object; | 44 | struct bpf_object; |
48 | struct parse_events_term; | 45 | struct parse_events_term; |
49 | #define PERF_BPF_PROBE_GROUP "perf_bpf_probe" | 46 | #define PERF_BPF_PROBE_GROUP "perf_bpf_probe" |
@@ -87,6 +84,8 @@ struct perf_evsel *bpf__setup_output_event(struct perf_evlist *evlist, const cha | |||
87 | int bpf__strerror_setup_output_event(struct perf_evlist *evlist, int err, char *buf, size_t size); | 84 | int bpf__strerror_setup_output_event(struct perf_evlist *evlist, int err, char *buf, size_t size); |
88 | #else | 85 | #else |
89 | #include <errno.h> | 86 | #include <errno.h> |
87 | #include <string.h> | ||
88 | #include "debug.h" | ||
90 | 89 | ||
91 | static inline struct bpf_object * | 90 | static inline struct bpf_object * |
92 | bpf__prepare_load(const char *filename __maybe_unused, | 91 | bpf__prepare_load(const char *filename __maybe_unused, |