Home
last modified time | relevance | path

Searched refs:SampleRecord (Results 1 – 19 of 19) sorted by relevance

/system/extras/simpleperf/
Drecord_test.cpp58 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 …]
Drecord_equal_test.h33 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()
Dcmd_report.cpp138 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 …]
DRecordReadThread_test.cpp98 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()
Dcmd_debug_unwind.cpp108 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()
Dreport_lib_interface.cpp179 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()
Drecord.cpp422 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 …]
Dcmd_report_sample.cpp115 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()
Dsample_tree.h84 void ProcessSampleRecord(const SampleRecord& r) { in ProcessSampleRecord()
187 virtual EntryT* CreateSample(const SampleRecord& r, bool in_kernel,
189 virtual EntryT* CreateBranchSample(const SampleRecord& r,
Dcmd_record.cpp290 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()
Dsample_tree_test.cpp72 SampleEntry* CreateSample(const SampleRecord&, bool, int*) override { in CreateSample() argument
75 SampleEntry* CreateBranchSample(const SampleRecord&, in CreateBranchSample() argument
Dcmd_trace_sched.cpp104 void ProcessSampleRecord(const SampleRecord& record);
219 ProcessSampleRecord(*static_cast<SampleRecord*>(&record)); in ProcessRecord()
255 void TraceSchedCommand::ProcessSampleRecord(const SampleRecord& record) { in ProcessSampleRecord()
Drecord.h375 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,
Dcmd_dumprecord.cpp183 SampleRecord& sr = *static_cast<SampleRecord*>(r.get()); in DumpDataSection()
Dcmd_record_test.cpp701 SampleRecord* sr = static_cast<SampleRecord*>(r.get()); in TEST()
729 SampleRecord* sr = static_cast<SampleRecord*>(r.get()); in TEST()
DInplaceSamplerClient.cpp182 SampleRecord r(attr_, Id(), ips[0], pid_, tid, time, 0, period, ips, {}, 0); in HandleMessage()
Dcmd_kmem.cpp146 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()
DJITDebugReader.cpp166 auto r = static_cast<const SampleRecord*>(record); in UpdateRecord()
Devent_selection_set.cpp94 auto& record = *static_cast<SampleRecord*>(r.get()); in IsDumpingRegsForTracepointEventsSupported()