diff options
author | Daniel Borkmann <daniel@iogearbox.net> | 2015-10-02 12:42:00 -0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2015-10-05 10:04:08 -0400 |
commit | 0cdf5640e4f6940bdbbefee4bb0adb7dffb185ec (patch) | |
tree | cee488c4a0da5b7addf49a2ef684cdcab8e9b85e /kernel/bpf/arraymap.c | |
parent | 4560cdff03a76348ee5fae48e3c7914e4de2db5b (diff) |
ebpf: include perf_event only where really needed
Commit ea317b267e9d ("bpf: Add new bpf map type to store the pointer
to struct perf_event") added perf_event.h to the main eBPF header, so
it gets included for all users. perf_event.h is actually only needed
from array map side, so lets sanitize this a bit.
Signed-off-by: Daniel Borkmann <daniel@iogearbox.net>
Cc: Kaixu Xia <xiakaixu@huawei.com>
Acked-by: Alexei Starovoitov <ast@plumgrid.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'kernel/bpf/arraymap.c')
-rw-r--r-- | kernel/bpf/arraymap.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/kernel/bpf/arraymap.c b/kernel/bpf/arraymap.c index 29ace107f236..2fecc4aed119 100644 --- a/kernel/bpf/arraymap.c +++ b/kernel/bpf/arraymap.c | |||
@@ -15,6 +15,7 @@ | |||
15 | #include <linux/slab.h> | 15 | #include <linux/slab.h> |
16 | #include <linux/mm.h> | 16 | #include <linux/mm.h> |
17 | #include <linux/filter.h> | 17 | #include <linux/filter.h> |
18 | #include <linux/perf_event.h> | ||
18 | 19 | ||
19 | /* Called from syscall */ | 20 | /* Called from syscall */ |
20 | static struct bpf_map *array_map_alloc(union bpf_attr *attr) | 21 | static struct bpf_map *array_map_alloc(union bpf_attr *attr) |