Lines Matching full:allocation

96   // adequate space for our allocation.  in FindSpace()
138 // default if this is our first allocation. in FindSpace()
269 IRMemoryMap::Allocation::Allocation(lldb::addr_t process_alloc, in Allocation() function in IRMemoryMap::Allocation
318 error.SetErrorString("Couldn't malloc: invalid allocation policy"); in Malloc()
437 error.SetErrorString("Couldn't leak: allocation doesn't exist"); in Leak()
441 Allocation &allocation = iter->second; in Leak() local
443 allocation.m_leak = true; in Leak()
453 error.SetErrorString("Couldn't free: allocation doesn't exist"); in Free()
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()
496 Allocation &al = iter->second; in GetAllocSize()
529 error.SetErrorString("Couldn't write: no allocation contains the target " in WriteMemory()
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()
543 error.SetErrorString("Couldn't write: invalid allocation 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()
647 error.SetErrorString("Couldn't read: no allocation contains the target " in ReadMemory()
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()
658 error.SetErrorString("Couldn't read: data is not in the allocation"); in ReadMemory()
664 switch (allocation.m_policy) { in ReadMemory()
667 error.SetErrorString("Couldn't read: invalid allocation 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()
791 "Couldn't find an allocation containing [0x%" PRIx64 "..0x%" PRIx64 in GetMemoryData()
797 Allocation &allocation = iter->second; in GetMemoryData() local
799 switch (allocation.m_policy) { in GetMemoryData()
803 "Couldn't get memory data: invalid allocation 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()