Home
last modified time | relevance | path

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

/linux-6.12.1/tools/testing/selftests/bpf/progs/
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()
87 return choice_arr[loop_ctx.j]; in widening()
100 struct num_context loop_ctx = { .i = 0 }; in loop_detection() local
102 bpf_loop(100, loop_detection_cb, &loop_ctx, 0); in loop_detection()
[all …]
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()
Dsetget_sockopt.c78 struct loop_ctx { struct
141 static int bpf_test_socket_sockopt(__u32 i, struct loop_ctx *lc) in bpf_test_socket_sockopt()
158 static int bpf_test_ip_sockopt(__u32 i, struct loop_ctx *lc) in bpf_test_ip_sockopt()
175 static int bpf_test_ipv6_sockopt(__u32 i, struct loop_ctx *lc) in bpf_test_ipv6_sockopt()
192 static int bpf_test_tcp_sockopt(__u32 i, struct loop_ctx *lc) in bpf_test_tcp_sockopt()
245 struct loop_ctx lc = { .ctx = ctx, .sk = sk, }; in bpf_test_sockopt()
Dxdp_synproxy_kern.c279 struct tcpopt_context loop_ctx = { in tscookie_init() local
295 bpf_loop(6, tscookie_tcpopt_parse_batch, &loop_ctx, 0); in tscookie_init()
297 if (!loop_ctx.option_timestamp) in tscookie_init()
301 cookie |= loop_ctx.wscale & TS_OPT_WSCALE_MASK; in tscookie_init()
302 if (loop_ctx.option_sack) in tscookie_init()