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)
commitc8c088ba0edf65044c254b96fc438c91914aaab0
tree26c2ce03951344a5241e1084cbb68d36275cc61a
parent2b279419567105d63f1e524bb1ac34ae8f918e5d
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: e87c6bc3852b ("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