LLVM  6.0.0svn
Classes | Macros | Typedefs | Enumerations | Functions
ittnotify_config.h File Reference
#include <windows.h>
#include "ittnotify_types.h"
Include dependency graph for ittnotify_config.h:
This graph shows which files directly or indirectly include this file:

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

◆ __itt_fstrcmp

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

Definition at line 209 of file ittnotify_config.h.

◆ __itt_fstrcpyn

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

Definition at line 211 of file ittnotify_config.h.

◆ __itt_fstrdup

#define __itt_fstrdup (   s)    _strdup(s)

Definition at line 212 of file ittnotify_config.h.

◆ __itt_fstrlen

#define __itt_fstrlen (   s)    lstrlenA(s)

Definition at line 210 of file ittnotify_config.h.

◆ __itt_get_proc

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

Definition at line 202 of file ittnotify_config.h.

◆ __itt_load_lib

#define __itt_load_lib (   name)    LoadLibraryA(name)

Definition at line 206 of file ittnotify_config.h.

◆ __itt_mutex_init

#define __itt_mutex_init (   mutex)    InitializeCriticalSection(mutex)

Definition at line 203 of file ittnotify_config.h.

◆ __itt_mutex_lock

#define __itt_mutex_lock (   mutex)    EnterCriticalSection(mutex)

Definition at line 204 of file ittnotify_config.h.

◆ __itt_mutex_unlock

#define __itt_mutex_unlock (   mutex)    LeaveCriticalSection(mutex)

Definition at line 205 of file ittnotify_config.h.

◆ __itt_system_error

#define __itt_system_error ( )    (int)GetLastError()

Definition at line 208 of file ittnotify_config.h.

◆ __itt_thread_id

#define __itt_thread_id ( )    GetCurrentThreadId()

Definition at line 213 of file ittnotify_config.h.

◆ __itt_thread_yield

#define __itt_thread_yield ( )    SwitchToThread()

Definition at line 214 of file ittnotify_config.h.

◆ __itt_unload_lib

#define __itt_unload_lib (   handle)    FreeLibrary(handle)

Definition at line 207 of file ittnotify_config.h.

◆ _ITT_BUILD_ASSERT

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

Definition at line 160 of file ittnotify_config.h.

◆ API_VERSION

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

Definition at line 172 of file ittnotify_config.h.

◆ API_VERSION_BUILD

#define API_VERSION_BUILD   20111111

Definition at line 166 of file ittnotify_config.h.

◆ API_VERSION_NUM

#define API_VERSION_NUM   0.0.0

Definition at line 169 of file ittnotify_config.h.

◆ ITT_ARCH

#define ITT_ARCH   ITT_ARCH_IA32

Definition at line 143 of file ittnotify_config.h.

◆ ITT_ARCH_IA32

#define ITT_ARCH_IA32   1

Definition at line 126 of file ittnotify_config.h.

◆ ITT_ARCH_IA32E

#define ITT_ARCH_IA32E   2

Definition at line 130 of file ittnotify_config.h.

◆ ITT_ARCH_IA64

#define ITT_ARCH_IA64   3

Definition at line 134 of file ittnotify_config.h.

◆ ITT_BUILD_ASSERT

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

Definition at line 161 of file ittnotify_config.h.

◆ ITT_EXTERN_C

#define ITT_EXTERN_C   /* nothing */

Definition at line 150 of file ittnotify_config.h.

Referenced by iJIT_NotifyEvent().

◆ ITT_MAGIC

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

Definition at line 163 of file ittnotify_config.h.

◆ ITT_TO_STR

#define ITT_TO_STR (   x)    ITT_TO_STR_AUX(x)

Definition at line 154 of file ittnotify_config.h.

◆ ITT_TO_STR_AUX

#define ITT_TO_STR_AUX (   x)    #x

Definition at line 153 of file ittnotify_config.h.

◆ MUTEX_INITIALIZER

#define MUTEX_INITIALIZER   { 0 }

Definition at line 181 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; \
} \
}
#define __itt_fstrdup(s)
static const char * name

Definition at line 408 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; \
} \
}
static const char * name

Definition at line 392 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; \
} \
}
#define __itt_fstrdup(s)
static const char * name

Definition at line 439 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; \
} \
}
static const char * name

Definition at line 424 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; \
} \
}
#define __itt_fstrdup(s)

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

◆ strong_alias

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

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

◆ mutex_t

typedef CRITICAL_SECTION mutex_t

Definition at line 180 of file ittnotify_config.h.

◆ TIDT

typedef DWORD TIDT

Definition at line 179 of file ittnotify_config.h.

Enumeration Type Documentation

◆ __itt_collection_state

Enumerator
__itt_collection_normal 
__itt_collection_paused 

Definition at line 285 of file ittnotify_config.h.

◆ __itt_thread_state

Enumerator
__itt_thread_normal 
__itt_thread_ignored 

Definition at line 290 of file ittnotify_config.h.

Function Documentation

◆ __itt_interlocked_increment()

ITT_INLINE long __itt_interlocked_increment ( volatile long *  ptr)

Definition at line 218 of file ittnotify_config.h.