/linux/tools/testing/selftests/bpf/prog_tests/ |
H A D | xdp_context_test_run.c | 33 struct xdp_md ctx_in, ctx_out; in test_xdp_context_test_run() local 37 .ctx_out = &ctx_out, in test_xdp_context_test_run() 38 .ctx_size_out = sizeof(ctx_out), in test_xdp_context_test_run() 69 ASSERT_EQ(ctx_out.data_meta, 0, "valid-datameta"); in test_xdp_context_test_run() 70 ASSERT_EQ(ctx_out.data, 0, "valid-data"); 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 | skb_helpers.c | 17 .ctx_out = &skb, in test_skb_helpers()
|
H A D | time_tai.c | 32 .ctx_out = &skb, in test_time_tai()
|
H A D | skb_ctx.c | 28 .ctx_out = &skb, in test_skb_ctx()
|
H A D | sk_lookup.c | 1037 .ctx_out = &ctx, in test_drop_on_reuseport()
|
/linux/tools/lib/bpf/ |
H A D | bpf.h | 474 void *ctx_out; /* optional */ member 475 __u32 ctx_size_out; /* in: max length of ctx_out 662 void *ctx_out; /* optional */ member 664 __u32 ctx_size_out; /* in: max length of ctx_out
|
H A D | bpf.c | 999 attr.test.ctx_out = ptr_to_u64(OPTS_GET(opts, ctx_out, NULL)); in bpf_prog_test_run_opts()
|
/linux/tools/bpf/bpftool/Documentation/ |
H A D | bpftool-prog.rst | 38 …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/tools/bpf/bpftool/ |
H A D | prog.c | 1274 void *ctx_in = NULL, *ctx_out = NULL; in do_run() local 1390 err = alloc_run_data(&ctx_out, test_attr.ctx_size_out); in do_run() 1399 test_attr.ctx_out = ctx_out; in do_run() 1420 err += print_run_output(test_attr.ctx_out, in do_run() 1435 free(ctx_out); in do_run()
|
/linux/net/bpf/ |
H A D | test_run.c | 764 kattr->test.ctx_out || kattr->test.duration || in bpf_prog_test_run_raw_tp() 813 void __user *data_out = u64_to_user_ptr(kattr->test.ctx_out); in bpf_ctx_init() 845 void __user *data_out = u64_to_user_ptr(kattr->test.ctx_out); in bpf_ctx_finish() 1247 (do_live && (kattr->test.data_out || kattr->test.ctx_out))) in bpf_prog_test_run_xdp() 1543 kattr->test.ctx_out || kattr->test.duration || in bpf_prog_test_run_syscall()
|
/linux/Documentation/bpf/ |
H A D | bpf_prog_run.rst | 70 it, etc). For this reason, setting the ``data_out`` or ``ctx_out`` attributes
|
/linux/tools/bpf/bpftool/bash-completion/ |
H A D | bpftool | 568 data_in|data_out|ctx_in|ctx_out) 577 ctx_in ctx_out ctx_size_out repeat'
|
/linux/include/uapi/linux/ |
H A D | bpf.h | 360 * *ctx_out*, *data_out* (for example, packet data), result of the 364 * parameters *ctx_in*, *ctx_out*, *data_in*, and *data_out* must 378 * *ctx_out*, *data_in* and *data_out* must be NULL. 1616 __u32 ctx_size_out; /* input/output: len of ctx_out 1617 * returns ENOSPC if ctx_out 1621 __aligned_u64 ctx_out; member
|
/linux/tools/include/uapi/linux/ |
H A D | bpf.h | 360 * *ctx_out*, *data_out* (for example, packet data), result of the 364 * parameters *ctx_in*, *ctx_out*, *data_in*, and *data_out* must 378 * *ctx_out*, *data_in* and *data_out* must be NULL. 1616 __u32 ctx_size_out; /* input/output: len of ctx_out 1617 * returns ENOSPC if ctx_out 1621 __aligned_u64 ctx_out; member
|
/linux/kernel/bpf/ |
H A D | syscall.c | 4238 if ((attr->test.ctx_size_out && !attr->test.ctx_out) || in bpf_prog_query() 4239 (!attr->test.ctx_size_out && attr->test.ctx_out)) in bpf_prog_query() 5792 attr->test.ctx_out || attr->test.duration || in __sys_bpf()
|