Clean log file from incorrect entries

Signed-off-by: Mateusz Hoppe <mateusz.hoppe@intel.com>
This commit is contained in:
Mateusz Hoppe 2021-02-12 18:44:33 +01:00 committed by Compute-Runtime-Automation
parent 6eebf82ec5
commit 06bcc67e38
3 changed files with 9 additions and 8 deletions

View File

@ -352,9 +352,10 @@ Buffer *Buffer::create(Context *context,
return nullptr;
}
PRINT_DEBUG_STRING(DebugManager.flags.LogMemoryObject.get(), stdout,
"\nCreated Buffer: Handle %p, hostPtr %p, size %llu, memoryStorage %p, GPU address %#llx, memoryPool:%du\n",
pBuffer, hostPtr, size, allocationInfo[rootDeviceIndex].memory->getUnderlyingBuffer(), allocationInfo[rootDeviceIndex].memory->getGpuAddress(), allocationInfo[rootDeviceIndex].memory->getMemoryPool());
DBG_LOG(LogMemoryObject, __FUNCTION__, "Created Buffer: Handle: ", pBuffer, ", hostPtr: ", hostPtr, ", size: ", size,
", memoryStorage: ", allocationInfo[rootDeviceIndex].memory->getUnderlyingBuffer(),
", GPU address: ", allocationInfo[rootDeviceIndex].memory->getGpuAddress(),
", memoryPool: ", allocationInfo[rootDeviceIndex].memory->getMemoryPool());
for (auto &rootDeviceIndex : context->getRootDeviceIndices()) {
if (memoryProperties.flags.useHostPtr) {

View File

@ -576,7 +576,7 @@ NTSTATUS Wddm::createAllocationsAndMapGpuVa(OsHandleStorage &osHandles) {
status = getGdi()->createAllocation(&CreateAllocation);
if (status != STATUS_SUCCESS) {
DBG_LOG(PrintDebugMessages, __FUNCTION__, "status: ", status);
PRINT_DEBUG_STRING(DebugManager.flags.PrintDebugMessages.get(), stderr, __FUNCTION__ "status: %d", status);
DEBUG_BREAK_IF(status != STATUS_GRAPHICS_NO_VIDEO_MEMORY);
break;
}
@ -590,7 +590,7 @@ NTSTATUS Wddm::createAllocationsAndMapGpuVa(OsHandleStorage &osHandles) {
if (!success) {
osHandles.fragmentStorageData[allocationIndex].freeTheFragment = true;
DBG_LOG(PrintDebugMessages, __FUNCTION__, "mapGpuVirtualAddress: ", success);
PRINT_DEBUG_STRING(DebugManager.flags.PrintDebugMessages.get(), stderr, __FUNCTION__ "mapGpuVirtualAddress: %d", success);
DEBUG_BREAK_IF(true);
return STATUS_GRAPHICS_NO_VIDEO_MEMORY;
}

View File

@ -43,7 +43,7 @@ class HeapAllocator {
sizeToAllocate = alignUp(sizeToAllocate, allocationAlignment);
std::lock_guard<std::mutex> lock(mtx);
DBG_LOG(PrintDebugMessages, __FUNCTION__, "Allocator usage == ", this->getUsage());
DBG_LOG(LogAllocationMemoryPool, __FUNCTION__, "Allocator usage == ", this->getUsage());
if (availableSize < sizeToAllocate) {
return 0llu;
}
@ -91,7 +91,7 @@ class HeapAllocator {
return;
std::lock_guard<std::mutex> lock(mtx);
DBG_LOG(PrintDebugMessages, __FUNCTION__, "Allocator usage == ", this->getUsage());
DBG_LOG(LogAllocationMemoryPool, __FUNCTION__, "Allocator usage == ", this->getUsage());
if (ptr == pRightBound) {
pRightBound = ptr + size;
@ -246,7 +246,7 @@ class HeapAllocator {
}
}
mergeLastFreedBig();
DBG_LOG(PrintDebugMessages, __FUNCTION__, "Allocator usage == ", this->getUsage());
DBG_LOG(LogAllocationMemoryPool, __FUNCTION__, "Allocator usage == ", this->getUsage());
}
};
} // namespace NEO