Lines Matching refs:error_msg

153 bool MemMap::ContainedWithinExistingMap(uint8_t* ptr, size_t size, std::string* error_msg) {  in ContainedWithinExistingMap()  argument
168 if (error_msg != nullptr) { in ContainedWithinExistingMap()
170 *error_msg = StringPrintf("Requested region 0x%08" PRIxPTR "-0x%08" PRIxPTR " does not overlap " in ContainedWithinExistingMap()
186 std::string* error_msg) { in CheckMapRequest() argument
207 if (error_msg != nullptr) { in CheckMapRequest()
225 *error_msg = os.str(); in CheckMapRequest()
234 /*out*/std::string* error_msg) { in CheckReservation() argument
236 *error_msg = StringPrintf("Invalid reservation for %s", name); in CheckReservation()
241 *error_msg = StringPrintf("Bad image reservation start for %s: %p instead of %p", in CheckReservation()
248 *error_msg = StringPrintf("Insufficient reservation, required %zu, available %zu", in CheckReservation()
311 /*out*/std::string* error_msg, in MapAnonymous() argument
317 *error_msg = "Empty MemMap requested."; in MapAnonymous()
329 DCHECK(ContainedWithinExistingMap(addr, byte_count, error_msg)) << *error_msg; in MapAnonymous()
333 if (!CheckReservation(addr, byte_count, name, *reservation, error_msg)) { in MapAnonymous()
354 if (error_msg != nullptr) { in MapAnonymous()
359 *error_msg = StringPrintf("Failed anonymous mmap(%p, %zd, 0x%x, 0x%x, %d, 0): %s. " in MapAnonymous()
370 if (!CheckMapRequest(addr, actual, page_aligned_byte_count, error_msg)) { in MapAnonymous()
491 /*out*/std::string* error_msg) { in MapFileAtAddress() argument
502 DCHECK(error_msg != nullptr); in MapFileAtAddress()
503 DCHECK(ContainedWithinExistingMap(expected_ptr, byte_count, error_msg)) in MapFileAtAddress()
504 << ((error_msg != nullptr) ? *error_msg : std::string()); in MapFileAtAddress()
507 DCHECK(error_msg != nullptr); in MapFileAtAddress()
508 if (!CheckReservation(expected_ptr, byte_count, filename, *reservation, error_msg)) { in MapFileAtAddress()
519 *error_msg = "Empty MemMap requested"; in MapFileAtAddress()
546 if (error_msg != nullptr) { in MapFileAtAddress()
553 *error_msg = StringPrintf("mmap(%p, %zd, 0x%x, 0x%x, %d, %" PRId64 in MapFileAtAddress()
561 if (!CheckMapRequest(expected_ptr, actual, page_aligned_byte_count, error_msg)) { in MapFileAtAddress()
703 std::string* error_msg, in RemapAtEnd() argument
711 error_msg, in RemapAtEnd()
721 std::string* error_msg, in RemapAtEnd() argument
757 *error_msg = StringPrintf("map(%p, %zd, 0x%x, 0x%x, %d, 0) failed: %s. See process " in RemapAtEnd()