Searched refs:link2_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() 81 link2_fd = bpf_link_create(prog_fd, 0, BPF_TRACE_KPROBE_MULTI, opts); in test_link_api() 82 if (!ASSERT_GE(link2_fd, 0, "link_fd")) in test_link_api() 90 if (link2_fd != -1) in test_link_api() 91 close(link2_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 165 link2_fd = bpf_link_create(prog_fd, 0, BPF_TRACE_KPROBE_MULTI, &opts); in kprobe_multi_link_api_subtest() 166 if (!ASSERT_GE(link2_fd, 0, "link2_fd")) in kprobe_multi_link_api_subtest() 173 close(link2_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 695 link2_fd = bpf_link_create(prog_fd, 0, BPF_TRACE_UPROBE_MULTI, &opts); in __test_link_api() 696 if (!ASSERT_GE(link2_fd, 0, "link2_fd")) in __test_link_api() 723 if (link2_fd >= 0) in __test_link_api() 724 close(link2_fd); in __test_link_api()
|