Lines Matching refs:fd_prog
1253 static int do_prog_test_run(int fd_prog, bool unpriv, uint32_t expected_val, in do_prog_test_run() argument
1269 err = bpf_prog_test_run_opts(fd_prog, &topts); in do_prog_test_run()
1456 static bool check_xlated_program(struct bpf_test *test, int fd_prog) in check_xlated_program() argument
1467 if (get_xlated_program(fd_prog, &buf, &cnt)) { in check_xlated_program()
1507 int fd_prog, btf_fd, expected_ret, alignment_prevented_execution; in do_test_single() local
1527 fd_prog = -1; in do_test_single()
1603 fd_prog = bpf_prog_load(prog_type, NULL, "GPL", prog, prog_len, &opts); in do_test_single()
1609 if (fd_prog < 0 && prog_type != BPF_PROG_TYPE_TRACING && in do_test_single()
1616 if (fd_prog < 0 && saved_errno == ENOTSUPP) { in do_test_single()
1625 if (fd_prog < 0) { in do_test_single()
1631 if (fd_prog >= 0 && in do_test_single()
1639 if (fd_prog >= 0) { in do_test_single()
1666 if (!check_xlated_program(test, fd_prog)) in do_test_single()
1671 if (!alignment_prevented_execution && fd_prog >= 0 && test->runs >= 0) { in do_test_single()
1684 err = do_prog_test_run(fd_prog, unpriv, expected_val, in do_test_single()
1711 close(fd_prog); in do_test_single()