Lines Matching refs:fd_prog
1260 static int do_prog_test_run(int fd_prog, bool unpriv, uint32_t expected_val, in do_prog_test_run() argument
1276 err = bpf_prog_test_run_opts(fd_prog, &topts); in do_prog_test_run()
1344 static struct bpf_insn *get_xlated_program(int fd_prog, int *cnt) in get_xlated_program() argument
1352 if (bpf_prog_get_info_by_fd(fd_prog, &info, &info_len)) { in get_xlated_program()
1374 if (bpf_prog_get_info_by_fd(fd_prog, &info, &info_len)) { in get_xlated_program()
1505 static bool check_xlated_program(struct bpf_test *test, int fd_prog) in check_xlated_program() argument
1516 buf = get_xlated_program(fd_prog, &cnt); in check_xlated_program()
1557 int fd_prog, btf_fd, expected_ret, alignment_prevented_execution; in do_test_single() local
1570 fd_prog = -1; in do_test_single()
1646 fd_prog = bpf_prog_load(prog_type, NULL, "GPL", prog, prog_len, &opts); in do_test_single()
1652 if (fd_prog < 0 && prog_type != BPF_PROG_TYPE_TRACING && in do_test_single()
1659 if (fd_prog < 0 && saved_errno == ENOTSUPP) { in do_test_single()
1668 if (fd_prog < 0) { in do_test_single()
1674 if (fd_prog >= 0 && in do_test_single()
1682 if (fd_prog >= 0) { in do_test_single()
1709 if (!check_xlated_program(test, fd_prog)) in do_test_single()
1714 if (!alignment_prevented_execution && fd_prog >= 0 && test->runs >= 0) { in do_test_single()
1727 err = do_prog_test_run(fd_prog, unpriv, expected_val, in do_test_single()
1754 close(fd_prog); in do_test_single()