Lines Matching refs:link_fd
579 int prog_fd, link_fd = -1; in tp_btf_subtest() local
594 link_fd = bpf_raw_tracepoint_open_opts(prog_fd, &raw_tp_opts); in tp_btf_subtest()
595 if (!ASSERT_GE(link_fd, 0, "bpf_raw_tracepoint_open_opts")) in tp_btf_subtest()
599 close(link_fd); /* detach */ in tp_btf_subtest()
600 link_fd = -1; in tp_btf_subtest()
608 link_fd = bpf_link_create(prog_fd, 0, BPF_TRACE_RAW_TP, &link_opts); in tp_btf_subtest()
609 if (!ASSERT_GE(link_fd, 0, "bpf_link_create")) in tp_btf_subtest()
613 close(link_fd); /* detach */ in tp_btf_subtest()
614 link_fd = -1; in tp_btf_subtest()
633 if (link_fd >= 0) in tp_btf_subtest()
634 close(link_fd); in tp_btf_subtest()
641 int prog_fd, link_fd = -1; in raw_tp_subtest() local
654 link_fd = bpf_raw_tracepoint_open_opts(prog_fd, &raw_tp_opts); in raw_tp_subtest()
655 if (!ASSERT_GE(link_fd, 0, "bpf_raw_tracepoint_open_opts")) in raw_tp_subtest()
659 close(link_fd); /* detach */ in raw_tp_subtest()
660 link_fd = -1; in raw_tp_subtest()
680 if (link_fd >= 0) in raw_tp_subtest()
681 close(link_fd); in raw_tp_subtest()