/system/extras/simpleperf/ |
D | record_test.cpp | 58 SampleRecord record(event_attr, 1, 2, 3, 4, 5, 6, 7, {8, 9, 10}, {}, 0); in TEST_F() 63 SampleRecord r(event_attr, 0, 1, 0, 0, 0, 0, 0, {}, {}, 0); in TEST_F() 67 SampleRecord r1(event_attr, 0, 1, 0, 0, 0, 0, 0, {PERF_CONTEXT_USER, 2}, {}, 0); in TEST_F() 70 SampleRecord r2(event_attr, r1.BinaryForTestingOnly()); in TEST_F() 76 SampleRecord r3(event_attr, 0, 1, 0, 0, 0, 0, 0, {1, PERF_CONTEXT_USER, 2}, {}, 0); in TEST_F() 79 SampleRecord r4(event_attr, r3.BinaryForTestingOnly()); in TEST_F() 86 SampleRecord r5(event_attr, 0, 1, 0, 0, 0, 0, 0, {1, 2}, {}, 0); in TEST_F() 88 SampleRecord r6(event_attr, 0, 1, 0, 0, 0, 0, 0, {1, 2, PERF_CONTEXT_USER}, {}, 0); in TEST_F() 92 SampleRecord r7(event_attr, 0, 1, 0, 0, 0, 0, 0, in TEST_F() 96 CheckRecordEqual(r7, SampleRecord(event_attr, 0, 3, 0, 0, 0, 0, 0, in TEST_F() [all …]
|
D | record_equal_test.h | 33 static void CheckSampleRecordDataEqual(const SampleRecord& r1, const SampleRecord& r2) { in CheckSampleRecordDataEqual() 83 CheckSampleRecordDataEqual(static_cast<const SampleRecord&>(r1), in CheckRecordEqual() 84 static_cast<const SampleRecord&>(r2)); in CheckRecordEqual()
|
D | cmd_report.cpp | 150 virtual void ReportCmdProcessSampleRecord(std::shared_ptr<SampleRecord>& r) { in ReportCmdProcessSampleRecord() 154 virtual void ReportCmdProcessSampleRecord(const SampleRecord& r) { in ReportCmdProcessSampleRecord() 159 virtual uint64_t GetPeriod(const SampleRecord& r) = 0; 161 SampleEntry* CreateSample(const SampleRecord& r, bool in_kernel, in CreateSample() 176 SampleEntry* CreateBranchSample(const SampleRecord& r, in CreateBranchSample() 284 uint64_t GetPeriod(const SampleRecord& r) override { in GetPeriod() 296 void ReportCmdProcessSampleRecord(std::shared_ptr<SampleRecord>& r) override { in ReportCmdProcessSampleRecord() 302 std::shared_ptr<SampleRecord> cur = it->second; in ReportCmdProcessSampleRecord() 309 uint64_t GetPeriod(const SampleRecord& r) override { in GetPeriod() 320 std::unordered_map<pid_t, std::shared_ptr<SampleRecord>> next_sample_cache_; [all …]
|
D | cmd_debug_unwind.cpp | 108 void CollectHitFileInfo(const SampleRecord& r, const std::vector<uint64_t>& ips); 229 auto& r = *static_cast<SampleRecord*>(record); in ProcessRecord() 272 void DebugUnwindCommand::CollectHitFileInfo(const SampleRecord& r, in CollectHitFileInfo() 318 SampleRecord& sr = *static_cast<SampleRecord*>(r.get()); in JoinCallChains()
|
D | RecordReadThread_test.cpp | 95 auto sr = static_cast<SampleRecord*>(record.get()); in TEST() 150 SampleRecord* r = new SampleRecord(attr, i, i + 1, i + 2, i + 3, i + 4, i + 5, i + 6, {}, in CreateFakeRecords() 327 SampleRecord* sr = static_cast<SampleRecord*>(r.get()); in TEST_F() 333 sr = static_cast<SampleRecord*>(r.get()); in TEST_F() 342 sr = static_cast<SampleRecord*>(r.get()); in TEST_F() 411 records_.emplace_back(new SampleRecord(attr, 0, 1, getpid(), 3, 4, 5, 6, {}, in TEST_F() 413 records_.emplace_back(new SampleRecord(attr, 0, 1, getpid() + 1, 3, 4, 5, 6, {}, in TEST_F()
|
D | report_lib_interface.cpp | 181 std::unique_ptr<SampleRecord> current_record_; 193 std::unordered_map<pid_t, std::unique_ptr<SampleRecord>> next_sample_cache_; 263 SampleRecord* r = static_cast<SampleRecord*>(record.release()); in GetNextSample() 273 current_record_.reset(static_cast<SampleRecord*>(record.release())); in GetNextSample() 288 SampleRecord& r = *current_record_; in SetCurrentSample()
|
D | record.cpp | 425 SampleRecord::SampleRecord(const perf_event_attr& attr, char* p) : Record(p) { in SampleRecord() function in SampleRecord 503 SampleRecord::SampleRecord(const perf_event_attr& attr, uint64_t id, in SampleRecord() function in SampleRecord 602 void SampleRecord::ReplaceRegAndStackWithCallChain(const std::vector<uint64_t>& ips) { in ReplaceRegAndStackWithCallChain() 610 bool SampleRecord::ExcludeKernelCallChain() { in ExcludeKernelCallChain() 637 bool SampleRecord::HasUserCallChain() const { in HasUserCallChain() 653 void SampleRecord::UpdateUserCallChain(const std::vector<uint64_t>& user_ips) { in UpdateUserCallChain() 671 void SampleRecord::BuildBinaryWithNewCallChain(uint32_t new_size, in BuildBinaryWithNewCallChain() 725 void SampleRecord::DumpData(size_t indent) const { in DumpData() 802 uint64_t SampleRecord::Timestamp() const { return time_data.time; } in Timestamp() 803 uint32_t SampleRecord::Cpu() const { return cpu_data.cpu; } in Cpu() [all …]
|
D | cmd_report_sample.cpp | 118 bool ProcessSampleRecord(const SampleRecord& r); 119 bool PrintSampleRecordInProtobuf(const SampleRecord& record, 127 bool PrintSampleRecord(const SampleRecord& record, const std::vector<CallEntry>& entries); 469 return ProcessSampleRecord(*static_cast<SampleRecord*>(record.get())); in ProcessRecord() 477 bool ReportSampleCommand::ProcessSampleRecord(const SampleRecord& r) { in ProcessSampleRecord() 529 bool ReportSampleCommand::PrintSampleRecordInProtobuf(const SampleRecord& r, in PrintSampleRecordInProtobuf() 660 bool ReportSampleCommand::PrintSampleRecord(const SampleRecord& r, in PrintSampleRecord()
|
D | sample_tree.h | 86 void ProcessSampleRecord(const SampleRecord& r) { in ProcessSampleRecord() 189 virtual EntryT* CreateSample(const SampleRecord& r, bool in_kernel, 191 virtual EntryT* CreateBranchSample(const SampleRecord& r,
|
D | sample_tree_test.cpp | 72 SampleEntry* CreateSample(const SampleRecord&, bool, int*) override { in CreateSample() argument 75 SampleEntry* CreateBranchSample(const SampleRecord&, in CreateBranchSample() argument
|
D | cmd_record.cpp | 332 bool UnwindRecord(SampleRecord& r); 339 void CollectHitFileInfo(const SampleRecord& r); 1336 pid_t pid = static_cast<SampleRecord*>(record)->tid_data.pid; in DumpMapsForRecord() 1361 auto& r = *static_cast<SampleRecord*>(record); in SaveRecordAfterUnwinding() 1385 auto& r = *static_cast<SampleRecord*>(record); in SaveRecordWithoutUnwinding() 1524 bool RecordCommand::UnwindRecord(SampleRecord& r) { in UnwindRecord() 1614 SampleRecord& sr = *static_cast<SampleRecord*>(r.get()); in JoinCallChains() 1648 CollectHitFileInfo(*reinterpret_cast<const SampleRecord*>(r)); in DumpAdditionalFeatures() 1791 void RecordCommand::CollectHitFileInfo(const SampleRecord& r) { in CollectHitFileInfo()
|
D | cmd_trace_sched.cpp | 105 void ProcessSampleRecord(const SampleRecord& record); 209 ProcessSampleRecord(*static_cast<SampleRecord*>(&record)); in ProcessRecord() 245 void TraceSchedCommand::ProcessSampleRecord(const SampleRecord& record) { in ProcessSampleRecord()
|
D | cmd_dumprecord.cpp | 152 void ProcessSampleRecord(const SampleRecord& r); 290 ProcessSampleRecord(*static_cast<SampleRecord*>(r)); in ProcessRecord() 317 void DumpRecordCommand::ProcessSampleRecord(const SampleRecord& sr) { in ProcessSampleRecord()
|
D | record.h | 378 struct SampleRecord : public Record { struct 398 SampleRecord(const perf_event_attr& attr, char* p); argument 399 SampleRecord(const perf_event_attr& attr, uint64_t id, uint64_t ip,
|
D | cmd_kmem.cpp | 146 SlabSample* CreateSample(const SampleRecord& r, bool in_kernel, in CreateSample() 209 SlabSample* CreateBranchSample(const SampleRecord&, in CreateBranchSample() argument 612 *static_cast<const SampleRecord*>(record.get())); in ProcessRecord()
|
D | cmd_record_test.cpp | 755 SampleRecord* sr = static_cast<SampleRecord*>(r.get()); in TEST() 784 SampleRecord* sr = static_cast<SampleRecord*>(r.get()); in TEST() 1079 if (static_cast<SampleRecord*>(r.get())->tid_data.pid == perf_pid) { in TEST()
|
D | event_selection_set.cpp | 100 auto& record = *static_cast<SampleRecord*>(r.get()); in IsDumpingRegsForTracepointEventsSupported()
|
D | JITDebugReader.cpp | 307 auto r = static_cast<const SampleRecord*>(record); in UpdateRecord()
|