rocr: Fix SVM profiler QUEUE_RESTORE parsing

Bu işleme şunda yer alıyor:
Ben Vanik authored and Yat Sin, David committed 2025-05-21 13:17:25 -04:00
1 ebeveyn 8cf4b7fc05
işleme 1a32392912
1 file changed
+3 -5
+3 -5
Dosyayı Görüntüle
@@ -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