/linux-6.3-rc2/tools/testing/selftests/bpf/prog_tests/ |
A D | xdp_context_test_run.c | 22 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()
|
A D | dummy_st_ops.c | 33 .ctx_size_in = sizeof(args), in test_dummy_init_ret_value() 59 .ctx_size_in = sizeof(args), in test_dummy_init_ptr_arg() 104 .ctx_size_in = sizeof(args), in test_dummy_multiple_args() 131 .ctx_size_in = sizeof(args), in test_dummy_sleepable()
|
A D | raw_tp_test_run.c | 18 .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()
|
A D | skb_ctx.c | 27 .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()
|
A D | skb_helpers.c | 16 .ctx_size_in = sizeof(skb), in test_skb_helpers()
|
A D | skb_load_bytes.c | 16 .ctx_size_in = sizeof(skb), in test_skb_load_bytes()
|
A D | syscall.c | 25 .ctx_size_in = sizeof(ctx), in test_syscall()
|
A D | test_profiler.c | 17 test_attr.ctx_size_in = sizeof(args); in sanity_run()
|
A D | time_tai.c | 31 .ctx_size_in = sizeof(skb), in test_time_tai()
|
A D | kfunc_call.c | 103 topts.ctx_size_in = sizeof(args); in verify_success() 169 topts.ctx_size_in = sizeof(args); in verify_fail()
|
A D | kfree_skb.c | 60 .ctx_size_in = sizeof(skb), in serial_test_kfree_skb()
|
A D | fib_lookup.c | 135 .ctx_size_in = sizeof(skb), in test_fib_lookup()
|
A D | xdp_do_redirect.c | 109 .ctx_size_in = sizeof(ctx_in), in test_xdp_do_redirect()
|
A D | flow_dissector.c | 623 topts.ctx_size_in = sizeof(ctx); in test_flow_dissector()
|
/linux-6.3-rc2/net/bpf/ |
A D | test_run.c | 889 __u32 ctx_size_in = kattr->test.ctx_size_in; in bpf_prog_test_run_raw_tp() local 900 if (ctx_size_in < prog->aux->max_ctx_offset || in bpf_prog_test_run_raw_tp() 907 if (ctx_size_in) { in bpf_prog_test_run_raw_tp() 908 info.ctx = memdup_user(ctx_in, ctx_size_in); in bpf_prog_test_run_raw_tp() 946 u32 size = kattr->test.ctx_size_in; in bpf_ctx_init() 1643 __u32 ctx_size_in = kattr->test.ctx_size_in; in bpf_prog_test_run_syscall() local 1656 ctx_size_in > U16_MAX) in bpf_prog_test_run_syscall() 1659 if (ctx_size_in) { in bpf_prog_test_run_syscall() 1660 ctx = memdup_user(ctx_in, ctx_size_in); in bpf_prog_test_run_syscall() 1673 if (ctx_size_in) in bpf_prog_test_run_syscall() [all …]
|
A D | bpf_dummy_struct_ops.c | 28 size_in = kattr->test.ctx_size_in; in dummy_ops_init_args()
|
/linux-6.3-rc2/samples/hid/ |
A D | hid_surface_dial.c | 98 .ctx_size_in = sizeof(args), in attach_prog() 126 .ctx_size_in = sizeof(args), in set_haptic()
|
A D | hid_mouse.c | 89 .ctx_size_in = sizeof(args), in main()
|
/linux-6.3-rc2/tools/perf/util/ |
A D | bpf_counter.h | 127 .ctx_size_in = 0, in bperf_trigger_reading()
|
/linux-6.3-rc2/tools/lib/bpf/ |
A D | bpf.h | 358 __u32 ctx_size_in; member 450 __u32 ctx_size_in; member
|
A D | skel_internal.h | 351 attr.test.ctx_size_in = opts->ctx->sz; in bpf_load_and_run()
|
A D | bpf.c | 883 attr.test.ctx_size_in = OPTS_GET(opts, ctx_size_in, 0); in bpf_prog_test_run_opts()
|
/linux-6.3-rc2/tools/testing/selftests/hid/ |
A D | hid_bpf.c | 520 .ctx_size_in = sizeof(args), in load_programs() 751 .ctx_size_in = sizeof(args), in TEST_F()
|
/linux-6.3-rc2/Documentation/hid/ |
A D | hid-bpf.rst | 422 .ctx_size_in = sizeof(args), 503 .ctx_size_in = sizeof(args),
|
/linux-6.3-rc2/kernel/bpf/ |
A D | syscall.c | 3644 if ((attr->test.ctx_size_in && !attr->test.ctx_in) || in bpf_prog_test_run() 3645 (!attr->test.ctx_size_in && attr->test.ctx_in)) in bpf_prog_test_run() 5155 if (attr->test.ctx_size_in < prog->aux->max_ctx_offset || in kern_sys_bpf() 5156 attr->test.ctx_size_in > U16_MAX) { in kern_sys_bpf()
|