mirror of
https://github.com/intel/compute-runtime.git
synced 2025-12-20 00:24:58 +08:00
refactor: use hex values to print TSP usage
Signed-off-by: Dunajski, Bartosz <bartosz.dunajski@intel.com>
This commit is contained in:
committed by
Compute-Runtime-Automation
parent
73b40a49dc
commit
2b5e475db9
@@ -127,7 +127,7 @@ inline void HardwareInterface<GfxFamily>::programWalker(
|
||||
|
||||
if (walkerArgs.currentTimestampPacketNodes && DebugManager.flags.PrintTimestampPacketUsage.get() == 1) {
|
||||
auto gpuVa = walkerArgs.currentTimestampPacketNodes->peekNodes()[walkerArgs.currentDispatchIndex]->getGpuAddress();
|
||||
printf("\nPID:%u, TSP used for Walker: 0x%" PRIu64 ", cmdBuffer pos: 0x%" PRIu64, SysCalls::getProcessId(), gpuVa, commandStream.getCurrentGpuAddressPosition());
|
||||
printf("\nPID:%u, TSP used for Walker: 0x%" PRIX64 ", cmdBuffer pos: 0x%" PRIX64, SysCalls::getProcessId(), gpuVa, commandStream.getCurrentGpuAddressPosition());
|
||||
}
|
||||
|
||||
if (partitionWalker) {
|
||||
|
||||
@@ -97,7 +97,7 @@ struct TimestampPacketHelper {
|
||||
using COMPARE_OPERATION = typename GfxFamily::MI_SEMAPHORE_WAIT::COMPARE_OPERATION;
|
||||
|
||||
if (DebugManager.flags.PrintTimestampPacketUsage.get() == 1) {
|
||||
printf("\nPID: %u, TSP used for Semaphore: 0x%" PRIu64 ", cmdBuffer pos: 0x%" PRIu64, SysCalls::getProcessId(), timestampPacketNode.getGpuAddress(), cmdStream.getCurrentGpuAddressPosition());
|
||||
printf("\nPID: %u, TSP used for Semaphore: 0x%" PRIX64 ", cmdBuffer pos: 0x%" PRIX64, SysCalls::getProcessId(), timestampPacketNode.getGpuAddress(), cmdStream.getCurrentGpuAddressPosition());
|
||||
}
|
||||
|
||||
auto compareAddress = getContextEndGpuAddress(timestampPacketNode);
|
||||
|
||||
@@ -35,7 +35,7 @@ TagNodeBase *TagAllocator<TagType>::getTag() {
|
||||
node->initialize();
|
||||
|
||||
if (DebugManager.flags.PrintTimestampPacketUsage.get() == 1) {
|
||||
printf("\nPID: %u, TSP taken from pool and initialized: 0x%" PRIu64, SysCalls::getProcessId(), node->getGpuAddress());
|
||||
printf("\nPID: %u, TSP taken from pool and initialized: 0x%" PRIX64, SysCalls::getProcessId(), node->getGpuAddress());
|
||||
}
|
||||
|
||||
return node;
|
||||
@@ -48,7 +48,7 @@ void TagAllocator<TagType>::returnTagToFreePool(TagNodeBase *node) {
|
||||
DEBUG_BREAK_IF(usedNode == nullptr);
|
||||
|
||||
if (DebugManager.flags.PrintTimestampPacketUsage.get() == 1) {
|
||||
printf("\nPID: %u, TSP returned to pool: 0x%" PRIu64, SysCalls::getProcessId(), nodeT->getGpuAddress());
|
||||
printf("\nPID: %u, TSP returned to pool: 0x%" PRIX64, SysCalls::getProcessId(), nodeT->getGpuAddress());
|
||||
}
|
||||
|
||||
freeTags.pushFrontOne(*nodeT);
|
||||
@@ -72,7 +72,7 @@ void TagAllocator<TagType>::releaseDeferredTags() {
|
||||
auto nextNode = currentNode->next;
|
||||
if (currentNode->canBeReleased()) {
|
||||
if (DebugManager.flags.PrintTimestampPacketUsage.get() == 1) {
|
||||
printf("\nPID: %u, TSP returned to pool: 0x%" PRIu64, SysCalls::getProcessId(), currentNode->getGpuAddress());
|
||||
printf("\nPID: %u, TSP returned to pool: 0x%" PRIX64, SysCalls::getProcessId(), currentNode->getGpuAddress());
|
||||
}
|
||||
pendingFreeTags.pushFrontOne(*currentNode);
|
||||
} else {
|
||||
|
||||
Reference in New Issue
Block a user