Searched refs:event_fd (Results 1 – 11 of 11) sorted by relevance
/system/extras/simpleperf/ |
D | event_selection_set.cpp | 85 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 …]
|
D | cpu_hotplug_test.cpp | 260 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 …]
|
D | RecordReadThread.cpp | 171 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 …]
|
D | cmd_list.cpp | 63 std::unique_ptr<EventFd> event_fd = in IsEventTypeSupported() local 65 if (event_fd == nullptr) { in IsEventTypeSupported() 81 if (!event_fd->ReadCounter(&counter)) { in IsEventTypeSupported()
|
D | event_fd.cpp | 188 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()
|
D | event_fd.h | 72 bool ShareMappedBuffer(const EventFd& event_fd, bool report_error);
|
D | RecordReadThread.h | 100 KernelRecordReader(EventFd* event_fd);
|
D | RecordReadThread_test.cpp | 190 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()
|
D | cmd_record_test.cpp | 305 std::unique_ptr<EventFd> event_fd = in HasNonZeroInstructionEventCount() local 307 if (!event_fd) { in HasNonZeroInstructionEventCount() 314 if (event_fd->ReadCounter(&counter)) { in HasNonZeroInstructionEventCount()
|
D | Android.bp | 276 "event_fd.cpp",
|
/system/bt/osi/src/ |
D | reactor.cc | 44 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()
|