]> git.baikalelectronics.ru Git - kernel.git/commit
bpf: set maximum number of attached progs to 64 for a single perf tp
authorYonghong Song <yhs@fb.com>
Thu, 30 Nov 2017 21:47:54 +0000 (13:47 -0800)
committerDaniel Borkmann <daniel@iogearbox.net>
Fri, 1 Dec 2017 01:56:10 +0000 (02:56 +0100)
commit855469dd69c0698d7a5942b701c56308581bcbc6
tree26c2ce03951344a5241e1084cbb68d36275cc61a
parent61fb356a70054854b708c719ef8d1f925066ea78
bpf: set maximum number of attached progs to 64 for a single perf tp

cgropu+bpf prog array has a maximum number of 64 programs.
Let us apply the same limit here.

Fixes: a57a3350dffb ("bpf: permit multiple bpf attachments for a single perf event")
Signed-off-by: Yonghong Song <yhs@fb.com>
Signed-off-by: Daniel Borkmann <daniel@iogearbox.net>
kernel/bpf/core.c
kernel/trace/bpf_trace.c