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

From: Alexei Starovoitov
Date: Thu Jun 01 2017 - 11:23:28 EST


On 6/1/17 6:32 AM, Peter Zijlstra wrote:
OK, do that. Something like the below should do I suppose.

It will return -EOPNOTSUPP for permanent failure (it cannot ever work)
and -EINVAL for temporary failure (could work if you call it on another
task/cpu).

Thanks! Will test it and report back.