Home
last modified time | relevance | path

Searched refs:SampleRecord (Results 1 – 22 of 22) 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.h35 static void CheckSampleRecordDataEqual(const SampleRecord& r1, const SampleRecord& r2) { in CheckSampleRecordDataEqual()
85 CheckSampleRecordDataEqual(static_cast<const SampleRecord&>(r1), in CheckRecordEqual()
86 static_cast<const SampleRecord&>(r2)); in CheckRecordEqual()
Dcmd_monitor.cpp164 void DumpSampleRecord(const SampleRecord& sr);
165 void DumpSampleCallchain(const SampleRecord& sr);
170 bool UnwindRecord(SampleRecord& r);
501 auto& r = *static_cast<SampleRecord*>(record); in ProcessRecord()
530 void MonitorCommand::DumpSampleRecord(const SampleRecord& sr) { in DumpSampleRecord()
543 void MonitorCommand::DumpSampleCallchain(const SampleRecord& sr) { in DumpSampleCallchain()
574 pid_t pid = static_cast<SampleRecord*>(record)->tid_data.pid; in DumpMapsForRecord()
598 bool MonitorCommand::UnwindRecord(SampleRecord& r) { in UnwindRecord()
DRecordFilter.h73 bool Check(const SampleRecord* r);
81 bool CheckCondition(const SampleRecord* r, const RecordFilterCondition& condition);
Dcmd_report.cpp155 virtual void ReportCmdProcessSampleRecord(std::shared_ptr<SampleRecord>& r) { in ReportCmdProcessSampleRecord()
159 virtual void ReportCmdProcessSampleRecord(const SampleRecord& r) { in ReportCmdProcessSampleRecord()
164 virtual uint64_t GetPeriod(const SampleRecord& r) = 0;
166 SampleEntry* CreateSample(const SampleRecord& r, bool in_kernel, uint64_t* acc_info) override { in CreateSample()
177 SampleEntry* CreateBranchSample(const SampleRecord& r, const BranchStackItemType& item) override { in CreateBranchSample()
277 uint64_t GetPeriod(const SampleRecord& r) override { return r.period_data.period; } in GetPeriod()
287 void ReportCmdProcessSampleRecord(std::shared_ptr<SampleRecord>& r) override { in ReportCmdProcessSampleRecord()
293 std::shared_ptr<SampleRecord> cur = it->second; in ReportCmdProcessSampleRecord()
300 uint64_t GetPeriod(const SampleRecord& r) override { in GetPeriod()
311 std::unordered_map<pid_t, std::shared_ptr<SampleRecord>> next_sample_cache_;
[all …]
DRecordFilter_test.cpp37 record.reset(new SampleRecord(attr, 0, 0, 0, 0, 0, 0, 0, {}, {}, 0)); in SetUp()
40 SampleRecord* GetRecord(uint32_t pid, uint32_t tid) { in GetRecord()
49 std::unique_ptr<SampleRecord> record;
DRecordReadThread_test.cpp95 auto sr = static_cast<SampleRecord*>(record.get()); in TEST()
152 SampleRecord* r = new SampleRecord(attr, i, i + 1, i + 2, i + 3, i + 4, i + 5, i + 6, {}, in CreateFakeRecords()
331 SampleRecord* sr = static_cast<SampleRecord*>(r.get()); in TEST_F()
337 sr = static_cast<SampleRecord*>(r.get()); in TEST_F()
346 sr = static_cast<SampleRecord*>(r.get()); in TEST_F()
415 records_.emplace_back(new SampleRecord(attr, 0, 1, getpid(), 3, 4, 5, 6, {}, in TEST_F()
417 records_.emplace_back(new SampleRecord(attr, 0, 1, getpid() + 1, 3, 4, 5, 6, {}, in TEST_F()
Dreport_lib_interface.cpp163 std::unique_ptr<SampleRecord> current_record_;
175 std::unordered_map<pid_t, std::unique_ptr<SampleRecord>> next_sample_cache_;
233 SampleRecord* r = static_cast<SampleRecord*>(record.release()); in GetNextSample()
243 current_record_.reset(static_cast<SampleRecord*>(record.release())); in GetNextSample()
258 SampleRecord& r = *current_record_; in SetCurrentSample()
DRecordFilter.cpp88 bool RecordFilter::Check(const SampleRecord* r) { in Check()
104 bool RecordFilter::CheckCondition(const SampleRecord* r, const RecordFilterCondition& condition) { in CheckCondition()
Drecord.cpp415 SampleRecord::SampleRecord(const perf_event_attr& attr, char* p) : Record(p) { in SampleRecord() function in simpleperf::SampleRecord
493 SampleRecord::SampleRecord(const perf_event_attr& attr, uint64_t id, uint64_t ip, uint32_t pid, in SampleRecord() function in simpleperf::SampleRecord
591 void SampleRecord::ReplaceRegAndStackWithCallChain(const std::vector<uint64_t>& ips) { in ReplaceRegAndStackWithCallChain()
599 bool SampleRecord::ExcludeKernelCallChain() { in ExcludeKernelCallChain()
626 bool SampleRecord::HasUserCallChain() const { in HasUserCallChain()
642 void SampleRecord::UpdateUserCallChain(const std::vector<uint64_t>& user_ips) { in UpdateUserCallChain()
660 void SampleRecord::BuildBinaryWithNewCallChain(uint32_t new_size, in BuildBinaryWithNewCallChain()
714 void SampleRecord::DumpData(size_t indent) const { in DumpData()
789 uint64_t SampleRecord::Timestamp() const { in Timestamp()
792 uint32_t SampleRecord::Cpu() const { in Cpu()
[all …]
Dcmd_report_sample.cpp169 bool ProcessSampleRecord(const SampleRecord& r);
170 bool PrintSampleRecordInProtobuf(const SampleRecord& record,
177 bool PrintSampleRecord(const SampleRecord& record,
530 result = ProcessSampleRecord(*static_cast<SampleRecord*>(record.get())); in ProcessRecord()
546 bool ReportSampleCommand::ProcessSampleRecord(const SampleRecord& r) { in ProcessSampleRecord()
580 const SampleRecord& r, const std::vector<CallChainReportEntry>& entries) { in PrintSampleRecordInProtobuf()
753 bool ReportSampleCommand::PrintSampleRecord(const SampleRecord& r, in PrintSampleRecord()
Dsample_tree.h83 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;
Dcmd_record.cpp362 bool UnwindRecord(SampleRecord& r);
363 bool KeepFailedUnwindingResult(const SampleRecord& r, const std::vector<uint64_t>& ips,
376 void CollectHitFileInfo(const SampleRecord& r, std::unordered_set<Dso*>* dso_set);
1339 if (!record_filter_.Check(static_cast<SampleRecord*>(record))) { in ProcessRecord()
1384 pid_t pid = static_cast<SampleRecord*>(record)->tid_data.pid; in DumpMapsForRecord()
1407 auto& r = *static_cast<SampleRecord*>(record); in SaveRecordAfterUnwinding()
1431 auto& r = *static_cast<SampleRecord*>(record); in SaveRecordWithoutUnwinding()
1570 bool RecordCommand::UnwindRecord(SampleRecord& r) { in UnwindRecord()
1606 bool RecordCommand::KeepFailedUnwindingResult(const SampleRecord& r, in KeepFailedUnwindingResult()
1709 SampleRecord& sr = *static_cast<SampleRecord*>(r.get()); in JoinCallChains()
[all …]
Dcmd_debug_unwind.cpp256 auto& sr = *static_cast<SampleRecord*>(r.get()); in ProcessRecord()
274 bool UnwindRecord(const SampleRecord& r, const PerfSampleRegsUserType& regs, in UnwindRecord()
375 if (!WriteMapsForSample(*static_cast<SampleRecord*>(r.get()))) { in ProcessRecord()
386 bool WriteMapsForSample(const SampleRecord& r) { in WriteMapsForSample()
516 ReportUnwindingResult(*static_cast<SampleRecord*>(r.get()), *last_unwinding_result_); in ProcessRecord()
523 void ReportUnwindingResult(const SampleRecord& sr, const UnwindingResultRecord& unwinding_r) { in ReportUnwindingResult()
Dsample_tree_test.cpp73 SampleEntry* CreateSample(const SampleRecord&, bool, int*) override { return nullptr; } in CreateSample() argument
74 SampleEntry* CreateBranchSample(const SampleRecord&, const BranchStackItemType&) override { in CreateBranchSample() argument
Dcmd_trace_sched.cpp104 void ProcessSampleRecord(const SampleRecord& record);
212 ProcessSampleRecord(*static_cast<SampleRecord*>(&record)); in ProcessRecord()
248 void TraceSchedCommand::ProcessSampleRecord(const SampleRecord& record) { in ProcessSampleRecord()
Drecord.h373 struct SampleRecord : public Record { struct
392 SampleRecord(const perf_event_attr& attr, char* p); argument
393 SampleRecord(const perf_event_attr& attr, uint64_t id, uint64_t ip, uint32_t pid, uint32_t tid,
Dcmd_dumprecord.cpp201 void ProcessSampleRecord(const SampleRecord& r);
342 ProcessSampleRecord(*static_cast<SampleRecord*>(r)); in ProcessRecord()
369 void DumpRecordCommand::ProcessSampleRecord(const SampleRecord& sr) { in ProcessSampleRecord()
Dcmd_record_test.cpp643 SampleRecord* sr = static_cast<SampleRecord*>(r.get()); in TEST()
672 SampleRecord* sr = static_cast<SampleRecord*>(r.get()); in TEST()
875 auto sample = static_cast<SampleRecord*>(r.get()); in TEST()
1043 if (static_cast<SampleRecord*>(r.get())->tid_data.pid == perf_pid) { in TEST()
Dcmd_kmem.cpp138 SlabSample* CreateSample(const SampleRecord& r, bool in_kernel, in CreateSample()
199 SlabSample* CreateBranchSample(const SampleRecord&, const BranchStackItemType&) override { in CreateBranchSample() argument
585 *static_cast<const SampleRecord*>(record.get())); in ProcessRecord()
Devent_selection_set.cpp110 auto& record = *static_cast<SampleRecord*>(r.get()); in IsDumpingRegsForTracepointEventsSupported()
DJITDebugReader.cpp303 auto r = static_cast<const SampleRecord*>(record); in UpdateRecord()