Microprofile integration.

This commit is contained in:
Ben Vanik
2014-05-28 13:59:43 -07:00
parent cd56c30334
commit beb9bd11f0
17 changed files with 864 additions and 13 deletions

View File

@@ -231,6 +231,10 @@ X_STATUS XThread::Create() {
return return_code;
}
char thread_name[32];
xesnprintfa(thread_name, XECOUNT(thread_name), "XThread%04X", handle());
set_name(thread_name);
module->Release();
return X_STATUS_SUCCESS;
}

View File

@@ -633,9 +633,10 @@ spin:
cs->recursion_count = 1;
}
SHIM_CALL RtlEnterCriticalSection_shim(
PPCContext* ppc_state, KernelState* state) {
SCOPE_profile_cpu_f("kernel");
uint32_t cs_ptr = SHIM_GET_ARG_32(0);
XELOGD("RtlEnterCriticalSection(%.8X)", cs_ptr);