Searched refs:loop_ctx (Results 1 – 4 of 4) sorted by relevance
/linux-6.6.21/tools/testing/selftests/bpf/progs/ |
D | verifier_iterating_callbacks.c | 51 struct buf_context loop_ctx = { .buf = buf }; in unsafe_on_2nd_iter() local 53 bpf_loop(100, unsafe_on_2nd_iter_cb, &loop_ctx, 0); in unsafe_on_2nd_iter() 67 struct num_context loop_ctx = { .i = 32 }; in unsafe_on_zero_iter() local 69 bpf_loop(100, unsafe_on_zero_iter_cb, &loop_ctx, 0); in unsafe_on_zero_iter() 70 return choice_arr[loop_ctx.i]; in unsafe_on_zero_iter() 83 struct num_context loop_ctx = { .i = 0, .j = 1 }; in widening() local 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 104 bpf_loop(100, loop_detection_cb, &loop_ctx, 0); in loop_detection() [all …]
|
D | local_storage_bench.c | 45 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()
|
D | setget_sockopt.c | 79 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()
|
D | xdp_synproxy_kern.c | 276 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()
|