Home
last modified time | relevance | path

Searched refs:bpf_loop (Results 1 – 25 of 25) sorted by relevance

/linux/tools/testing/selftests/bpf/progs/
H A Dbpf_loop.c54 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()
H A Dhtab_mem_bench.c62 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()
H A Dverifier_iterating_callbacks.c51 bpf_loop(100, unsafe_on_2nd_iter_cb, &loop_ctx, 0); in unsafe_on_2nd_iter()
67 bpf_loop(100, unsafe_on_zero_iter_cb, &loop_ctx, 0); in unsafe_on_zero_iter()
83 bpf_loop(100, widening_cb, &loop_ctx, 0); in widening()
102 bpf_loop(100, loop_detection_cb, &loop_ctx, 0); in loop_detection()
177 bpf_loop(1, iter_limit_cb, &ctx, 0); in bpf_loop_iter_limit_ok()
187 bpf_loop(2, iter_limit_cb, &ctx, 0); in bpf_loop_iter_limit_overflow()
206 bpf_loop(1, iter_limit_level2a_cb, ctx, 0); in iter_limit_level1_cb()
207 bpf_loop(1, iter_limit_level2b_cb, ctx, 0); in iter_limit_level1_cb()
223 bpf_loop(1, iter_limit_level1_cb, &ctx1, 0); in bpf_loop_iter_limit_nested()
224 bpf_loop( in bpf_loop_iter_limit_nested()
[all...]
H A Dexceptions_fail.c217 bpf_loop(5, subprog_cb_ref, NULL, 0); in reject_with_cb_reference()
226 bpf_loop(5, subprog_cb_ref, NULL, 0); in reject_with_cb()
334 bpf_loop(5, loop_cb1, NULL, 0); in reject_exception_throw_cb()
343 bpf_loop(5, loop_cb1, NULL, 0); in reject_exception_throw_cb_diff()
345 bpf_loop(5, loop_cb2, NULL, 0); in reject_exception_throw_cb_diff()
H A Dtest_map_lookup_percpu_elem.c60 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()
H A Dbpf_loop_bench.c20 bpf_loop(nr_loops, empty_callback, NULL, 0); in outer_loop()
28 bpf_loop(1000, outer_loop, NULL, 0); in benchmark()
H A Dverifier_subprog_precision.c210 /* bpf_loop() callback that can return values outside of [0, 1] range */ in loop_callback_bad()
217 /* bpf_loop() expects [0, 1] values, so branch above skipping in loop_callback_bad()
246 "call %[bpf_loop];" in __flag()
252 __imm(bpf_loop) in __flag()
260 * r1 and r4 are always precise for bpf_loop() calls.
262 __msg("9: (85) call bpf_loop#181")
282 __msg("mark_precise: frame0: regs=r0 stack= before 9: (85) call bpf_loop")
306 "call %[bpf_loop];" in callback_result_precise()
313 * back to the bpf_loop() call, but not beyond in callback_result_precise()
322 __imm(bpf_loop) in callback_result_precise()
[all...]
H A Dfree_timer.c70 bpf_loop(MAX_ENTRIES, start_cb, NULL, 0);
77 bpf_loop(MAX_ENTRIES, overwrite_cb, NULL, 0);
H A Dbpf_hashmap_lookup.c47 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()
H A Dpreempted_bpf_ma_op.c74 bpf_loop(512, del_array, &i, 0); in del_then_add_array()
77 bpf_loop(512, add_array, &i, 0); in del_then_add_array()
H A Dsetget_sockopt.c266 n = bpf_loop(ARRAY_SIZE(sol_socket_tests), bpf_test_socket_sockopt, &lc, 0); in bpf_test_sockopt()
271 n = bpf_loop(ARRAY_SIZE(sol_tcp_tests), bpf_test_tcp_sockopt, &lc, 0); in bpf_test_sockopt()
277 n = bpf_loop(ARRAY_SIZE(sol_ip_tests), bpf_test_ip_sockopt, &lc, 0);
281 n = bpf_loop(ARRAY_SIZE(sol_ipv6_tests), bpf_test_ipv6_sockopt, &lc, 0); in binddev_test()
H A Dbpf_hashmap_full_update_bench.c37 bpf_loop(nr_loops, loop_update_callback, &key, 0); in benchmark()
H A Dstrobemeta.h545 err = bpf_loop(STROBE_MAX_INTS, read_var_callback, &ctx, 0); in read_strobe_meta()
550 err = bpf_loop(STROBE_MAX_STRS, read_var_callback, &ctx, 0); in read_strobe_meta()
555 err = bpf_loop(STROBE_MAX_MAPS, read_var_callback, &ctx, 0); in read_strobe_meta()
H A Ddynptr_fail.c133 bpf_loop(10, missing_release_callback_fn, NULL, 0); in ringbuf_missing_release_callback()
537 bpf_loop(10, invalid_write4_callback, &ptr, 0); in global()
629 bpf_loop(10, invalid_read4_callback, &ptr, 0); in invalid_offset()
689 bpf_loop(10, release_twice_callback_fn, &ptr, 0);
1613 bpf_loop(10, callback, &ptr, 0);
H A Dverifier_bpf_fastcall.c715 /* bpf_loop params setup */
720 /* ... part of the inlined bpf_loop */
745 "call %[bpf_loop];" in bpf_loop_interaction1()
751 __imm(bpf_loop)
769 /* ... part of the inlined bpf_loop */ in bpf_loop_interaction2()
788 "call %[bpf_loop];" in bpf_loop_interaction2()
795 __imm(bpf_loop)
H A Dtest_subprogs.c107 bpf_loop(1, empty_callback, NULL, 0); in prog3()
H A Dlocal_storage_bench.c98 bpf_loop(10000, &loop, &lctx, 0); in get_local()
H A Duser_ringbuf_success.c158 bpf_loop(8, publish_next_kern_msg, NULL, 0); in publish_kern_messages()
H A Dverifier_private_stack.c192 __imm(bpf_loop) in private_stack_callback()
H A Dpyperf.h295 bpf_loop(STACK_MAX_LEN, process_frame_callback, &ctx, 0);
H A Dtest_tcp_custom_syncookie.c288 bpf_loop(40, tcp_parse_option, ctx, 0); in tcp_parse_options()
H A Ddynptr_success.c161 bpf_loop(10, ringbuf_callback, &ptr, 0); in test_ringbuf()
/linux/tools/testing/selftests/bpf/prog_tests/
H A Dbpf_loop.c8 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/kernel/bpf/
H A Dbpf_iter.c727 BPF_CALL_4(bpf_loop, u32, nr_loops, void *, callback_fn, void *, callback_ctx, in BPF_CALL_4() argument
754 .func = bpf_loop,
/linux/tools/perf/util/bpf_skel/
H A Dlock_contention.bpf.c418 bpf_loop(MAX_LOOP, delay_callback, &target, /*flags=*/0); in do_lock_delay()