Fixed order of code obj and symbols processing

Change-Id: Icb3341e54f3e0c7cf3da06811712f001e213d83d
This commit is contained in:
Rachida Kebichi
2021-04-22 20:26:55 -04:00
förälder 304d3366af
incheckning a2d89f22a7
+7 -7
Visa fil
@@ -461,13 +461,6 @@ class HsaInterceptor {
HSA_RT(hsa_executable_freeze_fn(executable, options));
IS_HSA_CALLBACK(ROCPROFILER_HSA_CB_ID_KSYMBOL) {
HSA_RT(hsa_executable_iterate_symbols(
executable,
KernelSymbolCallback,
reinterpret_cast<void*>(0)));
}
unsigned is_codeobj_cb = 0;
{ IS_HSA_CALLBACK(ROCPROFILER_HSA_CB_ID_CODEOBJ) is_codeobj_cb |= 1; }
{ IS_HSA_CALLBACK(ROCPROFILER_HSA_CB_ID_ALLOCATE) is_codeobj_cb |= 1; }
@@ -478,6 +471,13 @@ class HsaInterceptor {
reinterpret_cast<void*>(0));
}
IS_HSA_CALLBACK(ROCPROFILER_HSA_CB_ID_KSYMBOL) {
HSA_RT(hsa_executable_iterate_symbols(
executable,
KernelSymbolCallback,
reinterpret_cast<void*>(0)));
}
return status;
}