LLVM 20.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_global
 

Macros

#define ITT_ARCH_IA32   1
 
#define ITT_ARCH_IA32E   2
 
#define ITT_ARCH_IA64   3
 
#define ITT_ARCH   ITT_ARCH_IA32
 
#define ITT_EXTERN_C   /* 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   20111111
 
#define API_VERSION_NUM   0.0.0
 
#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_fstrlen(s)   lstrlenA(s)
 
#define __itt_fstrcpyn(s1, s2, l)   lstrcpynA(s1, s2, l)
 
#define __itt_fstrdup(s)   _strdup(s)
 
#define __itt_thread_id()   GetCurrentThreadId()
 
#define __itt_thread_yield()   SwitchToThread()
 
#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)
 

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_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 155 of file ittnotify_config.h.

◆ __itt_fstrcmp

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

Definition at line 208 of file ittnotify_config.h.

◆ __itt_fstrcpyn

#define __itt_fstrcpyn (   s1,
  s2,
 
)    lstrcpynA(s1, s2, l)

Definition at line 210 of file ittnotify_config.h.

◆ __itt_fstrdup

#define __itt_fstrdup (   s)    _strdup(s)

Definition at line 211 of file ittnotify_config.h.

◆ __itt_fstrlen

#define __itt_fstrlen (   s)    lstrlenA(s)

Definition at line 209 of file ittnotify_config.h.

◆ __itt_get_proc

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

Definition at line 201 of file ittnotify_config.h.

◆ __itt_load_lib

#define __itt_load_lib (   name)    LoadLibraryA(name)

Definition at line 205 of file ittnotify_config.h.

◆ __itt_mutex_init

#define __itt_mutex_init (   mutex)    InitializeCriticalSection(mutex)

Definition at line 202 of file ittnotify_config.h.

◆ __itt_mutex_lock

#define __itt_mutex_lock (   mutex)    EnterCriticalSection(mutex)

Definition at line 203 of file ittnotify_config.h.

◆ __itt_mutex_unlock

#define __itt_mutex_unlock (   mutex)    LeaveCriticalSection(mutex)

Definition at line 204 of file ittnotify_config.h.

◆ __itt_system_error

#define __itt_system_error ( )    (int)GetLastError()

Definition at line 207 of file ittnotify_config.h.

◆ __itt_thread_id

#define __itt_thread_id ( )    GetCurrentThreadId()

Definition at line 212 of file ittnotify_config.h.

◆ __itt_thread_yield

#define __itt_thread_yield ( )    SwitchToThread()

Definition at line 213 of file ittnotify_config.h.

◆ __itt_unload_lib

#define __itt_unload_lib (   handle)    FreeLibrary(handle)

Definition at line 206 of file ittnotify_config.h.

◆ _ITT_BUILD_ASSERT

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

Definition at line 159 of file ittnotify_config.h.

◆ API_VERSION

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

Definition at line 171 of file ittnotify_config.h.

◆ API_VERSION_BUILD

#define API_VERSION_BUILD   20111111

Definition at line 165 of file ittnotify_config.h.

◆ API_VERSION_NUM

#define API_VERSION_NUM   0.0.0

Definition at line 168 of file ittnotify_config.h.

◆ ITT_ARCH

#define ITT_ARCH   ITT_ARCH_IA32

Definition at line 142 of file ittnotify_config.h.

◆ ITT_ARCH_IA32

#define ITT_ARCH_IA32   1

Definition at line 125 of file ittnotify_config.h.

◆ ITT_ARCH_IA32E

#define ITT_ARCH_IA32E   2

Definition at line 129 of file ittnotify_config.h.

◆ ITT_ARCH_IA64

#define ITT_ARCH_IA64   3

Definition at line 133 of file ittnotify_config.h.

◆ ITT_BUILD_ASSERT

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

Definition at line 160 of file ittnotify_config.h.

◆ ITT_EXTERN_C

#define ITT_EXTERN_C   /* nothing */

Definition at line 149 of file ittnotify_config.h.

◆ ITT_MAGIC

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

Definition at line 162 of file ittnotify_config.h.

◆ ITT_TO_STR

#define ITT_TO_STR (   x)    ITT_TO_STR_AUX(x)

Definition at line 153 of file ittnotify_config.h.

◆ ITT_TO_STR_AUX

#define ITT_TO_STR_AUX (   x)    #x

Definition at line 152 of file ittnotify_config.h.

◆ MUTEX_INITIALIZER

#define MUTEX_INITIALIZER   { 0 }

Definition at line 180 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 = 0; /* domain is disabled 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; \
} \
}
static const char * name
Definition: SMEABIPass.cpp:46
#define __itt_fstrdup(s)

Definition at line 407 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 = 0; /* domain is disabled 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 391 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 438 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 423 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; \
} \
}

Definition at line 374 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 357 of file ittnotify_config.h.

◆ strong_alias

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

Definition at line 181 of file ittnotify_config.h.

Typedef Documentation

◆ __itt_api_info

◆ __itt_api_info_20101001

◆ __itt_global

typedef struct ___itt_global __itt_global

◆ __itt_thread_info

◆ lib_t

typedef HMODULE lib_t

Definition at line 177 of file ittnotify_config.h.

◆ mutex_t

typedef CRITICAL_SECTION mutex_t

Definition at line 179 of file ittnotify_config.h.

◆ TIDT

typedef DWORD TIDT

Definition at line 178 of file ittnotify_config.h.

Enumeration Type Documentation

◆ __itt_collection_state

Enumerator
__itt_collection_normal 
__itt_collection_paused 

Definition at line 284 of file ittnotify_config.h.

◆ __itt_thread_state

Enumerator
__itt_thread_normal 
__itt_thread_ignored 

Definition at line 289 of file ittnotify_config.h.

Function Documentation

◆ __itt_interlocked_increment()

ITT_INLINE long __itt_interlocked_increment ( volatile long *  ptr)

Definition at line 217 of file ittnotify_config.h.