Home
last modified time | relevance | path

Searched refs:fexit_fd (Results 1 – 2 of 2) sorted by relevance

/linux/tools/testing/selftests/bpf/prog_tests/
H A Dfexit_stress.c9 int *fd, *fexit_fd, *link_fd; in serial_test_fexit_stress() local
17 fexit_fd = fd; in serial_test_fexit_stress()
38 fexit_fd[i] = bpf_prog_load(BPF_PROG_TYPE_TRACING, NULL, "GPL", in serial_test_fexit_stress()
42 if (!ASSERT_GE(fexit_fd[i], 0, "fexit load")) in serial_test_fexit_stress()
44 link_fd[i] = bpf_link_create(fexit_fd[i], 0, BPF_TRACE_FEXIT, NULL); in serial_test_fexit_stress()
49 err = bpf_prog_test_run_opts(fexit_fd[0], &topts); in serial_test_fexit_stress()
56 if (fexit_fd[i] > 0) in serial_test_fexit_stress()
57 close(fexit_fd[i]); in serial_test_fexit_stress()
H A Dbpf_cookie.c496 int fentry_fd = -1, fexit_fd = -1, fmod_ret_fd = -1; in tracing_subtest() local
513 fexit_fd = bpf_link_create(prog_fd, 0, BPF_TRACE_FEXIT, &link_opts); in tracing_subtest()
514 if (!ASSERT_GE(fexit_fd, 0, "fexit.link_create")) in tracing_subtest()
537 if (fexit_fd >= 0) in tracing_subtest()
538 close(fexit_fd); in tracing_subtest()