/linux-master/tools/testing/selftests/bpf/prog_tests/ |
H A D | xdp_context_test_run.c | 33 struct xdp_md ctx_in, ctx_out; local 37 .ctx_out = &ctx_out, 38 .ctx_size_out = sizeof(ctx_out), 69 ASSERT_EQ(ctx_out.data_meta, 0, "valid-datameta"); 70 ASSERT_EQ(ctx_out.data, 0, "valid-data"); 71 ASSERT_EQ(ctx_out.data_end, sizeof(pkt_v4), "valid-dataend");
|
H A D | skb_helpers.c | 17 .ctx_out = &skb,
|
H A D | time_tai.c | 32 .ctx_out = &skb,
|
H A D | skb_ctx.c | 28 .ctx_out = &skb, 46 /* ctx_out != NULL, ctx_size_out == 0 */
|
H A D | sk_lookup.c | 1094 .ctx_out = &ctx,
|
/linux-master/tools/lib/bpf/ |
H A D | bpf.h | 474 void *ctx_out; /* optional */ member in struct:bpf_prog_test_run_attr 475 __u32 ctx_size_out; /* in: max length of ctx_out 653 void *ctx_out; /* optional */ member in struct:bpf_test_run_opts 655 __u32 ctx_size_out; /* in: max length of ctx_out
|
H A D | bpf.c | 997 attr.test.ctx_out = ptr_to_u64(OPTS_GET(opts, ctx_out, NULL));
|
/linux-master/tools/bpf/bpftool/ |
H A D | prog.c | 1274 void *ctx_in = NULL, *ctx_out = NULL; local 1290 if (detect_common_prefix(*argv, "ctx_in", "ctx_out", 1330 } else if (is_prefix(*argv, "ctx_out")) { 1365 p_err("expected no more arguments, 'data_in', 'data_out', 'data_size_out', 'ctx_in', 'ctx_out', 'ctx_size_out' or 'repeat', got: '%s'?", 1390 err = alloc_run_data(&ctx_out, test_attr.ctx_size_out); 1399 test_attr.ctx_out = ctx_out; 1420 err += print_run_output(test_attr.ctx_out, 1422 ctx_fname_out, "ctx_out"); 1435 free(ctx_out); [all...] |
/linux-master/net/bpf/ |
H A D | test_run.c | 738 /* doesn't support data_in/out, ctx_out, duration, or repeat */ 740 kattr->test.ctx_out || kattr->test.duration || 789 void __user *data_out = u64_to_user_ptr(kattr->test.ctx_out); 821 void __user *data_out = u64_to_user_ptr(kattr->test.ctx_out); 1197 (do_live && (kattr->test.data_out || kattr->test.ctx_out))) 1491 /* doesn't support data_in/out, ctx_out, duration, or repeat or flags */ 1493 kattr->test.ctx_out || kattr->test.duration ||
|
/linux-master/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. 1612 __u32 ctx_size_out; /* input/output: len of ctx_out 1613 * returns ENOSPC if ctx_out 1617 __aligned_u64 ctx_out; member in struct:bpf_attr::__anon2599
|
/linux-master/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. 1612 __u32 ctx_size_out; /* input/output: len of ctx_out 1613 * returns ENOSPC if ctx_out 1617 __aligned_u64 ctx_out; member in struct:bpf_attr::__anon3140
|
/linux-master/kernel/bpf/ |
H A D | syscall.c | 4260 if ((attr->test.ctx_size_out && !attr->test.ctx_out) || 4261 (!attr->test.ctx_size_out && attr->test.ctx_out)) 5818 attr->test.ctx_out || attr->test.duration ||
|