From 95c926059d1dec7909593f9487018d4e345afb41 Mon Sep 17 00:00:00 2001 From: Sean Keely Date: Tue, 30 Jan 2018 18:13:47 -0600 Subject: [PATCH] Improve fragment map reporting format. Change-Id: I85d09d085b08de46271ec902c766a8609a4b921a --- runtime/hsa-runtime/core/runtime/runtime.cpp | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/runtime/hsa-runtime/core/runtime/runtime.cpp b/runtime/hsa-runtime/core/runtime/runtime.cpp index 553300265d..fa53a4556f 100644 --- a/runtime/hsa-runtime/core/runtime/runtime.cpp +++ b/runtime/hsa-runtime/core/runtime/runtime.cpp @@ -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(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(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(info.agentOwner.handle)); fprintf(stderr, "\tCanAccess: %u\n", count); for (int t = 0; t < count; t++) fprintf(stderr, "\t\t%p\n", reinterpret_cast(canAccess[t].handle));