Home
last modified time | relevance | path

Searched refs:ctx_size_in (Results 1 – 24 of 24) sorted by relevance

/linux-6.1.9/tools/testing/selftests/bpf/prog_tests/
Dxdp_context_test_run.c22 opts.ctx_size_in = sizeof(ctx); in test_xdp_context_error()
51 opts.ctx_size_in = sizeof(bad_ctx); in test_xdp_context_test_run()
59 opts.ctx_size_in = sizeof(ctx_in); 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()
Draw_tp_test_run.c18 .ctx_size_in = sizeof(args), in test_raw_tp_test_run()
47 opts.ctx_size_in = sizeof(__u64); in test_raw_tp_test_run()
52 opts.ctx_size_in = sizeof(args); in test_raw_tp_test_run()
Dskb_ctx.c27 .ctx_size_in = sizeof(skb), in test_skb_ctx()
41 tattr.ctx_size_in = 0; in test_skb_ctx()
44 tattr.ctx_size_in = sizeof(skb); in test_skb_ctx()
Ddummy_st_ops.c32 .ctx_size_in = sizeof(args), in test_dummy_init_ret_value()
58 .ctx_size_in = sizeof(args), in test_dummy_init_ptr_arg()
103 .ctx_size_in = sizeof(args), in test_dummy_multiple_args()
Dskb_helpers.c16 .ctx_size_in = sizeof(skb), in test_skb_helpers()
Dskb_load_bytes.c16 .ctx_size_in = sizeof(skb), in test_skb_load_bytes()
Dsyscall.c25 .ctx_size_in = sizeof(ctx), in test_syscall()
Dtest_profiler.c17 test_attr.ctx_size_in = sizeof(args); in sanity_run()
Dtime_tai.c31 .ctx_size_in = sizeof(skb), in test_time_tai()
Dkfunc_call.c101 topts.ctx_size_in = sizeof(args); in verify_success()
167 topts.ctx_size_in = sizeof(args); in verify_fail()
Dkfree_skb.c60 .ctx_size_in = sizeof(skb), in serial_test_kfree_skb()
Dxdp_do_redirect.c102 .ctx_size_in = sizeof(ctx_in), in serial_test_xdp_do_redirect()
Dflow_dissector.c623 topts.ctx_size_in = sizeof(ctx); in test_flow_dissector()
Dsk_lookup.c1093 .ctx_size_in = sizeof(ctx), in run_sk_assign()
/linux-6.1.9/net/bpf/
Dtest_run.c855 __u32 ctx_size_in = kattr->test.ctx_size_in; in bpf_prog_test_run_raw_tp() local
866 if (ctx_size_in < prog->aux->max_ctx_offset || in bpf_prog_test_run_raw_tp()
867 ctx_size_in > MAX_BPF_FUNC_ARGS * sizeof(u64)) in bpf_prog_test_run_raw_tp()
873 if (ctx_size_in) { in bpf_prog_test_run_raw_tp()
874 info.ctx = memdup_user(ctx_in, ctx_size_in); in bpf_prog_test_run_raw_tp()
912 u32 size = kattr->test.ctx_size_in; in bpf_ctx_init()
1606 __u32 ctx_size_in = kattr->test.ctx_size_in; in bpf_prog_test_run_syscall() local
1618 if (ctx_size_in < prog->aux->max_ctx_offset || in bpf_prog_test_run_syscall()
1619 ctx_size_in > U16_MAX) in bpf_prog_test_run_syscall()
1622 if (ctx_size_in) { in bpf_prog_test_run_syscall()
[all …]
Dbpf_dummy_struct_ops.c28 size_in = kattr->test.ctx_size_in; in dummy_ops_init_args()
/linux-6.1.9/tools/lib/bpf/
Dbpf.h358 __u32 ctx_size_in; member
425 __u32 ctx_size_in; member
Dskel_internal.h351 attr.test.ctx_size_in = opts->ctx->sz; in bpf_load_and_run()
Dbpf.c883 attr.test.ctx_size_in = OPTS_GET(opts, ctx_size_in, 0); in bpf_prog_test_run_opts()
/linux-6.1.9/tools/perf/util/
Dbpf_counter.h127 .ctx_size_in = 0, in bperf_trigger_reading()
/linux-6.1.9/kernel/bpf/
Dsyscall.c3615 if ((attr->test.ctx_size_in && !attr->test.ctx_in) || in bpf_prog_test_run()
3616 (!attr->test.ctx_size_in && attr->test.ctx_in)) in bpf_prog_test_run()
5126 if (attr->test.ctx_size_in < prog->aux->max_ctx_offset || in kern_sys_bpf()
5127 attr->test.ctx_size_in > U16_MAX) { in kern_sys_bpf()
/linux-6.1.9/tools/include/uapi/linux/
Dbpf.h1424 __u32 ctx_size_in; /* input: len of ctx_in */ member
/linux-6.1.9/include/uapi/linux/
Dbpf.h1424 __u32 ctx_size_in; /* input: len of ctx_in */ member
/linux-6.1.9/tools/bpf/bpftool/
Dprog.c1374 err = get_run_data(ctx_fname_in, &ctx_in, &test_attr.ctx_size_in); in do_run()