LLVM OpenMP 19.0.0git
Classes | Macros | Typedefs | Enumerations | Functions
ittnotify_config.h File Reference
#include <windows.h>
#include "ittnotify_types.h"

Go to the source code of this file.

Classes

struct  ___itt_thread_info
 
struct  ___itt_api_info_20101001
 
struct  ___itt_api_info
 
struct  __itt_counter_info
 
struct  ___itt_global
 

Macros

#define ITT_ARCH_IA32   1
 
#define ITT_ARCH_IA32E   2
 
#define ITT_ARCH_IA64   3
 
#define ITT_ARCH_ARM   4
 
#define ITT_ARCH_PPC64   5
 
#define ITT_ARCH_ARM64   6
 
#define ITT_ARCH_VE   8
 
#define ITT_ARCH_S390X   8
 
#define ITT_EXTERN_C   /* nothing */
 
#define ITT_EXTERN_C_BEGIN   /* nothing */
 
#define ITT_EXTERN_C_END   /* nothing */
 
#define ITT_TO_STR_AUX(x)   #x
 
#define ITT_TO_STR(x)   ITT_TO_STR_AUX(x)
 
#define __ITT_BUILD_ASSERT(expr, suffix)
 
#define _ITT_BUILD_ASSERT(expr, suffix)   __ITT_BUILD_ASSERT((expr), suffix)
 
#define ITT_BUILD_ASSERT(expr)   _ITT_BUILD_ASSERT((expr), __LINE__)
 
#define ITT_MAGIC    { 0xED, 0xAB, 0xAB, 0xEC, 0x0D, 0xEE, 0xDA, 0x30 }
 
#define API_VERSION_BUILD   20180723
 
#define API_VERSION_NUM   3.20.1
 
#define API_VERSION
 
#define MUTEX_INITIALIZER    { 0 }
 
#define strong_alias(name, aliasname)   /* empty for Windows */
 
#define __itt_get_proc(lib, name)   GetProcAddress(lib, name)
 
#define __itt_mutex_init(mutex)   InitializeCriticalSection(mutex)
 
#define __itt_mutex_lock(mutex)   EnterCriticalSection(mutex)
 
#define __itt_mutex_unlock(mutex)   LeaveCriticalSection(mutex)
 
#define __itt_load_lib(name)   LoadLibraryA(name)
 
#define __itt_unload_lib(handle)   FreeLibrary(handle)
 
#define __itt_system_error()   (int)GetLastError()
 
#define __itt_fstrcmp(s1, s2)   lstrcmpA(s1, s2)
 
#define __itt_fstrnlen(s, l)   strnlen_s(s, l)
 
#define __itt_fstrcpyn(s1, b, s2, l)   strncpy_s(s1, b, s2, l)
 
#define __itt_fstrdup(s)   _strdup(s)
 
#define __itt_thread_id()   GetCurrentThreadId()
 
#define __itt_thread_yield()   SwitchToThread()
 
#define DL_SYMBOLS   (1)
 
#define PTHREAD_SYMBOLS   (1)
 
#define NEW_THREAD_INFO_W(gptr, h, h_tail, t, s, n)
 
#define NEW_THREAD_INFO_A(gptr, h, h_tail, t, s, n)
 
#define NEW_DOMAIN_W(gptr, h, h_tail, name)
 
#define NEW_DOMAIN_A(gptr, h, h_tail, name)
 
#define NEW_STRING_HANDLE_W(gptr, h, h_tail, name)
 
#define NEW_STRING_HANDLE_A(gptr, h, h_tail, name)
 
#define NEW_COUNTER_W(gptr, h, h_tail, name, domain, type)
 
#define NEW_COUNTER_A(gptr, h, h_tail, name, domain, type)
 
#define NEW_HISTOGRAM_W(gptr, h, h_tail, domain, name, x_type, y_type)
 
#define NEW_HISTOGRAM_A(gptr, h, h_tail, domain, name, x_type, y_type)
 

Typedefs

typedef HMODULE lib_t
 
typedef DWORD TIDT
 
typedef CRITICAL_SECTION mutex_t
 
typedef struct ___itt_thread_info __itt_thread_info
 
typedef struct ___itt_api_info_20101001 __itt_api_info_20101001
 
typedef struct ___itt_api_info __itt_api_info
 
typedef struct __itt_counter_info __itt_counter_info_t
 
typedef struct ___itt_global __itt_global
 

Enumerations

enum  __itt_collection_state { __itt_collection_normal = 0 , __itt_collection_paused = 1 }
 
enum  __itt_thread_state { __itt_thread_normal = 0 , __itt_thread_ignored = 1 }
 

Functions

ITT_INLINE long __itt_interlocked_increment (volatile long *ptr) ITT_INLINE_ATTRIBUTE
 

Macro Definition Documentation

◆ __ITT_BUILD_ASSERT

#define __ITT_BUILD_ASSERT (   expr,
  suffix 
)
Value:
do { \
static char __itt_build_check_##suffix[(expr) ? 1 : -1]; \
__itt_build_check_##suffix[0] = 0; \
} while (0)

Definition at line 206 of file ittnotify_config.h.

◆ __itt_fstrcmp

#define __itt_fstrcmp (   s1,
  s2 
)    lstrcmpA(s1, s2)

Definition at line 273 of file ittnotify_config.h.

◆ __itt_fstrcpyn

#define __itt_fstrcpyn (   s1,
  b,
  s2,
 
)    strncpy_s(s1, b, s2, l)

Definition at line 275 of file ittnotify_config.h.

◆ __itt_fstrdup

#define __itt_fstrdup (   s)    _strdup(s)

Definition at line 276 of file ittnotify_config.h.

◆ __itt_fstrnlen

#define __itt_fstrnlen (   s,
 
)    strnlen_s(s, l)

Definition at line 274 of file ittnotify_config.h.

◆ __itt_get_proc

#define __itt_get_proc (   lib,
  name 
)    GetProcAddress(lib, name)

Definition at line 266 of file ittnotify_config.h.

◆ __itt_load_lib

#define __itt_load_lib (   name)    LoadLibraryA(name)

Definition at line 270 of file ittnotify_config.h.

◆ __itt_mutex_init

#define __itt_mutex_init (   mutex)    InitializeCriticalSection(mutex)

Definition at line 267 of file ittnotify_config.h.

◆ __itt_mutex_lock

#define __itt_mutex_lock (   mutex)    EnterCriticalSection(mutex)

Definition at line 268 of file ittnotify_config.h.

◆ __itt_mutex_unlock

#define __itt_mutex_unlock (   mutex)    LeaveCriticalSection(mutex)

Definition at line 269 of file ittnotify_config.h.

◆ __itt_system_error

#define __itt_system_error ( )    (int)GetLastError()

Definition at line 272 of file ittnotify_config.h.

◆ __itt_thread_id

#define __itt_thread_id ( )    GetCurrentThreadId()

Definition at line 277 of file ittnotify_config.h.

◆ __itt_thread_yield

#define __itt_thread_yield ( )    SwitchToThread()

Definition at line 278 of file ittnotify_config.h.

◆ __itt_unload_lib

#define __itt_unload_lib (   handle)    FreeLibrary(handle)

Definition at line 271 of file ittnotify_config.h.

◆ _ITT_BUILD_ASSERT

#define _ITT_BUILD_ASSERT (   expr,
  suffix 
)    __ITT_BUILD_ASSERT((expr), suffix)

Definition at line 211 of file ittnotify_config.h.

◆ API_VERSION

#define API_VERSION
Value:
"ITT-API-Version " ITT_TO_STR(API_VERSION_NUM) " (" ITT_TO_STR( \
#define API_VERSION_BUILD
#define API_VERSION_NUM
#define ITT_TO_STR(x)

Definition at line 224 of file ittnotify_config.h.

◆ API_VERSION_BUILD

#define API_VERSION_BUILD   20180723

Definition at line 218 of file ittnotify_config.h.

◆ API_VERSION_NUM

#define API_VERSION_NUM   3.20.1

Definition at line 221 of file ittnotify_config.h.

◆ DL_SYMBOLS

#define DL_SYMBOLS   (1)

Definition at line 287 of file ittnotify_config.h.

◆ ITT_ARCH_ARM

#define ITT_ARCH_ARM   4

Definition at line 154 of file ittnotify_config.h.

◆ ITT_ARCH_ARM64

#define ITT_ARCH_ARM64   6

Definition at line 162 of file ittnotify_config.h.

◆ ITT_ARCH_IA32

#define ITT_ARCH_IA32   1

Definition at line 142 of file ittnotify_config.h.

◆ ITT_ARCH_IA32E

#define ITT_ARCH_IA32E   2

Definition at line 146 of file ittnotify_config.h.

◆ ITT_ARCH_IA64

#define ITT_ARCH_IA64   3

Definition at line 150 of file ittnotify_config.h.

◆ ITT_ARCH_PPC64

#define ITT_ARCH_PPC64   5

Definition at line 158 of file ittnotify_config.h.

◆ ITT_ARCH_S390X

#define ITT_ARCH_S390X   8

Definition at line 170 of file ittnotify_config.h.

◆ ITT_ARCH_VE

#define ITT_ARCH_VE   8

Definition at line 166 of file ittnotify_config.h.

◆ ITT_BUILD_ASSERT

#define ITT_BUILD_ASSERT (   expr)    _ITT_BUILD_ASSERT((expr), __LINE__)

Definition at line 212 of file ittnotify_config.h.

◆ ITT_EXTERN_C

#define ITT_EXTERN_C   /* nothing */

Definition at line 198 of file ittnotify_config.h.

◆ ITT_EXTERN_C_BEGIN

#define ITT_EXTERN_C_BEGIN   /* nothing */

Definition at line 199 of file ittnotify_config.h.

◆ ITT_EXTERN_C_END

#define ITT_EXTERN_C_END   /* nothing */

Definition at line 200 of file ittnotify_config.h.

◆ ITT_MAGIC

#define ITT_MAGIC    { 0xED, 0xAB, 0xAB, 0xEC, 0x0D, 0xEE, 0xDA, 0x30 }

Definition at line 214 of file ittnotify_config.h.

◆ ITT_TO_STR

#define ITT_TO_STR (   x)    ITT_TO_STR_AUX(x)

Definition at line 204 of file ittnotify_config.h.

◆ ITT_TO_STR_AUX

#define ITT_TO_STR_AUX (   x)    #x

Definition at line 203 of file ittnotify_config.h.

◆ MUTEX_INITIALIZER

#define MUTEX_INITIALIZER    { 0 }

Definition at line 238 of file ittnotify_config.h.

◆ NEW_COUNTER_A

#define NEW_COUNTER_A (   gptr,
  h,
  h_tail,
  name,
  domain,
  type 
)
Value:
{ \
if (h != NULL) { \
h->nameA = name ? __itt_fstrdup(name) : NULL; \
h->nameW = NULL; \
h->domainA = domain ? __itt_fstrdup(domain) : NULL; \
h->domainW = NULL; \
h->type = type; \
h->index = 0; \
h->next = NULL; \
if (h_tail == NULL) \
(gptr)->counter_list = h; \
else \
h_tail->next = h; \
} \
}
__itt_string_handle * name
Definition: ittnotify.h:3305
const __itt_domain * domain
Definition: ittnotify.h:3325
#define __itt_fstrdup(s)
void const char const char int ITT_FORMAT __itt_group_sync x void const char ITT_FORMAT __itt_group_sync s void ITT_FORMAT __itt_group_sync p void ITT_FORMAT p void ITT_FORMAT p no args __itt_suppress_mode_t unsigned int void size_t ITT_FORMAT d void ITT_FORMAT p void ITT_FORMAT p __itt_model_site __itt_model_site_instance ITT_FORMAT p __itt_model_task __itt_model_task_instance ITT_FORMAT p void ITT_FORMAT p void ITT_FORMAT p void size_t ITT_FORMAT d void ITT_FORMAT p const wchar_t ITT_FORMAT s const char ITT_FORMAT s const char ITT_FORMAT s const char ITT_FORMAT s no args void ITT_FORMAT p size_t ITT_FORMAT d no args const wchar_t const wchar_t ITT_FORMAT s __itt_heap_function h
void const char const char int ITT_FORMAT __itt_group_sync x void const char ITT_FORMAT __itt_group_sync s void ITT_FORMAT __itt_group_sync p void ITT_FORMAT p void ITT_FORMAT p no args __itt_suppress_mode_t unsigned int void size_t ITT_FORMAT d void ITT_FORMAT p void ITT_FORMAT p __itt_model_site __itt_model_site_instance ITT_FORMAT p __itt_model_task __itt_model_task_instance ITT_FORMAT p void ITT_FORMAT p void ITT_FORMAT p void size_t ITT_FORMAT d void ITT_FORMAT p const wchar_t ITT_FORMAT s const char ITT_FORMAT s const char ITT_FORMAT s const char ITT_FORMAT s no args void ITT_FORMAT p size_t ITT_FORMAT d no args const wchar_t const wchar_t ITT_FORMAT s __itt_heap_function void size_t int ITT_FORMAT d __itt_heap_function void ITT_FORMAT p __itt_heap_function void void size_t int ITT_FORMAT d no args no args unsigned int ITT_FORMAT u const __itt_domain __itt_id ITT_FORMAT lu const __itt_domain __itt_id __itt_id __itt_string_handle ITT_FORMAT p const __itt_domain __itt_id ITT_FORMAT p const __itt_domain __itt_id __itt_timestamp __itt_timestamp ITT_FORMAT lu const __itt_domain __itt_id __itt_id __itt_string_handle ITT_FORMAT p const __itt_domain ITT_FORMAT p const __itt_domain __itt_string_handle unsigned long long ITT_FORMAT lu const __itt_domain __itt_string_handle unsigned long long ITT_FORMAT lu const __itt_domain __itt_id __itt_string_handle __itt_metadata_type type

Definition at line 608 of file ittnotify_config.h.

◆ NEW_COUNTER_W

#define NEW_COUNTER_W (   gptr,
  h,
  h_tail,
  name,
  domain,
  type 
)
Value:
{ \
if (h != NULL) { \
h->nameA = NULL; \
h->nameW = name ? _wcsdup(name) : NULL; \
h->domainA = NULL; \
h->domainW = name ? _wcsdup(domain) : NULL; \
h->type = type; \
h->index = 0; \
h->next = NULL; \
if (h_tail == NULL) \
(gptr)->counter_list = h; \
else \
h_tail->next = h; \
} \
}

Definition at line 590 of file ittnotify_config.h.

◆ NEW_DOMAIN_A

#define NEW_DOMAIN_A (   gptr,
  h,
  h_tail,
  name 
)
Value:
{ \
h = (__itt_domain *)malloc(sizeof(__itt_domain)); \
if (h != NULL) { \
h->flags = 1; /* domain is enabled by default */ \
h->nameA = name ? __itt_fstrdup(name) : NULL; \
h->nameW = NULL; \
h->extra1 = 0; /* reserved */ \
h->extra2 = NULL; /* reserved */ \
h->next = NULL; \
if (h_tail == NULL) \
(gptr)->domain_list = h; \
else \
h_tail->next = h; \
} \
}

Definition at line 541 of file ittnotify_config.h.

◆ NEW_DOMAIN_W

#define NEW_DOMAIN_W (   gptr,
  h,
  h_tail,
  name 
)
Value:
{ \
h = (__itt_domain *)malloc(sizeof(__itt_domain)); \
if (h != NULL) { \
h->flags = 1; /* domain is enabled by default */ \
h->nameA = NULL; \
h->nameW = name ? _wcsdup(name) : NULL; \
h->extra1 = 0; /* reserved */ \
h->extra2 = NULL; /* reserved */ \
h->next = NULL; \
if (h_tail == NULL) \
(gptr)->domain_list = h; \
else \
h_tail->next = h; \
} \
}

Definition at line 524 of file ittnotify_config.h.

◆ NEW_HISTOGRAM_A

#define NEW_HISTOGRAM_A (   gptr,
  h,
  h_tail,
  domain,
  name,
  x_type,
  y_type 
)
Value:
{ \
h = (__itt_histogram *)malloc(sizeof(__itt_histogram)); \
if (h != NULL) { \
h->domain = domain; \
h->nameA = name ? __itt_fstrdup(name) : NULL; \
h->nameW = NULL; \
h->x_type = x_type; \
h->y_type = y_type; \
h->extra1 = 0; \
h->extra2 = NULL; \
if (h_tail == NULL) \
(gptr)->histogram_list = h; \
else \
h_tail->next = h; \
} \
}

Definition at line 644 of file ittnotify_config.h.

◆ NEW_HISTOGRAM_W

#define NEW_HISTOGRAM_W (   gptr,
  h,
  h_tail,
  domain,
  name,
  x_type,
  y_type 
)
Value:
{ \
h = (__itt_histogram *)malloc(sizeof(__itt_histogram)); \
if (h != NULL) { \
h->domain = domain; \
h->nameA = NULL; \
h->nameW = name ? _wcsdup(name) : NULL; \
h->x_type = x_type; \
h->y_type = y_type; \
h->extra1 = 0; \
h->extra2 = NULL; \
if (h_tail == NULL) \
(gptr)->histogram_list = h; \
else \
h_tail->next = h; \
} \
}

Definition at line 626 of file ittnotify_config.h.

◆ NEW_STRING_HANDLE_A

#define NEW_STRING_HANDLE_A (   gptr,
  h,
  h_tail,
  name 
)
Value:
{ \
h = (__itt_string_handle *)malloc(sizeof(__itt_string_handle)); \
if (h != NULL) { \
h->strA = name ? __itt_fstrdup(name) : NULL; \
h->strW = NULL; \
h->extra1 = 0; /* reserved */ \
h->extra2 = NULL; /* reserved */ \
h->next = NULL; \
if (h_tail == NULL) \
(gptr)->string_list = h; \
else \
h_tail->next = h; \
} \
}

Definition at line 574 of file ittnotify_config.h.

◆ NEW_STRING_HANDLE_W

#define NEW_STRING_HANDLE_W (   gptr,
  h,
  h_tail,
  name 
)
Value:
{ \
h = (__itt_string_handle *)malloc(sizeof(__itt_string_handle)); \
if (h != NULL) { \
h->strA = NULL; \
h->strW = name ? _wcsdup(name) : NULL; \
h->extra1 = 0; /* reserved */ \
h->extra2 = NULL; /* reserved */ \
h->next = NULL; \
if (h_tail == NULL) \
(gptr)->string_list = h; \
else \
h_tail->next = h; \
} \
}

Definition at line 558 of file ittnotify_config.h.

◆ NEW_THREAD_INFO_A

#define NEW_THREAD_INFO_A (   gptr,
  h,
  h_tail,
  t,
  s,
 
)
Value:
{ \
h = (__itt_thread_info *)malloc(sizeof(__itt_thread_info)); \
if (h != NULL) { \
h->tid = t; \
h->nameA = n ? __itt_fstrdup(n) : NULL; \
h->nameW = NULL; \
h->state = s; \
h->extra1 = 0; /* reserved */ \
h->extra2 = NULL; /* reserved */ \
h->next = NULL; \
if (h_tail == NULL) \
(gptr)->thread_list = h; \
else \
h_tail->next = h; \
} \
}
void const char const char int ITT_FORMAT __itt_group_sync s

Definition at line 506 of file ittnotify_config.h.

◆ NEW_THREAD_INFO_W

#define NEW_THREAD_INFO_W (   gptr,
  h,
  h_tail,
  t,
  s,
 
)
Value:
{ \
h = (__itt_thread_info *)malloc(sizeof(__itt_thread_info)); \
if (h != NULL) { \
h->tid = t; \
h->nameA = NULL; \
h->nameW = n ? _wcsdup(n) : NULL; \
h->state = s; \
h->extra1 = 0; /* reserved */ \
h->extra2 = NULL; /* reserved */ \
h->next = NULL; \
if (h_tail == NULL) \
(gptr)->thread_list = h; \
else \
h_tail->next = h; \
} \
}

Definition at line 488 of file ittnotify_config.h.

◆ PTHREAD_SYMBOLS

#define PTHREAD_SYMBOLS   (1)

Definition at line 288 of file ittnotify_config.h.

◆ strong_alias

#define strong_alias (   name,
  aliasname 
)    /* empty for Windows */

Definition at line 241 of file ittnotify_config.h.

Typedef Documentation

◆ __itt_api_info

◆ __itt_api_info_20101001

◆ __itt_counter_info_t

◆ __itt_global

typedef struct ___itt_global __itt_global

◆ __itt_thread_info

◆ lib_t

typedef HMODULE lib_t

Definition at line 231 of file ittnotify_config.h.

◆ mutex_t

typedef CRITICAL_SECTION mutex_t

Definition at line 233 of file ittnotify_config.h.

◆ TIDT

typedef DWORD TIDT

Definition at line 232 of file ittnotify_config.h.

Enumeration Type Documentation

◆ __itt_collection_state

Enumerator
__itt_collection_normal 
__itt_collection_paused 

Definition at line 395 of file ittnotify_config.h.

◆ __itt_thread_state

Enumerator
__itt_thread_normal 
__itt_thread_ignored 

Definition at line 400 of file ittnotify_config.h.

Function Documentation

◆ __itt_interlocked_increment()

ITT_INLINE long __itt_interlocked_increment ( volatile long *  ptr)

Definition at line 282 of file ittnotify_config.h.