/system/extras/simpleperf/ |
D | event_attr.h | 33 perf_event_attr attr; 41 perf_event_attr CreateDefaultPerfEventAttr(const EventType& event_type); 42 void DumpPerfEventAttr(const perf_event_attr& attr, size_t indent = 0); 46 bool IsTimestampSupported(const perf_event_attr& attr); 47 bool IsCpuSupported(const perf_event_attr& attr); 50 std::string GetEventNameByAttr(const perf_event_attr& attr); 51 void ReplaceRegAndStackWithCallChain(perf_event_attr& attr); 53 inline bool operator==(const perf_event_attr& attr1, const perf_event_attr& attr2) { 54 return memcmp(&attr1, &attr2, sizeof(perf_event_attr)) == 0; 57 inline bool operator!=(const perf_event_attr& attr1, const perf_event_attr& attr2) {
|
D | record.h | 209 size_t CreateContent(const perf_event_attr& attr, uint64_t event_id); 212 bool ReadFromBinaryFormat(const perf_event_attr& attr, const char* p, const char* end); 240 virtual bool Parse(const perf_event_attr& attr, char* p, char* end) = 0; 295 MmapRecord(const perf_event_attr& attr, bool in_kernel, uint32_t pid, uint32_t tid, uint64_t addr, 299 bool Parse(const perf_event_attr& attr, char* p, char* end) override; 322 Mmap2Record(const perf_event_attr& attr, bool in_kernel, uint32_t pid, uint32_t tid, 326 bool Parse(const perf_event_attr& attr, char* p, char* end) override; 341 CommRecord(const perf_event_attr& attr, uint32_t pid, uint32_t tid, const std::string& comm, 344 bool Parse(const perf_event_attr& attr, char* p, char* end) override; 360 bool Parse(const perf_event_attr& attr, char* p, char* end) override; [all …]
|
D | event_fd.h | 43 static std::unique_ptr<EventFd> OpenEventFile(const perf_event_attr& attr, pid_t tid, int cpu, 59 const perf_event_attr& attr() const { return attr_; } in attr() 112 EventFd(const perf_event_attr& attr, int perf_event_fd, const std::string& event_name, pid_t tid, in EventFd() 130 const perf_event_attr attr_; 156 bool IsEventAttrSupported(const perf_event_attr& attr, const std::string& event_name);
|
D | event_attr.cpp | 80 perf_event_attr CreateDefaultPerfEventAttr(const EventType& event_type) { in CreateDefaultPerfEventAttr() 81 perf_event_attr attr; in CreateDefaultPerfEventAttr() 83 attr.size = sizeof(perf_event_attr); in CreateDefaultPerfEventAttr() 103 void DumpPerfEventAttr(const perf_event_attr& attr, size_t indent) { in DumpPerfEventAttr() 228 bool IsTimestampSupported(const perf_event_attr& attr) { in IsTimestampSupported() 232 bool IsCpuSupported(const perf_event_attr& attr) { in IsCpuSupported() 236 std::string GetEventNameByAttr(const perf_event_attr& attr) { in GetEventNameByAttr() 257 void ReplaceRegAndStackWithCallChain(perf_event_attr& attr) { in ReplaceRegAndStackWithCallChain()
|
D | MapRecordReader.h | 36 MapRecordReader(const perf_event_attr& attr, uint64_t event_id, bool keep_non_executable_maps) in MapRecordReader() 39 const perf_event_attr& Attr() { return attr_; } in Attr() 48 const perf_event_attr& attr_;
|
D | RecordReadThread_test.cpp | 119 perf_event_attr event_attr = CreateDefaultPerfEventAttr(*type); in TEST() 136 MockEventFd(const perf_event_attr& attr, int cpu, char* buffer, size_t buffer_size, in MockEventFd() 159 static perf_event_attr CreateFakeEventAttr() { in CreateFakeEventAttr() 165 static std::vector<std::unique_ptr<Record>> CreateFakeRecords(const perf_event_attr& attr, in CreateFakeRecords() 195 perf_event_attr attr = CreateFakeEventAttr(); in TEST() 234 std::vector<EventFd*> CreateFakeEventFds(const perf_event_attr& attr, size_t event_fd_count) { in CreateFakeEventFds() 274 perf_event_attr attr = CreateFakeEventAttr(); in TEST_F() 295 perf_event_attr attr = CreateFakeEventAttr(); in TEST_F() 327 perf_event_attr attr = CreateFakeEventAttr(); in TEST_F() 381 perf_event_attr attr = CreateFakeEventAttr(); in TEST_F() [all …]
|
D | record.cpp | 94 size_t SampleId::CreateContent(const perf_event_attr& attr, uint64_t event_id) { in CreateContent() 102 bool SampleId::ReadFromBinaryFormat(const perf_event_attr& attr, const char* p, const char* end) { in ReadFromBinaryFormat() 247 bool MmapRecord::Parse(const perf_event_attr& attr, char* p, char* end) { in Parse() 261 MmapRecord::MmapRecord(const perf_event_attr& attr, bool in_kernel, uint32_t pid, uint32_t tid, in MmapRecord() 296 bool Mmap2Record::Parse(const perf_event_attr& attr, char* p, char* end) { in Parse() 310 Mmap2Record::Mmap2Record(const perf_event_attr& attr, bool in_kernel, uint32_t pid, uint32_t tid, in Mmap2Record() 349 bool CommRecord::Parse(const perf_event_attr& attr, char* p, char* end) { in Parse() 363 CommRecord::CommRecord(const perf_event_attr& attr, uint32_t pid, uint32_t tid, in CommRecord() 411 bool ExitOrForkRecord::Parse(const perf_event_attr& attr, char* p, char* end) { in Parse() 426 ForkRecord::ForkRecord(const perf_event_attr& attr, uint32_t pid, uint32_t tid, uint32_t ppid, in ForkRecord() [all …]
|
D | RecordReadThread.h | 73 RecordParser(const perf_event_attr& attr); 133 RecordReadThread(size_t record_buffer_size, const perf_event_attr& attr, size_t min_mmap_pages, 191 perf_event_attr attr_;
|
D | event_fd.cpp | 43 static int perf_event_open(const perf_event_attr& attr, pid_t pid, int cpu, int group_fd, in perf_event_open() 48 std::unique_ptr<EventFd> EventFd::OpenEventFile(const perf_event_attr& attr, pid_t tid, int cpu, in OpenEventFile() 55 perf_event_attr real_attr = attr; in OpenEventFile() 329 bool IsEventAttrSupported(const perf_event_attr& attr, const std::string& event_name) { in IsEventAttrSupported()
|
D | test_util.cpp | 104 perf_event_attr attr = CreateDefaultPerfEventAttr(*type); in HasNonZeroInstructionEventCount() 137 perf_event_attr attr = CreateDefaultPerfEventAttr(*type); in HasHardwareCounter()
|
D | ETMRecorder.h | 62 void SetEtmPerfEventAttr(perf_event_attr* attr);
|
D | cmd_list.cpp | 48 perf_event_attr attr = CreateDefaultPerfEventAttr(event_type); in IsEventTypeSupported() 61 perf_event_attr attr = CreateDefaultPerfEventAttr(event_type); in IsEventTypeSupported()
|
D | record_file_format.h | 147 perf_event_attr attr;
|
D | event_selection_set.cpp | 47 perf_event_attr attr = CreateDefaultPerfEventAttr(*type); in IsBranchSamplingSupported() 62 perf_event_attr attr = CreateDefaultPerfEventAttr(*type); in IsDwarfCallChainSamplingSupported() 92 perf_event_attr attr = CreateDefaultPerfEventAttr(*event_type); in IsDumpingRegsForTracepointEventsSupported() 134 perf_event_attr attr = CreateDefaultPerfEventAttr(*type); in IsSettingClockIdSupported() 153 perf_event_attr attr = CreateDefaultPerfEventAttr(*type); in IsMmap2Supported() 163 perf_event_attr attr = CreateDefaultPerfEventAttr(*type); in IsHardwareEventSupported() 478 perf_event_attr& attr = selection.event_attr; in SetBranchSampling()
|
D | cpu_hotplug_test.cpp | 239 perf_event_attr attr = CreateDefaultPerfEventAttr(event_type_modifier->event_type); in TEST() 296 perf_event_attr attr = CreateDefaultPerfEventAttr(event_type_modifier->event_type); in TEST() 380 perf_event_attr attr = CreateDefaultPerfEventAttr(event_type_modifier->event_type); in TEST() 446 perf_event_attr attr = CreateDefaultPerfEventAttr(event_type_modifier->event_type); in TEST()
|
D | MapRecordReader_test.cpp | 51 perf_event_attr attr_;
|
D | record_lib_interface.cpp | 41 perf_event_attr attr = CreateDefaultPerfEventAttr(type); in GetAllEvents() 59 perf_event_attr attr = CreateDefaultPerfEventAttr(type->event_type); in IsEventSupported()
|
D | record_file_test.cpp | 89 ASSERT_EQ(0, memcmp(&attrs[0].attr, &attr_ids_[0].attr, sizeof(perf_event_attr))); in TEST_F() 124 ASSERT_EQ(0, memcmp(&attrs[i].attr, &attr_ids_[i].attr, sizeof(perf_event_attr))); in TEST_F()
|
D | record_file_reader.cpp | 183 if (attr_size_in_file >= sizeof(perf_event_attr)) { in ReadAttrSection() 184 memcpy(&event_attrs_[i].attr, &buf[0], sizeof(perf_event_attr)); in ReadAttrSection() 186 memset(&event_attrs_[i].attr, 0, sizeof(perf_event_attr)); in ReadAttrSection() 346 const perf_event_attr* attr = &event_attrs_[0].attr; in ReadRecord()
|
D | event_selection_set.h | 184 perf_event_attr event_attr;
|
D | ETMRecorder.cpp | 193 void ETMRecorder::SetEtmPerfEventAttr(perf_event_attr* attr) { in SetEtmPerfEventAttr()
|
D | record_test.cpp | 42 perf_event_attr event_attr;
|
D | record_file.h | 122 perf_event_attr event_attr_;
|
/system/extras/tests/icachetest/ |
D | Profiler.cpp | 41 static int perf_event_open(struct perf_event_attr* hw_event, pid_t pid, in perf_event_open() 80 struct perf_event_attr pe; in resetEvents() 81 memset(&pe, 0, sizeof(struct perf_event_attr)); in resetEvents() 83 pe.size = sizeof(struct perf_event_attr); in resetEvents()
|
/system/core/init/ |
D | security.cpp | 202 struct perf_event_attr pe = { in TestPerfEventSelinuxAction() 204 .size = sizeof(struct perf_event_attr), in TestPerfEventSelinuxAction()
|