Lines Matching refs:link
68 struct bpf_link *link; in test_test_overhead() local
109 link = bpf_program__attach_kprobe(kprobe_prog, false /* retprobe */, in test_test_overhead()
111 if (CHECK(IS_ERR(link), "attach_kprobe", "err %ld\n", PTR_ERR(link))) in test_test_overhead()
114 bpf_link__destroy(link); in test_test_overhead()
117 link = bpf_program__attach_kprobe(kretprobe_prog, true /* retprobe */, in test_test_overhead()
119 if (CHECK(IS_ERR(link), "attach kretprobe", "err %ld\n", PTR_ERR(link))) in test_test_overhead()
122 bpf_link__destroy(link); in test_test_overhead()
125 link = bpf_program__attach_raw_tracepoint(raw_tp_prog, "task_rename"); in test_test_overhead()
126 if (CHECK(IS_ERR(link), "attach fentry", "err %ld\n", PTR_ERR(link))) in test_test_overhead()
129 bpf_link__destroy(link); in test_test_overhead()
132 link = bpf_program__attach_trace(fentry_prog); in test_test_overhead()
133 if (CHECK(IS_ERR(link), "attach fentry", "err %ld\n", PTR_ERR(link))) in test_test_overhead()
136 bpf_link__destroy(link); in test_test_overhead()
139 link = bpf_program__attach_trace(fexit_prog); in test_test_overhead()
140 if (CHECK(IS_ERR(link), "attach fexit", "err %ld\n", PTR_ERR(link))) in test_test_overhead()
143 bpf_link__destroy(link); in test_test_overhead()