Searched refs:kfd (Results 1 – 1 of 1) sorted by relevance
/samples/bpf/ |
D | task_fd_query_user.c | 223 int err, res, kfd, efd; in test_debug_fs_uprobe() local 228 kfd = open(buf, O_WRONLY | O_APPEND, 0); in test_debug_fs_uprobe() 229 CHECK_PERROR_RET(kfd < 0); in test_debug_fs_uprobe() 238 CHECK_PERROR_RET(write(kfd, buf, strlen(buf)) < 0); in test_debug_fs_uprobe() 240 close(kfd); in test_debug_fs_uprobe() 241 kfd = -1; in test_debug_fs_uprobe() 257 kfd = sys_perf_event_open(&attr, -1, 0, -1, PERF_FLAG_FD_CLOEXEC); in test_debug_fs_uprobe() 258 CHECK_PERROR_RET(kfd < 0); in test_debug_fs_uprobe() 259 CHECK_PERROR_RET(ioctl(kfd, PERF_EVENT_IOC_SET_BPF, prog_fd[0]) < 0); in test_debug_fs_uprobe() 260 CHECK_PERROR_RET(ioctl(kfd, PERF_EVENT_IOC_ENABLE, 0) < 0); in test_debug_fs_uprobe() [all …]
|