Searched refs:fd_prog (Results 1 - 6 of 6) sorted by relevance
/linux-master/tools/testing/selftests/bpf/ |
H A D | test_tag.c | 57 int fd_prog; local 60 fd_prog = bpf_test_load_program(BPF_PROG_TYPE_SCHED_CLS, prog, insns, "", 0, 62 assert(fd_prog > 0); 65 return fd_prog; 91 static void tag_from_fdinfo(int fd_prog, uint8_t *tag, uint32_t len) argument 99 fd_prog); 168 int i, fd_prog; local 173 fd_prog = bpf_try_load_prog(i, fd_map, bpf_filler); 174 tag_from_fdinfo(fd_prog, ftag, sizeof(ftag)); 179 close(fd_prog); [all...] |
H A D | testing_helpers.h | 55 int get_xlated_program(int fd_prog, struct bpf_insn **buf, __u32 *cnt);
|
H A D | testing_helpers.c | 419 int get_xlated_program(int fd_prog, struct bpf_insn **buf, __u32 *cnt) argument 426 if (bpf_prog_get_info_by_fd(fd_prog, &info, &info_len)) { 448 if (bpf_prog_get_info_by_fd(fd_prog, &info, &info_len)) {
|
H A D | test_verifier.c | 1262 static int do_prog_test_run(int fd_prog, bool unpriv, uint32_t expected_val, argument 1278 err = bpf_prog_test_run_opts(fd_prog, &topts); 1465 static bool check_xlated_program(struct bpf_test *test, int fd_prog) argument 1476 if (get_xlated_program(fd_prog, &buf, &cnt)) { 1516 int fd_prog, btf_fd, expected_ret, alignment_prevented_execution; local 1536 fd_prog = -1; 1612 fd_prog = bpf_prog_load(prog_type, NULL, "GPL", prog, prog_len, &opts); 1618 if (fd_prog < 0 && prog_type != BPF_PROG_TYPE_TRACING && 1625 if (fd_prog < 0 && saved_errno == ENOTSUPP) { 1634 if (fd_prog < [all...] |
H A D | test_loader.c | 504 static int do_prog_test_run(int fd_prog, int *retval, bool empty_opts) argument 521 err = bpf_prog_test_run_opts(fd_prog, &topts);
|
/linux-master/tools/testing/selftests/bpf/prog_tests/ |
H A D | align.c | 616 int fd_prog; local 620 fd_prog = bpf_prog_load(prog_type ? : BPF_PROG_TYPE_SOCKET_FILTER, NULL, "GPL", 622 if (fd_prog < 0 && test->result != REJECT) { 626 } else if (fd_prog >= 0 && test->result == REJECT) { 630 close(fd_prog); 685 if (fd_prog >= 0) 686 close(fd_prog);
|
Completed in 142 milliseconds