selftests/bpf: enhance align selftest's expected log matching
authorAndrii Nakryiko <andrii@kernel.org>
Thu, 2 Mar 2023 23:50:01 +0000 (15:50 -0800)
committerAlexei Starovoitov <ast@kernel.org>
Sat, 4 Mar 2023 19:14:31 +0000 (11:14 -0800)
commit6f876e75d316a75957f3d43c3a8c2a6fe9bc18b2
tree18daf7a4352dd17753e8c6d70c7940bfab73a7ed
parent567da5d253cd6b41c6d015adac1af653725bef9d
selftests/bpf: enhance align selftest's expected log matching

Allow to search for expected register state in all the verifier log
output that's related to specified instruction number.

See added comment for an example of possible situation that is happening
due to a simple enhancement done in the next patch, which fixes handling
of env->test_state_freq flag in state checkpointing logic.

Signed-off-by: Andrii Nakryiko <andrii@kernel.org>
Link: https://lore.kernel.org/r/20230302235015.2044271-4-andrii@kernel.org
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
tools/testing/selftests/bpf/prog_tests/align.c