Lines Matching refs:fd_prog
1006 static int do_prog_test_run(int fd_prog, bool unpriv, uint32_t expected_val, in do_prog_test_run() argument
1016 err = bpf_prog_test_run(fd_prog, 1, data, size_data, in do_prog_test_run()
1089 int fd_prog, expected_ret, alignment_prevented_execution; in do_test_single() local
1157 fd_prog = bpf_load_program_xattr(&attr, bpf_vlog, sizeof(bpf_vlog)); in do_test_single()
1163 if (fd_prog < 0 && prog_type != BPF_PROG_TYPE_TRACING && in do_test_single()
1170 if (fd_prog < 0 && saved_errno == ENOTSUPP) { in do_test_single()
1179 if (fd_prog < 0) { in do_test_single()
1185 if (fd_prog >= 0 && in do_test_single()
1193 if (fd_prog >= 0) { in do_test_single()
1222 if (!alignment_prevented_execution && fd_prog >= 0 && test->runs >= 0) { in do_test_single()
1235 err = do_prog_test_run(fd_prog, unpriv, expected_val, in do_test_single()
1262 close(fd_prog); in do_test_single()