Lines Matching refs:links
37 struct bpf_link *links[]) in sampling_start() argument
56 links[i] = bpf_program__attach_perf_event(prog, pmu_fd); in sampling_start()
57 if (libbpf_get_error(links[i])) { in sampling_start()
59 links[i] = NULL; in sampling_start()
68 static void sampling_end(struct bpf_link *links[]) in sampling_end() argument
73 bpf_link__destroy(links[i]); in sampling_end()
144 struct bpf_link **links; in main() local
174 links = calloc(nr_cpus, sizeof(struct bpf_link *)); in main()
175 if (!links) { in main()
212 if (sampling_start(freq, prog, links) != 0) in main()
219 sampling_end(links); in main()
224 free(links); in main()