summaryrefslogtreecommitdiff
path: root/samples
diff options
context:
space:
mode:
authorTeng Qin <qinteng@fb.com>2018-04-29 09:39:29 +0300
committerAlexei Starovoitov <ast@kernel.org>2018-04-29 19:18:04 +0300
commit7ef3771205302a71a8bb4a2286ef98e5cade5d1a (patch)
treee897e3fe2ecaf348d4780de5dd0227f802dcd48f /samples
parentfcf85729d8efed1c756842ddb27e84f5f4ebc501 (diff)
downloadlinux-7ef3771205302a71a8bb4a2286ef98e5cade5d1a.tar.xz
bpf: Allow bpf_current_task_under_cgroup in interrupt
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 NMI (Perf Event) and some softirq context, the helper returns the correct result. Signed-off-by: Teng Qin <qinteng@fb.com> Signed-off-by: Alexei Starovoitov <ast@kernel.org>
Diffstat (limited to 'samples')
0 files changed, 0 insertions, 0 deletions