/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 | 138 virtual void ReportCmdProcessSampleRecord(std::shared_ptr<SampleRecord>& r) { in ReportCmdProcessSampleRecord() 142 virtual void ReportCmdProcessSampleRecord(const SampleRecord& r) { in ReportCmdProcessSampleRecord() 147 virtual uint64_t GetPeriod(const SampleRecord& r) = 0; 149 SampleEntry* CreateSample(const SampleRecord& r, bool in_kernel, in CreateSample() 164 SampleEntry* CreateBranchSample(const SampleRecord& r, in CreateBranchSample() 271 uint64_t GetPeriod(const SampleRecord& r) override { in GetPeriod() 283 void ReportCmdProcessSampleRecord(std::shared_ptr<SampleRecord>& r) override { in ReportCmdProcessSampleRecord() 289 std::shared_ptr<SampleRecord> cur = it->second; in ReportCmdProcessSampleRecord() 296 uint64_t GetPeriod(const SampleRecord& r) override { in GetPeriod() 307 std::unordered_map<pid_t, std::shared_ptr<SampleRecord>> next_sample_cache_; [all …]
|
D | RecordReadThread_test.cpp | 98 ASSERT_EQ(static_cast<SampleRecord*>(record.get())->stack_user_data.size, stack_size); in TEST() 133 SampleRecord* r = new SampleRecord(attr, i, i + 1, i + 2, i + 3, i + 4, i + 5, i + 6, {}, in CreateFakeRecords() 309 SampleRecord* sr = static_cast<SampleRecord*>(r.get()); in TEST_F() 315 sr = static_cast<SampleRecord*>(r.get()); in TEST_F() 324 sr = static_cast<SampleRecord*>(r.get()); in TEST_F()
|
D | cmd_debug_unwind.cpp | 108 void CollectHitFileInfo(const SampleRecord& r, const std::vector<uint64_t>& ips); 228 auto& r = *static_cast<SampleRecord*>(record); in ProcessRecord() 271 void DebugUnwindCommand::CollectHitFileInfo(const SampleRecord& r, in CollectHitFileInfo() 317 SampleRecord& sr = *static_cast<SampleRecord*>(r.get()); in JoinCallChains()
|
D | report_lib_interface.cpp | 179 std::unique_ptr<SampleRecord> current_record_; 192 std::unordered_map<pid_t, std::unique_ptr<SampleRecord>> next_sample_cache_; 259 SampleRecord* r = static_cast<SampleRecord*>(record.release()); in GetNextSample() 269 current_record_.reset(static_cast<SampleRecord*>(record.release())); in GetNextSample() 284 SampleRecord& r = *current_record_; in SetCurrentSample()
|
D | record.cpp | 422 SampleRecord::SampleRecord(const perf_event_attr& attr, char* p) : Record(p) { in SampleRecord() function in SampleRecord 500 SampleRecord::SampleRecord(const perf_event_attr& attr, uint64_t id, in SampleRecord() function in SampleRecord 599 void SampleRecord::ReplaceRegAndStackWithCallChain(const std::vector<uint64_t>& ips) { in ReplaceRegAndStackWithCallChain() 607 bool SampleRecord::ExcludeKernelCallChain() { in ExcludeKernelCallChain() 634 bool SampleRecord::HasUserCallChain() const { in HasUserCallChain() 650 void SampleRecord::UpdateUserCallChain(const std::vector<uint64_t>& user_ips) { in UpdateUserCallChain() 668 void SampleRecord::BuildBinaryWithNewCallChain(uint32_t new_size, in BuildBinaryWithNewCallChain() 722 void SampleRecord::DumpData(size_t indent) const { in DumpData() 799 uint64_t SampleRecord::Timestamp() const { return time_data.time; } in Timestamp() 800 uint32_t SampleRecord::Cpu() const { return cpu_data.cpu; } in Cpu() [all …]
|
D | cmd_report_sample.cpp | 115 bool ProcessSampleRecord(const SampleRecord& r); 116 bool PrintSampleRecordInProtobuf(const SampleRecord& record, 124 bool PrintSampleRecord(const SampleRecord& record, const std::vector<CallEntry>& entries); 475 return ProcessSampleRecord(*static_cast<SampleRecord*>(record.get())); in ProcessRecord() 483 bool ReportSampleCommand::ProcessSampleRecord(const SampleRecord& r) { in ProcessSampleRecord() 533 bool ReportSampleCommand::PrintSampleRecordInProtobuf(const SampleRecord& r, in PrintSampleRecordInProtobuf() 667 bool ReportSampleCommand::PrintSampleRecord(const SampleRecord& r, in PrintSampleRecord()
|
D | sample_tree.h | 84 void ProcessSampleRecord(const SampleRecord& r) { in ProcessSampleRecord() 187 virtual EntryT* CreateSample(const SampleRecord& r, bool in_kernel, 189 virtual EntryT* CreateBranchSample(const SampleRecord& r,
|
D | cmd_record.cpp | 290 bool UnwindRecord(SampleRecord& r); 297 void CollectHitFileInfo(const SampleRecord& r); 1229 pid_t pid = static_cast<SampleRecord*>(record)->tid_data.pid; in DumpMapsForRecord() 1254 auto& r = *static_cast<SampleRecord*>(record); in SaveRecordAfterUnwinding() 1278 auto& r = *static_cast<SampleRecord*>(record); in SaveRecordWithoutUnwinding() 1407 bool RecordCommand::UnwindRecord(SampleRecord& r) { in UnwindRecord() 1497 SampleRecord& sr = *static_cast<SampleRecord*>(r.get()); in JoinCallChains() 1530 CollectHitFileInfo(*reinterpret_cast<const SampleRecord*>(r)); in DumpAdditionalFeatures() 1659 void RecordCommand::CollectHitFileInfo(const SampleRecord& r) { in CollectHitFileInfo()
|
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_trace_sched.cpp | 104 void ProcessSampleRecord(const SampleRecord& record); 219 ProcessSampleRecord(*static_cast<SampleRecord*>(&record)); in ProcessRecord() 255 void TraceSchedCommand::ProcessSampleRecord(const SampleRecord& record) { in ProcessSampleRecord()
|
D | record.h | 375 struct SampleRecord : public Record { struct 395 SampleRecord(const perf_event_attr& attr, char* p); argument 396 SampleRecord(const perf_event_attr& attr, uint64_t id, uint64_t ip,
|
D | cmd_dumprecord.cpp | 183 SampleRecord& sr = *static_cast<SampleRecord*>(r.get()); in DumpDataSection()
|
D | cmd_record_test.cpp | 701 SampleRecord* sr = static_cast<SampleRecord*>(r.get()); in TEST() 729 SampleRecord* sr = static_cast<SampleRecord*>(r.get()); in TEST()
|
D | InplaceSamplerClient.cpp | 182 SampleRecord r(attr_, Id(), ips[0], pid_, tid, time, 0, period, ips, {}, 0); in HandleMessage()
|
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 | JITDebugReader.cpp | 166 auto r = static_cast<const SampleRecord*>(record); in UpdateRecord()
|
D | event_selection_set.cpp | 94 auto& record = *static_cast<SampleRecord*>(r.get()); in IsDumpingRegsForTracepointEventsSupported()
|