Home
last modified time | relevance | path

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

/system/extras/simpleperf/
Drecord_test.cpp62 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 …]
Dreport_lib_interface.cpp162 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 …]
DRecordFilter_test.cpp42 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()
Dcmd_monitor.cpp165 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()
Drecord_equal_test.h40 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()
Dcmd_report.cpp166 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 …]
DRecordFilter.cpp33 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()
DRecordFilter.h106 virtual bool Check(const SampleRecord& sample) = 0;
128 bool Check(const SampleRecord& r);
DRecordReadThread_test.cpp98 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()
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_debug_unwind.cpp259 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()
Drecord.cpp461 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 …]
Dcmd_record.cpp405 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 …]
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);
209 ProcessSampleRecord(*static_cast<SampleRecord*>(&record)); in ProcessRecord()
252 void TraceSchedCommand::ProcessSampleRecord(const SampleRecord& record) { in ProcessSampleRecord()
Dtest_util.cpp50 auto sample = static_cast<const SampleRecord*>(record.get()); in CanSampleRegsFor32BitABI()
Dcmd_record_test.cpp721 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()
Dcmd_kmem.cpp138 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()
Dcmd_dumprecord.cpp215 void ProcessSampleRecord(const SampleRecord& r);
356 ProcessSampleRecord(*static_cast<SampleRecord*>(r)); in ProcessRecord()
384 void DumpRecordCommand::ProcessSampleRecord(const SampleRecord& sr) { in ProcessSampleRecord()
Drecord.h385 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,
Dcmd_report_sample.cpp209 bool ProcessSampleRecord(const SampleRecord& r);
652 result = ProcessSampleRecord(*static_cast<SampleRecord*>(record.get())); in ProcessRecord()
685 bool ReportSampleCommand::ProcessSampleRecord(const SampleRecord& r) { in ProcessSampleRecord()
DJITDebugReader.cpp259 auto r = static_cast<const SampleRecord*>(record); in UpdateRecord()
Devent_selection_set.cpp114 auto& record = *static_cast<SampleRecord*>(r.get()); in IsDumpingRegsForTracepointEventsSupported()
Dcmd_inject.cpp422 auto& sr = static_cast<SampleRecord&>(r); in ProcessRecord()