Home
last modified time | relevance | path

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

/system/extras/simpleperf/
Devent_selection_set.cpp85 std::unique_ptr<EventFd> event_fd = in IsDumpingRegsForTracepointEventsSupported() local
87 if (event_fd == nullptr || !event_fd->CreateMappedBuffer(4, true)) { in IsDumpingRegsForTracepointEventsSupported()
95 std::vector<char> buffer = event_fd->GetAvailableMmapData(); in IsDumpingRegsForTracepointEventsSupported()
560 std::unique_ptr<EventFd> event_fd = EventFd::OpenEventFile( in OpenEventFilesOnGroup() local
562 if (!event_fd) { in OpenEventFilesOnGroup()
566 LOG(VERBOSE) << "OpenEventFile for " << event_fd->Name(); in OpenEventFilesOnGroup()
567 event_fds.push_back(std::move(event_fd)); in OpenEventFilesOnGroup()
671 for (auto& event_fd : selection.event_fds) { in ApplyAddrFilters() local
672 if (!event_fd->SetFilter(filter_str)) { in ApplyAddrFilters()
686 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()
317 std::unique_ptr<EventFd> event_fd = in TEST() local
319 if (event_fd == nullptr) { in TEST()
325 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()
455 std::unique_ptr<EventFd> event_fd = in TEST() local
457 ASSERT_TRUE(event_fd != nullptr); in TEST()
461 event_fd = nullptr; in TEST()
[all …]
DRecordReadThread.cpp171 KernelRecordReader::KernelRecordReader(EventFd* event_fd) : event_fd_(event_fd) { in KernelRecordReader() argument
424 for (auto& event_fd : event_fds) { in HandleRemoveEventFds() local
425 if (event_fd->HasMappedBuffer()) { in HandleRemoveEventFds()
428 return reader.GetEventFd() == event_fd; in HandleRemoveEventFds()
432 event_fd->StopPolling(); in HandleRemoveEventFds()
433 event_fd->DestroyMappedBuffer(); in HandleRemoveEventFds()
434 event_fd->DestroyAuxBuffer(); in HandleRemoveEventFds()
582 EventFd* event_fd = reader.GetEventFd(); in ReadAuxDataFromKernelBuffer() local
583 if (event_fd->HasAuxBuffer()) { in ReadAuxDataFromKernelBuffer()
586 uint64_t offset = event_fd->GetAvailableAuxData(&buf[0], &size[0], &buf[1], &size[1]); in ReadAuxDataFromKernelBuffer()
[all …]
Dcmd_list.cpp63 std::unique_ptr<EventFd> event_fd = in IsEventTypeSupported() local
65 if (event_fd == nullptr) { in IsEventTypeSupported()
81 if (!event_fd->ReadCounter(&counter)) { in IsEventTypeSupported()
Devent_fd.cpp188 bool EventFd::ShareMappedBuffer(const EventFd& event_fd, bool report_error) { in ShareMappedBuffer() argument
190 CHECK(event_fd.HasMappedBuffer()); in ShareMappedBuffer()
192 ioctl(perf_event_fd_, PERF_EVENT_IOC_SET_OUTPUT, event_fd.perf_event_fd_); in ShareMappedBuffer()
196 << event_fd.perf_event_fd_ << " with " << perf_event_fd_; in ShareMappedBuffer()
Devent_fd.h72 bool ShareMappedBuffer(const EventFd& event_fd, bool report_error);
DRecordReadThread.h100 KernelRecordReader(EventFd* event_fd);
DRecordReadThread_test.cpp190 MockEventFd event_fd(attr, 0, buffer.data(), buffer.size(), false); in TEST() local
192 EXPECT_CALL(event_fd, GetAvailableMmapDataSize(Truly(SetArg(data_pos)))) in TEST()
194 EXPECT_CALL(event_fd, DiscardMmapData(Eq(data_size))).Times(1); in TEST()
195 KernelRecordReader reader(&event_fd); in TEST()
Dcmd_record_test.cpp305 std::unique_ptr<EventFd> event_fd = in HasNonZeroInstructionEventCount() local
307 if (!event_fd) { in HasNonZeroInstructionEventCount()
314 if (event_fd->ReadCounter(&counter)) { in HasNonZeroInstructionEventCount()
DAndroid.bp276 "event_fd.cpp",
/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()