Lines Matching refs:allocation
441 Allocation &allocation = iter->second; in Leak() local
443 allocation.m_leak = true; in Leak()
457 Allocation &allocation = iter->second; in Free() local
459 switch (allocation.m_policy) { in Free()
466 allocation.m_process_alloc); // FindSpace allocated this for real in Free()
475 process_sp->DeallocateMemory(allocation.m_process_alloc); in Free()
533 Allocation &allocation = iter->second; in WriteMemory() local
535 uint64_t offset = process_address - allocation.m_process_start; in WriteMemory()
539 switch (allocation.m_policy) { in WriteMemory()
545 if (!allocation.m_data.GetByteSize()) { in WriteMemory()
550 ::memcpy(allocation.m_data.GetBytes() + offset, bytes, size); in WriteMemory()
553 if (!allocation.m_data.GetByteSize()) { in WriteMemory()
558 ::memcpy(allocation.m_data.GetBytes() + offset, bytes, size); in WriteMemory()
581 (uint64_t)allocation.m_process_start, in WriteMemory()
582 (uint64_t)allocation.m_process_start + in WriteMemory()
583 (uint64_t)allocation.m_size); in WriteMemory()
650 Allocation &allocation = iter->second; in ReadMemory() local
652 uint64_t offset = process_address - allocation.m_process_start; in ReadMemory()
654 if (offset > allocation.m_size) { in ReadMemory()
662 switch (allocation.m_policy) { in ReadMemory()
668 if (!allocation.m_data.GetByteSize()) { in ReadMemory()
673 if (allocation.m_data.GetByteSize() < offset + size) { in ReadMemory()
679 ::memcpy(bytes, allocation.m_data.GetBytes() + offset, size); in ReadMemory()
688 if (!allocation.m_data.GetByteSize()) { in ReadMemory()
693 ::memcpy(bytes, allocation.m_data.GetBytes() + offset, size); in ReadMemory()
711 (uint64_t)allocation.m_process_start, in ReadMemory()
712 (uint64_t)allocation.m_process_start + in ReadMemory()
713 (uint64_t)allocation.m_size); in ReadMemory()
794 Allocation &allocation = iter->second; in GetMemoryData() local
796 switch (allocation.m_policy) { in GetMemoryData()
810 if (!allocation.m_data.GetByteSize()) { in GetMemoryData()
816 process_sp->ReadMemory(allocation.m_process_start, in GetMemoryData()
817 allocation.m_data.GetBytes(), in GetMemoryData()
818 allocation.m_data.GetByteSize(), error); in GetMemoryData()
821 uint64_t offset = process_address - allocation.m_process_start; in GetMemoryData()
822 extractor = DataExtractor(allocation.m_data.GetBytes() + offset, size, in GetMemoryData()
828 if (!allocation.m_data.GetByteSize()) { in GetMemoryData()
833 uint64_t offset = process_address - allocation.m_process_start; in GetMemoryData()
834 extractor = DataExtractor(allocation.m_data.GetBytes() + offset, size, in GetMemoryData()