mirror of
https://github.com/netdata/libbpf.git
synced 2026-11-05 17:30:15 +08:00
libbpf: Drop unhelpful "program too large" guess
libbpf pretends it knows actual limit of BPF program instructions based on UAPI headers it compiled with. There is neither any guarantee that UAPI headers match host kernel, nor BPF verifier actually uses BPF_MAXINSNS constant anymore. Just drop unhelpful "guess", BPF verifier will emit actual reason for failure in its logs anyways. Signed-off-by: Andrii Nakryiko <andrii@kernel.org> Signed-off-by: Alexei Starovoitov <ast@kernel.org> Link: https://lore.kernel.org/bpf/20220426004511.2691730-3-andrii@kernel.org
This commit is contained in:
1 parent
36582ee432
commit
0a901dd1cd
1 file changed
-4
@@ -6828,10 +6828,6 @@ retry_load:
|
||||
pr_warn("prog '%s': -- BEGIN PROG LOAD LOG --\n%s-- END PROG LOAD LOG --\n",
|
||||
prog->name, log_buf);
|
||||
}
|
||||
if (insns_cnt >= BPF_MAXINSNS) {
|
||||
pr_warn("prog '%s': program too large (%d insns), at most %d insns\n",
|
||||
prog->name, insns_cnt, BPF_MAXINSNS);
|
||||
}
|
||||
|
||||
out:
|
||||
if (own_log_buf)
|
||||
|
||||
Reference in new issue
Block a user