Home
last modified time | relevance | path

Searched refs:ctx_out (Results 1 – 15 of 15) sorted by relevance

/linux-6.15/tools/testing/selftests/bpf/prog_tests/
H A Dxdp_context_test_run.c49 struct xdp_md ctx_in, ctx_out; in test_xdp_context_test_run() local
53 .ctx_out = &ctx_out, in test_xdp_context_test_run()
54 .ctx_size_out = sizeof(ctx_out), in test_xdp_context_test_run()
85 ASSERT_EQ(ctx_out.data_meta, 0, "valid-datameta"); in test_xdp_context_test_run()
86 ASSERT_EQ(ctx_out.data, 0, "valid-data"); in test_xdp_context_test_run()
87 ASSERT_EQ(ctx_out.data_end, sizeof(pkt_v4), "valid-dataend"); in test_xdp_context_test_run()
H A Dskb_helpers.c17 .ctx_out = &skb, in test_skb_helpers()
H A Dtime_tai.c32 .ctx_out = &skb, in test_time_tai()
H A Dskb_ctx.c28 .ctx_out = &skb, in test_skb_ctx()
H A Dsk_lookup.c1037 .ctx_out = &ctx, in run_sk_assign()
/linux-6.15/tools/lib/bpf/
H A Dbpf.h477 void *ctx_out; /* optional */ member
666 void *ctx_out; /* optional */ member
H A Dbpf.c1001 attr.test.ctx_out = ptr_to_u64(OPTS_GET(opts, ctx_out, NULL)); in bpf_prog_test_run_opts()
/linux-6.15/tools/bpf/bpftool/Documentation/
H A Dbpftool-prog.rst38 …ILE* [**data_out** *FILE* [**data_size_out** *L*]] [**ctx_in** *FILE* [**ctx_out** *FILE* [**ctx_s…
176 …OG* data_in *FILE* [data_out *FILE* [data_size_out *L*]] [ctx_in *FILE* [ctx_out *FILE* [ctx_size_…
188 passed with **ctx_out**. For both output flows, "**-**" can be used to
201 them can take the **ctx_in**/**ctx_out** arguments. bpftool does not
/linux-6.15/tools/bpf/bpftool/
H A Dprog.c1281 void *ctx_in = NULL, *ctx_out = NULL; in do_run() local
1397 err = alloc_run_data(&ctx_out, test_attr.ctx_size_out); in do_run()
1406 test_attr.ctx_out = ctx_out; in do_run()
1427 err += print_run_output(test_attr.ctx_out, in do_run()
1442 free(ctx_out); in do_run()
/linux-6.15/net/bpf/
H A Dtest_run.c762 kattr->test.ctx_out || kattr->test.duration || in bpf_prog_test_run_raw_tp()
811 void __user *data_out = u64_to_user_ptr(kattr->test.ctx_out); in bpf_ctx_init()
843 void __user *data_out = u64_to_user_ptr(kattr->test.ctx_out); in bpf_ctx_finish()
1246 (do_live && (kattr->test.data_out || kattr->test.ctx_out))) in bpf_prog_test_run_xdp()
1542 kattr->test.ctx_out || kattr->test.duration || in bpf_prog_test_run_syscall()
/linux-6.15/Documentation/bpf/
H A Dbpf_prog_run.rst70 it, etc). For this reason, setting the ``data_out`` or ``ctx_out`` attributes
/linux-6.15/tools/bpf/bpftool/bash-completion/
H A Dbpftool568 data_in|data_out|ctx_in|ctx_out)
577 ctx_in ctx_out ctx_size_out repeat'
/linux-6.15/tools/include/uapi/linux/
H A Dbpf.h1639 __aligned_u64 ctx_out; member
/linux-6.15/include/uapi/linux/
H A Dbpf.h1639 __aligned_u64 ctx_out; member
/linux-6.15/kernel/bpf/
H A Dsyscall.c4418 if ((attr->test.ctx_size_out && !attr->test.ctx_out) || in bpf_prog_test_run()
4419 (!attr->test.ctx_size_out && attr->test.ctx_out)) in bpf_prog_test_run()
5992 attr->test.ctx_out || attr->test.duration || in kern_sys_bpf()