Searched refs:tp_fd (Results 1 – 3 of 3) sorted by relevance
| /Linux-v5.4/tools/testing/selftests/bpf/prog_tests/ |
| D | raw_tp_writable_reject_nbd_invalid.c | 10 int bpf_fd = -1, tp_fd = -1; in test_raw_tp_writable_reject_nbd_invalid() local 34 tp_fd = bpf_raw_tracepoint_open("nbd_send_request", bpf_fd); in test_raw_tp_writable_reject_nbd_invalid() 35 if (CHECK(tp_fd >= 0, "bpf_raw_tracepoint_writable open", in test_raw_tp_writable_reject_nbd_invalid() 39 close(tp_fd); in test_raw_tp_writable_reject_nbd_invalid()
|
| D | raw_tp_writable_test_run.c | 50 int tp_fd = bpf_raw_tracepoint_open("bpf_test_finish", bpf_fd); in test_raw_tp_writable_test_run() local 51 if (CHECK(tp_fd < 0, "bpf_raw_tracepoint_writable opened", in test_raw_tp_writable_test_run() 52 "failed: %d errno %d\n", tp_fd, errno)) in test_raw_tp_writable_test_run() 67 close(tp_fd); in test_raw_tp_writable_test_run()
|
| /Linux-v5.4/kernel/bpf/ |
| D | syscall.c | 1822 int tp_fd, err; in bpf_raw_tracepoint_open() local 1856 tp_fd = anon_inode_getfd("bpf-raw-tracepoint", &bpf_raw_tp_fops, raw_tp, in bpf_raw_tracepoint_open() 1858 if (tp_fd < 0) { in bpf_raw_tracepoint_open() 1860 err = tp_fd; in bpf_raw_tracepoint_open() 1863 return tp_fd; in bpf_raw_tracepoint_open()
|