Lines Matching refs:prog_fd
139 int prog_fd; in show_bpf_prog() local
141 prog_fd = bpf_prog_get_fd_by_id(id); in show_bpf_prog()
142 if (prog_fd < 0) in show_bpf_prog()
145 if (bpf_prog_get_info_by_fd(prog_fd, &info, &info_len)) { in show_bpf_prog()
146 close(prog_fd); in show_bpf_prog()
165 get_prog_full_name(&info, prog_fd, prog_name, sizeof(prog_name)); in show_bpf_prog()
199 close(prog_fd); in show_bpf_prog()
547 int cgroup_fd, prog_fd; in do_attach() local
571 prog_fd = prog_parse_fd(&argc, &argv); in do_attach()
572 if (prog_fd < 0) in do_attach()
586 if (bpf_prog_attach(prog_fd, cgroup_fd, attach_type, attach_flags)) { in do_attach()
597 close(prog_fd); in do_attach()
607 int prog_fd, cgroup_fd; in do_detach() local
629 prog_fd = prog_parse_fd(&argc, &argv); in do_detach()
630 if (prog_fd < 0) in do_detach()
633 if (bpf_prog_detach2(prog_fd, cgroup_fd, attach_type)) { in do_detach()
644 close(prog_fd); in do_detach()