veristat: Add more veristat control over verifier log options
authorAndrii Nakryiko <andrii@kernel.org>
Thu, 6 Apr 2023 23:41:51 +0000 (16:41 -0700)
committerDaniel Borkmann <daniel@iogearbox.net>
Tue, 11 Apr 2023 16:05:43 +0000 (18:05 +0200)
commitd0d75c67c45abd3930967dcafc82fd4505400665
treed33b255a5f60489726d2d067d9c682f6feff6546
parente0aee1facccf9f12136600031be4ce21eb810a78
veristat: Add more veristat control over verifier log options

Add --log-size to be able to customize log buffer sent to bpf() syscall
for BPF program verification logging.

Add --log-fixed to enforce BPF_LOG_FIXED behavior for BPF verifier log.
This is useful in unlikely event that beginning of truncated verifier
log is more important than the end of it (which with rotating verifier
log behavior is the default now).

Signed-off-by: Andrii Nakryiko <andrii@kernel.org>
Signed-off-by: Daniel Borkmann <daniel@iogearbox.net>
Link: https://lore.kernel.org/bpf/20230406234205.323208-6-andrii@kernel.org
tools/testing/selftests/bpf/veristat.c