diff options
author | Alexei Starovoitov <ast@kernel.org> | 2019-04-02 06:27:40 +0200 |
---|---|---|
committer | Daniel Borkmann <daniel@iogearbox.net> | 2019-04-04 01:27:37 +0200 |
commit | 06ee7115b0d1742de745ad143fb5e06d77d27fba (patch) | |
tree | 020a3de85c2a716d0f89e17692ba192dfe6aa333 /.cocciconfig | |
parent | kbuild: add ability to generate BTF type info for vmlinux (diff) | |
download | linux-06ee7115b0d1742de745ad143fb5e06d77d27fba.tar.xz linux-06ee7115b0d1742de745ad143fb5e06d77d27fba.zip |
bpf: add verifier stats and log_level bit 2
In order to understand the verifier bottlenecks add various stats
and extend log_level:
log_level 1 and 2 are kept as-is:
bit 0 - level=1 - print every insn and verifier state at branch points
bit 1 - level=2 - print every insn and verifier state at every insn
bit 2 - level=4 - print verifier error and stats at the end of verification
When verifier rejects the program the libbpf is trying to load the program twice.
Once with log_level=0 (no messages, only error code is reported to user space)
and second time with log_level=1 to tell the user why the verifier rejected it.
With introduction of bit 2 - level=4 the libbpf can choose to always use that
level and load programs once, since the verification speed is not affected and
in case of error the verbose message will be available.
Note that the verifier stats are not part of uapi just like all other
verbose messages. They're expected to change in the future.
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
Signed-off-by: Daniel Borkmann <daniel@iogearbox.net>
Diffstat (limited to '.cocciconfig')
0 files changed, 0 insertions, 0 deletions