refactor: use hex values to print TSP usage

Signed-off-by: Dunajski, Bartosz <bartosz.dunajski@intel.com>
This commit is contained in:
Dunajski, Bartosz 2023-06-23 10:20:16 +00:00 committed by Compute-Runtime-Automation
parent 73b40a49dc
commit 2b5e475db9
3 changed files with 5 additions and 5 deletions

View File

@ -127,7 +127,7 @@ inline void HardwareInterface<GfxFamily>::programWalker(
if (walkerArgs.currentTimestampPacketNodes && DebugManager.flags.PrintTimestampPacketUsage.get() == 1) { if (walkerArgs.currentTimestampPacketNodes && DebugManager.flags.PrintTimestampPacketUsage.get() == 1) {
auto gpuVa = walkerArgs.currentTimestampPacketNodes->peekNodes()[walkerArgs.currentDispatchIndex]->getGpuAddress(); 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) { if (partitionWalker) {

View File

@ -97,7 +97,7 @@ struct TimestampPacketHelper {
using COMPARE_OPERATION = typename GfxFamily::MI_SEMAPHORE_WAIT::COMPARE_OPERATION; using COMPARE_OPERATION = typename GfxFamily::MI_SEMAPHORE_WAIT::COMPARE_OPERATION;
if (DebugManager.flags.PrintTimestampPacketUsage.get() == 1) { 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); auto compareAddress = getContextEndGpuAddress(timestampPacketNode);

View File

@ -35,7 +35,7 @@ TagNodeBase *TagAllocator<TagType>::getTag() {
node->initialize(); node->initialize();
if (DebugManager.flags.PrintTimestampPacketUsage.get() == 1) { 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; return node;
@ -48,7 +48,7 @@ void TagAllocator<TagType>::returnTagToFreePool(TagNodeBase *node) {
DEBUG_BREAK_IF(usedNode == nullptr); DEBUG_BREAK_IF(usedNode == nullptr);
if (DebugManager.flags.PrintTimestampPacketUsage.get() == 1) { 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); freeTags.pushFrontOne(*nodeT);
@ -72,7 +72,7 @@ void TagAllocator<TagType>::releaseDeferredTags() {
auto nextNode = currentNode->next; auto nextNode = currentNode->next;
if (currentNode->canBeReleased()) { if (currentNode->canBeReleased()) {
if (DebugManager.flags.PrintTimestampPacketUsage.get() == 1) { 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); pendingFreeTags.pushFrontOne(*currentNode);
} else { } else {