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()
534 Allocation &allocation = iter->second; in WriteMemory() local
536 uint64_t offset = process_address - allocation.m_process_start; in WriteMemory()
540 switch (allocation.m_policy) { in WriteMemory()
546 if (!allocation.m_data.GetByteSize()) { in WriteMemory()
551 ::memcpy(allocation.m_data.GetBytes() + offset, bytes, size); in WriteMemory()
554 if (!allocation.m_data.GetByteSize()) { in WriteMemory()
559 ::memcpy(allocation.m_data.GetBytes() + offset, bytes, size); in WriteMemory()
583 (uint64_t)allocation.m_process_start, in WriteMemory()
584 (uint64_t)allocation.m_process_start + in WriteMemory()
585 (uint64_t)allocation.m_size); in WriteMemory()
652 Allocation &allocation = iter->second; in ReadMemory() local
654 uint64_t offset = process_address - allocation.m_process_start; in ReadMemory()
656 if (offset > allocation.m_size) { in ReadMemory()
664 switch (allocation.m_policy) { in ReadMemory()
670 if (!allocation.m_data.GetByteSize()) { in ReadMemory()
675 if (allocation.m_data.GetByteSize() < offset + size) { in ReadMemory()
681 ::memcpy(bytes, allocation.m_data.GetBytes() + offset, size); in ReadMemory()
690 if (!allocation.m_data.GetByteSize()) { in ReadMemory()
695 ::memcpy(bytes, allocation.m_data.GetBytes() + offset, size); in ReadMemory()
714 (uint64_t)allocation.m_process_start, in ReadMemory()
715 (uint64_t)allocation.m_process_start + in ReadMemory()
716 (uint64_t)allocation.m_size); in ReadMemory()
797 Allocation &allocation = iter->second; in GetMemoryData() local
799 switch (allocation.m_policy) { in GetMemoryData()
813 if (!allocation.m_data.GetByteSize()) { in GetMemoryData()
819 process_sp->ReadMemory(allocation.m_process_start, in GetMemoryData()
820 allocation.m_data.GetBytes(), in GetMemoryData()
821 allocation.m_data.GetByteSize(), error); in GetMemoryData()
824 uint64_t offset = process_address - allocation.m_process_start; in GetMemoryData()
825 extractor = DataExtractor(allocation.m_data.GetBytes() + offset, size, in GetMemoryData()
831 if (!allocation.m_data.GetByteSize()) { in GetMemoryData()
836 uint64_t offset = process_address - allocation.m_process_start; in GetMemoryData()
837 extractor = DataExtractor(allocation.m_data.GetBytes() + offset, size, in GetMemoryData()