Home
last modified time | relevance | path

Searched refs:record_file_reader_ (Results 1 – 6 of 6) sorted by relevance

/system/extras/simpleperf/
Dcmd_dumprecord.cpp212 std::unique_ptr<RecordFileReader> record_file_reader_; member in simpleperf::__anonc4eafc3f0111::DumpRecordCommand
223 record_file_reader_ = RecordFileReader::CreateInstance(record_filename_); in Run()
224 if (record_file_reader_ == nullptr) { in Run()
275 const FileHeader& header = record_file_reader_->FileHeader(); in DumpFileHeader()
312 std::vector<EventAttrWithId> attrs = record_file_reader_->AttrSection(); in DumpAttrSection()
329 record_file_reader_->LoadBuildIdAndFileFeatures(thread_tree_); in DumpDataSection()
332 return record_file_reader_->ReadDataSection(record_callback); in DumpDataSection()
388 size_t attr_index = record_file_reader_->GetAttrIndexOfRecord(&sr); in ProcessSampleRecord()
423 if (!record_file_reader_->ReadAuxData(aux.Cpu(), aux.data->aux_offset, data.get(), size)) { in DumpAuxData()
433 std::vector<EventAttrWithId> attrs = record_file_reader_->AttrSection(); in ProcessTracingData()
[all …]
Dreport_lib_interface.cpp161 std::unique_ptr<RecordFileReader> record_file_reader_; member in simpleperf::ReportLib
204 if (record_file_reader_ == nullptr) { in OpenRecordFileIfNecessary()
205 record_file_reader_ = RecordFileReader::CreateInstance(record_filename_); in OpenRecordFileIfNecessary()
206 if (record_file_reader_ == nullptr) { in OpenRecordFileIfNecessary()
209 record_file_reader_->LoadBuildIdAndFileFeatures(thread_tree_); in OpenRecordFileIfNecessary()
210 auto& meta_info = record_file_reader_->GetMetaInfoFeature(); in OpenRecordFileIfNecessary()
224 if (!record_file_reader_->ReadRecord(record)) { in GetNextSample()
319 attr_index = record_file_reader_->GetAttrIndexOfRecord(current_record_.get()); in FindEventOfCurrentSample()
325 std::vector<EventAttrWithId> attrs = record_file_reader_->AttrSection(); in CreateEvents()
389 if (feature == -1 || !record_file_reader_->ReadFeatureSection(feature, &feature_section_data_)) { in GetFeatureSection()
Dcmd_kmem.cpp330 std::unique_ptr<RecordFileReader> record_file_reader_; member in simpleperf::__anonbee947b40111::KmemCommand
462 record_file_reader_ = RecordFileReader::CreateInstance(record_filename_); in ReportKmemInfo()
463 if (record_file_reader_ == nullptr) { in ReportKmemInfo()
534 std::vector<EventAttrWithId> attrs = record_file_reader_->AttrSection(); in ReadEventAttrsFromRecordFile()
545 record_file_reader_->LoadBuildIdAndFileFeatures(thread_tree_); in ReadFeaturesFromRecordFile()
546 std::string arch = record_file_reader_->ReadFeatureString(PerfFileFormat::FEAT_ARCH); in ReadFeaturesFromRecordFile()
553 std::vector<std::string> cmdline = record_file_reader_->ReadCmdlineFeature(); in ReadFeaturesFromRecordFile()
557 if (record_file_reader_->HasFeature(PerfFileFormat::FEAT_TRACING_DATA)) { in ReadFeaturesFromRecordFile()
559 if (!record_file_reader_->ReadFeatureSection(PerfFileFormat::FEAT_TRACING_DATA, in ReadFeaturesFromRecordFile()
569 if (!record_file_reader_->ReadDataSection( in ReadSampleTreeFromRecordFile()
Dcmd_report.cpp452 std::unique_ptr<RecordFileReader> record_file_reader_; member in simpleperf::__anonf73725a60111::ReportCommand
486 record_file_reader_ = RecordFileReader::CreateInstance(record_filename_); in Run()
487 if (record_file_reader_ == nullptr) { in Run()
754 auto& meta_info = record_file_reader_->GetMetaInfoFeature(); in ReadMetaInfoFromRecordFile()
764 std::vector<EventAttrWithId> attrs = record_file_reader_->AttrSection(); in ReadEventAttrFromRecordFile()
798 record_file_reader_->LoadBuildIdAndFileFeatures(thread_tree_); in ReadFeaturesFromRecordFile()
800 std::string arch = record_file_reader_->ReadFeatureString(PerfFileFormat::FEAT_ARCH); in ReadFeaturesFromRecordFile()
808 std::vector<std::string> cmdline = record_file_reader_->ReadCmdlineFeature(); in ReadFeaturesFromRecordFile()
811 if (record_file_reader_->GetMetaInfoFeature().count("system_wide_collection")) { in ReadFeaturesFromRecordFile()
828 if (record_file_reader_->HasFeature(PerfFileFormat::FEAT_TRACING_DATA)) { in ReadFeaturesFromRecordFile()
[all …]
Dcmd_report_sample.cpp182 std::unique_ptr<RecordFileReader> record_file_reader_; member in simpleperf::__anon69c985670111::ReportSampleCommand
257 if (!record_file_reader_->ReadDataSection( in Run()
481 record_file_reader_ = RecordFileReader::CreateInstance(record_filename_); in OpenRecordFile()
482 if (record_file_reader_ == nullptr) { in OpenRecordFile()
485 record_file_reader_->LoadBuildIdAndFileFeatures(thread_tree_); in OpenRecordFile()
486 auto& meta_info = record_file_reader_->GetMetaInfoFeature(); in OpenRecordFile()
493 for (EventAttrWithId& attr : record_file_reader_->AttrSection()) { in OpenRecordFile()
500 auto& meta_info = record_file_reader_->GetMetaInfoFeature(); in PrintMetaInfo()
586 sample->set_event_type_id(record_file_reader_->GetAttrIndexOfRecord(&r)); in PrintSampleRecordInProtobuf()
757 event_types_[record_file_reader_->GetAttrIndexOfRecord(&r)].data()); in PrintSampleRecord()
Dcmd_inject.cpp211 record_file_reader_ = RecordFileReader::CreateInstance(input_filename_); in ProcessInputFile()
212 if (!record_file_reader_) { in ProcessInputFile()
216 const auto& info_map = record_file_reader_->GetMetaInfoFeature(); in ProcessInputFile()
229 record_file_reader_->LoadBuildIdAndFileFeatures(thread_tree_); in ProcessInputFile()
230 if (!record_file_reader_->ReadDataSection( in ProcessInputFile()
264 if (!record_file_reader_->ReadAuxData(aux->Cpu(), aux->data->aux_offset, in ProcessRecord()
593 std::unique_ptr<RecordFileReader> record_file_reader_; member in simpleperf::__anon3ce946470111::InjectCommand