• Home
  • Raw
  • Download

Lines Matching refs:error

209   std::string error;  in MergeWith()  local
216 LockedFile::Open(filename.c_str(), flags, /*block=*/false, &error); in MergeWith()
219 LOG(WARNING) << "Couldn't lock the profile file " << filename << ": " << error; in MergeWith()
225 ProfileLoadStatus status = LoadInternal(fd, &error); in MergeWith()
230 LOG(WARNING) << "Could not load profile data from file " << filename << ": " << error; in MergeWith()
236 std::string error; in Load() local
251 LockedFile::Open(filename.c_str(), flags, /*block=*/false, &error); in Load()
254 LOG(WARNING) << "Couldn't lock the profile file " << filename << ": " << error; in Load()
260 ProfileLoadStatus status = LoadInternal(fd, &error); in Load()
268 << filename << ": " << error; in Load()
277 LOG(WARNING) << "Could not load profile data from file " << filename << ": " << error; in Load()
283 std::string error; in Save() local
293 LockedFile::Open(filename.c_str(), flags, /*block=*/false, &error); in Save()
295 LOG(WARNING) << "Couldn't lock the profile file " << filename << ": " << error; in Save()
811 #define READ_UINT(type, buffer, dest, error) \ argument
814 *(error) = "Could not read "#dest; \
825 /*out*/ std::string* error) { in ReadInlineCache() argument
827 READ_UINT(uint16_t, buffer, inline_cache_size, error); in ReadInlineCache()
831 READ_UINT(uint16_t, buffer, dex_pc, error); in ReadInlineCache()
832 READ_UINT(uint8_t, buffer, dex_to_classes_map_size, error); in ReadInlineCache()
845 READ_UINT(uint8_t, buffer, dex_profile_index, error); in ReadInlineCache()
846 READ_UINT(uint8_t, buffer, dex_classes_size, error); in ReadInlineCache()
848 *error = "dex_profile_index out of bounds "; in ReadInlineCache()
849 *error += std::to_string(dex_profile_index) + " " + std::to_string(number_of_dex_files); in ReadInlineCache()
854 READ_UINT(uint16_t, buffer, type_index, error); in ReadInlineCache()
873 /*out*/std::string* error) { in ReadMethods() argument
876 *error += "Profile EOF reached prematurely for ReadMethod"; in ReadMethods()
887 READ_UINT(uint16_t, buffer, diff_with_last_method_index, error); in ReadMethods()
898 error)) { in ReadMethods()
904 *error += "Profile data inconsistent for ReadMethods"; in ReadMethods()
912 /*out*/std::string* error) { in ReadClasses() argument
915 *error += "Profile EOF reached prematurely for ReadClasses"; in ReadClasses()
922 READ_UINT(uint16_t, buffer, diff_with_last_class_index, error); in ReadClasses()
935 *error += "Profile data inconsistent for ReadClasses"; in ReadClasses()
980 /*out*/ std::string* error) { in Fill() argument
983 return source.Read(buffer, byte_count, debug_stage, error); in Fill()
1003 /*out*/std::string* error) { in ReadProfileHeader() argument
1014 ProfileLoadStatus status = safe_buffer.Fill(source, "ReadProfileHeader", error); in ReadProfileHeader()
1020 *error = "Profile missing magic"; in ReadProfileHeader()
1024 *error = "Cannot read profile version"; in ReadProfileHeader()
1031 *error = "Profile version mismatch"; in ReadProfileHeader()
1036 *error = "Cannot read the number of dex files"; in ReadProfileHeader()
1040 *error = "Cannot read the size of uncompressed data"; in ReadProfileHeader()
1044 *error = "Cannot read the size of compressed data"; in ReadProfileHeader()
1053 /*out*/std::string* error) { in ReadProfileLineHeaderElements() argument
1054 READ_UINT(uint16_t, buffer, *dex_location_size, error); in ReadProfileLineHeaderElements()
1055 READ_UINT(uint16_t, buffer, line_header->class_set_size, error); in ReadProfileLineHeaderElements()
1056 READ_UINT(uint32_t, buffer, line_header->method_region_size_bytes, error); in ReadProfileLineHeaderElements()
1057 READ_UINT(uint32_t, buffer, line_header->checksum, error); in ReadProfileLineHeaderElements()
1058 READ_UINT(uint32_t, buffer, line_header->num_method_ids, error); in ReadProfileLineHeaderElements()
1065 /*out*/std::string* error) { in ReadProfileLineHeader() argument
1067 *error += "Profile EOF reached prematurely for ReadProfileLineHeader"; in ReadProfileLineHeader()
1072 if (!ReadProfileLineHeaderElements(buffer, &dex_location_size, line_header, error)) { in ReadProfileLineHeader()
1077 *error = "DexFileKey has an invalid size: " + in ReadProfileLineHeader()
1083 *error += "Profile EOF reached prematurely for ReadProfileHeaderDexLocation"; in ReadProfileLineHeader()
1099 /*out*/std::string* error) { in ReadProfileLine() argument
1104 *error = "Error when reading profile file line header: checksum mismatch for " in ReadProfileLine()
1109 if (!ReadMethods(buffer, number_of_dex_files, line_header, dex_profile_index_remap, error)) { in ReadProfileLine()
1114 if (!ReadClasses(buffer, line_header, error)) { in ReadProfileLine()
1122 *error += "Profile EOF reached prematurely for ReadProfileHeaderDexLocation"; in ReadProfileLine()
1130 ReadAggregationCounters(buffer, *data, error); in ReadProfileLine()
1139 /*out*/std::string* error) { in ReadAggregationCounters() argument
1144 *error += "Profile EOF reached prematurely for ReadAggregationCounters"; in ReadAggregationCounters()
1149 READ_UINT(uint16_t, buffer, num_class_counters, error); in ReadAggregationCounters()
1151 *error = "Invalid class size when reading counters"; in ReadAggregationCounters()
1155 READ_UINT(uint16_t, buffer, dex_data.class_counters[class_it.index_], error); in ReadAggregationCounters()
1159 READ_UINT(uint16_t, buffer, num_method_counters, error); in ReadAggregationCounters()
1161 *error = "Invalid class size when reading counters"; in ReadAggregationCounters()
1166 READ_UINT(uint16_t, buffer, dex_data.method_counters[method_idx], error); in ReadAggregationCounters()
1177 std::string error; in Load() local
1179 ProfileLoadStatus status = LoadInternal(fd, &error, merge_classes, filter_fn); in Load()
1184 LOG(WARNING) << "Error when reading profile: " << error; in Load()
1284 /*out*/ std::string* error) { in OpenSource() argument
1290 ZipArchive::OpenFromFd(DupCloexec(fd), "profile", error)); in OpenSource()
1292 *error = "Could not open the profile zip archive"; in OpenSource()
1295 std::unique_ptr<ZipEntry> zip_entry(zip_archive->Find(kDexMetadataProfileEntry, error)); in OpenSource()
1306 *error = "Empty profile entry in the zip archive."; in OpenSource()
1312 kDexMetadataProfileEntry, "profile file", error, alignof(ProfileSource)); in OpenSource()
1327 std::string* error) { in Read() argument
1340 *error += "Profile EOF reached prematurely for " + debug_stage; in Read()
1343 *error += "Profile IO error for " + debug_stage + strerror(errno); in Read()
1374 std::string* error, in LoadInternal() argument
1381 ProfileLoadStatus status = OpenSource(fd, &source, error); in LoadInternal()
1401 error); in LoadInternal()
1421 status = source->Read(compressed_data.get(), compressed_data_size, "ReadContent", error); in LoadInternal()
1423 *error += "Unable to read compressed profile data"; in LoadInternal()
1428 *error += "Unexpected data in the profile file."; in LoadInternal()
1440 *error += "Error reading uncompressed profile data"; in LoadInternal()
1450 status = ReadProfileLineHeader(uncompressed_data, &line_header, error); in LoadInternal()
1477 error); in LoadInternal()
1486 *error = "Cannot read the global aggregation count"; in LoadInternal()
1493 *error = "Unexpected content in the profile file: " + in LoadInternal()