Home
last modified time | relevance | path

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

/openbmc/linux/tools/testing/selftests/bpf/progs/
H A Dverifier_iterating_callbacks.c67 struct num_context loop_ctx = { .i = 32 }; in unsafe_on_zero_iter() local
70 return choice_arr[loop_ctx.i]; in unsafe_on_zero_iter()
85 bpf_loop(100, widening_cb, &loop_ctx, 0); in widening()
89 return choice_arr[loop_ctx.j]; in widening()
102 struct num_context loop_ctx = { .i = 0 }; in loop_detection() local
130 struct num_context loop_ctx = { .i = 0 }; in unsafe_for_each_map_elem() local
133 return choice_arr[loop_ctx.i]; in unsafe_for_each_map_elem()
145 struct num_context loop_ctx = { .i = 0 }; in unsafe_ringbuf_drain() local
148 return choice_arr[loop_ctx.i]; in unsafe_ringbuf_drain()
161 struct num_context loop_ctx = { .i = 0 }; in 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.c79 struct loop_ctx { struct
142 static int bpf_test_socket_sockopt(__u32 i, struct loop_ctx *lc) in bpf_test_socket_sockopt()
159 static int bpf_test_ip_sockopt(__u32 i, struct loop_ctx *lc) in bpf_test_ip_sockopt()
176 static int bpf_test_ipv6_sockopt(__u32 i, struct loop_ctx *lc) in bpf_test_ipv6_sockopt()
193 static int bpf_test_tcp_sockopt(__u32 i, struct loop_ctx *lc) in bpf_test_tcp_sockopt()
246 struct loop_ctx lc = { .ctx = ctx, .sk = sk, }; in bpf_test_sockopt()
H A Dxdp_synproxy_kern.c276 struct tcpopt_context loop_ctx = { in tscookie_init() local
292 bpf_loop(6, tscookie_tcpopt_parse_batch, &loop_ctx, 0); in tscookie_init()
294 if (!loop_ctx.option_timestamp) in tscookie_init()
298 cookie |= loop_ctx.wscale & TS_OPT_WSCALE_MASK; in tscookie_init()
299 if (loop_ctx.option_sack) in tscookie_init()