selftests/bpf: extract test_loader->expect_msgs as a data structure
authorEduard Zingerman <eddyz87@gmail.com>
Mon, 22 Jul 2024 23:38:41 +0000 (16:38 -0700)
committerAndrii Nakryiko <andrii@kernel.org>
Mon, 29 Jul 2024 22:05:06 +0000 (15:05 -0700)
commit64f01e935ddb26f48baec71883c27878ac4231dc
tree7adb54bc90381153355c2cd4478989e016758f46
parent4ef5d6af493558124b7a6c13cace58b938fe27d4
selftests/bpf: extract test_loader->expect_msgs as a data structure

Non-functional change: use a separate data structure to represented
expected messages in test_loader.
This would allow to use the same functionality for expected set of
disassembled instructions in the follow-up commit.

Acked-by: Andrii Nakryiko <andrii@kernel.org>
Signed-off-by: Eduard Zingerman <eddyz87@gmail.com>
Link: https://lore.kernel.org/r/20240722233844.1406874-8-eddyz87@gmail.com
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
Signed-off-by: Andrii Nakryiko <andrii@kernel.org>
tools/testing/selftests/bpf/test_loader.c