From 1a32392912234d8ccb83e5cc1e2e5fcdcc63b0c1 Mon Sep 17 00:00:00 2001 From: Ben Vanik Date: Wed, 21 May 2025 13:58:11 +0000 Subject: [PATCH] rocr: Fix SVM profiler QUEUE_RESTORE parsing --- runtime/hsa-runtime/core/runtime/svm_profiler.cpp | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/runtime/hsa-runtime/core/runtime/svm_profiler.cpp b/runtime/hsa-runtime/core/runtime/svm_profiler.cpp index 029b209d29..e0665cf298 100644 --- a/runtime/hsa-runtime/core/runtime/svm_profiler.cpp +++ b/runtime/hsa-runtime/core/runtime/svm_profiler.cpp @@ -301,12 +301,10 @@ void SvmProfileControl::PollSmi() { // gpu_id case HSA_SMI_EVENT_QUEUE_RESTORE: { uint32_t gpuid; - uint32_t trigger; - args = sscanf(cursor, "%x %u", &gpuid, &trigger); - assert(args == 2 && "Parsing error!"); + args = sscanf(cursor, "%x", &gpuid); + assert(args == 1 && "Parsing error!"); std::string agent = format_agent(gpuid); - std::string cause = smi_eviction_string(trigger); - detail = cause + " " + agent; + detail = agent; break; } //@addr(size) gpu_id