Home
last modified time | relevance | path

Searched refs:header_ (Results 1 – 4 of 4) sorted by relevance

/system/extras/simpleperf/
Drecord_file_reader.cpp109 if (!Read(&header_, sizeof(header_))) { in ReadHeader()
112 if (memcmp(header_.magic, PERF_MAGIC, sizeof(header_.magic)) != 0) { in ReadHeader()
120 size_t attr_count = header_.attrs.size / header_.attr_size; in ReadAttrSection()
121 if (header_.attr_size != sizeof(FileAttr)) { in ReadAttrSection()
122 LOG(DEBUG) << "attr size (" << header_.attr_size << ") in " << filename_ in ReadAttrSection()
129 if (fseek(record_fp_, header_.attrs.offset, SEEK_SET) != 0) { in ReadAttrSection()
134 std::vector<char> buf(header_.attr_size); in ReadAttrSection()
143 size_t perf_event_attr_size = header_.attr_size - section_desc_size; in ReadAttrSection()
173 for (size_t i = 0; i < sizeof(header_.features); ++i) { in ReadFeatureSectionDescriptors()
175 if (header_.features[i] & (1 << j)) { in ReadFeatureSectionDescriptors()
[all …]
Drecord_file.h109 return header_; in FileHeader()
177 PerfFileFormat::FileHeader header_; variable
/system/core/fs_mgr/liblp/
Dbuilder.cpp222 memset(&header_, 0, sizeof(header_)); in MetadataBuilder()
223 header_.magic = LP_METADATA_HEADER_MAGIC; in MetadataBuilder()
224 header_.major_version = LP_METADATA_MAJOR_VERSION; in MetadataBuilder()
225 header_.minor_version = LP_METADATA_MINOR_VERSION; in MetadataBuilder()
226 header_.header_size = sizeof(header_); in MetadataBuilder()
227 header_.partitions.entry_size = sizeof(LpMetadataPartition); in MetadataBuilder()
228 header_.extents.entry_size = sizeof(LpMetadataExtent); in MetadataBuilder()
229 header_.groups.entry_size = sizeof(LpMetadataPartitionGroup); in MetadataBuilder()
230 header_.block_devices.entry_size = sizeof(LpMetadataBlockDevice); in MetadataBuilder()
750 metadata->header = header_; in Export()
/system/core/fs_mgr/liblp/include/liblp/
Dbuilder.h343 LpMetadataHeader header_; variable