summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorArnaldo Carvalho de Melo <acme@redhat.com>2019-01-29 07:06:18 -0500
committerArnaldo Carvalho de Melo <acme@redhat.com>2019-02-06 08:00:39 -0500
commitebc52aee6130653b934a86637108ac2a7c95c74c (patch)
tree975055070a0d1a6f1f76fb993e1e2691a210e9b3
parent5afbb37c68ab1ca9746e5c9ee2f61e9cae67da42 (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.c1
-rw-r--r--tools/perf/util/bpf-loader.h7
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
17enum bpf_loader_errno { 13enum 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
46struct perf_evsel; 42struct perf_evsel;
43struct perf_evlist;
47struct bpf_object; 44struct bpf_object;
48struct parse_events_term; 45struct 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
87int bpf__strerror_setup_output_event(struct perf_evlist *evlist, int err, char *buf, size_t size); 84int 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
91static inline struct bpf_object * 90static inline struct bpf_object *
92bpf__prepare_load(const char *filename __maybe_unused, 91bpf__prepare_load(const char *filename __maybe_unused,