Home
last modified time | relevance | path

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

/linux/tools/testing/selftests/bpf/prog_tests/
H A Draw_tp_writable_reject_bad_access.c11 int bpf_fd, tp_fd; in check_attach_reject() local
22 tp_fd = bpf_raw_tracepoint_open("bpf_testmod_test_writable_bare_tp", bpf_fd); in check_attach_reject()
23 ASSERT_EQ(tp_fd, -EINVAL, "bpf_raw_tracepoint_open"); in check_attach_reject()
24 if (tp_fd >= 0) in check_attach_reject()
25 close(tp_fd); in check_attach_reject()
H A Draw_tp_writable_test_run.c51 int tp_fd = bpf_raw_tracepoint_open("bpf_test_finish", bpf_fd); in serial_test_raw_tp_writable_test_run() local
52 if (CHECK(tp_fd < 0, "bpf_raw_tracepoint_writable opened", in serial_test_raw_tp_writable_test_run()
53 "failed: %d errno %d\n", tp_fd, errno)) in serial_test_raw_tp_writable_test_run()
71 close(tp_fd); in serial_test_raw_tp_writable_test_run()