performance(ocl): verify tracingInProgress after checking for tracing support

Related-To: NEO-7958
Signed-off-by: Mateusz Jablonski <mateusz.jablonski@intel.com>
This commit is contained in:
Mateusz Jablonski
2023-07-18 11:09:09 +00:00
committed by Compute-Runtime-Automation
parent 260003caa8
commit 33e0eabe91

View File

@@ -33,7 +33,7 @@ inline thread_local bool tracingInProgress = false;
bool isHostSideTracingEnabled_##name = false; \
bool currentlyTracedCall = false; \
HostSideTracing::name##Tracer tracer_##name; \
if ((false == HostSideTracing::tracingInProgress) && TRACING_GET_ENABLED_BIT(HostSideTracing::tracingState.load(std::memory_order_acquire))) { \
if (TRACING_GET_ENABLED_BIT(HostSideTracing::tracingState.load(std::memory_order_acquire)) && (false == HostSideTracing::tracingInProgress)) { \
HostSideTracing::tracingInProgress = true; \
currentlyTracedCall = true; \
isHostSideTracingEnabled_##name = HostSideTracing::addTracingClient(); \