Home
last modified time | relevance | path

Searched refs:loop_ctx (Results 1 – 3 of 3) 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.c81 struct loop_ctx { struct
155 static int bpf_test_socket_sockopt(__u32 i, struct loop_ctx *lc) in bpf_test_socket_sockopt()
172 static int bpf_test_ip_sockopt(__u32 i, struct loop_ctx *lc) in bpf_test_ip_sockopt()
189 static int bpf_test_ipv6_sockopt(__u32 i, struct loop_ctx *lc) in bpf_test_ipv6_sockopt()
206 static int bpf_test_tcp_sockopt(__u32 i, struct loop_ctx *lc) in bpf_test_tcp_sockopt()
259 struct loop_ctx lc = { .ctx = ctx, .sk = sk, }; in bpf_test_sockopt()
82 ctxloop_ctx global() argument
83 skloop_ctx global() argument