Lines Matching refs:fd_prog
872 static int do_prog_test_run(int fd_prog, bool unpriv, uint32_t expected_val, in do_prog_test_run() argument
882 err = bpf_prog_test_run(fd_prog, 1, data, size_data, in do_prog_test_run()
932 int fd_prog, expected_ret, alignment_prevented_execution; in do_test_single() local
999 fd_prog = bpf_load_program_xattr(&attr, bpf_vlog, sizeof(bpf_vlog)); in do_test_single()
1004 if (fd_prog < 0 && prog_type != BPF_PROG_TYPE_TRACING && in do_test_single()
1014 if (fd_prog < 0) { in do_test_single()
1020 if (fd_prog >= 0 && in do_test_single()
1028 if (fd_prog >= 0) { in do_test_single()
1057 if (!alignment_prevented_execution && fd_prog >= 0) { in do_test_single()
1070 err = do_prog_test_run(fd_prog, unpriv, expected_val, in do_test_single()
1097 close(fd_prog); in do_test_single()