From 12d92dfa2de30b16b0724d4b40c5c6d75cd23084 Mon Sep 17 00:00:00 2001 From: Ilya Churaev Date: Wed, 12 Jan 2022 14:47:24 +0300 Subject: [PATCH] Fixed itt_collector build (#9596) --- thirdparty/itt_collector/sea_itt_lib/IttNotifyStdSrc.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/thirdparty/itt_collector/sea_itt_lib/IttNotifyStdSrc.cpp b/thirdparty/itt_collector/sea_itt_lib/IttNotifyStdSrc.cpp index ae3ac72ea9b..c1375f91aa4 100644 --- a/thirdparty/itt_collector/sea_itt_lib/IttNotifyStdSrc.cpp +++ b/thirdparty/itt_collector/sea_itt_lib/IttNotifyStdSrc.cpp @@ -1108,7 +1108,7 @@ __itt_timestamp get_timestamp() { void Pause() { static __itt_global* pGlobal = GetITTGlobal(); while (pGlobal) { - pGlobal->state = __itt_collection_paused; + pGlobal->state = __itt_collection_init_fail; ___itt_domain* pDomain = pGlobal->domain_list; while (pDomain) { pDomain->flags = @@ -1138,7 +1138,7 @@ void Resume() { 1; // this flag is analyzed by static part of ITT to decide where to call dynamic part or not pDomain = pDomain->next; } - pGlobal->state = __itt_collection_normal; + pGlobal->state = __itt_collection_uninitialized; pGlobal = pGlobal->next; } }