Home
last modified time | relevance | path

Searched refs:SectionDesc (Results 1 – 5 of 5) sorted by relevance

/system/extras/simpleperf/
Drecord_file_format.h129 struct SectionDesc { struct
140 SectionDesc attrs; argument
141 SectionDesc data;
142 SectionDesc event_types;
148 SectionDesc ids;
Drecord_file.h129 std::map<int, PerfFileFormat::SectionDesc> features_;
148 const std::map<int, PerfFileFormat::SectionDesc>& FeatureSectionDescriptors() const { in FeatureSectionDescriptors()
206 bool CheckSectionDesc(const PerfFileFormat::SectionDesc& desc, uint64_t min_offset,
209 bool ReadIdSection(const PerfFileFormat::SectionDesc& section, std::vector<uint64_t>* ids);
227 std::map<int, PerfFileFormat::SectionDesc> feature_section_descriptors_;
Drecord_file_reader.cpp139 bool RecordFileReader::CheckSectionDesc(const SectionDesc& desc, uint64_t min_offset, in CheckSectionDesc()
155 if (header_.attr_size <= sizeof(SectionDesc)) { in ReadAttrSection()
171 std::vector<SectionDesc> id_sections(attr_count); in ReadAttrSection()
172 size_t attr_size_in_file = header_.attr_size - sizeof(SectionDesc); in ReadAttrSection()
189 memcpy(&id_sections[i], &buf[attr_size_in_file], sizeof(SectionDesc)); in ReadAttrSection()
226 uint64_t min_section_data_pos = feature_section_offset + sizeof(SectionDesc) * features.size(); in ReadFeatureSectionDescriptors()
228 SectionDesc desc; in ReadFeatureSectionDescriptors()
241 bool RecordFileReader::ReadIdSection(const SectionDesc& section, std::vector<uint64_t>* ids) { in ReadIdSection()
420 const std::map<int, SectionDesc>& section_map = FeatureSectionDescriptors(); in ReadFeatureSection()
425 SectionDesc section = it->second; in ReadFeatureSection()
[all …]
Drecord_file_writer.cpp246 uint64_t feature_header_size = feature_count * sizeof(SectionDesc); in BeginWriteFeatures()
476 if (!Write(&pair.second, sizeof(SectionDesc))) { in EndWriteFeatures()
Dcmd_dumprecord.cpp481 std::map<int, SectionDesc> section_map = record_file_reader_->FeatureSectionDescriptors(); in DumpFeatureSection()