Lines Matching refs:fd
50 int fd, ret; in bpf_find_probe_type() local
55 fd = open(buf, O_RDONLY); in bpf_find_probe_type()
56 CHECK_PERROR_RET(fd < 0); in bpf_find_probe_type()
58 ret = read(fd, buf, sizeof(buf)); in bpf_find_probe_type()
59 close(fd); in bpf_find_probe_type()
72 int fd, ret; in bpf_get_retprobe_bit() local
77 fd = open(buf, O_RDONLY); in bpf_get_retprobe_bit()
78 CHECK_PERROR_RET(fd < 0); in bpf_get_retprobe_bit()
80 ret = read(fd, buf, sizeof(buf)); in bpf_get_retprobe_bit()
81 close(fd); in bpf_get_retprobe_bit()
132 int fd, err = -1; in test_nondebug_fs_kuprobe_common() local
155 fd = sys_perf_event_open(&attr, -1, 0, -1, 0); in test_nondebug_fs_kuprobe_common()
156 link = bpf_program__attach_perf_event(progs[0], fd); in test_nondebug_fs_kuprobe_common()
160 close(fd); in test_nondebug_fs_kuprobe_common()
164 CHECK_PERROR_RET(bpf_task_fd_query(getpid(), fd, 0, buf, buf_len, in test_nondebug_fs_kuprobe_common()