ebpf: include perf_event only where really needed
commit0cdf5640e4f6940bdbbefee4bb0adb7dffb185ec
authorDaniel Borkmann <daniel@iogearbox.net>
Fri, 2 Oct 2015 16:42:00 +0000 (2 18:42 +0200)
committerDavid S. Miller <davem@davemloft.net>
Mon, 5 Oct 2015 14:04:08 +0000 (5 07:04 -0700)
treecee488c4a0da5b7addf49a2ef684cdcab8e9b85e
parent4560cdff03a76348ee5fae48e3c7914e4de2db5b
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>
include/linux/bpf.h
kernel/bpf/arraymap.c