Improve fragment map reporting format.
Change-Id: I85d09d085b08de46271ec902c766a8609a4b921a
This commit is contained in:
@@ -1149,9 +1149,11 @@ bool Runtime::VMFaultHandler(hsa_signal_value_t val, void* arg) {
|
||||
if (it == runtime_singleton_->allocation_map_.end()) break;
|
||||
runtime_singleton_->PtrInfo(const_cast<void*>(it->first), &info, malloc, &count, &canAccess,
|
||||
&block);
|
||||
fprintf(stderr, "PtrInfo:\n\tAddress: %p/%p\n\tSize: 0x%lx\n\tType: %u\n\tOwner: %p\n",
|
||||
info.agentBaseAddress, info.hostBaseAddress, info.sizeInBytes, info.type,
|
||||
reinterpret_cast<void*>(info.agentOwner.handle));
|
||||
fprintf(stderr,
|
||||
"PtrInfo:\n\tAddress: %p-%p/%p-%p\n\tSize: 0x%lx\n\tType: %u\n\tOwner: %p\n",
|
||||
info.agentBaseAddress, (char*)info.agentBaseAddress + info.sizeInBytes,
|
||||
info.hostBaseAddress, (char*)info.hostBaseAddress + info.sizeInBytes,
|
||||
info.sizeInBytes, info.type, reinterpret_cast<void*>(info.agentOwner.handle));
|
||||
fprintf(stderr, "\tCanAccess: %u\n", count);
|
||||
for (int t = 0; t < count; t++)
|
||||
fprintf(stderr, "\t\t%p\n", reinterpret_cast<void*>(canAccess[t].handle));
|
||||
|
||||
Verwijs in nieuw issue
Block a user