diff options
| author | Eduard Zingerman <eddyz87@gmail.com> | 2026-10-09 03:48:07 -0700 |
|---|---|---|
| committer | Alexei Starovoitov <ast@kernel.org> | 2026-10-09 20:29:15 +0000 |
| commit | 951538da0fa9a5fcdceb892aaa95af9151f10a6a (patch) | |
| tree | fda5cf9be6153fedeecd4044155fcef7c72e9253 /include/linux/timerqueue.h | |
| parent | e187fac8ac6bc1a73647938e600da91c5edf2624 (diff) | |
| download | linux-next-951538da0fa9a5fcdceb892aaa95af9151f10a6a.tar.gz linux-next-951538da0fa9a5fcdceb892aaa95af9151f10a6a.zip | |
selftests/bpf: Tests for loop hierarchy computation
Test cases covering the following branches in bpf_compute_loops():
- Case B: simple backedge creating a loop (loop_single)
- Case B: two independent loops (loop_two_independent)
- Case B + D: nested loops where the inner header's loop_header points
to the outer header (loop_nested)
- Case C: diamond CFG with no loops (fwd_edges_no_loop)
- Case D: sibling inner loops within one outer loop
(loop_nested_siblings)
- Three levels of loop nesting (loop_three_levels)
- Loop with an if-else body containing forward branches
(loop_with_if_else)
- Case E: An irreducible loop (loop_irreducible)
- A self-loop (loop_self)
- A test with sibling loops nested in outer loops
(loop_nested_siblings_common_ancestors)
- A test case with outer loop's backedge originating
from an inner loop (loop_outer_backedge_from_inner).
Cases B, C, D and E are described in loops.c:compute_loops_in_subprog().
Signed-off-by: Eduard Zingerman <eddyz87@gmail.com>
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
Reviewed-by: Emil Tsalapatis <emil@etsalapatis.com>
Link: https://patch.msgid.link/20261009-scev-minimal-rebase-v3-49-bcba9bc53ac9@gmail.com
Diffstat (limited to 'include/linux/timerqueue.h')
0 files changed, 0 insertions, 0 deletions
