selftests/bpf: Add tests to validate log_true_size feature
authorAndrii Nakryiko <andrii@kernel.org>
Thu, 6 Apr 2023 23:42:03 +0000 (16:42 -0700)
committerDaniel Borkmann <daniel@iogearbox.net>
Tue, 11 Apr 2023 16:05:44 +0000 (18:05 +0200)
commit5787540827a9e2cdecf38166e648b2924a57443f
treeed20b0e036e7a948a72107d88ee68c45975ffb22
parent097d8002b754a865beef880e5c1cdc3ef7c2163d
selftests/bpf: Add tests to validate log_true_size feature

Add additional test cases validating that log_true_size is consistent
between fixed and rotating log modes, and that log_true_size can be
used *exactly* without causing -ENOSPC, while using just 1 byte shorter
log buffer would cause -ENOSPC.

Signed-off-by: Andrii Nakryiko <andrii@kernel.org>
Signed-off-by: Daniel Borkmann <daniel@iogearbox.net>
Acked-by: Lorenz Bauer <lmb@isovalent.com>
Link: https://lore.kernel.org/bpf/20230406234205.323208-18-andrii@kernel.org
tools/testing/selftests/bpf/prog_tests/verifier_log.c