Lines Matching defs:FD
16 #define FD(e, x, y) (*(int *)xyarray__entry(e->fd, x, y))
55 evsel->fd = xyarray__new(ncpus, nthreads, sizeof(int));
57 if (evsel->fd) {
60 FD(evsel, cpu, thread) = -1;
65 return evsel->fd != NULL ? 0 : -ENOMEM;
93 xyarray__delete(evsel->fd);
94 evsel->fd = NULL;
111 close(FD(evsel, cpu, thread));
112 FD(evsel, cpu, thread) = -1;
119 xyarray__delete(evsel->fd);
138 if (FD(evsel, cpu, thread) < 0)
144 if (readn(FD(evsel, cpu, thread), &count, nv * sizeof(u64)) < 0)
170 if (FD(evsel, cpu, thread) < 0)
173 if (readn(FD(evsel, cpu, thread),
212 if (evsel->fd == NULL &&
218 pid = evsel->cgrp->fd;
229 FD(evsel, cpu, thread) = sys_perf_event_open(&evsel->attr,
233 if (FD(evsel, cpu, thread) < 0)
237 group_fd = FD(evsel, cpu, thread);
246 close(FD(evsel, cpu, thread));
247 FD(evsel, cpu, thread) = -1;