Searched refs:efd (Results 1 – 2 of 2) sorted by relevance
/samples/bpf/ |
D | bpf_load.c | 93 int fd, efd, err, id; in load_and_attach() local 159 efd = bpf_raw_tracepoint_open(event + 15, fd); in load_and_attach() 160 if (efd < 0) { in load_and_attach() 164 event_fd[prog_cnt - 1] = efd; in load_and_attach() 225 efd = open(buf, O_RDONLY, 0); in load_and_attach() 226 if (efd < 0) { in load_and_attach() 231 err = read(efd, buf, sizeof(buf)); in load_and_attach() 237 close(efd); in load_and_attach() 243 efd = sys_perf_event_open(&attr, -1/*pid*/, 0/*cpu*/, -1/*group_fd*/, 0); in load_and_attach() 244 if (efd < 0) { in load_and_attach() [all …]
|
D | task_fd_query_user.c | 223 int err, res, kfd, efd; in test_debug_fs_uprobe() local 245 efd = open(buf, O_RDONLY, 0); in test_debug_fs_uprobe() 246 CHECK_PERROR_RET(efd < 0); in test_debug_fs_uprobe() 248 bytes = read(efd, buf, sizeof(buf)); in test_debug_fs_uprobe() 250 close(efd); in test_debug_fs_uprobe()
|