Re: [PATCH v2 net-next 1/3] perf, bpf: Add BPF support to all perf_event types

From: David Miller
Date: Fri May 26 2017 - 10:55:44 EST


From: Alexei Starovoitov <ast@xxxxxx>
Date: Thu, 25 May 2017 22:55:47 -0700

> + if (event->attach_state & PERF_ATTACH_TASK)
> + goto err_out;

The attach_state member only exists when PERF_EVENTS is enabled.