/system/extras/simpleperf/ |
D | record_test.cpp | 62 SampleRecord record(event_attr, 1, 2, 3, 4, 5, 6, 7, {}, {8, 9, 10}, {}, 0); in TEST_F() 68 SampleRecord r(event_attr, 0, 1, 0, 0, 0, 0, 0, {}, {}, {}, 0); in TEST_F() 72 SampleRecord r1(event_attr, 0, 1, 0, 0, 0, 0, 0, {}, {PERF_CONTEXT_USER, 2}, {}, 0); in TEST_F() 75 SampleRecord r2; in TEST_F() 83 SampleRecord r3(event_attr, 0, 1, 0, 0, 0, 0, 0, {}, {1, PERF_CONTEXT_USER, 2}, {}, 0); in TEST_F() 86 SampleRecord r4; in TEST_F() 95 SampleRecord r5(event_attr, 0, 1, 0, 0, 0, 0, 0, {}, {1, 2}, {}, 0); in TEST_F() 97 SampleRecord r6(event_attr, 0, 1, 0, 0, 0, 0, 0, {}, {1, 2, PERF_CONTEXT_USER}, {}, 0); in TEST_F() 101 SampleRecord r7(event_attr, 0, 1, 0, 0, 0, 0, 0, {}, in TEST_F() 105 CheckRecordEqual(r7, SampleRecord(event_attr, 0, 3, 0, 0, 0, 0, 0, {}, in TEST_F() [all …]
|
D | report_lib_interface.cpp | 162 std::unordered_map<pid_t, std::unique_ptr<SampleRecord>> thread_map; 218 std::unique_ptr<SampleRecord> GetNextSampleRecord(); 221 void AddSampleRecordToQueue(SampleRecord* r); 222 bool SetCurrentSample(std::unique_ptr<SampleRecord> sample_record); 223 const EventInfo& FindEvent(const SampleRecord& r); 233 std::queue<std::unique_ptr<SampleRecord>> sample_record_queue_; 366 std::unique_ptr<SampleRecord> r = GetNextSampleRecord(); in GetNextSample() 377 std::unique_ptr<SampleRecord> ReportLib::GetNextSampleRecord() { in GetNextSampleRecord() 398 std::unique_ptr<SampleRecord> result = std::move(sample_record_queue_.front()); in GetNextSampleRecord() 404 auto sr = static_cast<SampleRecord*>(r.get()); in ProcessSampleRecord() [all …]
|
D | RecordFilter_test.cpp | 42 record.reset(new SampleRecord(attr, 0, 0, 0, 0, 0, 0, 0, {}, {}, {}, 0)); in SetUp() 45 SampleRecord& GetRecord(uint32_t pid, uint32_t tid) { in GetRecord() 59 std::unique_ptr<SampleRecord> record; 70 SampleRecord& r = GetRecord(0, 0); in TEST_F() 175 SampleRecord& r = GetRecord(1, 1); in TEST_F() 201 SampleRecord& r = GetRecord(1, 1); in TEST_F() 225 SampleRecord& r = GetRecord(1, 1); in TEST_F() 353 SampleRecord& r = GetRecord(0, 0); in TEST_F()
|
D | cmd_monitor.cpp | 165 void DumpSampleRecord(const SampleRecord& sr); 166 void DumpSampleCallchain(const SampleRecord& sr); 171 bool UnwindRecord(SampleRecord& r); 495 auto& r = *static_cast<SampleRecord*>(record); in ProcessRecord() 524 void MonitorCommand::DumpSampleRecord(const SampleRecord& sr) { in DumpSampleRecord() 537 void MonitorCommand::DumpSampleCallchain(const SampleRecord& sr) { in DumpSampleCallchain() 568 pid_t pid = static_cast<SampleRecord*>(record)->tid_data.pid; in DumpMapsForRecord() 592 bool MonitorCommand::UnwindRecord(SampleRecord& r) { in UnwindRecord()
|
D | record_equal_test.h | 40 static void CheckRecordDataEqual(const SampleRecord& r1, const SampleRecord& r2) { in CheckRecordDataEqual() 103 CheckRecordDataEqual(static_cast<const SampleRecord&>(r1), in CheckRecordEqual() 104 static_cast<const SampleRecord&>(r2)); in CheckRecordEqual()
|
D | cmd_report.cpp | 166 virtual void ReportCmdProcessSampleRecord(std::shared_ptr<SampleRecord>& r) { in ReportCmdProcessSampleRecord() 170 virtual void ReportCmdProcessSampleRecord(const SampleRecord& r) { in ReportCmdProcessSampleRecord() 175 virtual uint64_t GetPeriod(const SampleRecord& r) = 0; 177 SampleEntry* CreateSample(const SampleRecord& r, bool in_kernel, AccInfo* acc_info) override { in CreateSample() 192 SampleEntry* CreateBranchSample(const SampleRecord& r, const BranchStackItemType& item) override { in CreateBranchSample() 275 std::vector<uint64_t> GetCountsForSample(const SampleRecord& r) { in GetCountsForSample() 319 uint64_t GetPeriod(const SampleRecord& r) override { return r.period_data.period; } in GetPeriod() 330 void ReportCmdProcessSampleRecord(std::shared_ptr<SampleRecord>& r) override { in ReportCmdProcessSampleRecord() 336 std::shared_ptr<SampleRecord> cur = it->second; in ReportCmdProcessSampleRecord() 343 uint64_t GetPeriod(const SampleRecord& r) override { in GetPeriod() [all …]
|
D | RecordFilter.cpp | 33 bool Check(const SampleRecord& sample) override { in Check() 49 bool Check(const SampleRecord& sample) override { in Check() 69 bool Check(const SampleRecord& sample) override { in Check() 95 bool Check(const SampleRecord& sample) override { in Check() 126 bool Check(const SampleRecord& sample) override { in Check() 151 bool Check(const SampleRecord& sample) override { in Check() 260 bool Check(const SampleRecord& sample) override { in Check() 503 bool RecordFilter::Check(const SampleRecord& r) { in Check()
|
D | RecordFilter.h | 106 virtual bool Check(const SampleRecord& sample) = 0; 128 bool Check(const SampleRecord& r);
|
D | RecordReadThread_test.cpp | 98 auto sr = static_cast<SampleRecord*>(record.get()); in TEST() 175 SampleRecord* r = new SampleRecord(attr, i, i + 1, i + 2, i + 3, i + 4, i + 5, i + 6, {}, {}, in CreateFakeRecords() 359 SampleRecord* sr = static_cast<SampleRecord*>(r.get()); in TEST_F() 365 sr = static_cast<SampleRecord*>(r.get()); in TEST_F() 374 sr = static_cast<SampleRecord*>(r.get()); in TEST_F() 446 records_.emplace_back(new SampleRecord(attr, 0, 1, getpid(), 3, 4, 5, 6, {}, {}, in TEST_F() 448 records_.emplace_back(new SampleRecord(attr, 0, 1, getpid() + 1, 3, 4, 5, 6, {}, {}, in TEST_F()
|
D | sample_tree.h | 83 void ProcessSampleRecord(const SampleRecord& r) { in ProcessSampleRecord() 184 virtual EntryT* CreateSample(const SampleRecord& r, bool in_kernel, 186 virtual EntryT* CreateBranchSample(const SampleRecord& r, const BranchStackItemType& item) = 0;
|
D | cmd_debug_unwind.cpp | 259 auto& sr = *static_cast<SampleRecord*>(r.get()); in ProcessRecord() 303 bool UnwindRecord(const SampleRecord& r, const PerfSampleRegsUserType& regs, in UnwindRecord() 392 if (!WriteMapsForSample(*static_cast<SampleRecord*>(r.get()))) { in ProcessRecord() 403 bool WriteMapsForSample(const SampleRecord& r) { in WriteMapsForSample() 535 ReportUnwindingResult(*static_cast<SampleRecord*>(r.get()), *last_unwinding_result_); in ProcessRecord() 542 void ReportUnwindingResult(const SampleRecord& sr, const UnwindingResultRecord& unwinding_r) { in ReportUnwindingResult()
|
D | record.cpp | 461 bool SampleRecord::Parse(const perf_event_attr& attr, char* p, char* end) { in Parse() 591 SampleRecord::SampleRecord(const perf_event_attr& attr, uint64_t id, uint64_t ip, uint32_t pid, in SampleRecord() function in simpleperf::SampleRecord 716 void SampleRecord::ReplaceRegAndStackWithCallChain(const std::vector<uint64_t>& ips) { in ReplaceRegAndStackWithCallChain() 730 bool SampleRecord::ExcludeKernelCallChain() { in ExcludeKernelCallChain() 757 bool SampleRecord::HasUserCallChain() const { in HasUserCallChain() 773 void SampleRecord::UpdateUserCallChain(const std::vector<uint64_t>& user_ips) { in UpdateUserCallChain() 791 void SampleRecord::BuildBinaryWithNewCallChain(uint32_t new_size, in BuildBinaryWithNewCallChain() 850 void SampleRecord::DumpData(size_t indent) const { in DumpData() 940 uint64_t SampleRecord::Timestamp() const { in Timestamp() 943 uint32_t SampleRecord::Cpu() const { in Cpu() [all …]
|
D | cmd_record.cpp | 405 bool UnwindRecord(SampleRecord& r); 406 bool KeepFailedUnwindingResult(const SampleRecord& r, const std::vector<uint64_t>& ips, 419 void CollectHitFileInfo(const SampleRecord& r, std::unordered_set<Dso*>* dso_set); 1567 if (!record_filter_.Check(static_cast<SampleRecord&>(*record))) { in ProcessRecord() 1621 pid_t pid = static_cast<SampleRecord*>(record)->tid_data.pid; in DumpMapsForRecord() 1644 auto& r = *static_cast<SampleRecord*>(record); in SaveRecordAfterUnwinding() 1666 auto& r = *static_cast<SampleRecord*>(record); in SaveRecordWithoutUnwinding() 1807 bool RecordCommand::UnwindRecord(SampleRecord& r) { in UnwindRecord() 1848 bool RecordCommand::KeepFailedUnwindingResult(const SampleRecord& r, in KeepFailedUnwindingResult() 1969 SampleRecord& sr = *static_cast<SampleRecord*>(r.get()); in JoinCallChains() [all …]
|
D | sample_tree_test.cpp | 73 SampleEntry* CreateSample(const SampleRecord&, bool, int*) override { return nullptr; } in CreateSample() argument 74 SampleEntry* CreateBranchSample(const SampleRecord&, const BranchStackItemType&) override { in CreateBranchSample() argument
|
D | cmd_trace_sched.cpp | 104 void ProcessSampleRecord(const SampleRecord& record); 209 ProcessSampleRecord(*static_cast<SampleRecord*>(&record)); in ProcessRecord() 252 void TraceSchedCommand::ProcessSampleRecord(const SampleRecord& record) { in ProcessSampleRecord()
|
D | test_util.cpp | 50 auto sample = static_cast<const SampleRecord*>(record.get()); in CanSampleRegsFor32BitABI()
|
D | cmd_record_test.cpp | 721 SampleRecord* sr = static_cast<SampleRecord*>(r.get()); in TEST() 751 SampleRecord* sr = static_cast<SampleRecord*>(r.get()); in TEST() 1003 auto sample = static_cast<SampleRecord*>(r.get()); in TEST() 1248 if (static_cast<SampleRecord*>(r.get())->tid_data.pid == perf_pid) { in TEST() 1425 auto sr = static_cast<SampleRecord*>(r.get()); in TEST()
|
D | cmd_kmem.cpp | 138 SlabSample* CreateSample(const SampleRecord& r, bool in_kernel, in CreateSample() 199 SlabSample* CreateBranchSample(const SampleRecord&, const BranchStackItemType&) override { in CreateBranchSample() argument 587 *static_cast<const SampleRecord*>(record.get())); in ProcessRecord()
|
D | cmd_dumprecord.cpp | 215 void ProcessSampleRecord(const SampleRecord& r); 356 ProcessSampleRecord(*static_cast<SampleRecord*>(r)); in ProcessRecord() 384 void DumpRecordCommand::ProcessSampleRecord(const SampleRecord& sr) { in ProcessSampleRecord()
|
D | record.h | 385 struct SampleRecord : public Record { struct 406 SampleRecord() {} in SampleRecord() argument 407 SampleRecord(const perf_event_attr& attr, uint64_t id, uint64_t ip, uint32_t pid, uint32_t tid,
|
D | cmd_report_sample.cpp | 209 bool ProcessSampleRecord(const SampleRecord& r); 652 result = ProcessSampleRecord(*static_cast<SampleRecord*>(record.get())); in ProcessRecord() 685 bool ReportSampleCommand::ProcessSampleRecord(const SampleRecord& r) { in ProcessSampleRecord()
|
D | JITDebugReader.cpp | 259 auto r = static_cast<const SampleRecord*>(record); in UpdateRecord()
|
D | event_selection_set.cpp | 114 auto& record = *static_cast<SampleRecord*>(r.get()); in IsDumpingRegsForTracepointEventsSupported()
|
D | cmd_inject.cpp | 422 auto& sr = static_cast<SampleRecord&>(r); in ProcessRecord()
|