Fixed itt_collector build (#9596)

This commit is contained in:
Ilya Churaev 2022-01-12 14:47:24 +03:00 committed by GitHub
parent 2990049c93
commit 12d92dfa2d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1108,7 +1108,7 @@ __itt_timestamp get_timestamp() {
void Pause() { void Pause() {
static __itt_global* pGlobal = GetITTGlobal(); static __itt_global* pGlobal = GetITTGlobal();
while (pGlobal) { while (pGlobal) {
pGlobal->state = __itt_collection_paused; pGlobal->state = __itt_collection_init_fail;
___itt_domain* pDomain = pGlobal->domain_list; ___itt_domain* pDomain = pGlobal->domain_list;
while (pDomain) { while (pDomain) {
pDomain->flags = 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 1; // this flag is analyzed by static part of ITT to decide where to call dynamic part or not
pDomain = pDomain->next; pDomain = pDomain->next;
} }
pGlobal->state = __itt_collection_normal; pGlobal->state = __itt_collection_uninitialized;
pGlobal = pGlobal->next; pGlobal = pGlobal->next;
} }
} }