Re: [PATCH bpf-next] bpf: Allow bpf_current_task_under_cgroup in interrupt

2018-04-28 Thread Alexei Starovoitov
On 4/28/18 12:32 AM, Teng Qin wrote: Currently, the bpf_current_task_under_cgroup helper has a check where if the BPF program is running in_interrupt(), it will return -EINVAL. This prevents the helper to be used in many useful scenarios, particularly BPF programs attached to Perf Events. This c

[PATCH bpf-next] bpf: Allow bpf_current_task_under_cgroup in interrupt

2018-04-28 Thread Teng Qin
Currently, the bpf_current_task_under_cgroup helper has a check where if the BPF program is running in_interrupt(), it will return -EINVAL. This prevents the helper to be used in many useful scenarios, particularly BPF programs attached to Perf Events. This commit removes the check. Tested a few N