Searched refs:link1_fd (Results 1 - 3 of 3) sorted by relevance

/linux-master/tools/testing/selftests/bpf/prog_tests/
H A Dkprobe_multi_test.c65 int prog_fd, link1_fd = -1, link2_fd = -1; local
74 link1_fd = bpf_link_create(prog_fd, 0, BPF_TRACE_KPROBE_MULTI, opts);
75 if (!ASSERT_GE(link1_fd, 0, "link_fd"))
87 if (link1_fd != -1)
88 close(link1_fd);
H A Duprobe_multi_test.c521 int prog_fd, link1_fd = -1, link2_fd = -1, link3_fd = -1, link4_fd = -1; local
549 link1_fd = bpf_link_create(prog_fd, 0, BPF_TRACE_UPROBE_MULTI, &opts);
550 if (!ASSERT_GE(link1_fd, 0, "link1_fd"))
581 if (link1_fd >= 0)
582 close(link1_fd);
H A Dbpf_cookie.c102 int prog_fd, link1_fd = -1, link2_fd = -1; local
149 link1_fd = bpf_link_create(prog_fd, 0, BPF_TRACE_KPROBE_MULTI, &opts);
150 if (!ASSERT_GE(link1_fd, 0, "link1_fd"))
172 close(link1_fd);

Completed in 240 milliseconds