Lines Matching refs:links
40 struct bpf_link *links[ARRAY_SIZE(cgs)] = {}, *tmp_link; in serial_test_cgroup_link() local
66 links[i] = bpf_program__attach_cgroup(skel->progs.egress, in serial_test_cgroup_link()
68 if (!ASSERT_OK_PTR(links[i], "cg_attach")) in serial_test_cgroup_link()
109 bpf_link__destroy(links[last_cg]); in serial_test_cgroup_link()
110 links[last_cg] = NULL; in serial_test_cgroup_link()
121 links[last_cg] = bpf_program__attach_cgroup(skel->progs.egress, in serial_test_cgroup_link()
123 if (!ASSERT_OK_PTR(links[last_cg], "cg_attach")) in serial_test_cgroup_link()
129 bpf_link__destroy(links[last_cg]); in serial_test_cgroup_link()
130 links[last_cg] = NULL; in serial_test_cgroup_link()
164 links[last_cg] = bpf_program__attach_cgroup(skel->progs.egress, in serial_test_cgroup_link()
166 if (!ASSERT_OK_PTR(links[last_cg], "cg_attach")) in serial_test_cgroup_link()
181 err = bpf_link__update_program(links[i], skel->progs.egress_alt); in serial_test_cgroup_link()
191 err = bpf_link_update(bpf_link__fd(links[0]), in serial_test_cgroup_link()
201 err = bpf_link_update(bpf_link__fd(links[0]), in serial_test_cgroup_link()
221 prog_id = link_info_prog_id(links[0], &info); in serial_test_cgroup_link()
225 err = bpf_link__detach(links[0]); in serial_test_cgroup_link()
230 prog_id = link_info_prog_id(links[0], &info); in serial_test_cgroup_link()
249 bpf_link__destroy(links[i]); in serial_test_cgroup_link()