diff options
author | Andrii Nakryiko <andrii@kernel.org> | 2023-11-11 17:06:09 -0800 |
---|---|---|
committer | Alexei Starovoitov <ast@kernel.org> | 2023-11-15 12:03:43 -0800 |
commit | 882e3d873c2d8a2aebbc6c192aa1a2990b9d5b27 (patch) | |
tree | 53c9ef81ba24ac689a43f5309b6b4630df2eaefd /tools/testing/selftests/bpf/prog_tests/global_data_init.c | |
parent | a5c57f81eb2b5d6de4f46e47fd85be50d179bfd8 (diff) |
selftests/bpf: add iter test requiring range x range logic
Add a simple verifier test that requires deriving reg bounds for one
register from another register that's not a constant. This is
a realistic example of iterating elements of an array with fixed maximum
number of elements, but smaller actual number of elements.
This small example was an original motivation for doing this whole patch
set in the first place, yes.
Signed-off-by: Andrii Nakryiko <andrii@kernel.org>
Link: https://lore.kernel.org/r/20231112010609.848406-14-andrii@kernel.org
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
Diffstat (limited to 'tools/testing/selftests/bpf/prog_tests/global_data_init.c')
0 files changed, 0 insertions, 0 deletions