Home
last modified time | relevance | path

Searched refs:EventFd (Results 1 – 9 of 9) sorted by relevance

/system/extras/simpleperf/
Devent_fd.cpp46 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()
[all …]
Devent_fd.h39 class EventFd {
41 static std::unique_ptr<EventFd> OpenEventFile(const perf_event_attr& attr,
43 EventFd* group_event_fd,
46 virtual ~EventFd();
71 bool ShareMappedBuffer(const EventFd& event_fd, bool report_error);
94 EventFd(const perf_event_attr& attr, int perf_event_fd, in EventFd() function
131 DISALLOW_COPY_AND_ASSIGN(EventFd);
DRecordReadThread.h88 KernelRecordReader(EventFd* event_fd);
90 EventFd* GetEventFd() const { return event_fd_; } in GetEventFd()
103 EventFd* event_fd_;
130 bool AddEventFds(const std::vector<EventFd*>& event_fds);
132 bool RemoveEventFds(const std::vector<EventFd*>& event_fds);
163 bool HandleAddEventFds(IOEventLoop& loop, const std::vector<EventFd*>& event_fds);
164 bool HandleRemoveEventFds(const std::vector<EventFd*>& event_fds);
Dcpu_hotplug_test.cpp260 std::unique_ptr<EventFd> event_fd = EventFd::OpenEventFile(attr, -1, test_cpu, nullptr, false); in TEST()
316 std::unique_ptr<EventFd> event_fd = EventFd::OpenEventFile(attr, -1, test_cpu, nullptr, false); in TEST()
399 ASSERT_TRUE(EventFd::OpenEventFile(attr, 0, -1, nullptr, true) != nullptr); in TEST()
401 std::unique_ptr<EventFd> event_fd = EventFd::OpenEventFile(attr, cpu_spin_arg.tid, in TEST()
423 ASSERT_TRUE(EventFd::OpenEventFile(attr, -1, test_cpu, nullptr, true) != nullptr); in TEST()
451 std::unique_ptr<EventFd> event_fd = EventFd::OpenEventFile(attr, getpid(), record_cpu, nullptr); in TEST()
457 event_fd = EventFd::OpenEventFile(attr, getpid(), record_cpu, nullptr); in TEST()
DRecordReadThread.cpp165 KernelRecordReader::KernelRecordReader(EventFd* event_fd) : event_fd_(event_fd) { in KernelRecordReader()
244 bool RecordReadThread::AddEventFds(const std::vector<EventFd*>& event_fds) { in AddEventFds()
245 return SendCmdToReadThread(CMD_ADD_EVENT_FDS, const_cast<std::vector<EventFd*>*>(&event_fds)); in AddEventFds()
248 bool RecordReadThread::RemoveEventFds(const std::vector<EventFd*>& event_fds) { in RemoveEventFds()
249 return SendCmdToReadThread(CMD_REMOVE_EVENT_FDS, const_cast<std::vector<EventFd*>*>(&event_fds)); in RemoveEventFds()
326 result = HandleAddEventFds(loop, *static_cast<std::vector<EventFd*>*>(cmd_arg_)); in HandleCmd()
329 result = HandleRemoveEventFds(*static_cast<std::vector<EventFd*>*>(cmd_arg_)); in HandleCmd()
350 const std::vector<EventFd*>& event_fds) { in HandleAddEventFds()
351 std::unordered_map<int, EventFd*> cpu_map; in HandleAddEventFds()
354 for (EventFd* fd : event_fds) { in HandleAddEventFds()
[all …]
DRecordReadThread_test.cpp108 struct MockEventFd : public EventFd {
110 : EventFd(attr, -1, "", 0, cpu) { in MockEventFd()
195 std::vector<EventFd*> CreateFakeEventFds(const perf_event_attr& attr, size_t event_fd_count) { in CreateFakeEventFds()
220 std::vector<EventFd*> result; in CreateFakeEventFds()
235 std::vector<EventFd*> event_fds = CreateFakeEventFds(attr, 2); in TEST_F()
275 std::vector<EventFd*> event_fds = CreateFakeEventFds(attr, event_fd_count); in TEST_F()
295 std::vector<EventFd*> event_fds = CreateFakeEventFds(attr, 1); in TEST_F()
361 std::vector<EventFd*> event_fds = CreateFakeEventFds(attr, 1); in TEST_F()
Devent_selection_set.cpp78 std::unique_ptr<EventFd> event_fd = in IsDumpingRegsForTracepointEventsSupported()
79 EventFd::OpenEventFile(attr, thread_id, -1, nullptr); in IsDumpingRegsForTracepointEventsSupported()
469 std::vector<std::unique_ptr<EventFd>> event_fds; in OpenEventFilesOnGroup()
472 EventFd* group_fd = nullptr; in OpenEventFilesOnGroup()
474 std::unique_ptr<EventFd> event_fd = in OpenEventFilesOnGroup()
475 EventFd::OpenEventFile(selection.event_attr, tid, cpu, group_fd, false); in OpenEventFilesOnGroup()
581 static bool ReadCounter(EventFd* event_fd, CounterInfo* counter) { in ReadCounter()
626 std::vector<EventFd*> event_fds; in PrepareToReadMmapEventData()
761 std::vector<EventFd*> remove_fds; in HandleCpuOfflineEvent()
845 std::vector<EventFd*> event_fds; in CreateMappedBufferForCpu()
Dcmd_list.cpp48 std::unique_ptr<EventFd> event_fd = EventFd::OpenEventFile(attr, gettid(), -1, nullptr); in IsEventTypeSupported()
Devent_selection_set.h158 std::vector<std::unique_ptr<EventFd>> event_fds;