Lines Matching refs:skel

33 	struct test_attach_probe* skel;  in test_attach_probe()  local
60 skel = test_attach_probe__open(); in test_attach_probe()
61 if (!ASSERT_OK_PTR(skel, "skel_open")) in test_attach_probe()
65 if (!ASSERT_OK(bpf_program__set_flags(skel->progs.handle_kprobe_sleepable, in test_attach_probe()
69 if (!ASSERT_OK(test_attach_probe__load(skel), "skel_load")) in test_attach_probe()
71 if (!ASSERT_OK_PTR(skel->bss, "check_bss")) in test_attach_probe()
75 kprobe_link = bpf_program__attach_kprobe(skel->progs.handle_kprobe, in test_attach_probe()
80 skel->links.handle_kprobe = kprobe_link; in test_attach_probe()
82 kretprobe_link = bpf_program__attach_kprobe(skel->progs.handle_kretprobe, in test_attach_probe()
87 skel->links.handle_kretprobe = kretprobe_link; in test_attach_probe()
90 skel->links.handle_kprobe_auto = bpf_program__attach(skel->progs.handle_kprobe_auto); in test_attach_probe()
91 ASSERT_OK_PTR(skel->links.handle_kprobe_auto, "attach_kprobe_auto"); in test_attach_probe()
93 skel->links.handle_kretprobe_auto = bpf_program__attach(skel->progs.handle_kretprobe_auto); in test_attach_probe()
94 ASSERT_OK_PTR(skel->links.handle_kretprobe_auto, "attach_kretprobe_auto"); in test_attach_probe()
101 uprobe_link = bpf_program__attach_uprobe_opts(skel->progs.handle_uprobe, in test_attach_probe()
108 skel->links.handle_uprobe = uprobe_link; in test_attach_probe()
116 uretprobe_link = bpf_program__attach_uprobe_opts(skel->progs.handle_uretprobe, in test_attach_probe()
122 skel->links.handle_uretprobe = uretprobe_link; in test_attach_probe()
125 uprobe_err_link = bpf_program__attach(skel->progs.handle_uprobe_byname); in test_attach_probe()
133 skel->links.handle_uprobe_byname = in test_attach_probe()
134 bpf_program__attach_uprobe_opts(skel->progs.handle_uprobe_byname, in test_attach_probe()
138 if (!ASSERT_OK_PTR(skel->links.handle_uprobe_byname, "attach_uprobe_byname")) in test_attach_probe()
142 skel->links.handle_uretprobe_byname = in test_attach_probe()
143 bpf_program__attach(skel->progs.handle_uretprobe_byname); in test_attach_probe()
144 if (!ASSERT_OK_PTR(skel->links.handle_uretprobe_byname, "attach_uretprobe_byname")) in test_attach_probe()
152 skel->links.handle_uprobe_byname2 = in test_attach_probe()
153 bpf_program__attach_uprobe_opts(skel->progs.handle_uprobe_byname2, in test_attach_probe()
157 if (!ASSERT_OK_PTR(skel->links.handle_uprobe_byname2, "attach_uprobe_byname2")) in test_attach_probe()
162 skel->links.handle_uretprobe_byname2 = in test_attach_probe()
163 bpf_program__attach_uprobe_opts(skel->progs.handle_uretprobe_byname2, in test_attach_probe()
167 if (!ASSERT_OK_PTR(skel->links.handle_uretprobe_byname2, "attach_uretprobe_byname2")) in test_attach_probe()
171 skel->links.handle_kprobe_sleepable = bpf_program__attach(skel->progs.handle_kprobe_sleepable); in test_attach_probe()
172 if (!ASSERT_ERR_PTR(skel->links.handle_kprobe_sleepable, "attach_kprobe_sleepable")) in test_attach_probe()
176skel->links.handle_uprobe_byname3_sleepable = bpf_program__attach(skel->progs.handle_uprobe_byname… in test_attach_probe()
177 if (!ASSERT_OK_PTR(skel->links.handle_uprobe_byname3_sleepable, "attach_uprobe_byname3_sleepable")) in test_attach_probe()
180 skel->links.handle_uprobe_byname3 = bpf_program__attach(skel->progs.handle_uprobe_byname3); in test_attach_probe()
181 if (!ASSERT_OK_PTR(skel->links.handle_uprobe_byname3, "attach_uprobe_byname3")) in test_attach_probe()
184skel->links.handle_uretprobe_byname3_sleepable = bpf_program__attach(skel->progs.handle_uretprobe_… in test_attach_probe()
185 …if (!ASSERT_OK_PTR(skel->links.handle_uretprobe_byname3_sleepable, "attach_uretprobe_byname3_sleep… in test_attach_probe()
188 skel->links.handle_uretprobe_byname3 = bpf_program__attach(skel->progs.handle_uretprobe_byname3); in test_attach_probe()
189 if (!ASSERT_OK_PTR(skel->links.handle_uretprobe_byname3, "attach_uretprobe_byname3")) in test_attach_probe()
192 skel->bss->user_ptr = test_data; in test_attach_probe()
210 ASSERT_EQ(skel->bss->kprobe_res, 1, "check_kprobe_res"); in test_attach_probe()
211 ASSERT_EQ(skel->bss->kprobe2_res, 11, "check_kprobe_auto_res"); in test_attach_probe()
212 ASSERT_EQ(skel->bss->kretprobe_res, 2, "check_kretprobe_res"); in test_attach_probe()
213 ASSERT_EQ(skel->bss->kretprobe2_res, 22, "check_kretprobe_auto_res"); in test_attach_probe()
214 ASSERT_EQ(skel->bss->uprobe_res, 3, "check_uprobe_res"); in test_attach_probe()
215 ASSERT_EQ(skel->bss->uretprobe_res, 4, "check_uretprobe_res"); in test_attach_probe()
216 ASSERT_EQ(skel->bss->uprobe_byname_res, 5, "check_uprobe_byname_res"); in test_attach_probe()
217 ASSERT_EQ(skel->bss->uretprobe_byname_res, 6, "check_uretprobe_byname_res"); in test_attach_probe()
218 ASSERT_EQ(skel->bss->uprobe_byname2_res, 7, "check_uprobe_byname2_res"); in test_attach_probe()
219 ASSERT_EQ(skel->bss->uretprobe_byname2_res, 8, "check_uretprobe_byname2_res"); in test_attach_probe()
220 ASSERT_EQ(skel->bss->uprobe_byname3_sleepable_res, 9, "check_uprobe_byname3_sleepable_res"); in test_attach_probe()
221 ASSERT_EQ(skel->bss->uprobe_byname3_res, 10, "check_uprobe_byname3_res"); in test_attach_probe()
222 ASSERT_EQ(skel->bss->uretprobe_byname3_sleepable_res, 11, "check_uretprobe_byname3_sleepable_res"); in test_attach_probe()
223 ASSERT_EQ(skel->bss->uretprobe_byname3_res, 12, "check_uretprobe_byname3_res"); in test_attach_probe()
226 test_attach_probe__destroy(skel); in test_attach_probe()