Home
last modified time | relevance | path

Searched refs:loop_ctx (Results 1 – 4 of 4) sorted by relevance

/linux/tools/testing/selftests/bpf/progs/
H A Dverifier_iterating_callbacks.c49 struct buf_context loop_ctx = { .buf = buf }; in unsafe_on_2nd_iter() local
51 bpf_loop(100, unsafe_on_2nd_iter_cb, &loop_ctx, 0); in unsafe_on_2nd_iter()
65 struct num_context loop_ctx = { .i = 32 }; in unsafe_on_zero_iter() local
67 bpf_loop(100, unsafe_on_zero_iter_cb, &loop_ctx, 0); in unsafe_on_zero_iter()
68 return choice_arr[loop_ctx.i]; in unsafe_on_zero_iter()
81 struct num_context loop_ctx = { .i = 0, .j = 1 }; in widening() local
83 bpf_loop(100, widening_cb, &loop_ctx, 0); in widening()
84 /* loop_ctx.j is not changed during callback iteration, in widening()
87 return choice_arr[loop_ctx.j]; in widening()
100 struct num_context loop_ctx in loop_detection() local
128 struct num_context loop_ctx = { .i = 0 }; unsafe_for_each_map_elem() local
143 struct num_context loop_ctx = { .i = 0 }; unsafe_ringbuf_drain() local
159 struct num_context loop_ctx = { .i = 0 }; unsafe_find_vma() local
[all...]
H A Dlocal_storage_bench.c45 struct loop_ctx { struct
51 static int do_lookup(unsigned int elem, struct loop_ctx *lctx) in do_lookup() argument
81 struct loop_ctx *lctx = (struct loop_ctx *)ctx; in loop()
93 struct loop_ctx lctx; in get_local()
H A Dsetget_sockopt.c83 struct loop_ctx { struct
157 static int bpf_test_socket_sockopt(__u32 i, struct loop_ctx *lc) in bpf_test_socket_sockopt()
174 static int bpf_test_ip_sockopt(__u32 i, struct loop_ctx *lc) in bpf_test_ip_sockopt()
191 static int bpf_test_ipv6_sockopt(__u32 i, struct loop_ctx *lc) in bpf_test_ipv6_sockopt()
208 static int bpf_test_tcp_sockopt(__u32 i, struct loop_ctx *lc) in bpf_test_tcp_sockopt()
261 struct loop_ctx lc = { .ctx = ctx, .sk = sk, }; in bpf_test_sockopt()
/linux/io_uring/
H A Dbpf-ops.c17 __bpf_kfunc int bpf_io_uring_submit_sqes(struct iou_ctx *loop_ctx, u32 nr) in bpf_io_uring_submit_sqes() argument
19 struct io_ring_ctx *ctx = io_loop_demangle_ctx(loop_ctx); in bpf_io_uring_submit_sqes()
25 __u8 *bpf_io_uring_get_region(struct iou_ctx *loop_ctx, __u32 region_id, in bpf_io_uring_get_region() argument
28 struct io_ring_ctx *ctx = io_loop_demangle_ctx(loop_ctx); in bpf_io_uring_get_region()