diff options
author | Andrii Nakryiko <andrii@kernel.org> | 2022-10-05 18:14:50 +0200 |
---|---|---|
committer | Alexei Starovoitov <ast@kernel.org> | 2022-10-06 01:55:12 +0200 |
commit | 60df8c4d32d47fa5e91d02811dadcb97a0bd097e (patch) | |
tree | 25bf70ab4c8cfa7ccb1eaae254bedfe488ce68b0 /scripts/bpf_doc.py | |
parent | selftests/bpf: avoid reporting +100% difference in veristat for actual 0% (diff) | |
download | linux-60df8c4d32d47fa5e91d02811dadcb97a0bd097e.tar.xz linux-60df8c4d32d47fa5e91d02811dadcb97a0bd097e.zip |
selftests/bpf: add BPF object fixup step to veristat
Add a step to attempt to "fix up" BPF object file to make it possible to
successfully load it. E.g., set non-zero size for BPF maps that expect
max_entries set, but BPF object file itself doesn't have declarative
max_entries values specified.
Another issue was with automatic map pinning. Pinning has no effect on
BPF verification process itself but can interfere when validating
multiple related programs and object files, so veristat disabled all the
pinning explicitly.
In the future more such fix up heuristics could be added to accommodate
common patterns encountered in practice.
Signed-off-by: Andrii Nakryiko <andrii@kernel.org>
Link: https://lore.kernel.org/r/20221005161450.1064469-3-andrii@kernel.org
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
Diffstat (limited to 'scripts/bpf_doc.py')
0 files changed, 0 insertions, 0 deletions