Lines Matching refs:test
4268 #define BPF_PROG_TEST_RUN_LAST_FIELD test.batch_size
4279 if ((attr->test.ctx_size_in && !attr->test.ctx_in) ||
4280 (!attr->test.ctx_size_in && attr->test.ctx_in))
4283 if ((attr->test.ctx_size_out && !attr->test.ctx_out) ||
4284 (!attr->test.ctx_size_out && attr->test.ctx_out))
4287 prog = bpf_prog_get(attr->test.prog_fd);
5845 if (attr->test.data_in || attr->test.data_out ||
5846 attr->test.ctx_out || attr->test.duration ||
5847 attr->test.repeat || attr->test.flags)
5850 prog = bpf_prog_get_type(attr->test.prog_fd, BPF_PROG_TYPE_SYSCALL);
5854 if (attr->test.ctx_size_in < prog->aux->max_ctx_offset ||
5855 attr->test.ctx_size_in > U16_MAX) {
5867 attr->test.retval = bpf_prog_run(prog, (void *) (long) attr->test.ctx_in);