Re: [PATCH net-next] ebpf: include perf_event only where really needed

2015-10-05 Thread David Miller
From: Daniel Borkmann Date: Fri, 2 Oct 2015 18:42:00 +0200 > 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,

Re: [PATCH net-next] ebpf: include perf_event only where really needed

2015-10-02 Thread Alexei Starovoitov
On 10/2/15 9:42 AM, Daniel Borkmann wrote: 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 b