Searched refs:perf_event_fd (Results 1 – 2 of 2) sorted by relevance
/system/extras/simpleperf/ |
D | event_fd.h | 112 EventFd(const perf_event_attr& attr, int perf_event_fd, const std::string& event_name, pid_t tid, in EventFd() argument 115 perf_event_fd_(perf_event_fd), in EventFd()
|
D | event_fd.cpp | 67 int perf_event_fd = perf_event_open(real_attr, tid, cpu, group_fd, 0); in OpenEventFile() local 68 if (perf_event_fd == -1) { in OpenEventFile() 78 if (fcntl(perf_event_fd, F_SETFD, FD_CLOEXEC) == -1) { in OpenEventFile() 88 return std::unique_ptr<EventFd>(new EventFd(real_attr, perf_event_fd, event_name, tid, cpu)); in OpenEventFile()
|