Searched refs:link1_fd (Results 1 – 3 of 3) sorted by relevance
/openbmc/linux/tools/testing/selftests/bpf/prog_tests/ |
H A D | uprobe_multi_test.c | 239 int prog_fd, link1_fd = -1, link2_fd = -1, link3_fd = -1, link4_fd = -1; in __test_link_api() local 267 link1_fd = bpf_link_create(prog_fd, 0, BPF_TRACE_UPROBE_MULTI, &opts); in __test_link_api() 268 if (!ASSERT_GE(link1_fd, 0, "link1_fd")) in __test_link_api() 299 if (link1_fd >= 0) in __test_link_api() 300 close(link1_fd); in __test_link_api()
|
H A D | kprobe_multi_test.c | 63 int prog_fd, link1_fd = -1, link2_fd = -1; in test_link_api() local 72 link1_fd = bpf_link_create(prog_fd, 0, BPF_TRACE_KPROBE_MULTI, opts); in test_link_api() 73 if (!ASSERT_GE(link1_fd, 0, "link_fd")) in test_link_api() 85 if (link1_fd != -1) in test_link_api() 86 close(link1_fd); in test_link_api()
|
H A D | bpf_cookie.c | 102 int prog_fd, link1_fd = -1, link2_fd = -1; in kprobe_multi_link_api_subtest() local 149 link1_fd = bpf_link_create(prog_fd, 0, BPF_TRACE_KPROBE_MULTI, &opts); in kprobe_multi_link_api_subtest() 150 if (!ASSERT_GE(link1_fd, 0, "link1_fd")) in kprobe_multi_link_api_subtest() 172 close(link1_fd); in kprobe_multi_link_api_subtest()
|