Lines Matching refs:EventFd
46 std::unique_ptr<EventFd> EventFd::OpenEventFile(const perf_event_attr& attr, in OpenEventFile()
48 EventFd* group_event_fd, in OpenEventFile()
92 return std::unique_ptr<EventFd>( in OpenEventFile()
93 new EventFd(real_attr, perf_event_fd, event_name, tid, cpu)); in OpenEventFile()
96 EventFd::~EventFd() { in ~EventFd()
101 std::string EventFd::Name() const { in Name()
107 uint64_t EventFd::Id() const { in Id()
117 bool EventFd::SetEnableEvent(bool enable) { in SetEnableEvent()
126 bool EventFd::InnerReadCounter(PerfCounter* counter) const { in InnerReadCounter()
135 bool EventFd::ReadCounter(PerfCounter* counter) { in ReadCounter()
153 bool EventFd::CreateMappedBuffer(size_t mmap_pages, bool report_error) { in CreateMappedBuffer()
181 bool EventFd::ShareMappedBuffer(const EventFd& event_fd, bool report_error) { in ShareMappedBuffer()
196 void EventFd::DestroyMappedBuffer() { in DestroyMappedBuffer()
207 std::vector<char> EventFd::GetAvailableMmapData() { in GetAvailableMmapData()
222 size_t EventFd::GetAvailableMmapDataSize(size_t& data_pos) { in GetAvailableMmapDataSize()
248 void EventFd::DiscardMmapData(size_t discard_size) { in DiscardMmapData()
254 bool EventFd::StartPolling(IOEventLoop& loop, in StartPolling()
260 bool EventFd::StopPolling() { return IOEventLoop::DelEvent(ioevent_ref_); } in StopPolling()
268 std::unique_ptr<EventFd> event_fd = EventFd::OpenEventFile(attr, getpid(), -1, nullptr, false); in IsEventAttrSupported()