/external/linux-kselftest/tools/testing/selftests/bpf/prog_tests/ |
D | queue_stack_map.c | 55 pkt_v4.iph.saddr = vals[i] * 5; in test_queue_stack_map_by_type() 58 pkt_v4.iph.saddr = vals[MAP_SIZE - 1 - i] * 5; in test_queue_stack_map_by_type() 61 err = bpf_prog_test_run(prog_fd, 1, &pkt_v4, sizeof(pkt_v4), in test_queue_stack_map_by_type() 63 if (err || retval || size != sizeof(pkt_v4)) in test_queue_stack_map_by_type() 70 CHECK(err || retval || size != sizeof(pkt_v4) || iph.daddr != val, in test_queue_stack_map_by_type() 76 err = bpf_prog_test_run(prog_fd, 1, &pkt_v4, sizeof(pkt_v4), in test_queue_stack_map_by_type() 78 CHECK(err || retval != 2 /* TC_ACT_SHOT */|| size != sizeof(pkt_v4), in test_queue_stack_map_by_type() 94 pkt_v4.iph.saddr = 0; in test_queue_stack_map_by_type()
|
D | kfunc_call.c | 19 err = bpf_prog_test_run(prog_fd, 1, &pkt_v4, sizeof(pkt_v4), in test_main() 25 err = bpf_prog_test_run(prog_fd, 1, &pkt_v4, sizeof(pkt_v4), in test_main() 43 err = bpf_prog_test_run(prog_fd, 1, &pkt_v4, sizeof(pkt_v4), in test_subprog() 63 err = bpf_prog_test_run(prog_fd, 1, &pkt_v4, sizeof(pkt_v4), in test_subprog_lskel()
|
D | xdp_bpf2bpf.c | 19 if (CHECK(size < sizeof(pkt_v4) + sizeof(*meta), in on_sample() 21 size, sizeof(pkt_v4) + sizeof(*meta))) in on_sample() 28 if (CHECK(meta->pkt_len != sizeof(pkt_v4), "check_meta_pkt_len", in on_sample() 29 "meta->pkt_len = %zd\n", sizeof(pkt_v4))) in on_sample() 32 if (CHECK(memcmp(trace_pkt_v4, &pkt_v4, sizeof(pkt_v4)), in on_sample() 94 err = bpf_prog_test_run(pkt_fd, 1, &pkt_v4, sizeof(pkt_v4), in test_xdp_bpf2bpf()
|
D | ksyms_module.c | 23 err = bpf_prog_test_run(skel->progs.load.prog_fd, 1, &pkt_v4, sizeof(pkt_v4), in test_ksyms_module_lskel() 46 err = bpf_prog_test_run(bpf_program__fd(skel->progs.load), 1, &pkt_v4, in test_ksyms_module_libbpf() 47 sizeof(pkt_v4), NULL, NULL, (__u32 *)&retval, NULL); in test_ksyms_module_libbpf()
|
D | tailcalls.c | 539 err = bpf_prog_test_run(main_fd, 1, &pkt_v4, sizeof(pkt_v4), 0, in test_tailcall_bpf2bpf_1() 550 err = bpf_prog_test_run(main_fd, 1, &pkt_v4, sizeof(pkt_v4), 0, in test_tailcall_bpf2bpf_1() 563 err = bpf_prog_test_run(main_fd, 1, &pkt_v4, sizeof(pkt_v4), 0, in test_tailcall_bpf2bpf_1() 565 CHECK(err || retval != sizeof(pkt_v4) * 2, in test_tailcall_bpf2bpf_1() 700 err = bpf_prog_test_run(main_fd, 1, &pkt_v4, sizeof(pkt_v4), 0, in test_tailcall_bpf2bpf_3() 702 CHECK(err || retval != sizeof(pkt_v4) * 3, in test_tailcall_bpf2bpf_3() 711 err = bpf_prog_test_run(main_fd, 1, &pkt_v4, sizeof(pkt_v4), 0, in test_tailcall_bpf2bpf_3() 713 CHECK(err || retval != sizeof(pkt_v4), in test_tailcall_bpf2bpf_3() 722 err = bpf_prog_test_run(main_fd, 1, &pkt_v4, sizeof(pkt_v4), 0, in test_tailcall_bpf2bpf_3() 724 CHECK(err || retval != sizeof(pkt_v4) * 2, in test_tailcall_bpf2bpf_3() [all …]
|
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 | prog_run_xattr.c | 32 .data_in = &pkt_v4, in test_prog_run_xattr() 33 .data_size_in = sizeof(pkt_v4), in test_prog_run_xattr() 52 CHECK_ATTR(tattr.data_size_out != sizeof(pkt_v4), "data_size_out", in test_prog_run_xattr() 54 sizeof(pkt_v4), tattr.data_size_out); in test_prog_run_xattr()
|
D | xdp_adjust_tail.c | 17 err = bpf_prog_test_run(prog_fd, 1, &pkt_v4, sizeof(pkt_v4), in test_xdp_adjust_tail_shrink() 45 err = bpf_prog_test_run(prog_fd, 1, &pkt_v4, sizeof(pkt_v4), in test_xdp_adjust_tail_grow()
|
D | for_each.c | 46 1, &pkt_v4, sizeof(pkt_v4), NULL, NULL, in test_hash_map() 110 1, &pkt_v4, sizeof(pkt_v4), NULL, NULL, in test_array_map()
|
D | pkt_md_access.c | 16 err = bpf_prog_test_run(prog_fd, 10, &pkt_v4, sizeof(pkt_v4), in test_pkt_md_access()
|
D | check_mtu.c | 89 .data_in = &pkt_v4, in test_check_mtu_run_xdp() 90 .data_size_in = sizeof(pkt_v4), in test_check_mtu_run_xdp() 149 .data_in = &pkt_v4, in test_check_mtu_run_tc() 150 .data_size_in = sizeof(pkt_v4), in test_check_mtu_run_tc()
|
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 | pkt_access.c | 16 err = bpf_prog_test_run(prog_fd, 100000, &pkt_v4, sizeof(pkt_v4), in test_pkt_access()
|
D | test_skb_pkt_end.c | 13 err = bpf_prog_test_run(prog_fd, 1, &pkt_v4, sizeof(pkt_v4), in sanity_run()
|
D | map_ptr.c | 29 err = bpf_prog_test_run(skel->progs.cg_skb.prog_fd, 1, &pkt_v4, in test_map_ptr() 30 sizeof(pkt_v4), buf, NULL, &retval, NULL); in test_map_ptr()
|
D | flow_dissector_load_bytes.c | 40 err = bpf_prog_test_run(fd, 1, &pkt_v4, sizeof(pkt_v4), in serial_test_flow_dissector_load_bytes()
|
D | spinlock.c | 10 err = bpf_prog_test_run(prog_fd, 10000, &pkt_v4, sizeof(pkt_v4), in spin_lock_thread()
|
D | signal_pending.c | 35 err = bpf_prog_test_run(prog_fd, 0xffffffff, &pkt_v4, sizeof(pkt_v4), in test_signal_pending_by_type()
|
D | global_func_args.c | 51 err = bpf_prog_test_run(prog_fd, 1, &pkt_v4, sizeof(pkt_v4), in test_global_func_args()
|
D | xdp.c | 29 err = bpf_prog_test_run(prog_fd, 1, &pkt_v4, sizeof(pkt_v4), in test_xdp()
|
D | xdp_noinline.c | 43 NUM_ITER, &pkt_v4, sizeof(pkt_v4), in test_xdp_noinline()
|
D | trace_ext.c | 91 err = bpf_prog_test_run(pkt_fd, 1, &pkt_v4, sizeof(pkt_v4), in test_trace_ext()
|
D | map_lock.c | 10 err = bpf_prog_test_run(prog_fd, 10000, &pkt_v4, sizeof(pkt_v4), in spin_lock_thread()
|
D | l4lb_all.c | 52 err = bpf_prog_test_run(prog_fd, NUM_ITER, &pkt_v4, sizeof(pkt_v4), in test_l4lb()
|
D | skb_ctx.c | 24 .data_in = &pkt_v4, in test_skb_ctx() 25 .data_size_in = sizeof(pkt_v4), in test_skb_ctx()
|