Lines Matching refs:EventFd
48 std::unique_ptr<EventFd> EventFd::OpenEventFile(const perf_event_attr& attr, pid_t tid, int cpu, in OpenEventFile()
49 EventFd* group_event_fd, in OpenEventFile()
88 return std::unique_ptr<EventFd>(new EventFd(real_attr, perf_event_fd, event_name, tid, cpu)); in OpenEventFile()
91 EventFd::~EventFd() { in ~EventFd()
97 std::string EventFd::Name() const { in Name()
102 uint64_t EventFd::Id() const { in Id()
112 bool EventFd::SetEnableEvent(bool enable) { in SetEnableEvent()
121 bool EventFd::SetFilter(const std::string& filter) { in SetFilter()
129 bool EventFd::InnerReadCounter(PerfCounter* counter) const { in InnerReadCounter()
138 bool EventFd::ReadCounter(PerfCounter* counter) { in ReadCounter()
155 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()
195 void EventFd::DestroyMappedBuffer() { in DestroyMappedBuffer()
206 std::vector<char> EventFd::GetAvailableMmapData() { in GetAvailableMmapData()
221 size_t EventFd::GetAvailableMmapDataSize(size_t& data_pos) { in GetAvailableMmapDataSize()
249 void EventFd::DiscardMmapData(size_t discard_size) { in DiscardMmapData()
255 bool EventFd::CreateAuxBuffer(size_t aux_buffer_size, bool report_error) { in CreateAuxBuffer()
277 void EventFd::DestroyAuxBuffer() { in DestroyAuxBuffer()
285 uint64_t EventFd::GetAvailableAuxData(char** buf1, size_t* size1, char** buf2, size_t* size2) { in GetAvailableAuxData()
309 void EventFd::DiscardAuxData(size_t discard_size) { in DiscardAuxData()
315 bool EventFd::StartPolling(IOEventLoop& loop, const std::function<bool()>& callback) { in StartPolling()
320 bool EventFd::StopPolling() { in StopPolling()
325 return EventFd::OpenEventFile(attr, getpid(), -1, nullptr, event_name, false) != nullptr; in IsEventAttrSupported()