diff options
| author | Emil Tsalapatis <emil@etsalapatis.com> | 2026-07-08 15:32:39 -0400 |
|---|---|---|
| committer | Andrii Nakryiko <andrii@kernel.org> | 2026-07-10 14:43:50 -0700 |
| commit | e821c223875803760d492f88e357380415f5f438 (patch) | |
| tree | 301726ee7504d16ba23588a590197dd991a2763f /tools/perf/scripts/python/bin/stackcollapse-report | |
| parent | 30f77a0419382ce061b2418de81526e93be4ecf9 (diff) | |
selftests/bpf: veristat: Minimize map size during verification
The veristat tool verifies that BPF objects along with their
maps pass verification for a given kernel version. To do so,
veristat loads the objects and maps into the kernel in order
to pass them through the verifier.
Currently, veristat sizes the maps according to the max_entries
field provided by the program author. Depending on the map type
this field may be irrelevant to the verification process. However,
loading a large map can fail because of -ENOMEM errors.
This is a problem when the map is supposed to run on large machines,
but veristat tests it machines with significantly less RAM (e.g.,
CI). In that case veristat fails even if the program verifies.
Expand veristat to resize maps whose max_entries are not relevant
to verification. Set the max_entries value as low as possible to
avoid -ENOMEM errors.
Suggested-by: Andrii Nakryiko <andrii@kernel.org>
Signed-off-by: Emil Tsalapatis <emil@etsalapatis.com>
Signed-off-by: Andrii Nakryiko <andrii@kernel.org>
Link: https://lore.kernel.org/bpf/20260708193239.5063-1-emil@etsalapatis.com
Diffstat (limited to 'tools/perf/scripts/python/bin/stackcollapse-report')
0 files changed, 0 insertions, 0 deletions
