/system/extras/simpleperf/ |
D | event_fd.cpp | 46 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 …]
|
D | event_fd.h | 39 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);
|
D | RecordReadThread.h | 100 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);
|
D | cpu_hotplug_test.cpp | 260 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()
|
D | RecordReadThread.cpp | 171 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 …]
|
D | RecordReadThread_test.cpp | 116 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()
|
D | event_selection_set.cpp | 85 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()
|
D | cmd_list.cpp | 63 std::unique_ptr<EventFd> event_fd = in IsEventTypeSupported() 64 EventFd::OpenEventFile(attr, gettid(), -1, nullptr, event_type.name, false); in IsEventTypeSupported()
|
D | event_selection_set.h | 185 std::vector<std::unique_ptr<EventFd>> event_fds;
|
D | cmd_record_test.cpp | 305 std::unique_ptr<EventFd> event_fd = in HasNonZeroInstructionEventCount() 306 EventFd::OpenEventFile(attr, gettid(), -1, nullptr, type->name, false); in HasNonZeroInstructionEventCount()
|