Searched refs:link1_fd (Results 1 – 3 of 3) sorted by relevance
/linux/tools/testing/selftests/bpf/prog_tests/ |
H A D | kprobe_multi_test.c | 66 int prog_fd, link1_fd = -1, link2_fd = -1; in test_link_api() 75 link1_fd = bpf_link_create(prog_fd, 0, BPF_TRACE_KPROBE_MULTI, opts); in test_link_api() 76 if (!ASSERT_GE(link1_fd, 0, "link_fd")) in test_link_api() 88 if (link1_fd != -1) in test_link_api() 89 close(link1_fd); in test_link_api() 65 int prog_fd, link1_fd = -1, link2_fd = -1; test_link_api() local
|
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()
|
H A D | uprobe_multi_test.c | 661 int prog_fd, link1_fd = -1, link2_fd = -1, link3_fd = -1, link4_fd = -1; in __test_link_api() local 689 link1_fd = bpf_link_create(prog_fd, 0, BPF_TRACE_UPROBE_MULTI, &opts); in __test_link_api() 690 if (!ASSERT_GE(link1_fd, 0, "link1_fd")) in __test_link_api() 721 if (link1_fd >= 0) in __test_link_api() 722 close(link1_fd); in __test_link_api()
|