Lines Matching refs:link1

25 	struct bpf_link *link1 = NULL, *link2 = NULL;  in kprobe_subtest()  local
31 link1 = bpf_program__attach_kprobe_opts(skel->progs.handle_kprobe, in kprobe_subtest()
33 if (!ASSERT_OK_PTR(link1, "link1")) in kprobe_subtest()
65 bpf_link__destroy(link1); in kprobe_subtest()
179 struct bpf_link *link1 = NULL, *link2 = NULL; in kprobe_multi_attach_api_subtest() local
215 link1 = bpf_program__attach_kprobe_multi_opts(skel->progs.test_kprobe, in kprobe_multi_attach_api_subtest()
217 if (!ASSERT_OK_PTR(link1, "bpf_program__attach_kprobe_multi_opts")) in kprobe_multi_attach_api_subtest()
240 bpf_link__destroy(link1); in kprobe_multi_attach_api_subtest()
273 struct bpf_link *link1 = NULL, *link2 = NULL; in uprobe_multi_attach_api_subtest() local
295 link1 = bpf_program__attach_uprobe_multi(skel->progs.uprobe, -1, in uprobe_multi_attach_api_subtest()
297 if (!ASSERT_OK_PTR(link1, "bpf_program__attach_uprobe_multi")) in uprobe_multi_attach_api_subtest()
314 bpf_link__destroy(link1); in uprobe_multi_attach_api_subtest()
321 struct bpf_link *link1 = NULL, *link2 = NULL; in uprobe_subtest() local
332 link1 = bpf_program__attach_uprobe_opts(skel->progs.handle_uprobe, 0 /* self pid */, in uprobe_subtest()
334 if (!ASSERT_OK_PTR(link1, "link1")) in uprobe_subtest()
366 bpf_link__destroy(link1); in uprobe_subtest()
375 struct bpf_link *link1 = NULL, *link2 = NULL, *link3 = NULL; in tp_subtest() local
379 link1 = bpf_program__attach_tracepoint_opts(skel->progs.handle_tp1, in tp_subtest()
381 if (!ASSERT_OK_PTR(link1, "link1")) in tp_subtest()
401 bpf_link__destroy(link1); in tp_subtest()
402 link1 = NULL; in tp_subtest()
419 bpf_link__destroy(link1); in tp_subtest()