/linux/tools/testing/selftests/bpf/prog_tests/ |
H A 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 …]
|
H A D | rbtree.c | 15 .data_in = &pkt_v4, in test_rbtree_add_nodes() 16 .data_size_in = sizeof(pkt_v4), in test_rbtree_add_nodes() 37 .data_in = &pkt_v4, in test_rbtree_add_nodes_nested() 38 .data_size_in = sizeof(pkt_v4), in test_rbtree_add_nodes_nested() 59 .data_in = &pkt_v4, in test_rbtree_add_and_remove() 60 .data_size_in = sizeof(pkt_v4), in test_rbtree_add_and_remove() 81 .data_in = &pkt_v4, in test_rbtree_add_and_remove_array() 82 .data_size_in = sizeof(pkt_v4), in test_rbtree_add_and_remove_array() 102 .data_in = &pkt_v4, in test_rbtree_first_and_remove() 103 .data_size_in = sizeof(pkt_v4), in test_rbtree_first_and_remove() [all …]
|
H A D | local_kptr_stash.c | 12 .data_in = &pkt_v4, in test_local_kptr_stash_simple() 13 .data_size_in = sizeof(pkt_v4), in test_local_kptr_stash_simple() 33 .data_in = &pkt_v4, in test_local_kptr_stash_plain() 34 .data_size_in = sizeof(pkt_v4), in test_local_kptr_stash_plain() 54 .data_in = &pkt_v4, in test_local_kptr_stash_local_with_root() 55 .data_size_in = sizeof(pkt_v4), in test_local_kptr_stash_local_with_root() 75 .data_in = &pkt_v4, in test_local_kptr_stash_unstash() 76 .data_size_in = sizeof(pkt_v4), in test_local_kptr_stash_unstash() 100 .data_in = &pkt_v4, in test_refcount_acquire_without_unstash() 101 .data_size_in = sizeof(pkt_v4), in test_refcount_acquire_without_unstash()
|
H A 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()
|
H A 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()
|
H A 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()
|
H A D | kfunc_call.c | 110 topts.data_in = &pkt_v4; in verify_success() 111 topts.data_size_in = sizeof(pkt_v4); in verify_success() 176 topts.data_in = &pkt_v4; in verify_fail() 177 topts.data_size_in = sizeof(pkt_v4); in verify_fail() 239 .data_in = &pkt_v4, in test_subprog() 240 .data_size_in = sizeof(pkt_v4), in test_subprog() 263 .data_in = &pkt_v4, in test_subprog_lskel() 264 .data_size_in = sizeof(pkt_v4), in test_subprog_lskel()
|
H A D | dynptr.c | 74 .data_in = &pkt_v4, in verify_success() 75 .data_size_in = sizeof(pkt_v4), in verify_success() 105 .data_in = &pkt_v4, in verify_success() 106 .data_size_in = sizeof(pkt_v4), in verify_success()
|
H A D | type_cast.c | 14 .data_in = &pkt_v4, in test_xdp() 15 .data_size_in = sizeof(pkt_v4), in test_xdp() 50 .data_in = &pkt_v4, in test_tc() 51 .data_size_in = sizeof(pkt_v4), in test_tc()
|
H A D | for_each.c | 21 .data_in = &pkt_v4, in test_hash_map() 22 .data_size_in = sizeof(pkt_v4), in test_hash_map() 87 .data_in = &pkt_v4, in test_array_map() 88 .data_size_in = sizeof(pkt_v4), in test_array_map() 155 .data_in = &pkt_v4, in test_multi_maps() 156 .data_size_in = sizeof(pkt_v4), in test_multi_maps()
|
H A 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()
|
H A 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()
|
H A 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()
|
H A D | jit_probe_mem.c | 11 .data_in = &pkt_v4, in test_jit_probe_mem() 12 .data_size_in = sizeof(pkt_v4), in test_jit_probe_mem()
|
H A D | skb_helpers.c | 13 .data_in = &pkt_v4, in test_skb_helpers() 14 .data_size_in = sizeof(pkt_v4), in test_skb_helpers()
|
H A D | pkt_access.c | 11 .data_in = &pkt_v4, in test_pkt_access() 12 .data_size_in = sizeof(pkt_v4), in test_pkt_access()
|
H A D | map_ptr.c | 16 .data_in = &pkt_v4, in test_map_ptr() 17 .data_size_in = sizeof(pkt_v4), in test_map_ptr()
|
H A D | test_skb_pkt_end.c | 11 .data_in = &pkt_v4, in sanity_run() 12 .data_size_in = sizeof(pkt_v4), in sanity_run()
|
H A D | refcounted_kptr.c | 23 .data_in = &pkt_v4, in test_refcounted_kptr_wrong_owner() 24 .data_size_in = sizeof(pkt_v4), in test_refcounted_kptr_wrong_owner()
|
H A 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()
|
H A D | cb_refs.c | 31 .data_in = &pkt_v4, in test_cb_refs() 32 .data_size_in = sizeof(pkt_v4), in test_cb_refs()
|
H A 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()
|
H A 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()
|
H A 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()
|
H A 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()
|