Lines Matching refs:fd_prog
958 static int do_prog_test_run(int fd_prog, bool unpriv, uint32_t expected_val, in do_prog_test_run() argument
968 err = bpf_prog_test_run(fd_prog, 1, data, size_data, in do_prog_test_run()
1041 int fd_prog, expected_ret, alignment_prevented_execution; in do_test_single() local
1109 fd_prog = bpf_load_program_xattr(&attr, bpf_vlog, sizeof(bpf_vlog)); in do_test_single()
1115 if (fd_prog < 0 && prog_type != BPF_PROG_TYPE_TRACING && in do_test_single()
1125 if (fd_prog < 0) { in do_test_single()
1131 if (fd_prog >= 0 && in do_test_single()
1139 if (fd_prog >= 0) { in do_test_single()
1168 if (!alignment_prevented_execution && fd_prog >= 0 && test->runs >= 0) { in do_test_single()
1181 err = do_prog_test_run(fd_prog, unpriv, expected_val, in do_test_single()
1208 close(fd_prog); in do_test_single()