Lines Matching refs:test
3626 #define BPF_PROG_TEST_RUN_LAST_FIELD test.batch_size
3637 if ((attr->test.ctx_size_in && !attr->test.ctx_in) || in bpf_prog_test_run()
3638 (!attr->test.ctx_size_in && attr->test.ctx_in)) in bpf_prog_test_run()
3641 if ((attr->test.ctx_size_out && !attr->test.ctx_out) || in bpf_prog_test_run()
3642 (!attr->test.ctx_size_out && attr->test.ctx_out)) in bpf_prog_test_run()
3645 prog = bpf_prog_get(attr->test.prog_fd); in bpf_prog_test_run()
5141 if (attr->test.data_in || attr->test.data_out || in kern_sys_bpf()
5142 attr->test.ctx_out || attr->test.duration || in kern_sys_bpf()
5143 attr->test.repeat || attr->test.flags) in kern_sys_bpf()
5146 prog = bpf_prog_get_type(attr->test.prog_fd, BPF_PROG_TYPE_SYSCALL); in kern_sys_bpf()
5150 if (attr->test.ctx_size_in < prog->aux->max_ctx_offset || in kern_sys_bpf()
5151 attr->test.ctx_size_in > U16_MAX) { in kern_sys_bpf()
5163 attr->test.retval = bpf_prog_run(prog, (void *) (long) attr->test.ctx_in); in kern_sys_bpf()