Home
last modified time | relevance | path

Searched refs:PerfFileFormat (Results 1 – 16 of 16) sorted by relevance

/aosp_15_r20/system/extras/simpleperf/
H A Dcmd_merge.cpp182 return reader->ReadFeatureString(PerfFileFormat::FEAT_ARCH); in CheckFeatureSection()
185 return reader->ReadFeatureString(PerfFileFormat::FEAT_OSRELEASE); in CheckFeatureSection()
249 if (readers_[0]->HasFeature(PerfFileFormat::FEAT_AUXTRACE)) { in CheckFeatureSection()
331 if (feature == PerfFileFormat::FEAT_OSRELEASE || feature == PerfFileFormat::FEAT_ARCH || in MergeFeatureSection()
332 feature == PerfFileFormat::FEAT_BRANCH_STACK || in MergeFeatureSection()
333 feature == PerfFileFormat::FEAT_META_INFO || feature == PerfFileFormat::FEAT_CMDLINE) { in MergeFeatureSection()
339 } else if (feature == PerfFileFormat::FEAT_BUILD_ID) { in MergeFeatureSection()
341 } else if (feature == PerfFileFormat::FEAT_FILE || feature == PerfFileFormat::FEAT_FILE2) { in MergeFeatureSection()
H A Drecord_file.h142 std::map<int, PerfFileFormat::SectionDesc> features_;
159 const PerfFileFormat::FileHeader& FileHeader() const { return header_; } in FileHeader()
165 const std::map<int, PerfFileFormat::SectionDesc>& FeatureSectionDescriptors() const { in FeatureSectionDescriptors()
244 bool CheckSectionDesc(const PerfFileFormat::SectionDesc& desc, uint64_t min_offset,
247 bool ReadIdSection(const PerfFileFormat::SectionDesc& section, std::vector<uint64_t>* ids);
266 PerfFileFormat::FileHeader header_;
269 std::map<int, PerfFileFormat::SectionDesc> feature_section_descriptors_;
H A Dcmd_debug_unwind.cpp153 GetArchType(reader_->ReadFeatureString(PerfFileFormat::FEAT_ARCH))); in ProcessFile()
155 if (reader_->HasFeature(PerfFileFormat::FEAT_DEBUG_UNWIND) && in ProcessFile()
156 reader_->HasFeature(PerfFileFormat::FEAT_DEBUG_UNWIND_FILE)) { in ProcessFile()
162 reader_->FeatureSectionDescriptors().at(PerfFileFormat::FEAT_DEBUG_UNWIND_FILE).offset; in ProcessFile()
428 PerfFileFormat::FEAT_ARCH, PerfFileFormat::FEAT_CMDLINE, PerfFileFormat::FEAT_META_INFO}; in WriteFeatureSections()
433 if (feat_type == PerfFileFormat::FEAT_DEBUG_UNWIND) { in WriteFeatureSections()
449 } else if (feat_type == PerfFileFormat::FEAT_FILE || in WriteFeatureSections()
450 feat_type == PerfFileFormat::FEAT_FILE2) { in WriteFeatureSections()
462 } else if (feat_type == PerfFileFormat::FEAT_BUILD_ID) { in WriteFeatureSections()
489 !writer_->WriteFeature(PerfFileFormat::FEAT_DEBUG_UNWIND_FILE, buffer.data(), nread)) { in CopyDebugUnwindFile()
H A Dsimpleperf_writer_fuzzer.cpp106 mFdp.ConsumeBool() ? PerfFileFormat::FEAT_OSRELEASE : PerfFileFormat::FEAT_ARCH, in process()
H A Dcmd_kmem.cpp548 std::string arch = record_file_reader_->ReadFeatureString(PerfFileFormat::FEAT_ARCH); in ReadFeaturesFromRecordFile()
559 if (record_file_reader_->HasFeature(PerfFileFormat::FEAT_TRACING_DATA)) { in ReadFeaturesFromRecordFile()
561 if (!record_file_reader_->ReadFeatureSection(PerfFileFormat::FEAT_TRACING_DATA, in ReadFeaturesFromRecordFile()
H A Drecord_file_reader.cpp36 using namespace PerfFileFormat;
38 namespace PerfFileFormat { namespace
598 PerfFileFormat::SectionDesc desc; in ReadFileFeature()
968 PerfFileFormat::FileHeader header; in IsPerfDataFile()
H A Dcmd_trace_sched_test.cpp40 using namespace PerfFileFormat;
H A Drecord_file_format.h94 namespace PerfFileFormat {
H A Dcmd_report.cpp906 std::string arch = record_file_reader_->ReadFeatureString(PerfFileFormat::FEAT_ARCH); in ReadFeaturesFromRecordFile()
918 if (record_file_reader_->HasFeature(PerfFileFormat::FEAT_TRACING_DATA)) { in ReadFeaturesFromRecordFile()
920 if (!record_file_reader_->ReadFeatureSection(PerfFileFormat::FEAT_TRACING_DATA, in ReadFeaturesFromRecordFile()
H A Dcmd_record.cpp2087 if (!record_file_writer_->WriteFeatureString(PerfFileFormat::FEAT_OSRELEASE, uname_buf.release)) { in DumpAdditionalFeatures()
2090 if (!record_file_writer_->WriteFeatureString(PerfFileFormat::FEAT_ARCH, uname_buf.machine)) { in DumpAdditionalFeatures()
2227 if (!record_file_writer_->WriteFeature(PerfFileFormat::FEAT_DEBUG_UNWIND_FILE, in DumpDebugUnwindFeature()
2273 return record_file_writer_->WriteFeature(PerfFileFormat::FEAT_ETM_BRANCH_LIST, s.data(), in DumpETMBranchListFeature()
H A Dcmd_inject.cpp184 if (reader_->HasFeature(PerfFileFormat::FEAT_INIT_MAP)) { in Read()
276 if (reader_->HasFeature(PerfFileFormat::FEAT_ETM_BRANCH_LIST)) { in Read()
349 if (!reader_->ReadFeatureSection(PerfFileFormat::FEAT_ETM_BRANCH_LIST, &s)) { in ProcessETMBranchListFeature()
H A Drecord_file_test.cpp36 using namespace simpleperf::PerfFileFormat;
H A Drecord_file_writer.cpp41 using namespace PerfFileFormat;
H A Dcmd_dumprecord.cpp44 using namespace PerfFileFormat;
H A Dreport_lib_interface.cpp648 int feature = PerfFileFormat::GetFeatureId(feature_name); in GetFeatureSection()
H A Dcmd_record_test.cpp53 using namespace PerfFileFormat;