commit | 8c30396074c131765b19eb3cb7ff764a4f2f2913 | [log] [tgz] |
---|---|---|
author | Alexei Starovoitov <ast@kernel.org> | Fri Aug 02 16:23:40 2019 -0700 |
committer | Alexei Starovoitov <ast@kernel.org> | Tue Aug 06 08:20:31 2019 -0700 |
tree | 46e44350fd17175e1ab9b8394c980c6e6fe89300 | |
parent | a78d0dbec712999ecd2f800eea0f62dc93867a78 [diff] |
selftests/bpf: add loop test 5 Add a test with multiple exit conditions. It's not an infinite loop only when the verifier can properly track all math on variable 'i' through all possible ways of executing this loop. barrier()s are needed to disable llvm optimization that combines multiple branches into fewer branches. Signed-off-by: Alexei Starovoitov <ast@kernel.org> Acked-by: Yonghong Song <yhs@fb.com>