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.orgSigned-off-by: default avatarArnaldo Carvalho de Melo <acme@redhat.com>
parent 5afbb37c
...@@ -15,6 +15,7 @@ ...@@ -15,6 +15,7 @@
#include <errno.h> #include <errno.h>
#include "perf.h" #include "perf.h"
#include "debug.h" #include "debug.h"
#include "evlist.h"
#include "bpf-loader.h" #include "bpf-loader.h"
#include "bpf-prologue.h" #include "bpf-prologue.h"
#include "probe-event.h" #include "probe-event.h"
......
...@@ -8,11 +8,7 @@ ...@@ -8,11 +8,7 @@
#include <linux/compiler.h> #include <linux/compiler.h>
#include <linux/err.h> #include <linux/err.h>
#include <string.h>
#include <bpf/libbpf.h> #include <bpf/libbpf.h>
#include "probe-event.h"
#include "evlist.h"
#include "debug.h"
enum bpf_loader_errno { enum bpf_loader_errno {
__BPF_LOADER_ERRNO__START = __LIBBPF_ERRNO__START - 100, __BPF_LOADER_ERRNO__START = __LIBBPF_ERRNO__START - 100,
...@@ -44,6 +40,7 @@ enum bpf_loader_errno { ...@@ -44,6 +40,7 @@ enum bpf_loader_errno {
}; };
struct perf_evsel; struct perf_evsel;
struct perf_evlist;
struct bpf_object; struct bpf_object;
struct parse_events_term; struct parse_events_term;
#define PERF_BPF_PROBE_GROUP "perf_bpf_probe" #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,6 +84,8 @@ struct perf_evsel *bpf__setup_output_event(struct perf_evlist *evlist, const cha
int bpf__strerror_setup_output_event(struct perf_evlist *evlist, int err, char *buf, size_t size); int bpf__strerror_setup_output_event(struct perf_evlist *evlist, int err, char *buf, size_t size);
#else #else
#include <errno.h> #include <errno.h>
#include <string.h>
#include "debug.h"
static inline struct bpf_object * static inline struct bpf_object *
bpf__prepare_load(const char *filename __maybe_unused, bpf__prepare_load(const char *filename __maybe_unused,
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment