Home
last modified time | relevance | path

Searched refs:link2_fd (Results 1 – 3 of 3) sorted by relevance

/linux/tools/testing/selftests/bpf/prog_tests/
H A Dkprobe_multi_test.c66 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 Dbpf_cookie.c102 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 Duprobe_multi_test.c661 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()