Lines Matching defs:fd_prog
1262 static int do_prog_test_run(int fd_prog, bool unpriv, uint32_t expected_val,
1278 err = bpf_prog_test_run_opts(fd_prog, &topts);
1465 static bool check_xlated_program(struct bpf_test *test, int fd_prog)
1476 if (get_xlated_program(fd_prog, &buf, &cnt)) {
1516 int fd_prog, btf_fd, expected_ret, alignment_prevented_execution;
1536 fd_prog = -1;
1612 fd_prog = bpf_prog_load(prog_type, NULL, "GPL", prog, prog_len, &opts);
1618 if (fd_prog < 0 && prog_type != BPF_PROG_TYPE_TRACING &&
1625 if (fd_prog < 0 && saved_errno == ENOTSUPP) {
1634 if (fd_prog < 0) {
1640 if (fd_prog >= 0 &&
1648 if (fd_prog >= 0) {
1675 if (!check_xlated_program(test, fd_prog))
1680 if (!alignment_prevented_execution && fd_prog >= 0 && test->runs >= 0) {
1693 err = do_prog_test_run(fd_prog, unpriv, expected_val,
1720 close(fd_prog);