projects
/
linux-2.6-microblaze.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
perf cpumap: Add new map type for aggregation
[linux-2.6-microblaze.git]
/
tools
/
perf
/
util
/
bpf-loader.h
diff --git
a/tools/perf/util/bpf-loader.h
b/tools/perf/util/bpf-loader.h
index
25251d6
..
5d1c725
100644
(file)
--- a/
tools/perf/util/bpf-loader.h
+++ b/
tools/perf/util/bpf-loader.h
@@
-8,6
+8,8
@@
#include <linux/compiler.h>
#include <linux/err.h>
#include <linux/compiler.h>
#include <linux/err.h>
+
+#ifdef HAVE_LIBBPF_SUPPORT
#include <bpf/libbpf.h>
enum bpf_loader_errno {
#include <bpf/libbpf.h>
enum bpf_loader_errno {
@@
-38,6
+40,7
@@
enum bpf_loader_errno {
BPF_LOADER_ERRNO__OBJCONF_MAP_IDX2BIG, /* Index too large */
__BPF_LOADER_ERRNO__END,
};
BPF_LOADER_ERRNO__OBJCONF_MAP_IDX2BIG, /* Index too large */
__BPF_LOADER_ERRNO__END,
};
+#endif // HAVE_LIBBPF_SUPPORT
struct evsel;
struct evlist;
struct evsel;
struct evlist;