Searched refs:record_fp_ (Results 1 – 3 of 3) sorted by relevance
/system/extras/simpleperf/ |
D | record_file_writer.cpp | 56 record_fp_(fp), in RecordFileWriter() 66 if (record_fp_ != nullptr) { in ~RecordFileWriter() 77 if (fseek(record_fp_, sizeof(FileHeader), SEEK_SET) == -1) { in WriteAttrSection() 169 if (fwrite(buf, len, 1, record_fp_) != 1) { in Write() 177 if (len != 0u && fread(buf, len, 1, record_fp_) != 1) { in Read() 185 if (fseek(record_fp_, data_section_offset_, SEEK_SET) == -1) { in ReadDataSection() 210 off_t offset = ftello(record_fp_); in GetFilePos() 226 if (fseek(record_fp_, feature_section_offset_, SEEK_SET) == -1) { in BeginWriteFeatures() 360 if (fseek(record_fp_, feature_section_offset_, SEEK_SET) == -1) { in EndWriteFeatures() 388 if (fseek(record_fp_, 0, SEEK_SET) == -1) { in WriteFileHeader() [all …]
|
D | record_file_reader.cpp | 48 : filename_(filename), record_fp_(fp), event_id_pos_in_sample_records_(0), in RecordFileReader() 53 if (record_fp_ != nullptr) { in ~RecordFileReader() 60 if (fclose(record_fp_) != 0) { in Close() 64 record_fp_ = nullptr; in Close() 89 if (fseek(record_fp_, header_.attrs.offset, SEEK_SET) != 0) { in ReadAttrSection() 141 if (fseek(record_fp_, feature_section_offset, SEEK_SET) != 0) { in ReadFeatureSectionDescriptors() 157 if (fseek(record_fp_, attr.ids.offset, SEEK_SET) != 0) { in ReadIdsForAttr() 185 if (fseek(record_fp_, header_.data.offset, SEEK_SET) != 0) { in ReadRecord() 288 if (len != 0 && fread(buf, len, 1, record_fp_) != 1) { in Read() 321 if (fseek(record_fp_, section.offset, SEEK_SET) != 0) { in ReadFeatureSection() [all …]
|
D | record_file.h | 81 FILE* record_fp_; variable 170 FILE* record_fp_; variable
|