Lines Matching refs:link2
14 struct bpf_link *link1 = NULL, *link2 = NULL; in kprobe_subtest() local
27 link2 = bpf_program__attach_kprobe_opts(skel->progs.handle_kprobe, in kprobe_subtest()
29 if (!ASSERT_OK_PTR(link2, "link2")) in kprobe_subtest()
55 bpf_link__destroy(link2); in kprobe_subtest()
63 struct bpf_link *link1 = NULL, *link2 = NULL; in uprobe_subtest() local
81 link2 = bpf_program__attach_uprobe_opts(skel->progs.handle_uprobe, -1 /* any pid */, in uprobe_subtest()
83 if (!ASSERT_OK_PTR(link2, "link2")) in uprobe_subtest()
109 bpf_link__destroy(link2); in uprobe_subtest()
117 struct bpf_link *link1 = NULL, *link2 = NULL, *link3 = NULL; in tp_subtest() local
128 link2 = bpf_program__attach_tracepoint_opts(skel->progs.handle_tp2, in tp_subtest()
130 if (!ASSERT_OK_PTR(link2, "link2")) in tp_subtest()
162 bpf_link__destroy(link2); in tp_subtest()