Home
last modified time | relevance | path

Searched refs:ctx_size_out (Results 1 – 14 of 14) sorted by relevance

/openbmc/linux/tools/testing/selftests/bpf/prog_tests/
H A Dskb_ctx.c29 .ctx_size_out = sizeof(skb), in test_skb_ctx()
48 tattr.ctx_size_out = 0; in test_skb_ctx()
51 tattr.ctx_size_out = sizeof(skb); in test_skb_ctx()
80 ASSERT_EQ(tattr.ctx_size_out, sizeof(skb), "ctx_size_out"); in test_skb_ctx()
H A Dxdp_context_test_run.c38 .ctx_size_out = sizeof(ctx_out), in test_xdp_context_test_run()
68 ASSERT_EQ(opts.ctx_size_out, opts.ctx_size_in, "valid-ctxsize"); in test_xdp_context_test_run()
H A Dskb_helpers.c18 .ctx_size_out = sizeof(skb), in test_skb_helpers()
H A Dtime_tai.c33 .ctx_size_out = sizeof(skb), in test_time_tai()
H A Dsk_lookup.c1094 .ctx_size_out = sizeof(ctx), in run_sk_assign()
/openbmc/linux/tools/lib/bpf/
H A Dbpf.h455 __u32 ctx_size_out; /* in: max length of ctx_out member
623 __u32 ctx_size_out; /* in: max length of ctx_out member
H A Dbpf.c970 attr.test.ctx_size_out = OPTS_GET(opts, ctx_size_out, 0); in bpf_prog_test_run_opts()
981 OPTS_SET(opts, ctx_size_out, attr.test.ctx_size_out); in bpf_prog_test_run_opts()
/openbmc/linux/tools/bpf/bpftool/
H A Dprog.c1339 test_attr.ctx_size_out = strtoul(*argv, &endptr, 0); in do_run()
1384 if (!test_attr.ctx_size_out) in do_run()
1385 test_attr.ctx_size_out = default_size; in do_run()
1386 err = alloc_run_data(&ctx_out, test_attr.ctx_size_out); in do_run()
1415 if (test_attr.ctx_size_out) in do_run()
1417 test_attr.ctx_size_out, in do_run()
/openbmc/linux/tools/bpf/bpftool/Documentation/
H A Dbpftool-prog.rst38 …E* [**data_size_out** *L*]] [**ctx_in** *FILE* [**ctx_out** *FILE* [**ctx_size_out** *M*]]] [**rep…
189 …E* [**data_size_out** *L*]] [**ctx_in** *FILE* [**ctx_out** *FILE* [**ctx_size_out** *M*]]] [**rep…
208 **ctx_size_out** are used to pass the size (in bytes) for the
/openbmc/linux/net/bpf/
H A Dtest_run.c823 if (copy_size > kattr->test.ctx_size_out) { in bpf_ctx_finish()
824 copy_size = kattr->test.ctx_size_out; in bpf_ctx_finish()
830 if (copy_to_user(&uattr->test.ctx_size_out, &size, sizeof(size))) in bpf_ctx_finish()
/openbmc/linux/tools/bpf/bpftool/bash-completion/
H A Dbpftool580 repeat|data_size_out|ctx_size_out)
585 ctx_in ctx_out ctx_size_out repeat'
/openbmc/linux/tools/include/uapi/linux/
H A Dbpf.h1516 __u32 ctx_size_out; /* input/output: len of ctx_out member
/openbmc/linux/include/uapi/linux/
H A Dbpf.h1516 __u32 ctx_size_out; /* input/output: len of ctx_out member
/openbmc/linux/kernel/bpf/
H A Dsyscall.c4100 if ((attr->test.ctx_size_out && !attr->test.ctx_out) || in bpf_prog_test_run()
4101 (!attr->test.ctx_size_out && attr->test.ctx_out)) in bpf_prog_test_run()