Home
last modified time | relevance | path

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

/system/extras/simpleperf/
Devent_fd.cpp46 std::unique_ptr<EventFd> EventFd::OpenEventFile(const perf_event_attr& attr, pid_t tid, int cpu, in OpenEventFile()
47 EventFd* group_event_fd, in OpenEventFile()
90 return std::unique_ptr<EventFd>( in OpenEventFile()
91 new EventFd(real_attr, perf_event_fd, event_name, tid, cpu)); in OpenEventFile()
94 EventFd::~EventFd() { in ~EventFd()
100 std::string EventFd::Name() const { in Name()
106 uint64_t EventFd::Id() const { in Id()
116 bool EventFd::SetEnableEvent(bool enable) { in SetEnableEvent()
125 bool EventFd::SetFilter(const std::string& filter) { in SetFilter()
133 bool EventFd::InnerReadCounter(PerfCounter* counter) const { in InnerReadCounter()
[all …]
Devent_fd.h39 class EventFd {
41 static std::unique_ptr<EventFd> OpenEventFile(const perf_event_attr& attr, pid_t tid, int cpu,
42 EventFd* group_event_fd,
46 virtual ~EventFd();
72 bool ShareMappedBuffer(const EventFd& event_fd, bool report_error);
110 EventFd(const perf_event_attr& attr, int perf_event_fd, in EventFd() function
151 DISALLOW_COPY_AND_ASSIGN(EventFd);
DRecordReadThread.h100 KernelRecordReader(EventFd* event_fd);
102 EventFd* GetEventFd() const { return event_fd_; } in GetEventFd()
115 EventFd* event_fd_;
143 bool AddEventFds(const std::vector<EventFd*>& event_fds);
145 bool RemoveEventFds(const std::vector<EventFd*>& event_fds);
173 bool HandleAddEventFds(IOEventLoop& loop, const std::vector<EventFd*>& event_fds);
174 bool HandleRemoveEventFds(const std::vector<EventFd*>& event_fds);
Dcpu_hotplug_test.cpp260 std::unique_ptr<EventFd> event_fd = in TEST()
261 EventFd::OpenEventFile(attr, -1, test_cpu, nullptr, event_type_modifier->name, false); in TEST()
317 std::unique_ptr<EventFd> event_fd = in TEST()
318 EventFd::OpenEventFile(attr, -1, test_cpu, nullptr, event_type_modifier->name, false); in TEST()
401 ASSERT_TRUE(EventFd::OpenEventFile(attr, 0, -1, nullptr, event_type_modifier->name, true) != in TEST()
404 std::unique_ptr<EventFd> event_fd = EventFd::OpenEventFile( in TEST()
426 ASSERT_TRUE(EventFd::OpenEventFile(attr, -1, test_cpu, nullptr, event_type_modifier->name, in TEST()
455 std::unique_ptr<EventFd> event_fd = in TEST()
456 EventFd::OpenEventFile(attr, getpid(), record_cpu, nullptr, event_type_modifier->name); in TEST()
463 EventFd::OpenEventFile(attr, getpid(), record_cpu, nullptr, event_type_modifier->name); in TEST()
DRecordReadThread.cpp171 KernelRecordReader::KernelRecordReader(EventFd* event_fd) : event_fd_(event_fd) { in KernelRecordReader()
262 bool RecordReadThread::AddEventFds(const std::vector<EventFd*>& event_fds) { in AddEventFds()
263 return SendCmdToReadThread(CMD_ADD_EVENT_FDS, const_cast<std::vector<EventFd*>*>(&event_fds)); in AddEventFds()
266 bool RecordReadThread::RemoveEventFds(const std::vector<EventFd*>& event_fds) { in RemoveEventFds()
267 return SendCmdToReadThread(CMD_REMOVE_EVENT_FDS, const_cast<std::vector<EventFd*>*>(&event_fds)); in RemoveEventFds()
350 result = HandleAddEventFds(loop, *static_cast<std::vector<EventFd*>*>(cmd_arg_)); in HandleCmd()
353 result = HandleRemoveEventFds(*static_cast<std::vector<EventFd*>*>(cmd_arg_)); in HandleCmd()
374 const std::vector<EventFd*>& event_fds) { in HandleAddEventFds()
375 std::unordered_map<int, EventFd*> cpu_map; in HandleAddEventFds()
379 for (EventFd* fd : event_fds) { in HandleAddEventFds()
[all …]
DRecordReadThread_test.cpp116 struct MockEventFd : public EventFd {
119 : EventFd(attr, -1, "", 0, cpu) { in MockEventFd()
212 std::vector<EventFd*> CreateFakeEventFds(const perf_event_attr& attr, size_t event_fd_count) { in CreateFakeEventFds()
238 std::vector<EventFd*> result; in CreateFakeEventFds()
253 std::vector<EventFd*> event_fds = CreateFakeEventFds(attr, 2); in TEST_F()
293 std::vector<EventFd*> event_fds = CreateFakeEventFds(attr, event_fd_count); in TEST_F()
313 std::vector<EventFd*> event_fds = CreateFakeEventFds(attr, 1); in TEST_F()
375 std::vector<EventFd*> event_fds = CreateFakeEventFds(attr, 1); in TEST_F()
392 std::vector<EventFd*> event_fds = CreateFakeEventFds(attr, 1); in TEST_F()
418 std::vector<EventFd*> event_fds = CreateFakeEventFds(attr, 1); in TEST_F()
Devent_selection_set.cpp85 std::unique_ptr<EventFd> event_fd = in IsDumpingRegsForTracepointEventsSupported()
86 EventFd::OpenEventFile(attr, thread_id, -1, nullptr, event_type->name); in IsDumpingRegsForTracepointEventsSupported()
555 std::vector<std::unique_ptr<EventFd>> event_fds; in OpenEventFilesOnGroup()
558 EventFd* group_fd = nullptr; in OpenEventFilesOnGroup()
560 std::unique_ptr<EventFd> event_fd = EventFd::OpenEventFile( in OpenEventFilesOnGroup()
697 static bool ReadCounter(EventFd* event_fd, CounterInfo* counter) { in ReadCounter()
745 std::vector<EventFd*> event_fds; in PrepareToReadMmapEventData()
Dcmd_list.cpp63 std::unique_ptr<EventFd> event_fd = in IsEventTypeSupported()
64 EventFd::OpenEventFile(attr, gettid(), -1, nullptr, event_type.name, false); in IsEventTypeSupported()
Devent_selection_set.h185 std::vector<std::unique_ptr<EventFd>> event_fds;
Dcmd_record_test.cpp305 std::unique_ptr<EventFd> event_fd = in HasNonZeroInstructionEventCount()
306 EventFd::OpenEventFile(attr, gettid(), -1, nullptr, type->name, false); in HasNonZeroInstructionEventCount()