/linux-6.6.21/tools/testing/selftests/bpf/progs/ |
D | bpf_loop.c | 54 nr_loops_returned += bpf_loop(nested_callback_nr_loops, callback, data, 0); in nested_callback2() 61 bpf_loop(nested_callback_nr_loops, nested_callback2, data, 0); in nested_callback1() 73 nr_loops_returned = bpf_loop(nr_loops, callback, &data, 0); in test_prog() 89 nr_loops_returned = bpf_loop(nr_loops, empty_callback, NULL, 0); in prog_null_ctx() 102 err = bpf_loop(nr_loops, callback, &data, 1); in prog_invalid_flags() 116 bpf_loop(nr_loops, nested_callback1, &data, 0); in prog_nested_calls() 153 bpf_loop(1, callback, NULL, 0); in prog_non_constant_callback() 184 bpf_loop(1, stack_check_inner_callback, NULL, 0); in stack_check_outer_callback() 215 bpf_loop(1, stack_check_outer_callback, NULL, 0); in stack_check()
|
D | verifier_iterating_callbacks.c | 53 bpf_loop(100, unsafe_on_2nd_iter_cb, &loop_ctx, 0); in unsafe_on_2nd_iter() 69 bpf_loop(100, unsafe_on_zero_iter_cb, &loop_ctx, 0); in unsafe_on_zero_iter() 85 bpf_loop(100, widening_cb, &loop_ctx, 0); in widening() 104 bpf_loop(100, loop_detection_cb, &loop_ctx, 0); in loop_detection() 179 bpf_loop(1, iter_limit_cb, &ctx, 0); in bpf_loop_iter_limit_ok() 189 bpf_loop(2, iter_limit_cb, &ctx, 0); in bpf_loop_iter_limit_overflow() 208 bpf_loop(1, iter_limit_level2a_cb, ctx, 0); in iter_limit_level1_cb() 209 bpf_loop(1, iter_limit_level2b_cb, ctx, 0); in iter_limit_level1_cb() 225 bpf_loop(1, iter_limit_level1_cb, &ctx1, 0); in bpf_loop_iter_limit_nested() 226 bpf_loop(1, iter_limit_level1_cb, &ctx2, 0); in bpf_loop_iter_limit_nested()
|
D | htab_mem_bench.c | 62 bpf_loop(OP_BATCH, overwrite_htab, &update, 0); in overwrite() 74 bpf_loop(OP_BATCH, overwrite_htab, &update, 0); in batch_add_batch_del() 77 bpf_loop(OP_BATCH, del_htab, &update, 0); in batch_add_batch_del() 90 bpf_loop(OP_BATCH, newwrite_htab, &update, 0); in add_only() 102 bpf_loop(OP_BATCH, del_htab, &update, 0); in del_only()
|
D | test_map_lookup_percpu_elem.c | 60 bpf_loop(nr_cpus, read_percpu_elem_callback, &map_ctx, 0); in sysenter_getuid() 65 bpf_loop(nr_cpus, read_percpu_elem_callback, &map_ctx, 0); in sysenter_getuid() 70 bpf_loop(nr_cpus, read_percpu_elem_callback, &map_ctx, 0); in sysenter_getuid()
|
D | bpf_loop_bench.c | 20 bpf_loop(nr_loops, empty_callback, NULL, 0); in outer_loop() 28 bpf_loop(1000, outer_loop, NULL, 0); in benchmark()
|
D | bpf_hashmap_lookup.c | 47 return bpf_loop(nr_entries, lookup_callback, NULL, 0) ? 0 : 1; in loop_lookup_callback() 59 bpf_loop(nr_loops, loop_lookup_callback, NULL, 0); in benchmark()
|
D | verifier_subprog_precision.c | 185 __imm(bpf_loop) in callback_result_precise() 317 __imm(bpf_loop) in parent_callee_saved_reg_precise_with_callback() 481 __imm(bpf_loop) in parent_stack_slot_precise_with_callback()
|
D | setget_sockopt.c | 253 n = bpf_loop(ARRAY_SIZE(sol_socket_tests), bpf_test_socket_sockopt, &lc, 0); in bpf_test_sockopt() 258 n = bpf_loop(ARRAY_SIZE(sol_tcp_tests), bpf_test_tcp_sockopt, &lc, 0); in bpf_test_sockopt() 264 n = bpf_loop(ARRAY_SIZE(sol_ip_tests), bpf_test_ip_sockopt, &lc, 0); in bpf_test_sockopt() 268 n = bpf_loop(ARRAY_SIZE(sol_ipv6_tests), bpf_test_ipv6_sockopt, &lc, 0); in bpf_test_sockopt()
|
D | bpf_hashmap_full_update_bench.c | 37 bpf_loop(nr_loops, loop_update_callback, &key, 0); in benchmark()
|
D | strobemeta.h | 543 err = bpf_loop(STROBE_MAX_INTS, read_var_callback, &ctx, 0); in read_strobe_meta() 548 err = bpf_loop(STROBE_MAX_STRS, read_var_callback, &ctx, 0); in read_strobe_meta() 553 err = bpf_loop(STROBE_MAX_MAPS, read_var_callback, &ctx, 0); in read_strobe_meta()
|
D | test_subprogs.c | 107 bpf_loop(1, empty_callback, NULL, 0); in prog3()
|
D | dynptr_fail.c | 132 bpf_loop(10, missing_release_callback_fn, NULL, 0); in ringbuf_missing_release_callback() 516 bpf_loop(10, invalid_write4_callback, &ptr, 0); in invalid_write4() 608 bpf_loop(10, invalid_read4_callback, &ptr, 0); in invalid_read4() 668 bpf_loop(10, release_twice_callback_fn, &ptr, 0); in release_twice_callback() 1353 bpf_loop(10, callback, &ptr, 0); in invalid_data_slices()
|
D | local_storage_bench.c | 98 bpf_loop(10000, &loop, &lctx, 0); in get_local()
|
D | user_ringbuf_success.c | 158 bpf_loop(8, publish_next_kern_msg, NULL, 0); in publish_kern_messages()
|
D | dynptr_success.c | 159 bpf_loop(10, ringbuf_callback, &ptr, 0); in test_ringbuf()
|
D | pyperf.h | 294 bpf_loop(STACK_MAX_LEN, process_frame_callback, &ctx, 0);
|
D | xdp_synproxy_kern.c | 292 bpf_loop(6, tscookie_tcpopt_parse_batch, &loop_ctx, 0); in tscookie_init()
|
/linux-6.6.21/tools/testing/selftests/bpf/prog_tests/ |
D | bpf_loop.c | 8 static void check_nr_loops(struct bpf_loop *skel) in check_nr_loops() 43 static void check_callback_fn_stop(struct bpf_loop *skel) in check_callback_fn_stop() 65 static void check_null_callback_ctx(struct bpf_loop *skel) in check_null_callback_ctx() 84 static void check_invalid_flags(struct bpf_loop *skel) in check_invalid_flags() 100 static void check_nested_calls(struct bpf_loop *skel) in check_nested_calls() 123 static void check_non_constant_callback(struct bpf_loop *skel) in check_non_constant_callback() 142 static void check_stack(struct bpf_loop *skel) in check_stack() 183 struct bpf_loop *skel; in test_bpf_loop()
|
/linux-6.6.21/tools/testing/selftests/bpf/ |
D | DENYLIST.s390x | 5 bpf_loop # attaches to __x64_sys_nanosleep
|
/linux-6.6.21/kernel/bpf/ |
D | bpf_iter.c | 744 BPF_CALL_4(bpf_loop, u32, nr_loops, void *, callback_fn, void *, callback_ctx, in BPF_CALL_4() argument 771 .func = bpf_loop,
|