Lines Matching refs:fd_prog
1151 static int do_prog_test_run(int fd_prog, bool unpriv, uint32_t expected_val, in do_prog_test_run() argument
1167 err = bpf_prog_test_run_opts(fd_prog, &topts); in do_prog_test_run()
1235 static int get_xlated_program(int fd_prog, struct bpf_insn **buf, int *cnt) in get_xlated_program() argument
1242 if (bpf_obj_get_info_by_fd(fd_prog, &info, &info_len)) { in get_xlated_program()
1264 if (bpf_obj_get_info_by_fd(fd_prog, &info, &info_len)) { in get_xlated_program()
1395 static bool check_xlated_program(struct bpf_test *test, int fd_prog) in check_xlated_program() argument
1406 if (get_xlated_program(fd_prog, &buf, &cnt)) { in check_xlated_program()
1446 int fd_prog, btf_fd, expected_ret, alignment_prevented_execution; in do_test_single() local
1458 fd_prog = -1; in do_test_single()
1532 fd_prog = bpf_prog_load(prog_type, NULL, "GPL", prog, prog_len, &opts); in do_test_single()
1538 if (fd_prog < 0 && prog_type != BPF_PROG_TYPE_TRACING && in do_test_single()
1545 if (fd_prog < 0 && saved_errno == ENOTSUPP) { in do_test_single()
1554 if (fd_prog < 0) { in do_test_single()
1560 if (fd_prog >= 0 && in do_test_single()
1568 if (fd_prog >= 0) { in do_test_single()
1595 if (!check_xlated_program(test, fd_prog)) in do_test_single()
1600 if (!alignment_prevented_execution && fd_prog >= 0 && test->runs >= 0) { in do_test_single()
1613 err = do_prog_test_run(fd_prog, unpriv, expected_val, in do_test_single()
1640 close(fd_prog); in do_test_single()