Lines Matching refs:it

34 	struct bpf_iter_num it;  in iter_err_unsafe_c_loop()  local
39 bpf_iter_num_new(&it, 0, 1000); in iter_err_unsafe_c_loop()
40 while ((v = bpf_iter_num_next(&it))) { in iter_err_unsafe_c_loop()
43 bpf_iter_num_destroy(&it); in iter_err_unsafe_c_loop()
54 struct bpf_iter_num it; in iter_err_unsafe_asm_loop() local
80 : [it]"r"(&it), in iter_err_unsafe_asm_loop()
96 struct bpf_iter_num it; in iter_while_loop() local
101 bpf_iter_num_new(&it, 0, 3); in iter_while_loop()
102 while ((v = bpf_iter_num_next(&it))) { in iter_while_loop()
105 bpf_iter_num_destroy(&it); in iter_while_loop()
114 __attribute__((cleanup(bpf_iter_num_destroy))) struct bpf_iter_num it; in iter_while_loop_auto_cleanup() local
119 bpf_iter_num_new(&it, 0, 3); in iter_while_loop_auto_cleanup()
120 while ((v = bpf_iter_num_next(&it))) { in iter_while_loop_auto_cleanup()
132 struct bpf_iter_num it; in iter_for_loop() local
137 bpf_iter_num_new(&it, 5, 10); in iter_for_loop()
138 for (v = bpf_iter_num_next(&it); v; v = bpf_iter_num_next(&it)) { in iter_for_loop()
141 bpf_iter_num_destroy(&it); in iter_for_loop()
180 struct bpf_iter_num it; in iter_pragma_unroll_loop() local
185 bpf_iter_num_new(&it, 0, 2); in iter_pragma_unroll_loop()
188 v = bpf_iter_num_next(&it); in iter_pragma_unroll_loop()
191 bpf_iter_num_destroy(&it); in iter_pragma_unroll_loop()
200 struct bpf_iter_num it; in iter_manual_unroll_loop() local
205 bpf_iter_num_new(&it, 100, 200); in iter_manual_unroll_loop()
206 v = bpf_iter_num_next(&it); in iter_manual_unroll_loop()
208 v = bpf_iter_num_next(&it); in iter_manual_unroll_loop()
210 v = bpf_iter_num_next(&it); in iter_manual_unroll_loop()
212 v = bpf_iter_num_next(&it); in iter_manual_unroll_loop()
214 bpf_iter_num_destroy(&it); in iter_manual_unroll_loop()
223 struct bpf_iter_num it; in iter_multiple_sequential_loops() local
228 bpf_iter_num_new(&it, 0, 3); in iter_multiple_sequential_loops()
229 while ((v = bpf_iter_num_next(&it))) { in iter_multiple_sequential_loops()
232 bpf_iter_num_destroy(&it); in iter_multiple_sequential_loops()
234 bpf_iter_num_new(&it, 5, 10); in iter_multiple_sequential_loops()
235 for (v = bpf_iter_num_next(&it); v; v = bpf_iter_num_next(&it)) { in iter_multiple_sequential_loops()
238 bpf_iter_num_destroy(&it); in iter_multiple_sequential_loops()
240 bpf_iter_num_new(&it, 0, 2); in iter_multiple_sequential_loops()
243 v = bpf_iter_num_next(&it); in iter_multiple_sequential_loops()
246 bpf_iter_num_destroy(&it); in iter_multiple_sequential_loops()
248 bpf_iter_num_new(&it, 100, 200); in iter_multiple_sequential_loops()
249 v = bpf_iter_num_next(&it); in iter_multiple_sequential_loops()
251 v = bpf_iter_num_next(&it); in iter_multiple_sequential_loops()
253 v = bpf_iter_num_next(&it); in iter_multiple_sequential_loops()
255 v = bpf_iter_num_next(&it); in iter_multiple_sequential_loops()
257 bpf_iter_num_destroy(&it); in iter_multiple_sequential_loops()
266 struct bpf_iter_num it; in iter_limit_cond_break_loop() local
271 bpf_iter_num_new(&it, 0, 10); in iter_limit_cond_break_loop()
272 while ((v = bpf_iter_num_next(&it))) { in iter_limit_cond_break_loop()
280 bpf_iter_num_destroy(&it); in iter_limit_cond_break_loop()
291 struct bpf_iter_num it; in iter_obfuscate_counter() local
300 bpf_iter_num_new(&it, 0, 10); in iter_obfuscate_counter()
301 while ((v = bpf_iter_num_next(&it))) { in iter_obfuscate_counter()
324 bpf_iter_num_destroy(&it); in iter_obfuscate_counter()
335 struct bpf_iter_num it; in iter_search_loop() local
341 bpf_iter_num_new(&it, 0, 10); in iter_search_loop()
343 while ((v = bpf_iter_num_next(&it))) { in iter_search_loop()
364 bpf_iter_num_destroy(&it); in iter_search_loop()
661 static __noinline void fill(struct bpf_iter_num *it, int *arr, __u32 n, int mul) in fill() argument
665 while ((t = bpf_iter_num_next(it))) { in fill()
673 static __noinline int sum(struct bpf_iter_num *it, int *arr, __u32 n) in sum() argument
677 while ((t = bpf_iter_num_next(it))) { in sum()
692 struct bpf_iter_num it; in iter_pass_iter_ptr_to_subprog() local
699 bpf_iter_num_new(&it, 0, n); in iter_pass_iter_ptr_to_subprog()
700 fill(&it, arr1, n, 2); in iter_pass_iter_ptr_to_subprog()
701 bpf_iter_num_destroy(&it); in iter_pass_iter_ptr_to_subprog()
705 bpf_iter_num_new(&it, 0, n); in iter_pass_iter_ptr_to_subprog()
706 fill(&it, arr2, n, 10); in iter_pass_iter_ptr_to_subprog()
707 bpf_iter_num_destroy(&it); in iter_pass_iter_ptr_to_subprog()
711 bpf_iter_num_new(&it, 0, n); in iter_pass_iter_ptr_to_subprog()
712 sum1 = sum(&it, arr1, n); in iter_pass_iter_ptr_to_subprog()
713 bpf_iter_num_destroy(&it); in iter_pass_iter_ptr_to_subprog()
717 bpf_iter_num_new(&it, 0, n); in iter_pass_iter_ptr_to_subprog()
718 sum2 = sum(&it, arr2, n); in iter_pass_iter_ptr_to_subprog()
719 bpf_iter_num_destroy(&it); in iter_pass_iter_ptr_to_subprog()