Home
last modified time | relevance | path

Searched refs:event_fd (Results 1 – 11 of 11) sorted by relevance

/system/bt/osi/src/
Dreactor.cc44 int event_fd; member
73 ret->event_fd = INVALID_FD; in reactor_new()
82 ret->event_fd = eventfd(0, 0); in reactor_new()
83 if (ret->event_fd == INVALID_FD) { in reactor_new()
99 if (epoll_ctl(ret->epoll_fd, EPOLL_CTL_ADD, ret->event_fd, &event) == -1) { in reactor_new()
116 close(reactor->event_fd); in reactor_free()
134 eventfd_write(reactor->event_fd, EVENT_REACTOR_STOP); in reactor_stop()
259 eventfd_read(reactor->event_fd, &value); in run_reactor()
/system/extras/simpleperf/
Devent_selection_set.cpp91 std::unique_ptr<EventFd> event_fd = in IsDumpingRegsForTracepointEventsSupported() local
93 if (event_fd == nullptr || !event_fd->CreateMappedBuffer(4, true)) { in IsDumpingRegsForTracepointEventsSupported()
105 std::vector<char> buffer = event_fd->GetAvailableMmapData(); in IsDumpingRegsForTracepointEventsSupported()
569 std::unique_ptr<EventFd> event_fd = EventFd::OpenEventFile( in OpenEventFilesOnGroup() local
571 if (!event_fd) { in OpenEventFilesOnGroup()
575 LOG(VERBOSE) << "OpenEventFile for " << event_fd->Name(); in OpenEventFilesOnGroup()
576 event_fds.push_back(std::move(event_fd)); in OpenEventFilesOnGroup()
680 for (auto& event_fd : selection.event_fds) { in ApplyAddrFilters() local
681 if (!event_fd->SetFilter(filter_str)) { in ApplyAddrFilters()
695 for (auto& event_fd : selection.event_fds) { in ApplyTracepointFilters() local
[all …]
Dcpu_hotplug_test.cpp260 std::unique_ptr<EventFd> event_fd = in TEST() local
262 if (event_fd == nullptr) { in TEST()
316 std::unique_ptr<EventFd> event_fd = in TEST() local
318 if (event_fd == nullptr) { in TEST()
324 ASSERT_TRUE(event_fd->SetEnableEvent(true)); in TEST()
404 std::unique_ptr<EventFd> event_fd = EventFd::OpenEventFile( in TEST() local
406 if (event_fd == nullptr) { in TEST()
456 std::unique_ptr<EventFd> event_fd = in TEST() local
458 ASSERT_TRUE(event_fd != nullptr); in TEST()
462 event_fd = nullptr; in TEST()
[all …]
Dtest_util.cpp59 std::unique_ptr<EventFd> event_fd = in HasNonZeroInstructionEventCount() local
61 if (!event_fd) { in HasNonZeroInstructionEventCount()
68 if (event_fd->ReadCounter(&counter)) { in HasNonZeroInstructionEventCount()
DRecordReadThread.cpp170 KernelRecordReader::KernelRecordReader(EventFd* event_fd) : event_fd_(event_fd) { in KernelRecordReader() argument
426 for (auto& event_fd : event_fds) { in HandleRemoveEventFds() local
427 if (event_fd->HasMappedBuffer()) { in HandleRemoveEventFds()
430 [&](const KernelRecordReader& reader) { return reader.GetEventFd() == event_fd; }); in HandleRemoveEventFds()
433 event_fd->StopPolling(); in HandleRemoveEventFds()
434 event_fd->DestroyMappedBuffer(); in HandleRemoveEventFds()
435 event_fd->DestroyAuxBuffer(); in HandleRemoveEventFds()
583 EventFd* event_fd = reader.GetEventFd(); in ReadAuxDataFromKernelBuffer() local
584 if (event_fd->HasAuxBuffer()) { in ReadAuxDataFromKernelBuffer()
587 uint64_t offset = event_fd->GetAvailableAuxData(&buf[0], &size[0], &buf[1], &size[1]); in ReadAuxDataFromKernelBuffer()
[all …]
Dcmd_list.cpp62 std::unique_ptr<EventFd> event_fd = in IsEventTypeSupported() local
64 if (event_fd == nullptr) { in IsEventTypeSupported()
80 if (!event_fd->ReadCounter(&counter)) { in IsEventTypeSupported()
Devent_fd.cpp181 bool EventFd::ShareMappedBuffer(const EventFd& event_fd, bool report_error) { in ShareMappedBuffer() argument
183 CHECK(event_fd.HasMappedBuffer()); in ShareMappedBuffer()
184 int result = ioctl(perf_event_fd_, PERF_EVENT_IOC_SET_OUTPUT, event_fd.perf_event_fd_); in ShareMappedBuffer()
187 PLOG(ERROR) << "failed to share mapped buffer of " << event_fd.perf_event_fd_ << " with " in ShareMappedBuffer()
Devent_fd.h74 bool ShareMappedBuffer(const EventFd& event_fd, bool report_error);
DRecordReadThread.h100 KernelRecordReader(EventFd* event_fd);
DRecordReadThread_test.cpp192 MockEventFd event_fd(attr, 0, buffer.data(), buffer.size(), false); in TEST() local
194 EXPECT_CALL(event_fd, GetAvailableMmapDataSize(Truly(SetArg(data_pos)))) in TEST()
197 EXPECT_CALL(event_fd, DiscardMmapData(Eq(data_size))).Times(1); in TEST()
198 KernelRecordReader reader(&event_fd); in TEST()
DAndroid.bp249 "event_fd.cpp",