/linux-6.1.9/tools/testing/selftests/bpf/prog_tests/ |
D | xdp_bpf2bpf.c | 27 ASSERT_GE(size, sizeof(pkt_v4) + sizeof(*meta), "check_size"); in on_sample() 30 ASSERT_EQ(memcmp(trace_pkt_v4, &pkt_v4, sizeof(pkt_v4)), 0, in on_sample() 33 if (meta->pkt_len > sizeof(pkt_v4)) { in on_sample() 34 for (int i = 0; i < meta->pkt_len - sizeof(pkt_v4); i++) in on_sample() 35 ASSERT_EQ(raw_pkt[i + sizeof(pkt_v4)], (unsigned char)i, in on_sample() 53 !ASSERT_GE(pkt_size, sizeof(pkt_v4), "pkt_size")) in run_xdp_bpf2bpf_pkt_size() 69 memcpy(buf_in, &pkt_v4, sizeof(pkt_v4)); in run_xdp_bpf2bpf_pkt_size() 70 if (pkt_size > sizeof(pkt_v4)) { in run_xdp_bpf2bpf_pkt_size() 71 for (int i = 0; i < (pkt_size - sizeof(pkt_v4)); i++) in run_xdp_bpf2bpf_pkt_size() 72 buf_in[i + sizeof(pkt_v4)] = i; in run_xdp_bpf2bpf_pkt_size() [all …]
|
D | queue_stack_map.c | 19 .data_in = &pkt_v4, in test_queue_stack_map_by_type() 20 .data_size_in = sizeof(pkt_v4), in test_queue_stack_map_by_type() 62 pkt_v4.iph.saddr = vals[i] * 5; in test_queue_stack_map_by_type() 65 pkt_v4.iph.saddr = vals[MAP_SIZE - 1 - i] * 5; in test_queue_stack_map_by_type() 71 topts.data_size_out != sizeof(pkt_v4)) in test_queue_stack_map_by_type() 80 ASSERT_EQ(topts.data_size_out, sizeof(pkt_v4), in test_queue_stack_map_by_type() 90 ASSERT_EQ(topts.data_size_out, sizeof(pkt_v4), in test_queue_stack_map_by_type() 100 pkt_v4.iph.saddr = 0; in test_queue_stack_map_by_type()
|
D | ksyms_module.c | 14 .data_in = &pkt_v4, in test_ksyms_module_lskel() 15 .data_size_in = sizeof(pkt_v4), in test_ksyms_module_lskel() 41 .data_in = &pkt_v4, in test_ksyms_module_libbpf() 42 .data_size_in = sizeof(pkt_v4), in test_ksyms_module_libbpf()
|
D | xdp_context_test_run.c | 31 char data[sizeof(pkt_v4) + sizeof(__u32)]; in test_xdp_context_test_run() 57 *(struct ipv4_packet *)(data + sizeof(__u32)) = pkt_v4; in test_xdp_context_test_run() 63 ctx_in.data_end = ctx_in.data + sizeof(pkt_v4); in test_xdp_context_test_run() 67 ASSERT_EQ(opts.data_size_out, sizeof(pkt_v4), "valid-datasize"); in test_xdp_context_test_run() 71 ASSERT_EQ(ctx_out.data_end, sizeof(pkt_v4), "valid-dataend"); in test_xdp_context_test_run()
|
D | kfunc_call.c | 106 topts.data_in = &pkt_v4; in verify_success() 107 topts.data_size_in = sizeof(pkt_v4); in verify_success() 172 topts.data_in = &pkt_v4; in verify_fail() 173 topts.data_size_in = sizeof(pkt_v4); in verify_fail() 235 .data_in = &pkt_v4, in test_subprog() 236 .data_size_in = sizeof(pkt_v4), in test_subprog() 259 .data_in = &pkt_v4, in test_subprog_lskel() 260 .data_size_in = sizeof(pkt_v4), in test_subprog_lskel()
|
D | prog_run_opts.c | 32 .data_in = &pkt_v4, in test_prog_run_opts() 33 .data_size_in = sizeof(pkt_v4), in test_prog_run_opts() 53 ASSERT_EQ(topts.data_size_out, sizeof(pkt_v4), "test_run data_size_out"); in test_prog_run_opts()
|
D | for_each.c | 20 .data_in = &pkt_v4, in test_hash_map() 21 .data_size_in = sizeof(pkt_v4), in test_hash_map() 86 .data_in = &pkt_v4, in test_array_map() 87 .data_size_in = sizeof(pkt_v4), in test_array_map()
|
D | tailcalls.c | 505 .data_in = &pkt_v4, in test_tailcall_bpf2bpf_1() 506 .data_size_in = sizeof(pkt_v4), in test_tailcall_bpf2bpf_1() 572 ASSERT_EQ(topts.retval, sizeof(pkt_v4) * 2, "tailcall retval"); in test_tailcall_bpf2bpf_1() 669 .data_in = &pkt_v4, in test_tailcall_bpf2bpf_3() 670 .data_size_in = sizeof(pkt_v4), in test_tailcall_bpf2bpf_3() 713 ASSERT_EQ(topts.retval, sizeof(pkt_v4) * 3, "tailcall retval"); in test_tailcall_bpf2bpf_3() 722 ASSERT_EQ(topts.retval, sizeof(pkt_v4), "tailcall retval"); in test_tailcall_bpf2bpf_3() 731 ASSERT_EQ(topts.retval, sizeof(pkt_v4) * 2, "tailcall retval"); in test_tailcall_bpf2bpf_3() 764 .data_in = &pkt_v4, in test_tailcall_bpf2bpf_4() 765 .data_size_in = sizeof(pkt_v4), in test_tailcall_bpf2bpf_4() [all …]
|
D | pkt_md_access.c | 11 .data_in = &pkt_v4, in test_pkt_md_access() 12 .data_size_in = sizeof(pkt_v4), in test_pkt_md_access()
|
D | skb_helpers.c | 13 .data_in = &pkt_v4, in test_skb_helpers() 14 .data_size_in = sizeof(pkt_v4), in test_skb_helpers()
|
D | check_mtu.c | 88 .data_in = &pkt_v4, in test_check_mtu_run_xdp() 89 .data_size_in = sizeof(pkt_v4), in test_check_mtu_run_xdp() 140 .data_in = &pkt_v4, in test_check_mtu_run_tc() 141 .data_size_in = sizeof(pkt_v4), in test_check_mtu_run_tc()
|
D | pkt_access.c | 11 .data_in = &pkt_v4, in test_pkt_access() 12 .data_size_in = sizeof(pkt_v4), in test_pkt_access()
|
D | test_skb_pkt_end.c | 11 .data_in = &pkt_v4, in sanity_run() 12 .data_size_in = sizeof(pkt_v4), in sanity_run()
|
D | map_ptr.c | 16 .data_in = &pkt_v4, in test_map_ptr() 17 .data_size_in = sizeof(pkt_v4), in test_map_ptr()
|
D | cb_refs.c | 31 .data_in = &pkt_v4, in test_cb_refs() 32 .data_size_in = sizeof(pkt_v4), in test_cb_refs()
|
D | flow_dissector_load_bytes.c | 30 .data_in = &pkt_v4, in serial_test_flow_dissector_load_bytes() 31 .data_size_in = sizeof(pkt_v4), in serial_test_flow_dissector_load_bytes()
|
D | skb_load_bytes.c | 13 .data_in = &pkt_v4, in test_skb_load_bytes() 14 .data_size_in = sizeof(pkt_v4), in test_skb_load_bytes()
|
D | spinlock.c | 9 .data_in = &pkt_v4, in spin_lock_thread() 10 .data_size_in = sizeof(pkt_v4), in spin_lock_thread()
|
D | signal_pending.c | 20 .data_in = &pkt_v4, in test_signal_pending_by_type() 21 .data_size_in = sizeof(pkt_v4), in test_signal_pending_by_type()
|
D | global_func_args.c | 46 .data_in = &pkt_v4, in test_global_func_args() 47 .data_size_in = sizeof(pkt_v4), in test_global_func_args()
|
D | time_tai.c | 28 .data_in = &pkt_v4, in test_time_tai() 29 .data_size_in = sizeof(pkt_v4), in test_time_tai()
|
D | xdp_adjust_tail.c | 13 .data_in = &pkt_v4, in test_xdp_adjust_tail_shrink() 14 .data_size_in = sizeof(pkt_v4), in test_xdp_adjust_tail_shrink() 48 .data_in = &pkt_v4, in test_xdp_adjust_tail_grow() 49 .data_size_in = sizeof(pkt_v4), in test_xdp_adjust_tail_grow()
|
D | xdp.c | 18 .data_in = &pkt_v4, in test_xdp() 19 .data_size_in = sizeof(pkt_v4), in test_xdp()
|
D | skb_ctx.c | 24 .data_in = &pkt_v4, in test_skb_ctx() 25 .data_size_in = sizeof(pkt_v4), in test_skb_ctx()
|
D | trace_ext.c | 28 .data_in = &pkt_v4, in test_trace_ext() 29 .data_size_in = sizeof(pkt_v4), in test_trace_ext()
|