/linux/tools/testing/selftests/bpf/prog_tests/ |
H A D | empty_skb.c | 23 __u32 data_size_in; in test_empty_skb() member 36 .data_size_in = 0, in test_empty_skb() 44 .data_size_in = 0, in test_empty_skb() 58 .data_size_in = sizeof(eth_hlen), in test_empty_skb() 72 .data_size_in = sizeof(eth_hlen), in test_empty_skb() 83 .data_size_in = sizeof(eth_hlen_pp), in test_empty_skb() 90 .data_size_in = sizeof(eth_hlen_pp), in test_empty_skb() 125 tattr.data_size_in = tests[i].data_size_in; in test_empty_skb()
|
H A D | xdp_adjust_tail.c | 14 .data_size_in = sizeof(pkt_v4), in test_xdp_adjust_tail_shrink() 30 topts.data_size_in = sizeof(pkt_v6); in test_xdp_adjust_tail_shrink() 49 .data_size_in = sizeof(pkt_v4), in test_xdp_adjust_tail_grow() 65 topts.data_size_in = sizeof(pkt_v6); in test_xdp_adjust_tail_grow() 93 .data_size_in = 0, /* Per test */ in test_xdp_adjust_tail_grow2() 103 tattr.data_size_in = 64; /* Determine test case via pkt size */ in test_xdp_adjust_tail_grow2() 122 tattr.data_size_in = 128; /* Determine test case via pkt size */ in test_xdp_adjust_tail_grow2() 136 ASSERT_EQ(cnt, max_grow - tattr.data_size_in, "case-128-data cnt"); /* Grow increase */ in test_xdp_adjust_tail_grow2() 175 topts.data_size_in = 9000; in test_xdp_adjust_frags_tail_shrink() 239 topts.data_size_in = 9000; in test_xdp_adjust_frags_tail_grow() [all …]
|
H A D | rbtree.c | 16 .data_size_in = sizeof(pkt_v4), in test_rbtree_add_nodes() 38 .data_size_in = sizeof(pkt_v4), in test_rbtree_add_nodes_nested() 60 .data_size_in = sizeof(pkt_v4), in test_rbtree_add_and_remove() 82 .data_size_in = sizeof(pkt_v4), in test_rbtree_add_and_remove_array() 103 .data_size_in = sizeof(pkt_v4), in test_rbtree_first_and_remove() 127 .data_size_in = sizeof(pkt_v4), in test_rbtree_api_release_aliasing()
|
H A D | local_kptr_stash.c | 13 .data_size_in = sizeof(pkt_v4), in test_local_kptr_stash_simple() 34 .data_size_in = sizeof(pkt_v4), in test_local_kptr_stash_plain() 55 .data_size_in = sizeof(pkt_v4), in test_local_kptr_stash_local_with_root() 76 .data_size_in = sizeof(pkt_v4), in test_local_kptr_stash_unstash() 101 .data_size_in = sizeof(pkt_v4), in test_refcount_acquire_without_unstash()
|
H A D | pkt_access.c | 12 .data_size_in = sizeof(pkt_v4), in test_pkt_access() 25 topts.data_size_in = sizeof(pkt_v6); in test_pkt_access()
|
H A D | xdp_adjust_frags.c | 38 topts.data_size_in = 128; in test_xdp_update_frags() 63 topts.data_size_in = 9000; in test_xdp_update_frags() 131 topts.data_size_in = buf_size; in test_xdp_update_frags()
|
H A D | ksyms_module.c | 15 .data_size_in = sizeof(pkt_v4), in test_ksyms_module_lskel() 42 .data_size_in = sizeof(pkt_v4), in test_ksyms_module_libbpf()
|
H A D | kfunc_call.c | 111 topts.data_size_in = sizeof(pkt_v4); in verify_success() 177 topts.data_size_in = sizeof(pkt_v4); in verify_fail() 240 .data_size_in = sizeof(pkt_v4), in test_subprog() 264 .data_size_in = sizeof(pkt_v4), in test_subprog_lskel()
|
H A D | tailcalls.c | 26 .data_size_in = sizeof(buff), in test_tailcall_1() 162 .data_size_in = sizeof(buff), in test_tailcall_2() 239 .data_size_in = sizeof(buff), in test_tailcall_count() 423 .data_size_in = sizeof(buff), in test_tailcall_4() 513 .data_size_in = sizeof(buff), in test_tailcall_5() 601 .data_size_in = sizeof(pkt_v4), in test_tailcall_bpf2bpf_1() 685 .data_size_in = sizeof(buff), in test_tailcall_bpf2bpf_2() 765 .data_size_in = sizeof(pkt_v4), in test_tailcall_bpf2bpf_3() 860 .data_size_in = sizeof(pkt_v4), in test_tailcall_bpf2bpf_4() 940 .data_size_in = sizeof(pkt_v4), in test_tailcall_bpf2bpf_6() [all …]
|
H A D | xdp.c | 19 .data_size_in = sizeof(pkt_v4), in test_xdp() 43 topts.data_size_in = sizeof(pkt_v6); in test_xdp()
|
H A D | parse_tcp_hdr_opt.c | 37 .data_size_in = sizeof(pkt), in test_parse_opt() 67 .data_size_in = sizeof(pkt), in test_parse_opt_dynptr()
|
H A D | xdp_do_redirect.c | 74 .data_size_in = MAX_PKT_SIZE, in test_max_pkt_size() 81 opts.data_size_in += 1; in test_max_pkt_size() 99 .data_size_in = sizeof(data), in test_xdp_do_redirect()
|
H A D | xdp_noinline.c | 34 .data_size_in = sizeof(pkt_v4), in test_xdp_noinline() 55 topts.data_size_in = sizeof(pkt_v6); in test_xdp_noinline()
|
H A D | dynptr.c | 75 .data_size_in = sizeof(pkt_v4), in verify_success() 106 .data_size_in = sizeof(pkt_v4), in verify_success()
|
H A D | type_cast.c | 15 .data_size_in = sizeof(pkt_v4), in test_xdp() 51 .data_size_in = sizeof(pkt_v4), in test_tc()
|
H A D | l4lb_all.c | 57 topts.data_size_in = sizeof(pkt_v4); in test_l4lb() 66 topts.data_size_in = sizeof(pkt_v6); in test_l4lb()
|
H A D | for_each.c | 22 .data_size_in = sizeof(pkt_v4), in test_hash_map() 88 .data_size_in = sizeof(pkt_v4), in test_array_map() 156 .data_size_in = sizeof(pkt_v4), in test_multi_maps()
|
H A D | check_mtu.c | 89 .data_size_in = sizeof(pkt_v4), in test_check_mtu_run_xdp() 141 .data_size_in = sizeof(pkt_v4), in test_check_mtu_run_tc()
|
H A D | pkt_md_access.c | 12 .data_size_in = sizeof(pkt_v4), in test_pkt_md_access()
|
H A D | jit_probe_mem.c | 12 .data_size_in = sizeof(pkt_v4), in test_jit_probe_mem()
|
H A D | skb_helpers.c | 14 .data_size_in = sizeof(pkt_v4), in test_skb_helpers()
|
H A D | xdp_perf.c | 12 .data_size_in = sizeof(in), in test_xdp_perf()
|
H A D | map_ptr.c | 17 .data_size_in = sizeof(pkt_v4), in test_map_ptr()
|
H A D | test_skb_pkt_end.c | 12 .data_size_in = sizeof(pkt_v4), in sanity_run()
|
/linux/net/bpf/ |
H A D | test_run.c | 987 u32 size = kattr->test.data_size_in; in bpf_prog_test_run_skb() 1001 data = bpf_test_init(kattr, kattr->test.data_size_in, in bpf_prog_test_run_skb() 1208 u32 size = kattr->test.data_size_in; in bpf_prog_test_run_xdp() 1278 if (unlikely(kattr->test.data_size_in > size)) { in bpf_prog_test_run_xdp() 1281 while (size < kattr->test.data_size_in) { in bpf_prog_test_run_xdp() 1299 data_len = min_t(u32, kattr->test.data_size_in - size, in bpf_prog_test_run_xdp() 1368 u32 size = kattr->test.data_size_in; in bpf_prog_test_run_flow_dissector() 1385 data = bpf_test_init(kattr, kattr->test.data_size_in, size, 0, 0); in bpf_prog_test_run_flow_dissector() 1446 if (kattr->test.data_in || kattr->test.data_size_in || kattr->test.data_out || in bpf_prog_test_run_sk_lookup() 1640 u32 size = kattr->test.data_size_in; in bpf_prog_test_run_nf() [all …]
|