Lines Matching refs:allocation
466 Allocation &allocation = iter->second; in Leak() local
468 allocation.m_leak = true; in Leak()
482 Allocation &allocation = iter->second; in Free() local
484 switch (allocation.m_policy) { in Free()
491 allocation.m_process_alloc); // FindSpace allocated this for real in Free()
500 process_sp->DeallocateMemory(allocation.m_process_alloc); in Free()
558 Allocation &allocation = iter->second; in WriteMemory() local
560 uint64_t offset = process_address - allocation.m_process_start; in WriteMemory()
564 switch (allocation.m_policy) { in WriteMemory()
570 if (!allocation.m_data.GetByteSize()) { in WriteMemory()
575 ::memcpy(allocation.m_data.GetBytes() + offset, bytes, size); in WriteMemory()
578 if (!allocation.m_data.GetByteSize()) { in WriteMemory()
583 ::memcpy(allocation.m_data.GetBytes() + offset, bytes, size); in WriteMemory()
606 (uint64_t)allocation.m_process_start, in WriteMemory()
607 (uint64_t)allocation.m_process_start + in WriteMemory()
608 (uint64_t)allocation.m_size); in WriteMemory()
674 Allocation &allocation = iter->second; in ReadMemory() local
676 uint64_t offset = process_address - allocation.m_process_start; in ReadMemory()
678 if (offset > allocation.m_size) { in ReadMemory()
686 switch (allocation.m_policy) { in ReadMemory()
692 if (!allocation.m_data.GetByteSize()) { in ReadMemory()
697 if (allocation.m_data.GetByteSize() < offset + size) { in ReadMemory()
703 ::memcpy(bytes, allocation.m_data.GetBytes() + offset, size); in ReadMemory()
712 if (!allocation.m_data.GetByteSize()) { in ReadMemory()
717 ::memcpy(bytes, allocation.m_data.GetBytes() + offset, size); in ReadMemory()
735 (uint64_t)allocation.m_process_start, in ReadMemory()
736 (uint64_t)allocation.m_process_start + in ReadMemory()
737 (uint64_t)allocation.m_size); in ReadMemory()
815 Allocation &allocation = iter->second; in GetMemoryData() local
817 switch (allocation.m_policy) { in GetMemoryData()
831 if (!allocation.m_data.GetByteSize()) { in GetMemoryData()
837 process_sp->ReadMemory(allocation.m_process_start, in GetMemoryData()
838 allocation.m_data.GetBytes(), in GetMemoryData()
839 allocation.m_data.GetByteSize(), error); in GetMemoryData()
842 uint64_t offset = process_address - allocation.m_process_start; in GetMemoryData()
843 extractor = DataExtractor(allocation.m_data.GetBytes() + offset, size, in GetMemoryData()
849 if (!allocation.m_data.GetByteSize()) { in GetMemoryData()
854 uint64_t offset = process_address - allocation.m_process_start; in GetMemoryData()
855 extractor = DataExtractor(allocation.m_data.GetBytes() + offset, size, in GetMemoryData()