/linux/tools/testing/selftests/bpf/prog_tests/ |
H A D | xdp_adjust_tail.c | 16 .data_size_out = sizeof(buf), in test_xdp_adjust_tail_shrink() 31 topts.data_size_out = sizeof(buf); in test_xdp_adjust_tail_shrink() 35 ASSERT_EQ(topts.data_size_out, expect_sz, "ipv6 size"); in test_xdp_adjust_tail_shrink() 51 .data_size_out = sizeof(buf), in test_xdp_adjust_tail_grow() 66 topts.data_size_out = sizeof(buf); in test_xdp_adjust_tail_grow() 70 ASSERT_EQ(topts.data_size_out, expect_sz, "ipv6 size"); in test_xdp_adjust_tail_grow() 94 .data_size_out = 0, /* Per test */ in test_xdp_adjust_tail_grow2() 104 tattr.data_size_out = 128; /* Limit copy_size */ in test_xdp_adjust_tail_grow2() 110 ASSERT_EQ(tattr.data_size_out, 192, "case-64 data_size_out"); /* Expected grow size */ in test_xdp_adjust_tail_grow2() 123 tattr.data_size_out = sizeof(buf); /* Copy everything */ in test_xdp_adjust_tail_grow2() [all …]
|
H A D | queue_stack_map.c | 22 .data_size_out = sizeof(buf), in test_queue_stack_map_by_type() 68 topts.data_size_out = sizeof(buf); 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() 85 topts.data_size_out = sizeof(buf); in test_queue_stack_map_by_type() 90 ASSERT_EQ(topts.data_size_out, sizeof(pkt_v4), in test_queue_stack_map_by_type()
|
H A D | xdp.c | 21 .data_size_out = sizeof(buf), in test_xdp() 39 ASSERT_EQ(topts.data_size_out, 74, "ipv4 test_run data_size_out"); in test_xdp() 44 topts.data_size_out = sizeof(buf); in test_xdp() 50 ASSERT_EQ(topts.data_size_out, 114, "ipv6 test_run data_size_out"); in test_xdp()
|
H A D | xdp_noinline.c | 36 .data_size_out = sizeof(buf), in test_xdp_noinline() 51 ASSERT_EQ(topts.data_size_out, 54, "ipv4 test_run data_size_out"); in test_xdp_noinline() 57 topts.data_size_out = sizeof(buf); in test_xdp_noinline() 62 ASSERT_EQ(topts.data_size_out, 74, "ipv6 test_run data_size_out"); in test_xdp_noinline()
|
H A D | l4lb_all.c | 33 .data_size_out = sizeof(buf), in test_l4lb() 62 ASSERT_EQ(topts.data_size_out, 54, "ipv4 test_run data_size_out"); in test_l4lb() 67 topts.data_size_out = sizeof(buf); /* reset out size */ in test_l4lb() 72 ASSERT_EQ(topts.data_size_out, 74, "ipv6 test_run data_size_out"); in test_l4lb()
|
H A D | prog_run_opts.c | 35 .data_size_out = 5, 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() 60 topts.data_size_out = 0; in test_prog_run_opts()
|
H A D | xdp_perf.c | 14 .data_size_out = sizeof(out), in test_xdp_perf() 25 ASSERT_EQ(topts.data_size_out, 128, "test_run data_size_out"); in test_xdp_perf()
|
H A D | xdp_adjust_frags.c | 39 topts.data_size_out = 128; in test_xdp_update_frags() 64 topts.data_size_out = 9000; in test_xdp_update_frags() 132 topts.data_size_out = buf_size; in test_xdp_update_frags()
|
H A D | flow_dissector_load_bytes.c | 33 .data_size_out = sizeof(flow_keys), in serial_test_flow_dissector_load_bytes() 45 ASSERT_EQ(topts.data_size_out, sizeof(flow_keys), in serial_test_flow_dissector_load_bytes()
|
H A D | parse_tcp_hdr_opt.c | 39 .data_size_out = sizeof(buf), in test_parse_opt() 69 .data_size_out = sizeof(buf), in test_parse_opt_dynptr()
|
H A D | xdp_bpf2bpf.c | 79 topts.data_size_out = BUF_SZ; in run_xdp_bpf2bpf_pkt_size() 85 ASSERT_EQ(topts.data_size_out, pkt_size, "ipv4 size"); in run_xdp_bpf2bpf_pkt_size()
|
H A D | check_mtu.c | 91 .data_size_out = sizeof(buf), in test_check_mtu_run_xdp() 143 .data_size_out = sizeof(buf), in test_check_mtu_run_tc()
|
H A D | pkt_access.c | 26 topts.data_size_out = 0; /* reset from last call */ in test_pkt_access()
|
H A D | map_ptr.c | 19 .data_size_out = sizeof(buf), in test_map_ptr()
|
H A D | dynptr.c | 77 .data_size_out = sizeof(buf), in verify_success()
|
H A D | type_cast.c | 17 .data_size_out = sizeof(buf), in test_xdp()
|
H A D | xdp_context_test_run.c | 67 ASSERT_EQ(opts.data_size_out, sizeof(pkt_v4), "valid-datasize"); in test_xdp_context_test_run()
|
H A D | empty_skb.c | 127 tattr.data_size_out = 0; in test_empty_skb()
|
H A D | cls_redirect.c | 135 return tattr->data_size_out < tattr->data_size_in; in was_decapsulated() 380 tattr.data_size_out = sizeof(tmp); in test_cls_redirect_common()
|
H A D | flow_dissector.c | 657 ASSERT_EQ(topts.data_size_out, sizeof(flow_keys), in test_flow_dissector()
|
/linux/tools/lib/bpf/ |
H A D | bpf.h | 468 __u32 data_size_out; /* in: max length of data_out member 658 __u32 data_size_out; /* in: max length of data_out member
|
/linux/tools/bpf/bpftool/ |
H A D | prog.c | 1295 "data_size_out", NULL)) in do_run() 1315 } else if (is_prefix(*argv, "data_size_out")) { in do_run() 1322 test_attr.data_size_out = strtoul(*argv, &endptr, 0); in do_run() 1372 p_err("expected no more arguments, 'data_in', 'data_out', 'data_size_out', 'ctx_in', 'ctx_out', 'ctx_size_out' or 'repeat', got: '%s'?", in do_run() 1383 if (!test_attr.data_size_out) in do_run() 1384 test_attr.data_size_out = default_size; in do_run() 1385 err = alloc_run_data(&data_out, test_attr.data_size_out); in do_run() 1422 if (test_attr.data_size_out) in do_run() 1424 test_attr.data_size_out, in do_run() 2480 " [data_out FILE [data_size_out in do_help() [all...] |
/linux/net/bpf/ |
H A D | test_run.c | 460 if (kattr->test.data_size_out && in bpf_test_finish() 461 copy_size > kattr->test.data_size_out) { in bpf_test_finish() 462 copy_size = kattr->test.data_size_out; in bpf_test_finish() 502 if (copy_to_user(&uattr->test.data_size_out, &size, sizeof(size))) in bpf_test_finish() 1447 kattr->test.data_size_out) in bpf_prog_test_run_sk_lookup()
|
/linux/tools/bpf/bpftool/Documentation/ |
H A D | bpftool-prog.rst | 38 | **bpftool** **prog run** *PROG* **data_in** *FILE* [**data_out** *FILE* [**data_size_out** *L*]] … 176 bpftool prog run *PROG* data_in *FILE* [data_out *FILE* [data_size_out *L*]] [ctx_in *FILE* [ctx_ou… 191 discarded. Keywords **data_size_out** and **ctx_size_out** are used to pass
|
/linux/tools/bpf/bpftool/bash-completion/ |
H A D | bpftool | 572 repeat|data_size_out|ctx_size_out) 576 _bpftool_once_attr 'data_in data_out data_size_out \
|