| 1 |
|
| 2 |
|
| 3 |
|
| 4 |
|
| 5 |
|
| 6 |
|
| 7 |
|
| 8 |
|
| 9 |
#ifndef _ITTNOTIFY_H_ |
| 10 |
#define _ITTNOTIFY_H_ |
| 11 |
|
| 12 |
|
| 13 |
|
| 14 |
|
| 15 |
|
| 16 |
|
| 17 |
|
| 18 |
|
| 19 |
|
| 20 |
|
| 21 |
|
| 22 |
|
| 23 |
|
| 24 |
|
| 25 |
|
| 26 |
|
| 27 |
|
| 28 |
|
| 29 |
|
| 30 |
|
| 31 |
|
| 32 |
|
| 33 |
|
| 34 |
|
| 35 |
|
| 36 |
|
| 37 |
|
| 38 |
|
| 39 |
|
| 40 |
|
| 41 |
|
| 42 |
|
| 43 |
|
| 44 |
|
| 45 |
|
| 46 |
|
| 47 |
|
| 48 |
|
| 49 |
|
| 50 |
|
| 51 |
|
| 52 |
|
| 53 |
|
| 54 |
|
| 55 |
|
| 56 |
|
| 57 |
|
| 58 |
|
| 59 |
|
| 60 |
|
| 61 |
|
| 62 |
|
| 63 |
|
| 64 |
|
| 65 |
|
| 66 |
|
| 67 |
|
| 68 |
|
| 69 |
|
| 70 |
|
| 71 |
|
| 72 |
|
| 73 |
|
| 74 |
|
| 75 |
|
| 76 |
|
| 77 |
|
| 78 |
|
| 79 |
|
| 80 |
#ifndef ITT_OS_WIN |
| 81 |
# define ITT_OS_WIN 1 |
| 82 |
#endif |
| 83 |
|
| 84 |
#ifndef ITT_OS_LINUX |
| 85 |
# define ITT_OS_LINUX 2 |
| 86 |
#endif |
| 87 |
|
| 88 |
#ifndef ITT_OS_MAC |
| 89 |
# define ITT_OS_MAC 3 |
| 90 |
#endif |
| 91 |
|
| 92 |
#ifndef ITT_OS_FREEBSD |
| 93 |
# define ITT_OS_FREEBSD 4 |
| 94 |
#endif |
| 95 |
|
| 96 |
#ifndef ITT_OS_OPENBSD |
| 97 |
# define ITT_OS_OPENBSD 5 |
| 98 |
#endif |
| 99 |
|
| 100 |
#ifndef ITT_OS |
| 101 |
# if defined WIN32 || defined _WIN32 |
| 102 |
# define ITT_OS ITT_OS_WIN |
| 103 |
# elif defined( __APPLE__ ) && defined( __MACH__ ) |
| 104 |
# define ITT_OS ITT_OS_MAC |
| 105 |
# elif defined( __FreeBSD__ ) |
| 106 |
# define ITT_OS ITT_OS_FREEBSD |
| 107 |
# elif defined( __OpenBSD__) |
| 108 |
# define ITT_OS ITT_OS_OPENBSD |
| 109 |
# else |
| 110 |
# define ITT_OS ITT_OS_LINUX |
| 111 |
# endif |
| 112 |
#endif |
| 113 |
|
| 114 |
#ifndef ITT_PLATFORM_WIN |
| 115 |
# define ITT_PLATFORM_WIN 1 |
| 116 |
#endif |
| 117 |
|
| 118 |
#ifndef ITT_PLATFORM_POSIX |
| 119 |
# define ITT_PLATFORM_POSIX 2 |
| 120 |
#endif |
| 121 |
|
| 122 |
#ifndef ITT_PLATFORM_MAC |
| 123 |
# define ITT_PLATFORM_MAC 3 |
| 124 |
#endif |
| 125 |
|
| 126 |
#ifndef ITT_PLATFORM_FREEBSD |
| 127 |
# define ITT_PLATFORM_FREEBSD 4 |
| 128 |
#endif |
| 129 |
|
| 130 |
#ifndef ITT_PLATFORM_OPENBSD |
| 131 |
# define ITT_PLATFORM_OPENBSD 5 |
| 132 |
#endif |
| 133 |
|
| 134 |
#ifndef ITT_PLATFORM |
| 135 |
# if ITT_OS==ITT_OS_WIN |
| 136 |
# define ITT_PLATFORM ITT_PLATFORM_WIN |
| 137 |
# elif ITT_OS==ITT_OS_MAC |
| 138 |
# define ITT_PLATFORM ITT_PLATFORM_MAC |
| 139 |
# elif ITT_OS==ITT_OS_FREEBSD |
| 140 |
# define ITT_PLATFORM ITT_PLATFORM_FREEBSD |
| 141 |
# elif ITT_OS==ITT_OS_OPENBSD |
| 142 |
# define ITT_PLATFORM ITT_PLATFORM_OPENBSD |
| 143 |
# else |
| 144 |
# define ITT_PLATFORM ITT_PLATFORM_POSIX |
| 145 |
# endif |
| 146 |
#endif |
| 147 |
|
| 148 |
#if defined(_UNICODE) && !defined(UNICODE) |
| 149 |
#define UNICODE |
| 150 |
#endif |
| 151 |
|
| 152 |
#include <stddef.h> |
| 153 |
#if ITT_PLATFORM==ITT_PLATFORM_WIN |
| 154 |
#include <tchar.h> |
| 155 |
#else |
| 156 |
#include <stdint.h> |
| 157 |
#if defined(UNICODE) || defined(_UNICODE) |
| 158 |
#include <wchar.h> |
| 159 |
#endif |
| 160 |
#endif |
| 161 |
|
| 162 |
#ifndef ITTAPI_CDECL |
| 163 |
# if ITT_PLATFORM==ITT_PLATFORM_WIN |
| 164 |
# define ITTAPI_CDECL __cdecl |
| 165 |
# else |
| 166 |
# if defined _M_IX86 || defined __i386__ |
| 167 |
# define ITTAPI_CDECL __attribute__ ((cdecl)) |
| 168 |
# else |
| 169 |
# define ITTAPI_CDECL |
| 170 |
# endif |
| 171 |
# endif |
| 172 |
#endif |
| 173 |
|
| 174 |
#ifndef STDCALL |
| 175 |
# if ITT_PLATFORM==ITT_PLATFORM_WIN |
| 176 |
# define STDCALL __stdcall |
| 177 |
# else |
| 178 |
# if defined _M_IX86 || defined __i386__ |
| 179 |
# define STDCALL __attribute__ ((stdcall)) |
| 180 |
# else |
| 181 |
# define STDCALL |
| 182 |
# endif |
| 183 |
# endif |
| 184 |
#endif |
| 185 |
|
| 186 |
#define ITTAPI ITTAPI_CDECL |
| 187 |
#define LIBITTAPI ITTAPI_CDECL |
| 188 |
|
| 189 |
|
| 190 |
#define ITTAPI_CALL ITTAPI_CDECL |
| 191 |
#define LIBITTAPI_CALL ITTAPI_CDECL |
| 192 |
|
| 193 |
#if ITT_PLATFORM==ITT_PLATFORM_WIN |
| 194 |
|
| 195 |
#if defined(__MINGW32__) && !defined(__cplusplus) |
| 196 |
#define ITT_INLINE static __inline__ __attribute__((__always_inline__,__gnu_inline__)) |
| 197 |
#else |
| 198 |
#define ITT_INLINE static __forceinline |
| 199 |
#endif |
| 200 |
|
| 201 |
#define ITT_INLINE_ATTRIBUTE |
| 202 |
#else |
| 203 |
|
| 204 |
|
| 205 |
|
| 206 |
|
| 207 |
|
| 208 |
#ifdef __STRICT_ANSI__ |
| 209 |
#define ITT_INLINE static |
| 210 |
#define ITT_INLINE_ATTRIBUTE __attribute__((unused)) |
| 211 |
#else |
| 212 |
#define ITT_INLINE static inline |
| 213 |
#define ITT_INLINE_ATTRIBUTE __attribute__((always_inline, unused)) |
| 214 |
#endif |
| 215 |
#endif |
| 216 |
|
| 217 |
|
| 218 |
#ifdef INTEL_ITTNOTIFY_ENABLE_LEGACY |
| 219 |
# if ITT_PLATFORM==ITT_PLATFORM_WIN |
| 220 |
# pragma message("WARNING!!! Deprecated API is used. Please undefine INTEL_ITTNOTIFY_ENABLE_LEGACY macro") |
| 221 |
# else |
| 222 |
# warning "Deprecated API is used. Please undefine INTEL_ITTNOTIFY_ENABLE_LEGACY macro" |
| 223 |
# endif |
| 224 |
# include "legacy/ittnotify.h" |
| 225 |
#endif |
| 226 |
|
| 227 |
|
| 228 |
|
| 229 |
#define ITT_JOIN_AUX(p,n) p##n |
| 230 |
#define ITT_JOIN(p,n) ITT_JOIN_AUX(p,n) |
| 231 |
|
| 232 |
#ifdef ITT_MAJOR |
| 233 |
#undef ITT_MAJOR |
| 234 |
#endif |
| 235 |
#ifdef ITT_MINOR |
| 236 |
#undef ITT_MINOR |
| 237 |
#endif |
| 238 |
#define ITT_MAJOR 3 |
| 239 |
#define ITT_MINOR 0 |
| 240 |
|
| 241 |
|
| 242 |
#define ITT_VERSIONIZE(x) \ |
| 243 |
ITT_JOIN(x, \ |
| 244 |
ITT_JOIN(_, \ |
| 245 |
ITT_JOIN(ITT_MAJOR, \ |
| 246 |
ITT_JOIN(_, ITT_MINOR)))) |
| 247 |
|
| 248 |
#ifndef INTEL_ITTNOTIFY_PREFIX |
| 249 |
# define INTEL_ITTNOTIFY_PREFIX __itt_ |
| 250 |
#endif |
| 251 |
#ifndef INTEL_ITTNOTIFY_POSTFIX |
| 252 |
# define INTEL_ITTNOTIFY_POSTFIX _ptr_ |
| 253 |
#endif |
| 254 |
|
| 255 |
#define ITTNOTIFY_NAME_AUX(n) ITT_JOIN(INTEL_ITTNOTIFY_PREFIX,n) |
| 256 |
#define ITTNOTIFY_NAME(n) ITT_VERSIONIZE(ITTNOTIFY_NAME_AUX(ITT_JOIN(n,INTEL_ITTNOTIFY_POSTFIX))) |
| 257 |
|
| 258 |
#define ITTNOTIFY_VOID(n) (!ITTNOTIFY_NAME(n)) ? (void)0 : ITTNOTIFY_NAME(n) |
| 259 |
#define ITTNOTIFY_DATA(n) (!ITTNOTIFY_NAME(n)) ? 0 : ITTNOTIFY_NAME(n) |
| 260 |
|
| 261 |
#define ITTNOTIFY_VOID_D0(n,d) (d == NULL) ? (void)0 : (!(d)->flags) ? (void)0 : (!ITTNOTIFY_NAME(n)) ? (void)0 : ITTNOTIFY_NAME(n)(d) |
| 262 |
#define ITTNOTIFY_VOID_D1(n,d,x) (d == NULL) ? (void)0 : (!(d)->flags) ? (void)0 : (!ITTNOTIFY_NAME(n)) ? (void)0 : ITTNOTIFY_NAME(n)(d,x) |
| 263 |
#define ITTNOTIFY_VOID_D2(n,d,x,y) (d == NULL) ? (void)0 : (!(d)->flags) ? (void)0 : (!ITTNOTIFY_NAME(n)) ? (void)0 : ITTNOTIFY_NAME(n)(d,x,y) |
| 264 |
#define ITTNOTIFY_VOID_D3(n,d,x,y,z) (d == NULL) ? (void)0 : (!(d)->flags) ? (void)0 : (!ITTNOTIFY_NAME(n)) ? (void)0 : ITTNOTIFY_NAME(n)(d,x,y,z) |
| 265 |
#define ITTNOTIFY_VOID_D4(n,d,x,y,z,a) (d == NULL) ? (void)0 : (!(d)->flags) ? (void)0 : (!ITTNOTIFY_NAME(n)) ? (void)0 : ITTNOTIFY_NAME(n)(d,x,y,z,a) |
| 266 |
#define ITTNOTIFY_VOID_D5(n,d,x,y,z,a,b) (d == NULL) ? (void)0 : (!(d)->flags) ? (void)0 : (!ITTNOTIFY_NAME(n)) ? (void)0 : ITTNOTIFY_NAME(n)(d,x,y,z,a,b) |
| 267 |
#define ITTNOTIFY_VOID_D6(n,d,x,y,z,a,b,c) (d == NULL) ? (void)0 : (!(d)->flags) ? (void)0 : (!ITTNOTIFY_NAME(n)) ? (void)0 : ITTNOTIFY_NAME(n)(d,x,y,z,a,b,c) |
| 268 |
#define ITTNOTIFY_DATA_D0(n,d) (d == NULL) ? 0 : (!(d)->flags) ? 0 : (!ITTNOTIFY_NAME(n)) ? 0 : ITTNOTIFY_NAME(n)(d) |
| 269 |
#define ITTNOTIFY_DATA_D1(n,d,x) (d == NULL) ? 0 : (!(d)->flags) ? 0 : (!ITTNOTIFY_NAME(n)) ? 0 : ITTNOTIFY_NAME(n)(d,x) |
| 270 |
#define ITTNOTIFY_DATA_D2(n,d,x,y) (d == NULL) ? 0 : (!(d)->flags) ? 0 : (!ITTNOTIFY_NAME(n)) ? 0 : ITTNOTIFY_NAME(n)(d,x,y) |
| 271 |
#define ITTNOTIFY_DATA_D3(n,d,x,y,z) (d == NULL) ? 0 : (!(d)->flags) ? 0 : (!ITTNOTIFY_NAME(n)) ? 0 : ITTNOTIFY_NAME(n)(d,x,y,z) |
| 272 |
#define ITTNOTIFY_DATA_D4(n,d,x,y,z,a) (d == NULL) ? 0 : (!(d)->flags) ? 0 : (!ITTNOTIFY_NAME(n)) ? 0 : ITTNOTIFY_NAME(n)(d,x,y,z,a) |
| 273 |
#define ITTNOTIFY_DATA_D5(n,d,x,y,z,a,b) (d == NULL) ? 0 : (!(d)->flags) ? 0 : (!ITTNOTIFY_NAME(n)) ? 0 : ITTNOTIFY_NAME(n)(d,x,y,z,a,b) |
| 274 |
#define ITTNOTIFY_DATA_D6(n,d,x,y,z,a,b,c) (d == NULL) ? 0 : (!(d)->flags) ? 0 : (!ITTNOTIFY_NAME(n)) ? 0 : ITTNOTIFY_NAME(n)(d,x,y,z,a,b,c) |
| 275 |
|
| 276 |
#ifdef ITT_STUB |
| 277 |
#undef ITT_STUB |
| 278 |
#endif |
| 279 |
#ifdef ITT_STUBV |
| 280 |
#undef ITT_STUBV |
| 281 |
#endif |
| 282 |
#define ITT_STUBV(api,type,name,args) \ |
| 283 |
typedef type (api* ITT_JOIN(ITTNOTIFY_NAME(name),_t)) args; \ |
| 284 |
extern ITT_JOIN(ITTNOTIFY_NAME(name),_t) ITTNOTIFY_NAME(name); |
| 285 |
#define ITT_STUB ITT_STUBV |
| 286 |
|
| 287 |
|
| 288 |
#ifdef __cplusplus |
| 289 |
extern "C" { |
| 290 |
#endif |
| 291 |
|
| 292 |
|
| 293 |
|
| 294 |
|
| 295 |
|
| 296 |
|
| 297 |
|
| 298 |
|
| 299 |
|
| 300 |
|
| 301 |
|
| 302 |
|
| 303 |
|
| 304 |
|
| 305 |
|
| 306 |
|
| 307 |
|
| 308 |
|
| 309 |
|
| 310 |
|
| 311 |
|
| 312 |
|
| 313 |
|
| 314 |
|
| 315 |
|
| 316 |
|
| 317 |
|
| 318 |
|
| 319 |
|
| 320 |
|
| 321 |
void ITTAPI __itt_pause(void); |
| 322 |
|
| 323 |
void ITTAPI __itt_resume(void); |
| 324 |
|
| 325 |
void ITTAPI __itt_detach(void); |
| 326 |
|
| 327 |
|
| 328 |
|
| 329 |
|
| 330 |
|
| 331 |
typedef enum { |
| 332 |
__itt_collection_scope_host = 1 << 0, |
| 333 |
__itt_collection_scope_offload = 1 << 1, |
| 334 |
__itt_collection_scope_all = 0x7FFFFFFF |
| 335 |
} __itt_collection_scope; |
| 336 |
|
| 337 |
|
| 338 |
void ITTAPI __itt_pause_scoped(__itt_collection_scope); |
| 339 |
|
| 340 |
void ITTAPI __itt_resume_scoped(__itt_collection_scope); |
| 341 |
|
| 342 |
|
| 343 |
#ifndef INTEL_NO_MACRO_BODY |
| 344 |
#ifndef INTEL_NO_ITTNOTIFY_API |
| 345 |
ITT_STUBV(ITTAPI, void, pause, (void)) |
| 346 |
ITT_STUBV(ITTAPI, void, pause_scoped, (__itt_collection_scope)) |
| 347 |
ITT_STUBV(ITTAPI, void, resume, (void)) |
| 348 |
ITT_STUBV(ITTAPI, void, resume_scoped, (__itt_collection_scope)) |
| 349 |
ITT_STUBV(ITTAPI, void, detach, (void)) |
| 350 |
#define __itt_pause ITTNOTIFY_VOID(pause) |
| 351 |
#define __itt_pause_ptr ITTNOTIFY_NAME(pause) |
| 352 |
#define __itt_pause_scoped ITTNOTIFY_VOID(pause_scoped) |
| 353 |
#define __itt_pause_scoped_ptr ITTNOTIFY_NAME(pause_scoped) |
| 354 |
#define __itt_resume ITTNOTIFY_VOID(resume) |
| 355 |
#define __itt_resume_ptr ITTNOTIFY_NAME(resume) |
| 356 |
#define __itt_resume_scoped ITTNOTIFY_VOID(resume_scoped) |
| 357 |
#define __itt_resume_scoped_ptr ITTNOTIFY_NAME(resume_scoped) |
| 358 |
#define __itt_detach ITTNOTIFY_VOID(detach) |
| 359 |
#define __itt_detach_ptr ITTNOTIFY_NAME(detach) |
| 360 |
#else |
| 361 |
#define __itt_pause() |
| 362 |
#define __itt_pause_ptr 0 |
| 363 |
#define __itt_pause_scoped(scope) |
| 364 |
#define __itt_pause_scoped_ptr 0 |
| 365 |
#define __itt_resume() |
| 366 |
#define __itt_resume_ptr 0 |
| 367 |
#define __itt_resume_scoped(scope) |
| 368 |
#define __itt_resume_scoped_ptr 0 |
| 369 |
#define __itt_detach() |
| 370 |
#define __itt_detach_ptr 0 |
| 371 |
#endif |
| 372 |
#else |
| 373 |
#define __itt_pause_ptr 0 |
| 374 |
#define __itt_pause_scoped_ptr 0 |
| 375 |
#define __itt_resume_ptr 0 |
| 376 |
#define __itt_resume_scoped_ptr 0 |
| 377 |
#define __itt_detach_ptr 0 |
| 378 |
#endif |
| 379 |
|
| 380 |
|
| 381 |
|
| 382 |
|
| 383 |
|
| 384 |
|
| 385 |
|
| 386 |
|
| 387 |
|
| 388 |
|
| 389 |
|
| 390 |
|
| 391 |
|
| 392 |
typedef unsigned char __itt_pt_region; |
| 393 |
|
| 394 |
|
| 395 |
|
| 396 |
|
| 397 |
|
| 398 |
|
| 399 |
#if ITT_PLATFORM==ITT_PLATFORM_WIN |
| 400 |
__itt_pt_region ITTAPI __itt_pt_region_createA(const char *name); |
| 401 |
__itt_pt_region ITTAPI __itt_pt_region_createW(const wchar_t *name); |
| 402 |
#if defined(UNICODE) || defined(_UNICODE) |
| 403 |
# define __itt_pt_region_create __itt_pt_region_createW |
| 404 |
#else |
| 405 |
# define __itt_pt_region_create __itt_pt_region_createA |
| 406 |
#endif |
| 407 |
#else |
| 408 |
__itt_pt_region ITTAPI __itt_pt_region_create(const char *name); |
| 409 |
#endif |
| 410 |
|
| 411 |
|
| 412 |
#ifndef INTEL_NO_MACRO_BODY |
| 413 |
#ifndef INTEL_NO_ITTNOTIFY_API |
| 414 |
#if ITT_PLATFORM==ITT_PLATFORM_WIN |
| 415 |
ITT_STUB(ITTAPI, __itt_pt_region, pt_region_createA, (const char *name)) |
| 416 |
ITT_STUB(ITTAPI, __itt_pt_region, pt_region_createW, (const wchar_t *name)) |
| 417 |
#else |
| 418 |
ITT_STUB(ITTAPI, __itt_pt_region, pt_region_create, (const char *name)) |
| 419 |
#endif |
| 420 |
#if ITT_PLATFORM==ITT_PLATFORM_WIN |
| 421 |
#define __itt_pt_region_createA ITTNOTIFY_DATA(pt_region_createA) |
| 422 |
#define __itt_pt_region_createA_ptr ITTNOTIFY_NAME(pt_region_createA) |
| 423 |
#define __itt_pt_region_createW ITTNOTIFY_DATA(pt_region_createW) |
| 424 |
#define __itt_pt_region_createW_ptr ITTNOTIFY_NAME(pt_region_createW) |
| 425 |
#else |
| 426 |
#define __itt_pt_region_create ITTNOTIFY_DATA(pt_region_create) |
| 427 |
#define __itt_pt_region_create_ptr ITTNOTIFY_NAME(pt_region_create) |
| 428 |
#endif |
| 429 |
#else |
| 430 |
#if ITT_PLATFORM==ITT_PLATFORM_WIN |
| 431 |
#define __itt_pt_region_createA(name) (__itt_pt_region)0 |
| 432 |
#define __itt_pt_region_createA_ptr 0 |
| 433 |
#define __itt_pt_region_createW(name) (__itt_pt_region)0 |
| 434 |
#define __itt_pt_region_createW_ptr 0 |
| 435 |
#else |
| 436 |
#define __itt_pt_region_create(name) (__itt_pt_region)0 |
| 437 |
#define __itt_pt_region_create_ptr 0 |
| 438 |
#endif |
| 439 |
#endif |
| 440 |
#else |
| 441 |
#if ITT_PLATFORM==ITT_PLATFORM_WIN |
| 442 |
#define __itt_pt_region_createA_ptr 0 |
| 443 |
#define __itt_pt_region_createW_ptr 0 |
| 444 |
#else |
| 445 |
#define __itt_pt_region_create_ptr 0 |
| 446 |
#endif |
| 447 |
#endif |
| 448 |
|
| 449 |
|
| 450 |
|
| 451 |
|
| 452 |
|
| 453 |
|
| 454 |
|
| 455 |
void __itt_mark_pt_region_begin(__itt_pt_region region); |
| 456 |
|
| 457 |
|
| 458 |
|
| 459 |
|
| 460 |
|
| 461 |
void __itt_mark_pt_region_end(__itt_pt_region region); |
| 462 |
|
| 463 |
|
| 464 |
|
| 465 |
|
| 466 |
|
| 467 |
|
| 468 |
|
| 469 |
|
| 470 |
|
| 471 |
|
| 472 |
|
| 473 |
|
| 474 |
#if ITT_PLATFORM==ITT_PLATFORM_WIN |
| 475 |
void ITTAPI __itt_thread_set_nameA(const char *name); |
| 476 |
void ITTAPI __itt_thread_set_nameW(const wchar_t *name); |
| 477 |
#if defined(UNICODE) || defined(_UNICODE) |
| 478 |
# define __itt_thread_set_name __itt_thread_set_nameW |
| 479 |
# define __itt_thread_set_name_ptr __itt_thread_set_nameW_ptr |
| 480 |
#else |
| 481 |
# define __itt_thread_set_name __itt_thread_set_nameA |
| 482 |
# define __itt_thread_set_name_ptr __itt_thread_set_nameA_ptr |
| 483 |
#endif |
| 484 |
#else |
| 485 |
void ITTAPI __itt_thread_set_name(const char *name); |
| 486 |
#endif |
| 487 |
|
| 488 |
|
| 489 |
#ifndef INTEL_NO_MACRO_BODY |
| 490 |
#ifndef INTEL_NO_ITTNOTIFY_API |
| 491 |
#if ITT_PLATFORM==ITT_PLATFORM_WIN |
| 492 |
ITT_STUBV(ITTAPI, void, thread_set_nameA, (const char *name)) |
| 493 |
ITT_STUBV(ITTAPI, void, thread_set_nameW, (const wchar_t *name)) |
| 494 |
#else |
| 495 |
ITT_STUBV(ITTAPI, void, thread_set_name, (const char *name)) |
| 496 |
#endif |
| 497 |
#if ITT_PLATFORM==ITT_PLATFORM_WIN |
| 498 |
#define __itt_thread_set_nameA ITTNOTIFY_VOID(thread_set_nameA) |
| 499 |
#define __itt_thread_set_nameA_ptr ITTNOTIFY_NAME(thread_set_nameA) |
| 500 |
#define __itt_thread_set_nameW ITTNOTIFY_VOID(thread_set_nameW) |
| 501 |
#define __itt_thread_set_nameW_ptr ITTNOTIFY_NAME(thread_set_nameW) |
| 502 |
#else |
| 503 |
#define __itt_thread_set_name ITTNOTIFY_VOID(thread_set_name) |
| 504 |
#define __itt_thread_set_name_ptr ITTNOTIFY_NAME(thread_set_name) |
| 505 |
#endif |
| 506 |
#else |
| 507 |
#if ITT_PLATFORM==ITT_PLATFORM_WIN |
| 508 |
#define __itt_thread_set_nameA(name) |
| 509 |
#define __itt_thread_set_nameA_ptr 0 |
| 510 |
#define __itt_thread_set_nameW(name) |
| 511 |
#define __itt_thread_set_nameW_ptr 0 |
| 512 |
#else |
| 513 |
#define __itt_thread_set_name(name) |
| 514 |
#define __itt_thread_set_name_ptr 0 |
| 515 |
#endif |
| 516 |
#endif |
| 517 |
#else |
| 518 |
#if ITT_PLATFORM==ITT_PLATFORM_WIN |
| 519 |
#define __itt_thread_set_nameA_ptr 0 |
| 520 |
#define __itt_thread_set_nameW_ptr 0 |
| 521 |
#else |
| 522 |
#define __itt_thread_set_name_ptr 0 |
| 523 |
#endif |
| 524 |
#endif |
| 525 |
|
| 526 |
|
| 527 |
|
| 528 |
|
| 529 |
|
| 530 |
|
| 531 |
|
| 532 |
void ITTAPI __itt_thread_ignore(void); |
| 533 |
|
| 534 |
|
| 535 |
#ifndef INTEL_NO_MACRO_BODY |
| 536 |
#ifndef INTEL_NO_ITTNOTIFY_API |
| 537 |
ITT_STUBV(ITTAPI, void, thread_ignore, (void)) |
| 538 |
#define __itt_thread_ignore ITTNOTIFY_VOID(thread_ignore) |
| 539 |
#define __itt_thread_ignore_ptr ITTNOTIFY_NAME(thread_ignore) |
| 540 |
#else |
| 541 |
#define __itt_thread_ignore() |
| 542 |
#define __itt_thread_ignore_ptr 0 |
| 543 |
#endif |
| 544 |
#else |
| 545 |
#define __itt_thread_ignore_ptr 0 |
| 546 |
#endif |
| 547 |
|
| 548 |
|
| 549 |
|
| 550 |
|
| 551 |
|
| 552 |
|
| 553 |
|
| 554 |
|
| 555 |
|
| 556 |
|
| 557 |
|
| 558 |
|
| 559 |
|
| 560 |
|
| 561 |
|
| 562 |
|
| 563 |
|
| 564 |
|
| 565 |
|
| 566 |
#define __itt_suppress_all_errors 0x7fffffff |
| 567 |
|
| 568 |
|
| 569 |
|
| 570 |
|
| 571 |
|
| 572 |
#define __itt_suppress_threading_errors 0x000000ff |
| 573 |
|
| 574 |
|
| 575 |
|
| 576 |
|
| 577 |
|
| 578 |
#define __itt_suppress_memory_errors 0x0000ff00 |
| 579 |
|
| 580 |
|
| 581 |
|
| 582 |
|
| 583 |
void ITTAPI __itt_suppress_push(unsigned int mask); |
| 584 |
|
| 585 |
|
| 586 |
#ifndef INTEL_NO_MACRO_BODY |
| 587 |
#ifndef INTEL_NO_ITTNOTIFY_API |
| 588 |
ITT_STUBV(ITTAPI, void, suppress_push, (unsigned int mask)) |
| 589 |
#define __itt_suppress_push ITTNOTIFY_VOID(suppress_push) |
| 590 |
#define __itt_suppress_push_ptr ITTNOTIFY_NAME(suppress_push) |
| 591 |
#else |
| 592 |
#define __itt_suppress_push(mask) |
| 593 |
#define __itt_suppress_push_ptr 0 |
| 594 |
#endif |
| 595 |
#else |
| 596 |
#define __itt_suppress_push_ptr 0 |
| 597 |
#endif |
| 598 |
|
| 599 |
|
| 600 |
|
| 601 |
|
| 602 |
|
| 603 |
void ITTAPI __itt_suppress_pop(void); |
| 604 |
|
| 605 |
|
| 606 |
#ifndef INTEL_NO_MACRO_BODY |
| 607 |
#ifndef INTEL_NO_ITTNOTIFY_API |
| 608 |
ITT_STUBV(ITTAPI, void, suppress_pop, (void)) |
| 609 |
#define __itt_suppress_pop ITTNOTIFY_VOID(suppress_pop) |
| 610 |
#define __itt_suppress_pop_ptr ITTNOTIFY_NAME(suppress_pop) |
| 611 |
#else |
| 612 |
#define __itt_suppress_pop() |
| 613 |
#define __itt_suppress_pop_ptr 0 |
| 614 |
#endif |
| 615 |
#else |
| 616 |
#define __itt_suppress_pop_ptr 0 |
| 617 |
#endif |
| 618 |
|
| 619 |
|
| 620 |
|
| 621 |
|
| 622 |
|
| 623 |
|
| 624 |
typedef enum __itt_suppress_mode { |
| 625 |
__itt_unsuppress_range, |
| 626 |
__itt_suppress_range |
| 627 |
} __itt_suppress_mode_t; |
| 628 |
|
| 629 |
|
| 630 |
|
| 631 |
|
| 632 |
|
| 633 |
typedef enum { |
| 634 |
__itt_collection_uninitialized = 0, |
| 635 |
__itt_collection_init_fail = 1, |
| 636 |
__itt_collection_collector_absent = 2, |
| 637 |
__itt_collection_collector_exists = 3, |
| 638 |
__itt_collection_init_successful = 4 |
| 639 |
} __itt_collection_state; |
| 640 |
|
| 641 |
|
| 642 |
|
| 643 |
|
| 644 |
void ITTAPI __itt_suppress_mark_range(__itt_suppress_mode_t mode, unsigned int mask, void * address, size_t size); |
| 645 |
|
| 646 |
|
| 647 |
#ifndef INTEL_NO_MACRO_BODY |
| 648 |
#ifndef INTEL_NO_ITTNOTIFY_API |
| 649 |
ITT_STUBV(ITTAPI, void, suppress_mark_range, (__itt_suppress_mode_t mode, unsigned int mask, void * address, size_t size)) |
| 650 |
#define __itt_suppress_mark_range ITTNOTIFY_VOID(suppress_mark_range) |
| 651 |
#define __itt_suppress_mark_range_ptr ITTNOTIFY_NAME(suppress_mark_range) |
| 652 |
#else |
| 653 |
#define __itt_suppress_mark_range(mask) |
| 654 |
#define __itt_suppress_mark_range_ptr 0 |
| 655 |
#endif |
| 656 |
#else |
| 657 |
#define __itt_suppress_mark_range_ptr 0 |
| 658 |
#endif |
| 659 |
|
| 660 |
|
| 661 |
|
| 662 |
|
| 663 |
|
| 664 |
|
| 665 |
void ITTAPI __itt_suppress_clear_range(__itt_suppress_mode_t mode, unsigned int mask, void * address, size_t size); |
| 666 |
|
| 667 |
|
| 668 |
#ifndef INTEL_NO_MACRO_BODY |
| 669 |
#ifndef INTEL_NO_ITTNOTIFY_API |
| 670 |
ITT_STUBV(ITTAPI, void, suppress_clear_range, (__itt_suppress_mode_t mode, unsigned int mask, void * address, size_t size)) |
| 671 |
#define __itt_suppress_clear_range ITTNOTIFY_VOID(suppress_clear_range) |
| 672 |
#define __itt_suppress_clear_range_ptr ITTNOTIFY_NAME(suppress_clear_range) |
| 673 |
#else |
| 674 |
#define __itt_suppress_clear_range(mask) |
| 675 |
#define __itt_suppress_clear_range_ptr 0 |
| 676 |
#endif |
| 677 |
#else |
| 678 |
#define __itt_suppress_clear_range_ptr 0 |
| 679 |
#endif |
| 680 |
|
| 681 |
|
| 682 |
|
| 683 |
|
| 684 |
|
| 685 |
|
| 686 |
|
| 687 |
|
| 688 |
|
| 689 |
|
| 690 |
|
| 691 |
|
| 692 |
|
| 693 |
|
| 694 |
#define __itt_attr_barrier 1 |
| 695 |
|
| 696 |
|
| 697 |
|
| 698 |
|
| 699 |
|
| 700 |
#define __itt_attr_mutex 2 |
| 701 |
|
| 702 |
|
| 703 |
|
| 704 |
|
| 705 |
|
| 706 |
|
| 707 |
|
| 708 |
|
| 709 |
|
| 710 |
|
| 711 |
|
| 712 |
|
| 713 |
#if ITT_PLATFORM==ITT_PLATFORM_WIN |
| 714 |
void ITTAPI __itt_sync_createA(void *addr, const char *objtype, const char *objname, int attribute); |
| 715 |
void ITTAPI __itt_sync_createW(void *addr, const wchar_t *objtype, const wchar_t *objname, int attribute); |
| 716 |
#if defined(UNICODE) || defined(_UNICODE) |
| 717 |
# define __itt_sync_create __itt_sync_createW |
| 718 |
# define __itt_sync_create_ptr __itt_sync_createW_ptr |
| 719 |
#else |
| 720 |
# define __itt_sync_create __itt_sync_createA |
| 721 |
# define __itt_sync_create_ptr __itt_sync_createA_ptr |
| 722 |
#endif |
| 723 |
#else |
| 724 |
void ITTAPI __itt_sync_create (void *addr, const char *objtype, const char *objname, int attribute); |
| 725 |
#endif |
| 726 |
|
| 727 |
|
| 728 |
#ifndef INTEL_NO_MACRO_BODY |
| 729 |
#ifndef INTEL_NO_ITTNOTIFY_API |
| 730 |
#if ITT_PLATFORM==ITT_PLATFORM_WIN |
| 731 |
ITT_STUBV(ITTAPI, void, sync_createA, (void *addr, const char *objtype, const char *objname, int attribute)) |
| 732 |
ITT_STUBV(ITTAPI, void, sync_createW, (void *addr, const wchar_t *objtype, const wchar_t *objname, int attribute)) |
| 733 |
#else |
| 734 |
ITT_STUBV(ITTAPI, void, sync_create, (void *addr, const char* objtype, const char* objname, int attribute)) |
| 735 |
#endif |
| 736 |
#if ITT_PLATFORM==ITT_PLATFORM_WIN |
| 737 |
#define __itt_sync_createA ITTNOTIFY_VOID(sync_createA) |
| 738 |
#define __itt_sync_createA_ptr ITTNOTIFY_NAME(sync_createA) |
| 739 |
#define __itt_sync_createW ITTNOTIFY_VOID(sync_createW) |
| 740 |
#define __itt_sync_createW_ptr ITTNOTIFY_NAME(sync_createW) |
| 741 |
#else |
| 742 |
#define __itt_sync_create ITTNOTIFY_VOID(sync_create) |
| 743 |
#define __itt_sync_create_ptr ITTNOTIFY_NAME(sync_create) |
| 744 |
#endif |
| 745 |
#else |
| 746 |
#if ITT_PLATFORM==ITT_PLATFORM_WIN |
| 747 |
#define __itt_sync_createA(addr, objtype, objname, attribute) |
| 748 |
#define __itt_sync_createA_ptr 0 |
| 749 |
#define __itt_sync_createW(addr, objtype, objname, attribute) |
| 750 |
#define __itt_sync_createW_ptr 0 |
| 751 |
#else |
| 752 |
#define __itt_sync_create(addr, objtype, objname, attribute) |
| 753 |
#define __itt_sync_create_ptr 0 |
| 754 |
#endif |
| 755 |
#endif |
| 756 |
#else |
| 757 |
#if ITT_PLATFORM==ITT_PLATFORM_WIN |
| 758 |
#define __itt_sync_createA_ptr 0 |
| 759 |
#define __itt_sync_createW_ptr 0 |
| 760 |
#else |
| 761 |
#define __itt_sync_create_ptr 0 |
| 762 |
#endif |
| 763 |
#endif |
| 764 |
|
| 765 |
|
| 766 |
|
| 767 |
|
| 768 |
|
| 769 |
|
| 770 |
|
| 771 |
|
| 772 |
|
| 773 |
|
| 774 |
#if ITT_PLATFORM==ITT_PLATFORM_WIN |
| 775 |
void ITTAPI __itt_sync_renameA(void *addr, const char *name); |
| 776 |
void ITTAPI __itt_sync_renameW(void *addr, const wchar_t *name); |
| 777 |
#if defined(UNICODE) || defined(_UNICODE) |
| 778 |
# define __itt_sync_rename __itt_sync_renameW |
| 779 |
# define __itt_sync_rename_ptr __itt_sync_renameW_ptr |
| 780 |
#else |
| 781 |
# define __itt_sync_rename __itt_sync_renameA |
| 782 |
# define __itt_sync_rename_ptr __itt_sync_renameA_ptr |
| 783 |
#endif |
| 784 |
#else |
| 785 |
void ITTAPI __itt_sync_rename(void *addr, const char *name); |
| 786 |
#endif |
| 787 |
|
| 788 |
|
| 789 |
#ifndef INTEL_NO_MACRO_BODY |
| 790 |
#ifndef INTEL_NO_ITTNOTIFY_API |
| 791 |
#if ITT_PLATFORM==ITT_PLATFORM_WIN |
| 792 |
ITT_STUBV(ITTAPI, void, sync_renameA, (void *addr, const char *name)) |
| 793 |
ITT_STUBV(ITTAPI, void, sync_renameW, (void *addr, const wchar_t *name)) |
| 794 |
#else |
| 795 |
ITT_STUBV(ITTAPI, void, sync_rename, (void *addr, const char *name)) |
| 796 |
#endif |
| 797 |
#if ITT_PLATFORM==ITT_PLATFORM_WIN |
| 798 |
#define __itt_sync_renameA ITTNOTIFY_VOID(sync_renameA) |
| 799 |
#define __itt_sync_renameA_ptr ITTNOTIFY_NAME(sync_renameA) |
| 800 |
#define __itt_sync_renameW ITTNOTIFY_VOID(sync_renameW) |
| 801 |
#define __itt_sync_renameW_ptr ITTNOTIFY_NAME(sync_renameW) |
| 802 |
#else |
| 803 |
#define __itt_sync_rename ITTNOTIFY_VOID(sync_rename) |
| 804 |
#define __itt_sync_rename_ptr ITTNOTIFY_NAME(sync_rename) |
| 805 |
#endif |
| 806 |
#else |
| 807 |
#if ITT_PLATFORM==ITT_PLATFORM_WIN |
| 808 |
#define __itt_sync_renameA(addr, name) |
| 809 |
#define __itt_sync_renameA_ptr 0 |
| 810 |
#define __itt_sync_renameW(addr, name) |
| 811 |
#define __itt_sync_renameW_ptr 0 |
| 812 |
#else |
| 813 |
#define __itt_sync_rename(addr, name) |
| 814 |
#define __itt_sync_rename_ptr 0 |
| 815 |
#endif |
| 816 |
#endif |
| 817 |
#else |
| 818 |
#if ITT_PLATFORM==ITT_PLATFORM_WIN |
| 819 |
#define __itt_sync_renameA_ptr 0 |
| 820 |
#define __itt_sync_renameW_ptr 0 |
| 821 |
#else |
| 822 |
#define __itt_sync_rename_ptr 0 |
| 823 |
#endif |
| 824 |
#endif |
| 825 |
|
| 826 |
|
| 827 |
|
| 828 |
|
| 829 |
|
| 830 |
|
| 831 |
void ITTAPI __itt_sync_destroy(void *addr); |
| 832 |
|
| 833 |
|
| 834 |
#ifndef INTEL_NO_MACRO_BODY |
| 835 |
#ifndef INTEL_NO_ITTNOTIFY_API |
| 836 |
ITT_STUBV(ITTAPI, void, sync_destroy, (void *addr)) |
| 837 |
#define __itt_sync_destroy ITTNOTIFY_VOID(sync_destroy) |
| 838 |
#define __itt_sync_destroy_ptr ITTNOTIFY_NAME(sync_destroy) |
| 839 |
#else |
| 840 |
#define __itt_sync_destroy(addr) |
| 841 |
#define __itt_sync_destroy_ptr 0 |
| 842 |
#endif |
| 843 |
#else |
| 844 |
#define __itt_sync_destroy_ptr 0 |
| 845 |
#endif |
| 846 |
|
| 847 |
|
| 848 |
|
| 849 |
|
| 850 |
|
| 851 |
|
| 852 |
|
| 853 |
|
| 854 |
|
| 855 |
void ITTAPI __itt_sync_prepare(void* addr); |
| 856 |
|
| 857 |
|
| 858 |
#ifndef INTEL_NO_MACRO_BODY |
| 859 |
#ifndef INTEL_NO_ITTNOTIFY_API |
| 860 |
ITT_STUBV(ITTAPI, void, sync_prepare, (void *addr)) |
| 861 |
#define __itt_sync_prepare ITTNOTIFY_VOID(sync_prepare) |
| 862 |
#define __itt_sync_prepare_ptr ITTNOTIFY_NAME(sync_prepare) |
| 863 |
#else |
| 864 |
#define __itt_sync_prepare(addr) |
| 865 |
#define __itt_sync_prepare_ptr 0 |
| 866 |
#endif |
| 867 |
#else |
| 868 |
#define __itt_sync_prepare_ptr 0 |
| 869 |
#endif |
| 870 |
|
| 871 |
|
| 872 |
|
| 873 |
|
| 874 |
|
| 875 |
void ITTAPI __itt_sync_cancel(void *addr); |
| 876 |
|
| 877 |
|
| 878 |
#ifndef INTEL_NO_MACRO_BODY |
| 879 |
#ifndef INTEL_NO_ITTNOTIFY_API |
| 880 |
ITT_STUBV(ITTAPI, void, sync_cancel, (void *addr)) |
| 881 |
#define __itt_sync_cancel ITTNOTIFY_VOID(sync_cancel) |
| 882 |
#define __itt_sync_cancel_ptr ITTNOTIFY_NAME(sync_cancel) |
| 883 |
#else |
| 884 |
#define __itt_sync_cancel(addr) |
| 885 |
#define __itt_sync_cancel_ptr 0 |
| 886 |
#endif |
| 887 |
#else |
| 888 |
#define __itt_sync_cancel_ptr 0 |
| 889 |
#endif |
| 890 |
|
| 891 |
|
| 892 |
|
| 893 |
|
| 894 |
|
| 895 |
void ITTAPI __itt_sync_acquired(void *addr); |
| 896 |
|
| 897 |
|
| 898 |
#ifndef INTEL_NO_MACRO_BODY |
| 899 |
#ifndef INTEL_NO_ITTNOTIFY_API |
| 900 |
ITT_STUBV(ITTAPI, void, sync_acquired, (void *addr)) |
| 901 |
#define __itt_sync_acquired ITTNOTIFY_VOID(sync_acquired) |
| 902 |
#define __itt_sync_acquired_ptr ITTNOTIFY_NAME(sync_acquired) |
| 903 |
#else |
| 904 |
#define __itt_sync_acquired(addr) |
| 905 |
#define __itt_sync_acquired_ptr 0 |
| 906 |
#endif |
| 907 |
#else |
| 908 |
#define __itt_sync_acquired_ptr 0 |
| 909 |
#endif |
| 910 |
|
| 911 |
|
| 912 |
|
| 913 |
|
| 914 |
|
| 915 |
void ITTAPI __itt_sync_releasing(void* addr); |
| 916 |
|
| 917 |
|
| 918 |
#ifndef INTEL_NO_MACRO_BODY |
| 919 |
#ifndef INTEL_NO_ITTNOTIFY_API |
| 920 |
ITT_STUBV(ITTAPI, void, sync_releasing, (void *addr)) |
| 921 |
#define __itt_sync_releasing ITTNOTIFY_VOID(sync_releasing) |
| 922 |
#define __itt_sync_releasing_ptr ITTNOTIFY_NAME(sync_releasing) |
| 923 |
#else |
| 924 |
#define __itt_sync_releasing(addr) |
| 925 |
#define __itt_sync_releasing_ptr 0 |
| 926 |
#endif |
| 927 |
#else |
| 928 |
#define __itt_sync_releasing_ptr 0 |
| 929 |
#endif |
| 930 |
|
| 931 |
|
| 932 |
|
| 933 |
|
| 934 |
|
| 935 |
|
| 936 |
|
| 937 |
|
| 938 |
|
| 939 |
|
| 940 |
|
| 941 |
|
| 942 |
|
| 943 |
|
| 944 |
|
| 945 |
|
| 946 |
|
| 947 |
|
| 948 |
|
| 949 |
void ITTAPI __itt_fsync_prepare(void* addr); |
| 950 |
|
| 951 |
|
| 952 |
#ifndef INTEL_NO_MACRO_BODY |
| 953 |
#ifndef INTEL_NO_ITTNOTIFY_API |
| 954 |
ITT_STUBV(ITTAPI, void, fsync_prepare, (void *addr)) |
| 955 |
#define __itt_fsync_prepare ITTNOTIFY_VOID(fsync_prepare) |
| 956 |
#define __itt_fsync_prepare_ptr ITTNOTIFY_NAME(fsync_prepare) |
| 957 |
#else |
| 958 |
#define __itt_fsync_prepare(addr) |
| 959 |
#define __itt_fsync_prepare_ptr 0 |
| 960 |
#endif |
| 961 |
#else |
| 962 |
#define __itt_fsync_prepare_ptr 0 |
| 963 |
#endif |
| 964 |
|
| 965 |
|
| 966 |
|
| 967 |
|
| 968 |
|
| 969 |
|
| 970 |
|
| 971 |
|
| 972 |
|
| 973 |
|
| 974 |
|
| 975 |
|
| 976 |
void ITTAPI __itt_fsync_cancel(void *addr); |
| 977 |
|
| 978 |
|
| 979 |
#ifndef INTEL_NO_MACRO_BODY |
| 980 |
#ifndef INTEL_NO_ITTNOTIFY_API |
| 981 |
ITT_STUBV(ITTAPI, void, fsync_cancel, (void *addr)) |
| 982 |
#define __itt_fsync_cancel ITTNOTIFY_VOID(fsync_cancel) |
| 983 |
#define __itt_fsync_cancel_ptr ITTNOTIFY_NAME(fsync_cancel) |
| 984 |
#else |
| 985 |
#define __itt_fsync_cancel(addr) |
| 986 |
#define __itt_fsync_cancel_ptr 0 |
| 987 |
#endif |
| 988 |
#else |
| 989 |
#define __itt_fsync_cancel_ptr 0 |
| 990 |
#endif |
| 991 |
|
| 992 |
|
| 993 |
|
| 994 |
|
| 995 |
|
| 996 |
|
| 997 |
|
| 998 |
|
| 999 |
|
| 1000 |
|
| 1001 |
|
| 1002 |
|
| 1003 |
void ITTAPI __itt_fsync_acquired(void *addr); |
| 1004 |
|
| 1005 |
|
| 1006 |
#ifndef INTEL_NO_MACRO_BODY |
| 1007 |
#ifndef INTEL_NO_ITTNOTIFY_API |
| 1008 |
ITT_STUBV(ITTAPI, void, fsync_acquired, (void *addr)) |
| 1009 |
#define __itt_fsync_acquired ITTNOTIFY_VOID(fsync_acquired) |
| 1010 |
#define __itt_fsync_acquired_ptr ITTNOTIFY_NAME(fsync_acquired) |
| 1011 |
#else |
| 1012 |
#define __itt_fsync_acquired(addr) |
| 1013 |
#define __itt_fsync_acquired_ptr 0 |
| 1014 |
#endif |
| 1015 |
#else |
| 1016 |
#define __itt_fsync_acquired_ptr 0 |
| 1017 |
#endif |
| 1018 |
|
| 1019 |
|
| 1020 |
|
| 1021 |
|
| 1022 |
|
| 1023 |
|
| 1024 |
|
| 1025 |
|
| 1026 |
|
| 1027 |
|
| 1028 |
|
| 1029 |
|
| 1030 |
void ITTAPI __itt_fsync_releasing(void* addr); |
| 1031 |
|
| 1032 |
|
| 1033 |
#ifndef INTEL_NO_MACRO_BODY |
| 1034 |
#ifndef INTEL_NO_ITTNOTIFY_API |
| 1035 |
ITT_STUBV(ITTAPI, void, fsync_releasing, (void *addr)) |
| 1036 |
#define __itt_fsync_releasing ITTNOTIFY_VOID(fsync_releasing) |
| 1037 |
#define __itt_fsync_releasing_ptr ITTNOTIFY_NAME(fsync_releasing) |
| 1038 |
#else |
| 1039 |
#define __itt_fsync_releasing(addr) |
| 1040 |
#define __itt_fsync_releasing_ptr 0 |
| 1041 |
#endif |
| 1042 |
#else |
| 1043 |
#define __itt_fsync_releasing_ptr 0 |
| 1044 |
#endif |
| 1045 |
|
| 1046 |
|
| 1047 |
|
| 1048 |
|
| 1049 |
|
| 1050 |
|
| 1051 |
|
| 1052 |
|
| 1053 |
|
| 1054 |
|
| 1055 |
|
| 1056 |
|
| 1057 |
|
| 1058 |
|
| 1059 |
|
| 1060 |
|
| 1061 |
|
| 1062 |
|
| 1063 |
|
| 1064 |
|
| 1065 |
|
| 1066 |
|
| 1067 |
|
| 1068 |
|
| 1069 |
|
| 1070 |
|
| 1071 |
|
| 1072 |
|
| 1073 |
#if !defined(_ADVISOR_ANNOTATE_H_) || defined(ANNOTATE_EXPAND_NULL) |
| 1074 |
|
| 1075 |
typedef void* __itt_model_site; |
| 1076 |
typedef void* __itt_model_site_instance; |
| 1077 |
typedef void* __itt_model_task; |
| 1078 |
typedef void* __itt_model_task_instance; |
| 1079 |
|
| 1080 |
|
| 1081 |
|
| 1082 |
|
| 1083 |
|
| 1084 |
typedef enum { |
| 1085 |
__itt_model_disable_observation, |
| 1086 |
__itt_model_disable_collection |
| 1087 |
} __itt_model_disable; |
| 1088 |
|
| 1089 |
#endif |
| 1090 |
|
| 1091 |
|
| 1092 |
|
| 1093 |
|
| 1094 |
|
| 1095 |
|
| 1096 |
|
| 1097 |
|
| 1098 |
|
| 1099 |
|
| 1100 |
|
| 1101 |
|
| 1102 |
|
| 1103 |
void ITTAPI __itt_model_site_begin(__itt_model_site *site, __itt_model_site_instance *instance, const char *name); |
| 1104 |
#if ITT_PLATFORM==ITT_PLATFORM_WIN |
| 1105 |
void ITTAPI __itt_model_site_beginW(const wchar_t *name); |
| 1106 |
#endif |
| 1107 |
void ITTAPI __itt_model_site_beginA(const char *name); |
| 1108 |
void ITTAPI __itt_model_site_beginAL(const char *name, size_t siteNameLen); |
| 1109 |
void ITTAPI __itt_model_site_end (__itt_model_site *site, __itt_model_site_instance *instance); |
| 1110 |
void ITTAPI __itt_model_site_end_2(void); |
| 1111 |
|
| 1112 |
|
| 1113 |
#ifndef INTEL_NO_MACRO_BODY |
| 1114 |
#ifndef INTEL_NO_ITTNOTIFY_API |
| 1115 |
ITT_STUBV(ITTAPI, void, model_site_begin, (__itt_model_site *site, __itt_model_site_instance *instance, const char *name)) |
| 1116 |
#if ITT_PLATFORM==ITT_PLATFORM_WIN |
| 1117 |
ITT_STUBV(ITTAPI, void, model_site_beginW, (const wchar_t *name)) |
| 1118 |
#endif |
| 1119 |
ITT_STUBV(ITTAPI, void, model_site_beginA, (const char *name)) |
| 1120 |
ITT_STUBV(ITTAPI, void, model_site_beginAL, (const char *name, size_t siteNameLen)) |
| 1121 |
ITT_STUBV(ITTAPI, void, model_site_end, (__itt_model_site *site, __itt_model_site_instance *instance)) |
| 1122 |
ITT_STUBV(ITTAPI, void, model_site_end_2, (void)) |
| 1123 |
#define __itt_model_site_begin ITTNOTIFY_VOID(model_site_begin) |
| 1124 |
#define __itt_model_site_begin_ptr ITTNOTIFY_NAME(model_site_begin) |
| 1125 |
#if ITT_PLATFORM==ITT_PLATFORM_WIN |
| 1126 |
#define __itt_model_site_beginW ITTNOTIFY_VOID(model_site_beginW) |
| 1127 |
#define __itt_model_site_beginW_ptr ITTNOTIFY_NAME(model_site_beginW) |
| 1128 |
#endif |
| 1129 |
#define __itt_model_site_beginA ITTNOTIFY_VOID(model_site_beginA) |
| 1130 |
#define __itt_model_site_beginA_ptr ITTNOTIFY_NAME(model_site_beginA) |
| 1131 |
#define __itt_model_site_beginAL ITTNOTIFY_VOID(model_site_beginAL) |
| 1132 |
#define __itt_model_site_beginAL_ptr ITTNOTIFY_NAME(model_site_beginAL) |
| 1133 |
#define __itt_model_site_end ITTNOTIFY_VOID(model_site_end) |
| 1134 |
#define __itt_model_site_end_ptr ITTNOTIFY_NAME(model_site_end) |
| 1135 |
#define __itt_model_site_end_2 ITTNOTIFY_VOID(model_site_end_2) |
| 1136 |
#define __itt_model_site_end_2_ptr ITTNOTIFY_NAME(model_site_end_2) |
| 1137 |
#else |
| 1138 |
#define __itt_model_site_begin(site, instance, name) |
| 1139 |
#define __itt_model_site_begin_ptr 0 |
| 1140 |
#if ITT_PLATFORM==ITT_PLATFORM_WIN |
| 1141 |
#define __itt_model_site_beginW(name) |
| 1142 |
#define __itt_model_site_beginW_ptr 0 |
| 1143 |
#endif |
| 1144 |
#define __itt_model_site_beginA(name) |
| 1145 |
#define __itt_model_site_beginA_ptr 0 |
| 1146 |
#define __itt_model_site_beginAL(name, siteNameLen) |
| 1147 |
#define __itt_model_site_beginAL_ptr 0 |
| 1148 |
#define __itt_model_site_end(site, instance) |
| 1149 |
#define __itt_model_site_end_ptr 0 |
| 1150 |
#define __itt_model_site_end_2() |
| 1151 |
#define __itt_model_site_end_2_ptr 0 |
| 1152 |
#endif |
| 1153 |
#else |
| 1154 |
#define __itt_model_site_begin_ptr 0 |
| 1155 |
#if ITT_PLATFORM==ITT_PLATFORM_WIN |
| 1156 |
#define __itt_model_site_beginW_ptr 0 |
| 1157 |
#endif |
| 1158 |
#define __itt_model_site_beginA_ptr 0 |
| 1159 |
#define __itt_model_site_beginAL_ptr 0 |
| 1160 |
#define __itt_model_site_end_ptr 0 |
| 1161 |
#define __itt_model_site_end_2_ptr 0 |
| 1162 |
#endif |
| 1163 |
|
| 1164 |
|
| 1165 |
|
| 1166 |
|
| 1167 |
|
| 1168 |
|
| 1169 |
|
| 1170 |
|
| 1171 |
|
| 1172 |
|
| 1173 |
|
| 1174 |
|
| 1175 |
|
| 1176 |
void ITTAPI __itt_model_task_begin(__itt_model_task *task, __itt_model_task_instance *instance, const char *name); |
| 1177 |
#if ITT_PLATFORM==ITT_PLATFORM_WIN |
| 1178 |
void ITTAPI __itt_model_task_beginW(const wchar_t *name); |
| 1179 |
void ITTAPI __itt_model_iteration_taskW(const wchar_t *name); |
| 1180 |
#endif |
| 1181 |
void ITTAPI __itt_model_task_beginA(const char *name); |
| 1182 |
void ITTAPI __itt_model_task_beginAL(const char *name, size_t taskNameLen); |
| 1183 |
void ITTAPI __itt_model_iteration_taskA(const char *name); |
| 1184 |
void ITTAPI __itt_model_iteration_taskAL(const char *name, size_t taskNameLen); |
| 1185 |
void ITTAPI __itt_model_task_end (__itt_model_task *task, __itt_model_task_instance *instance); |
| 1186 |
void ITTAPI __itt_model_task_end_2(void); |
| 1187 |
|
| 1188 |
|
| 1189 |
#ifndef INTEL_NO_MACRO_BODY |
| 1190 |
#ifndef INTEL_NO_ITTNOTIFY_API |
| 1191 |
ITT_STUBV(ITTAPI, void, model_task_begin, (__itt_model_task *task, __itt_model_task_instance *instance, const char *name)) |
| 1192 |
#if ITT_PLATFORM==ITT_PLATFORM_WIN |
| 1193 |
ITT_STUBV(ITTAPI, void, model_task_beginW, (const wchar_t *name)) |
| 1194 |
ITT_STUBV(ITTAPI, void, model_iteration_taskW, (const wchar_t *name)) |
| 1195 |
#endif |
| 1196 |
ITT_STUBV(ITTAPI, void, model_task_beginA, (const char *name)) |
| 1197 |
ITT_STUBV(ITTAPI, void, model_task_beginAL, (const char *name, size_t taskNameLen)) |
| 1198 |
ITT_STUBV(ITTAPI, void, model_iteration_taskA, (const char *name)) |
| 1199 |
ITT_STUBV(ITTAPI, void, model_iteration_taskAL, (const char *name, size_t taskNameLen)) |
| 1200 |
ITT_STUBV(ITTAPI, void, model_task_end, (__itt_model_task *task, __itt_model_task_instance *instance)) |
| 1201 |
ITT_STUBV(ITTAPI, void, model_task_end_2, (void)) |
| 1202 |
#define __itt_model_task_begin ITTNOTIFY_VOID(model_task_begin) |
| 1203 |
#define __itt_model_task_begin_ptr ITTNOTIFY_NAME(model_task_begin) |
| 1204 |
#if ITT_PLATFORM==ITT_PLATFORM_WIN |
| 1205 |
#define __itt_model_task_beginW ITTNOTIFY_VOID(model_task_beginW) |
| 1206 |
#define __itt_model_task_beginW_ptr ITTNOTIFY_NAME(model_task_beginW) |
| 1207 |
#define __itt_model_iteration_taskW ITTNOTIFY_VOID(model_iteration_taskW) |
| 1208 |
#define __itt_model_iteration_taskW_ptr ITTNOTIFY_NAME(model_iteration_taskW) |
| 1209 |
#endif |
| 1210 |
#define __itt_model_task_beginA ITTNOTIFY_VOID(model_task_beginA) |
| 1211 |
#define __itt_model_task_beginA_ptr ITTNOTIFY_NAME(model_task_beginA) |
| 1212 |
#define __itt_model_task_beginAL ITTNOTIFY_VOID(model_task_beginAL) |
| 1213 |
#define __itt_model_task_beginAL_ptr ITTNOTIFY_NAME(model_task_beginAL) |
| 1214 |
#define __itt_model_iteration_taskA ITTNOTIFY_VOID(model_iteration_taskA) |
| 1215 |
#define __itt_model_iteration_taskA_ptr ITTNOTIFY_NAME(model_iteration_taskA) |
| 1216 |
#define __itt_model_iteration_taskAL ITTNOTIFY_VOID(model_iteration_taskAL) |
| 1217 |
#define __itt_model_iteration_taskAL_ptr ITTNOTIFY_NAME(model_iteration_taskAL) |
| 1218 |
#define __itt_model_task_end ITTNOTIFY_VOID(model_task_end) |
| 1219 |
#define __itt_model_task_end_ptr ITTNOTIFY_NAME(model_task_end) |
| 1220 |
#define __itt_model_task_end_2 ITTNOTIFY_VOID(model_task_end_2) |
| 1221 |
#define __itt_model_task_end_2_ptr ITTNOTIFY_NAME(model_task_end_2) |
| 1222 |
#else |
| 1223 |
#define __itt_model_task_begin(task, instance, name) |
| 1224 |
#define __itt_model_task_begin_ptr 0 |
| 1225 |
#if ITT_PLATFORM==ITT_PLATFORM_WIN |
| 1226 |
#define __itt_model_task_beginW(name) |
| 1227 |
#define __itt_model_task_beginW_ptr 0 |
| 1228 |
#endif |
| 1229 |
#define __itt_model_task_beginA(name) |
| 1230 |
#define __itt_model_task_beginA_ptr 0 |
| 1231 |
#define __itt_model_task_beginAL(name, siteNameLen) |
| 1232 |
#define __itt_model_task_beginAL_ptr 0 |
| 1233 |
#define __itt_model_iteration_taskA(name) |
| 1234 |
#define __itt_model_iteration_taskA_ptr 0 |
| 1235 |
#define __itt_model_iteration_taskAL(name, siteNameLen) |
| 1236 |
#define __itt_model_iteration_taskAL_ptr 0 |
| 1237 |
#define __itt_model_task_end(task, instance) |
| 1238 |
#define __itt_model_task_end_ptr 0 |
| 1239 |
#define __itt_model_task_end_2() |
| 1240 |
#define __itt_model_task_end_2_ptr 0 |
| 1241 |
#endif |
| 1242 |
#else |
| 1243 |
#define __itt_model_task_begin_ptr 0 |
| 1244 |
#if ITT_PLATFORM==ITT_PLATFORM_WIN |
| 1245 |
#define __itt_model_task_beginW_ptr 0 |
| 1246 |
#endif |
| 1247 |
#define __itt_model_task_beginA_ptr 0 |
| 1248 |
#define __itt_model_task_beginAL_ptr 0 |
| 1249 |
#define __itt_model_iteration_taskA_ptr 0 |
| 1250 |
#define __itt_model_iteration_taskAL_ptr 0 |
| 1251 |
#define __itt_model_task_end_ptr 0 |
| 1252 |
#define __itt_model_task_end_2_ptr 0 |
| 1253 |
#endif |
| 1254 |
|
| 1255 |
|
| 1256 |
|
| 1257 |
|
| 1258 |
|
| 1259 |
|
| 1260 |
|
| 1261 |
|
| 1262 |
|
| 1263 |
|
| 1264 |
|
| 1265 |
|
| 1266 |
|
| 1267 |
|
| 1268 |
void ITTAPI __itt_model_lock_acquire(void *lock); |
| 1269 |
void ITTAPI __itt_model_lock_acquire_2(void *lock); |
| 1270 |
void ITTAPI __itt_model_lock_release(void *lock); |
| 1271 |
void ITTAPI __itt_model_lock_release_2(void *lock); |
| 1272 |
|
| 1273 |
|
| 1274 |
#ifndef INTEL_NO_MACRO_BODY |
| 1275 |
#ifndef INTEL_NO_ITTNOTIFY_API |
| 1276 |
ITT_STUBV(ITTAPI, void, model_lock_acquire, (void *lock)) |
| 1277 |
ITT_STUBV(ITTAPI, void, model_lock_acquire_2, (void *lock)) |
| 1278 |
ITT_STUBV(ITTAPI, void, model_lock_release, (void *lock)) |
| 1279 |
ITT_STUBV(ITTAPI, void, model_lock_release_2, (void *lock)) |
| 1280 |
#define __itt_model_lock_acquire ITTNOTIFY_VOID(model_lock_acquire) |
| 1281 |
#define __itt_model_lock_acquire_ptr ITTNOTIFY_NAME(model_lock_acquire) |
| 1282 |
#define __itt_model_lock_acquire_2 ITTNOTIFY_VOID(model_lock_acquire_2) |
| 1283 |
#define __itt_model_lock_acquire_2_ptr ITTNOTIFY_NAME(model_lock_acquire_2) |
| 1284 |
#define __itt_model_lock_release ITTNOTIFY_VOID(model_lock_release) |
| 1285 |
#define __itt_model_lock_release_ptr ITTNOTIFY_NAME(model_lock_release) |
| 1286 |
#define __itt_model_lock_release_2 ITTNOTIFY_VOID(model_lock_release_2) |
| 1287 |
#define __itt_model_lock_release_2_ptr ITTNOTIFY_NAME(model_lock_release_2) |
| 1288 |
#else |
| 1289 |
#define __itt_model_lock_acquire(lock) |
| 1290 |
#define __itt_model_lock_acquire_ptr 0 |
| 1291 |
#define __itt_model_lock_acquire_2(lock) |
| 1292 |
#define __itt_model_lock_acquire_2_ptr 0 |
| 1293 |
#define __itt_model_lock_release(lock) |
| 1294 |
#define __itt_model_lock_release_ptr 0 |
| 1295 |
#define __itt_model_lock_release_2(lock) |
| 1296 |
#define __itt_model_lock_release_2_ptr 0 |
| 1297 |
#endif |
| 1298 |
#else |
| 1299 |
#define __itt_model_lock_acquire_ptr 0 |
| 1300 |
#define __itt_model_lock_acquire_2_ptr 0 |
| 1301 |
#define __itt_model_lock_release_ptr 0 |
| 1302 |
#define __itt_model_lock_release_2_ptr 0 |
| 1303 |
#endif |
| 1304 |
|
| 1305 |
|
| 1306 |
|
| 1307 |
|
| 1308 |
|
| 1309 |
|
| 1310 |
|
| 1311 |
|
| 1312 |
|
| 1313 |
void ITTAPI __itt_model_record_allocation (void *addr, size_t size); |
| 1314 |
void ITTAPI __itt_model_record_deallocation(void *addr); |
| 1315 |
|
| 1316 |
|
| 1317 |
#ifndef INTEL_NO_MACRO_BODY |
| 1318 |
#ifndef INTEL_NO_ITTNOTIFY_API |
| 1319 |
ITT_STUBV(ITTAPI, void, model_record_allocation, (void *addr, size_t size)) |
| 1320 |
ITT_STUBV(ITTAPI, void, model_record_deallocation, (void *addr)) |
| 1321 |
#define __itt_model_record_allocation ITTNOTIFY_VOID(model_record_allocation) |
| 1322 |
#define __itt_model_record_allocation_ptr ITTNOTIFY_NAME(model_record_allocation) |
| 1323 |
#define __itt_model_record_deallocation ITTNOTIFY_VOID(model_record_deallocation) |
| 1324 |
#define __itt_model_record_deallocation_ptr ITTNOTIFY_NAME(model_record_deallocation) |
| 1325 |
#else |
| 1326 |
#define __itt_model_record_allocation(addr, size) |
| 1327 |
#define __itt_model_record_allocation_ptr 0 |
| 1328 |
#define __itt_model_record_deallocation(addr) |
| 1329 |
#define __itt_model_record_deallocation_ptr 0 |
| 1330 |
#endif |
| 1331 |
#else |
| 1332 |
#define __itt_model_record_allocation_ptr 0 |
| 1333 |
#define __itt_model_record_deallocation_ptr 0 |
| 1334 |
#endif |
| 1335 |
|
| 1336 |
|
| 1337 |
|
| 1338 |
|
| 1339 |
|
| 1340 |
|
| 1341 |
|
| 1342 |
void ITTAPI __itt_model_induction_uses(void* addr, size_t size); |
| 1343 |
|
| 1344 |
|
| 1345 |
#ifndef INTEL_NO_MACRO_BODY |
| 1346 |
#ifndef INTEL_NO_ITTNOTIFY_API |
| 1347 |
ITT_STUBV(ITTAPI, void, model_induction_uses, (void *addr, size_t size)) |
| 1348 |
#define __itt_model_induction_uses ITTNOTIFY_VOID(model_induction_uses) |
| 1349 |
#define __itt_model_induction_uses_ptr ITTNOTIFY_NAME(model_induction_uses) |
| 1350 |
#else |
| 1351 |
#define __itt_model_induction_uses(addr, size) |
| 1352 |
#define __itt_model_induction_uses_ptr 0 |
| 1353 |
#endif |
| 1354 |
#else |
| 1355 |
#define __itt_model_induction_uses_ptr 0 |
| 1356 |
#endif |
| 1357 |
|
| 1358 |
|
| 1359 |
|
| 1360 |
|
| 1361 |
|
| 1362 |
|
| 1363 |
|
| 1364 |
|
| 1365 |
void ITTAPI __itt_model_reduction_uses(void* addr, size_t size); |
| 1366 |
|
| 1367 |
|
| 1368 |
#ifndef INTEL_NO_MACRO_BODY |
| 1369 |
#ifndef INTEL_NO_ITTNOTIFY_API |
| 1370 |
ITT_STUBV(ITTAPI, void, model_reduction_uses, (void *addr, size_t size)) |
| 1371 |
#define __itt_model_reduction_uses ITTNOTIFY_VOID(model_reduction_uses) |
| 1372 |
#define __itt_model_reduction_uses_ptr ITTNOTIFY_NAME(model_reduction_uses) |
| 1373 |
#else |
| 1374 |
#define __itt_model_reduction_uses(addr, size) |
| 1375 |
#define __itt_model_reduction_uses_ptr 0 |
| 1376 |
#endif |
| 1377 |
#else |
| 1378 |
#define __itt_model_reduction_uses_ptr 0 |
| 1379 |
#endif |
| 1380 |
|
| 1381 |
|
| 1382 |
|
| 1383 |
|
| 1384 |
|
| 1385 |
|
| 1386 |
|
| 1387 |
|
| 1388 |
void ITTAPI __itt_model_observe_uses(void* addr, size_t size); |
| 1389 |
|
| 1390 |
|
| 1391 |
#ifndef INTEL_NO_MACRO_BODY |
| 1392 |
#ifndef INTEL_NO_ITTNOTIFY_API |
| 1393 |
ITT_STUBV(ITTAPI, void, model_observe_uses, (void *addr, size_t size)) |
| 1394 |
#define __itt_model_observe_uses ITTNOTIFY_VOID(model_observe_uses) |
| 1395 |
#define __itt_model_observe_uses_ptr ITTNOTIFY_NAME(model_observe_uses) |
| 1396 |
#else |
| 1397 |
#define __itt_model_observe_uses(addr, size) |
| 1398 |
#define __itt_model_observe_uses_ptr 0 |
| 1399 |
#endif |
| 1400 |
#else |
| 1401 |
#define __itt_model_observe_uses_ptr 0 |
| 1402 |
#endif |
| 1403 |
|
| 1404 |
|
| 1405 |
|
| 1406 |
|
| 1407 |
|
| 1408 |
|
| 1409 |
|
| 1410 |
|
| 1411 |
void ITTAPI __itt_model_clear_uses(void* addr); |
| 1412 |
|
| 1413 |
|
| 1414 |
#ifndef INTEL_NO_MACRO_BODY |
| 1415 |
#ifndef INTEL_NO_ITTNOTIFY_API |
| 1416 |
ITT_STUBV(ITTAPI, void, model_clear_uses, (void *addr)) |
| 1417 |
#define __itt_model_clear_uses ITTNOTIFY_VOID(model_clear_uses) |
| 1418 |
#define __itt_model_clear_uses_ptr ITTNOTIFY_NAME(model_clear_uses) |
| 1419 |
#else |
| 1420 |
#define __itt_model_clear_uses(addr) |
| 1421 |
#define __itt_model_clear_uses_ptr 0 |
| 1422 |
#endif |
| 1423 |
#else |
| 1424 |
#define __itt_model_clear_uses_ptr 0 |
| 1425 |
#endif |
| 1426 |
|
| 1427 |
|
| 1428 |
|
| 1429 |
|
| 1430 |
|
| 1431 |
|
| 1432 |
|
| 1433 |
|
| 1434 |
|
| 1435 |
|
| 1436 |
|
| 1437 |
|
| 1438 |
|
| 1439 |
|
| 1440 |
|
| 1441 |
|
| 1442 |
|
| 1443 |
|
| 1444 |
|
| 1445 |
|
| 1446 |
|
| 1447 |
|
| 1448 |
|
| 1449 |
void ITTAPI __itt_model_disable_push(__itt_model_disable x); |
| 1450 |
void ITTAPI __itt_model_disable_pop(void); |
| 1451 |
void ITTAPI __itt_model_aggregate_task(size_t x); |
| 1452 |
|
| 1453 |
|
| 1454 |
#ifndef INTEL_NO_MACRO_BODY |
| 1455 |
#ifndef INTEL_NO_ITTNOTIFY_API |
| 1456 |
ITT_STUBV(ITTAPI, void, model_disable_push, (__itt_model_disable x)) |
| 1457 |
ITT_STUBV(ITTAPI, void, model_disable_pop, (void)) |
| 1458 |
ITT_STUBV(ITTAPI, void, model_aggregate_task, (size_t x)) |
| 1459 |
#define __itt_model_disable_push ITTNOTIFY_VOID(model_disable_push) |
| 1460 |
#define __itt_model_disable_push_ptr ITTNOTIFY_NAME(model_disable_push) |
| 1461 |
#define __itt_model_disable_pop ITTNOTIFY_VOID(model_disable_pop) |
| 1462 |
#define __itt_model_disable_pop_ptr ITTNOTIFY_NAME(model_disable_pop) |
| 1463 |
#define __itt_model_aggregate_task ITTNOTIFY_VOID(model_aggregate_task) |
| 1464 |
#define __itt_model_aggregate_task_ptr ITTNOTIFY_NAME(model_aggregate_task) |
| 1465 |
#else |
| 1466 |
#define __itt_model_disable_push(x) |
| 1467 |
#define __itt_model_disable_push_ptr 0 |
| 1468 |
#define __itt_model_disable_pop() |
| 1469 |
#define __itt_model_disable_pop_ptr 0 |
| 1470 |
#define __itt_model_aggregate_task(x) |
| 1471 |
#define __itt_model_aggregate_task_ptr 0 |
| 1472 |
#endif |
| 1473 |
#else |
| 1474 |
#define __itt_model_disable_push_ptr 0 |
| 1475 |
#define __itt_model_disable_pop_ptr 0 |
| 1476 |
#define __itt_model_aggregate_task_ptr 0 |
| 1477 |
#endif |
| 1478 |
|
| 1479 |
|
| 1480 |
|
| 1481 |
|
| 1482 |
|
| 1483 |
|
| 1484 |
|
| 1485 |
|
| 1486 |
|
| 1487 |
|
| 1488 |
typedef void* __itt_heap_function; |
| 1489 |
|
| 1490 |
|
| 1491 |
|
| 1492 |
|
| 1493 |
|
| 1494 |
#if ITT_PLATFORM==ITT_PLATFORM_WIN |
| 1495 |
__itt_heap_function ITTAPI __itt_heap_function_createA(const char* name, const char* domain); |
| 1496 |
__itt_heap_function ITTAPI __itt_heap_function_createW(const wchar_t* name, const wchar_t* domain); |
| 1497 |
#if defined(UNICODE) || defined(_UNICODE) |
| 1498 |
# define __itt_heap_function_create __itt_heap_function_createW |
| 1499 |
# define __itt_heap_function_create_ptr __itt_heap_function_createW_ptr |
| 1500 |
#else |
| 1501 |
# define __itt_heap_function_create __itt_heap_function_createA |
| 1502 |
# define __itt_heap_function_create_ptr __itt_heap_function_createA_ptr |
| 1503 |
#endif |
| 1504 |
#else |
| 1505 |
__itt_heap_function ITTAPI __itt_heap_function_create(const char* name, const char* domain); |
| 1506 |
#endif |
| 1507 |
|
| 1508 |
|
| 1509 |
#ifndef INTEL_NO_MACRO_BODY |
| 1510 |
#ifndef INTEL_NO_ITTNOTIFY_API |
| 1511 |
#if ITT_PLATFORM==ITT_PLATFORM_WIN |
| 1512 |
ITT_STUB(ITTAPI, __itt_heap_function, heap_function_createA, (const char* name, const char* domain)) |
| 1513 |
ITT_STUB(ITTAPI, __itt_heap_function, heap_function_createW, (const wchar_t* name, const wchar_t* domain)) |
| 1514 |
#else |
| 1515 |
ITT_STUB(ITTAPI, __itt_heap_function, heap_function_create, (const char* name, const char* domain)) |
| 1516 |
#endif |
| 1517 |
#if ITT_PLATFORM==ITT_PLATFORM_WIN |
| 1518 |
#define __itt_heap_function_createA ITTNOTIFY_DATA(heap_function_createA) |
| 1519 |
#define __itt_heap_function_createA_ptr ITTNOTIFY_NAME(heap_function_createA) |
| 1520 |
#define __itt_heap_function_createW ITTNOTIFY_DATA(heap_function_createW) |
| 1521 |
#define __itt_heap_function_createW_ptr ITTNOTIFY_NAME(heap_function_createW) |
| 1522 |
#else |
| 1523 |
#define __itt_heap_function_create ITTNOTIFY_DATA(heap_function_create) |
| 1524 |
#define __itt_heap_function_create_ptr ITTNOTIFY_NAME(heap_function_create) |
| 1525 |
#endif |
| 1526 |
#else |
| 1527 |
#if ITT_PLATFORM==ITT_PLATFORM_WIN |
| 1528 |
#define __itt_heap_function_createA(name, domain) (__itt_heap_function)0 |
| 1529 |
#define __itt_heap_function_createA_ptr 0 |
| 1530 |
#define __itt_heap_function_createW(name, domain) (__itt_heap_function)0 |
| 1531 |
#define __itt_heap_function_createW_ptr 0 |
| 1532 |
#else |
| 1533 |
#define __itt_heap_function_create(name, domain) (__itt_heap_function)0 |
| 1534 |
#define __itt_heap_function_create_ptr 0 |
| 1535 |
#endif |
| 1536 |
#endif |
| 1537 |
#else |
| 1538 |
#if ITT_PLATFORM==ITT_PLATFORM_WIN |
| 1539 |
#define __itt_heap_function_createA_ptr 0 |
| 1540 |
#define __itt_heap_function_createW_ptr 0 |
| 1541 |
#else |
| 1542 |
#define __itt_heap_function_create_ptr 0 |
| 1543 |
#endif |
| 1544 |
#endif |
| 1545 |
|
| 1546 |
|
| 1547 |
|
| 1548 |
|
| 1549 |
|
| 1550 |
void ITTAPI __itt_heap_allocate_begin(__itt_heap_function h, size_t size, int initialized); |
| 1551 |
|
| 1552 |
|
| 1553 |
#ifndef INTEL_NO_MACRO_BODY |
| 1554 |
#ifndef INTEL_NO_ITTNOTIFY_API |
| 1555 |
ITT_STUBV(ITTAPI, void, heap_allocate_begin, (__itt_heap_function h, size_t size, int initialized)) |
| 1556 |
#define __itt_heap_allocate_begin ITTNOTIFY_VOID(heap_allocate_begin) |
| 1557 |
#define __itt_heap_allocate_begin_ptr ITTNOTIFY_NAME(heap_allocate_begin) |
| 1558 |
#else |
| 1559 |
#define __itt_heap_allocate_begin(h, size, initialized) |
| 1560 |
#define __itt_heap_allocate_begin_ptr 0 |
| 1561 |
#endif |
| 1562 |
#else |
| 1563 |
#define __itt_heap_allocate_begin_ptr 0 |
| 1564 |
#endif |
| 1565 |
|
| 1566 |
|
| 1567 |
|
| 1568 |
|
| 1569 |
|
| 1570 |
void ITTAPI __itt_heap_allocate_end(__itt_heap_function h, void** addr, size_t size, int initialized); |
| 1571 |
|
| 1572 |
|
| 1573 |
#ifndef INTEL_NO_MACRO_BODY |
| 1574 |
#ifndef INTEL_NO_ITTNOTIFY_API |
| 1575 |
ITT_STUBV(ITTAPI, void, heap_allocate_end, (__itt_heap_function h, void** addr, size_t size, int initialized)) |
| 1576 |
#define __itt_heap_allocate_end ITTNOTIFY_VOID(heap_allocate_end) |
| 1577 |
#define __itt_heap_allocate_end_ptr ITTNOTIFY_NAME(heap_allocate_end) |
| 1578 |
#else |
| 1579 |
#define __itt_heap_allocate_end(h, addr, size, initialized) |
| 1580 |
#define __itt_heap_allocate_end_ptr 0 |
| 1581 |
#endif |
| 1582 |
#else |
| 1583 |
#define __itt_heap_allocate_end_ptr 0 |
| 1584 |
#endif |
| 1585 |
|
| 1586 |
|
| 1587 |
|
| 1588 |
|
| 1589 |
|
| 1590 |
void ITTAPI __itt_heap_free_begin(__itt_heap_function h, void* addr); |
| 1591 |
|
| 1592 |
|
| 1593 |
#ifndef INTEL_NO_MACRO_BODY |
| 1594 |
#ifndef INTEL_NO_ITTNOTIFY_API |
| 1595 |
ITT_STUBV(ITTAPI, void, heap_free_begin, (__itt_heap_function h, void* addr)) |
| 1596 |
#define __itt_heap_free_begin ITTNOTIFY_VOID(heap_free_begin) |
| 1597 |
#define __itt_heap_free_begin_ptr ITTNOTIFY_NAME(heap_free_begin) |
| 1598 |
#else |
| 1599 |
#define __itt_heap_free_begin(h, addr) |
| 1600 |
#define __itt_heap_free_begin_ptr 0 |
| 1601 |
#endif |
| 1602 |
#else |
| 1603 |
#define __itt_heap_free_begin_ptr 0 |
| 1604 |
#endif |
| 1605 |
|
| 1606 |
|
| 1607 |
|
| 1608 |
|
| 1609 |
|
| 1610 |
void ITTAPI __itt_heap_free_end(__itt_heap_function h, void* addr); |
| 1611 |
|
| 1612 |
|
| 1613 |
#ifndef INTEL_NO_MACRO_BODY |
| 1614 |
#ifndef INTEL_NO_ITTNOTIFY_API |
| 1615 |
ITT_STUBV(ITTAPI, void, heap_free_end, (__itt_heap_function h, void* addr)) |
| 1616 |
#define __itt_heap_free_end ITTNOTIFY_VOID(heap_free_end) |
| 1617 |
#define __itt_heap_free_end_ptr ITTNOTIFY_NAME(heap_free_end) |
| 1618 |
#else |
| 1619 |
#define __itt_heap_free_end(h, addr) |
| 1620 |
#define __itt_heap_free_end_ptr 0 |
| 1621 |
#endif |
| 1622 |
#else |
| 1623 |
#define __itt_heap_free_end_ptr 0 |
| 1624 |
#endif |
| 1625 |
|
| 1626 |
|
| 1627 |
|
| 1628 |
|
| 1629 |
|
| 1630 |
void ITTAPI __itt_heap_reallocate_begin(__itt_heap_function h, void* addr, size_t new_size, int initialized); |
| 1631 |
|
| 1632 |
|
| 1633 |
#ifndef INTEL_NO_MACRO_BODY |
| 1634 |
#ifndef INTEL_NO_ITTNOTIFY_API |
| 1635 |
ITT_STUBV(ITTAPI, void, heap_reallocate_begin, (__itt_heap_function h, void* addr, size_t new_size, int initialized)) |
| 1636 |
#define __itt_heap_reallocate_begin ITTNOTIFY_VOID(heap_reallocate_begin) |
| 1637 |
#define __itt_heap_reallocate_begin_ptr ITTNOTIFY_NAME(heap_reallocate_begin) |
| 1638 |
#else |
| 1639 |
#define __itt_heap_reallocate_begin(h, addr, new_size, initialized) |
| 1640 |
#define __itt_heap_reallocate_begin_ptr 0 |
| 1641 |
#endif |
| 1642 |
#else |
| 1643 |
#define __itt_heap_reallocate_begin_ptr 0 |
| 1644 |
#endif |
| 1645 |
|
| 1646 |
|
| 1647 |
|
| 1648 |
|
| 1649 |
|
| 1650 |
void ITTAPI __itt_heap_reallocate_end(__itt_heap_function h, void* addr, void** new_addr, size_t new_size, int initialized); |
| 1651 |
|
| 1652 |
|
| 1653 |
#ifndef INTEL_NO_MACRO_BODY |
| 1654 |
#ifndef INTEL_NO_ITTNOTIFY_API |
| 1655 |
ITT_STUBV(ITTAPI, void, heap_reallocate_end, (__itt_heap_function h, void* addr, void** new_addr, size_t new_size, int initialized)) |
| 1656 |
#define __itt_heap_reallocate_end ITTNOTIFY_VOID(heap_reallocate_end) |
| 1657 |
#define __itt_heap_reallocate_end_ptr ITTNOTIFY_NAME(heap_reallocate_end) |
| 1658 |
#else |
| 1659 |
#define __itt_heap_reallocate_end(h, addr, new_addr, new_size, initialized) |
| 1660 |
#define __itt_heap_reallocate_end_ptr 0 |
| 1661 |
#endif |
| 1662 |
#else |
| 1663 |
#define __itt_heap_reallocate_end_ptr 0 |
| 1664 |
#endif |
| 1665 |
|
| 1666 |
|
| 1667 |
|
| 1668 |
void ITTAPI __itt_heap_internal_access_begin(void); |
| 1669 |
|
| 1670 |
|
| 1671 |
#ifndef INTEL_NO_MACRO_BODY |
| 1672 |
#ifndef INTEL_NO_ITTNOTIFY_API |
| 1673 |
ITT_STUBV(ITTAPI, void, heap_internal_access_begin, (void)) |
| 1674 |
#define __itt_heap_internal_access_begin ITTNOTIFY_VOID(heap_internal_access_begin) |
| 1675 |
#define __itt_heap_internal_access_begin_ptr ITTNOTIFY_NAME(heap_internal_access_begin) |
| 1676 |
#else |
| 1677 |
#define __itt_heap_internal_access_begin() |
| 1678 |
#define __itt_heap_internal_access_begin_ptr 0 |
| 1679 |
#endif |
| 1680 |
#else |
| 1681 |
#define __itt_heap_internal_access_begin_ptr 0 |
| 1682 |
#endif |
| 1683 |
|
| 1684 |
|
| 1685 |
|
| 1686 |
void ITTAPI __itt_heap_internal_access_end(void); |
| 1687 |
|
| 1688 |
|
| 1689 |
#ifndef INTEL_NO_MACRO_BODY |
| 1690 |
#ifndef INTEL_NO_ITTNOTIFY_API |
| 1691 |
ITT_STUBV(ITTAPI, void, heap_internal_access_end, (void)) |
| 1692 |
#define __itt_heap_internal_access_end ITTNOTIFY_VOID(heap_internal_access_end) |
| 1693 |
#define __itt_heap_internal_access_end_ptr ITTNOTIFY_NAME(heap_internal_access_end) |
| 1694 |
#else |
| 1695 |
#define __itt_heap_internal_access_end() |
| 1696 |
#define __itt_heap_internal_access_end_ptr 0 |
| 1697 |
#endif |
| 1698 |
#else |
| 1699 |
#define __itt_heap_internal_access_end_ptr 0 |
| 1700 |
#endif |
| 1701 |
|
| 1702 |
|
| 1703 |
|
| 1704 |
void ITTAPI __itt_heap_record_memory_growth_begin(void); |
| 1705 |
|
| 1706 |
|
| 1707 |
#ifndef INTEL_NO_MACRO_BODY |
| 1708 |
#ifndef INTEL_NO_ITTNOTIFY_API |
| 1709 |
ITT_STUBV(ITTAPI, void, heap_record_memory_growth_begin, (void)) |
| 1710 |
#define __itt_heap_record_memory_growth_begin ITTNOTIFY_VOID(heap_record_memory_growth_begin) |
| 1711 |
#define __itt_heap_record_memory_growth_begin_ptr ITTNOTIFY_NAME(heap_record_memory_growth_begin) |
| 1712 |
#else |
| 1713 |
#define __itt_heap_record_memory_growth_begin() |
| 1714 |
#define __itt_heap_record_memory_growth_begin_ptr 0 |
| 1715 |
#endif |
| 1716 |
#else |
| 1717 |
#define __itt_heap_record_memory_growth_begin_ptr 0 |
| 1718 |
#endif |
| 1719 |
|
| 1720 |
|
| 1721 |
|
| 1722 |
void ITTAPI __itt_heap_record_memory_growth_end(void); |
| 1723 |
|
| 1724 |
|
| 1725 |
#ifndef INTEL_NO_MACRO_BODY |
| 1726 |
#ifndef INTEL_NO_ITTNOTIFY_API |
| 1727 |
ITT_STUBV(ITTAPI, void, heap_record_memory_growth_end, (void)) |
| 1728 |
#define __itt_heap_record_memory_growth_end ITTNOTIFY_VOID(heap_record_memory_growth_end) |
| 1729 |
#define __itt_heap_record_memory_growth_end_ptr ITTNOTIFY_NAME(heap_record_memory_growth_end) |
| 1730 |
#else |
| 1731 |
#define __itt_heap_record_memory_growth_end() |
| 1732 |
#define __itt_heap_record_memory_growth_end_ptr 0 |
| 1733 |
#endif |
| 1734 |
#else |
| 1735 |
#define __itt_heap_record_memory_growth_end_ptr 0 |
| 1736 |
#endif |
| 1737 |
|
| 1738 |
|
| 1739 |
|
| 1740 |
|
| 1741 |
|
| 1742 |
|
| 1743 |
|
| 1744 |
|
| 1745 |
|
| 1746 |
#define __itt_heap_leaks 0x00000001 |
| 1747 |
|
| 1748 |
|
| 1749 |
|
| 1750 |
|
| 1751 |
|
| 1752 |
#define __itt_heap_growth 0x00000002 |
| 1753 |
|
| 1754 |
|
| 1755 |
|
| 1756 |
void ITTAPI __itt_heap_reset_detection(unsigned int reset_mask); |
| 1757 |
|
| 1758 |
|
| 1759 |
#ifndef INTEL_NO_MACRO_BODY |
| 1760 |
#ifndef INTEL_NO_ITTNOTIFY_API |
| 1761 |
ITT_STUBV(ITTAPI, void, heap_reset_detection, (unsigned int reset_mask)) |
| 1762 |
#define __itt_heap_reset_detection ITTNOTIFY_VOID(heap_reset_detection) |
| 1763 |
#define __itt_heap_reset_detection_ptr ITTNOTIFY_NAME(heap_reset_detection) |
| 1764 |
#else |
| 1765 |
#define __itt_heap_reset_detection() |
| 1766 |
#define __itt_heap_reset_detection_ptr 0 |
| 1767 |
#endif |
| 1768 |
#else |
| 1769 |
#define __itt_heap_reset_detection_ptr 0 |
| 1770 |
#endif |
| 1771 |
|
| 1772 |
|
| 1773 |
|
| 1774 |
void ITTAPI __itt_heap_record(unsigned int record_mask); |
| 1775 |
|
| 1776 |
|
| 1777 |
#ifndef INTEL_NO_MACRO_BODY |
| 1778 |
#ifndef INTEL_NO_ITTNOTIFY_API |
| 1779 |
ITT_STUBV(ITTAPI, void, heap_record, (unsigned int record_mask)) |
| 1780 |
#define __itt_heap_record ITTNOTIFY_VOID(heap_record) |
| 1781 |
#define __itt_heap_record_ptr ITTNOTIFY_NAME(heap_record) |
| 1782 |
#else |
| 1783 |
#define __itt_heap_record() |
| 1784 |
#define __itt_heap_record_ptr 0 |
| 1785 |
#endif |
| 1786 |
#else |
| 1787 |
#define __itt_heap_record_ptr 0 |
| 1788 |
#endif |
| 1789 |
|
| 1790 |
|
| 1791 |
|
| 1792 |
|
| 1793 |
|
| 1794 |
|
| 1795 |
|
| 1796 |
|
| 1797 |
|
| 1798 |
|
| 1799 |
|
| 1800 |
|
| 1801 |
|
| 1802 |
|
| 1803 |
#pragma pack(push, 8) |
| 1804 |
|
| 1805 |
typedef struct ___itt_domain |
| 1806 |
{ |
| 1807 |
volatile int flags; |
| 1808 |
const char* nameA; |
| 1809 |
#if defined(UNICODE) || defined(_UNICODE) |
| 1810 |
const wchar_t* nameW; |
| 1811 |
#else |
| 1812 |
void* nameW; |
| 1813 |
#endif |
| 1814 |
int extra1; |
| 1815 |
void* extra2; |
| 1816 |
struct ___itt_domain* next; |
| 1817 |
} __itt_domain; |
| 1818 |
|
| 1819 |
#pragma pack(pop) |
| 1820 |
|
| 1821 |
|
| 1822 |
|
| 1823 |
|
| 1824 |
|
| 1825 |
|
| 1826 |
|
| 1827 |
|
| 1828 |
|
| 1829 |
|
| 1830 |
|
| 1831 |
|
| 1832 |
#if ITT_PLATFORM==ITT_PLATFORM_WIN |
| 1833 |
__itt_domain* ITTAPI __itt_domain_createA(const char *name); |
| 1834 |
__itt_domain* ITTAPI __itt_domain_createW(const wchar_t *name); |
| 1835 |
#if defined(UNICODE) || defined(_UNICODE) |
| 1836 |
# define __itt_domain_create __itt_domain_createW |
| 1837 |
# define __itt_domain_create_ptr __itt_domain_createW_ptr |
| 1838 |
#else |
| 1839 |
# define __itt_domain_create __itt_domain_createA |
| 1840 |
# define __itt_domain_create_ptr __itt_domain_createA_ptr |
| 1841 |
#endif |
| 1842 |
#else |
| 1843 |
__itt_domain* ITTAPI __itt_domain_create(const char *name); |
| 1844 |
#endif |
| 1845 |
|
| 1846 |
|
| 1847 |
#ifndef INTEL_NO_MACRO_BODY |
| 1848 |
#ifndef INTEL_NO_ITTNOTIFY_API |
| 1849 |
#if ITT_PLATFORM==ITT_PLATFORM_WIN |
| 1850 |
ITT_STUB(ITTAPI, __itt_domain*, domain_createA, (const char *name)) |
| 1851 |
ITT_STUB(ITTAPI, __itt_domain*, domain_createW, (const wchar_t *name)) |
| 1852 |
#else |
| 1853 |
ITT_STUB(ITTAPI, __itt_domain*, domain_create, (const char *name)) |
| 1854 |
#endif |
| 1855 |
#if ITT_PLATFORM==ITT_PLATFORM_WIN |
| 1856 |
#define __itt_domain_createA ITTNOTIFY_DATA(domain_createA) |
| 1857 |
#define __itt_domain_createA_ptr ITTNOTIFY_NAME(domain_createA) |
| 1858 |
#define __itt_domain_createW ITTNOTIFY_DATA(domain_createW) |
| 1859 |
#define __itt_domain_createW_ptr ITTNOTIFY_NAME(domain_createW) |
| 1860 |
#else |
| 1861 |
#define __itt_domain_create ITTNOTIFY_DATA(domain_create) |
| 1862 |
#define __itt_domain_create_ptr ITTNOTIFY_NAME(domain_create) |
| 1863 |
#endif |
| 1864 |
#else |
| 1865 |
#if ITT_PLATFORM==ITT_PLATFORM_WIN |
| 1866 |
#define __itt_domain_createA(name) (__itt_domain*)0 |
| 1867 |
#define __itt_domain_createA_ptr 0 |
| 1868 |
#define __itt_domain_createW(name) (__itt_domain*)0 |
| 1869 |
#define __itt_domain_createW_ptr 0 |
| 1870 |
#else |
| 1871 |
#define __itt_domain_create(name) (__itt_domain*)0 |
| 1872 |
#define __itt_domain_create_ptr 0 |
| 1873 |
#endif |
| 1874 |
#endif |
| 1875 |
#else |
| 1876 |
#if ITT_PLATFORM==ITT_PLATFORM_WIN |
| 1877 |
#define __itt_domain_createA_ptr 0 |
| 1878 |
#define __itt_domain_createW_ptr 0 |
| 1879 |
#else |
| 1880 |
#define __itt_domain_create_ptr 0 |
| 1881 |
#endif |
| 1882 |
#endif |
| 1883 |
|
| 1884 |
|
| 1885 |
|
| 1886 |
|
| 1887 |
|
| 1888 |
|
| 1889 |
|
| 1890 |
|
| 1891 |
|
| 1892 |
|
| 1893 |
|
| 1894 |
#pragma pack(push, 8) |
| 1895 |
|
| 1896 |
typedef struct ___itt_id |
| 1897 |
{ |
| 1898 |
unsigned long long d1, d2, d3; |
| 1899 |
} __itt_id; |
| 1900 |
|
| 1901 |
#pragma pack(pop) |
| 1902 |
|
| 1903 |
|
| 1904 |
static const __itt_id __itt_null = { 0, 0, 0 }; |
| 1905 |
|
| 1906 |
|
| 1907 |
|
| 1908 |
|
| 1909 |
|
| 1910 |
|
| 1911 |
|
| 1912 |
|
| 1913 |
|
| 1914 |
|
| 1915 |
|
| 1916 |
|
| 1917 |
ITT_INLINE __itt_id ITTAPI __itt_id_make(void* addr, unsigned long long extra) ITT_INLINE_ATTRIBUTE; |
| 1918 |
ITT_INLINE __itt_id ITTAPI __itt_id_make(void* addr, unsigned long long extra) |
| 1919 |
{ |
| 1920 |
__itt_id id = __itt_null; |
| 1921 |
id.d1 = (unsigned long long)((uintptr_t)addr); |
| 1922 |
id.d2 = (unsigned long long)extra; |
| 1923 |
id.d3 = (unsigned long long)0; |
| 1924 |
return id; |
| 1925 |
} |
| 1926 |
|
| 1927 |
|
| 1928 |
|
| 1929 |
|
| 1930 |
|
| 1931 |
|
| 1932 |
|
| 1933 |
|
| 1934 |
|
| 1935 |
|
| 1936 |
|
| 1937 |
|
| 1938 |
|
| 1939 |
void ITTAPI __itt_id_create(const __itt_domain *domain, __itt_id id); |
| 1940 |
|
| 1941 |
|
| 1942 |
#ifndef INTEL_NO_MACRO_BODY |
| 1943 |
#ifndef INTEL_NO_ITTNOTIFY_API |
| 1944 |
ITT_STUBV(ITTAPI, void, id_create, (const __itt_domain *domain, __itt_id id)) |
| 1945 |
#define __itt_id_create(d,x) ITTNOTIFY_VOID_D1(id_create,d,x) |
| 1946 |
#define __itt_id_create_ptr ITTNOTIFY_NAME(id_create) |
| 1947 |
#else |
| 1948 |
#define __itt_id_create(domain,id) |
| 1949 |
#define __itt_id_create_ptr 0 |
| 1950 |
#endif |
| 1951 |
#else |
| 1952 |
#define __itt_id_create_ptr 0 |
| 1953 |
#endif |
| 1954 |
|
| 1955 |
|
| 1956 |
|
| 1957 |
|
| 1958 |
|
| 1959 |
|
| 1960 |
|
| 1961 |
|
| 1962 |
|
| 1963 |
|
| 1964 |
|
| 1965 |
|
| 1966 |
void ITTAPI __itt_id_destroy(const __itt_domain *domain, __itt_id id); |
| 1967 |
|
| 1968 |
|
| 1969 |
#ifndef INTEL_NO_MACRO_BODY |
| 1970 |
#ifndef INTEL_NO_ITTNOTIFY_API |
| 1971 |
ITT_STUBV(ITTAPI, void, id_destroy, (const __itt_domain *domain, __itt_id id)) |
| 1972 |
#define __itt_id_destroy(d,x) ITTNOTIFY_VOID_D1(id_destroy,d,x) |
| 1973 |
#define __itt_id_destroy_ptr ITTNOTIFY_NAME(id_destroy) |
| 1974 |
#else |
| 1975 |
#define __itt_id_destroy(domain,id) |
| 1976 |
#define __itt_id_destroy_ptr 0 |
| 1977 |
#endif |
| 1978 |
#else |
| 1979 |
#define __itt_id_destroy_ptr 0 |
| 1980 |
#endif |
| 1981 |
|
| 1982 |
|
| 1983 |
|
| 1984 |
|
| 1985 |
|
| 1986 |
|
| 1987 |
|
| 1988 |
|
| 1989 |
|
| 1990 |
|
| 1991 |
|
| 1992 |
#pragma pack(push, 8) |
| 1993 |
|
| 1994 |
typedef struct ___itt_string_handle |
| 1995 |
{ |
| 1996 |
const char* strA; |
| 1997 |
#if defined(UNICODE) || defined(_UNICODE) |
| 1998 |
const wchar_t* strW; |
| 1999 |
#else |
| 2000 |
void* strW; |
| 2001 |
#endif |
| 2002 |
int extra1; |
| 2003 |
void* extra2; |
| 2004 |
struct ___itt_string_handle* next; |
| 2005 |
} __itt_string_handle; |
| 2006 |
|
| 2007 |
#pragma pack(pop) |
| 2008 |
|
| 2009 |
|
| 2010 |
|
| 2011 |
|
| 2012 |
|
| 2013 |
|
| 2014 |
|
| 2015 |
|
| 2016 |
|
| 2017 |
|
| 2018 |
|
| 2019 |
|
| 2020 |
|
| 2021 |
#if ITT_PLATFORM==ITT_PLATFORM_WIN |
| 2022 |
__itt_string_handle* ITTAPI __itt_string_handle_createA(const char *name); |
| 2023 |
__itt_string_handle* ITTAPI __itt_string_handle_createW(const wchar_t *name); |
| 2024 |
#if defined(UNICODE) || defined(_UNICODE) |
| 2025 |
# define __itt_string_handle_create __itt_string_handle_createW |
| 2026 |
# define __itt_string_handle_create_ptr __itt_string_handle_createW_ptr |
| 2027 |
#else |
| 2028 |
# define __itt_string_handle_create __itt_string_handle_createA |
| 2029 |
# define __itt_string_handle_create_ptr __itt_string_handle_createA_ptr |
| 2030 |
#endif |
| 2031 |
#else |
| 2032 |
__itt_string_handle* ITTAPI __itt_string_handle_create(const char *name); |
| 2033 |
#endif |
| 2034 |
|
| 2035 |
|
| 2036 |
#ifndef INTEL_NO_MACRO_BODY |
| 2037 |
#ifndef INTEL_NO_ITTNOTIFY_API |
| 2038 |
#if ITT_PLATFORM==ITT_PLATFORM_WIN |
| 2039 |
ITT_STUB(ITTAPI, __itt_string_handle*, string_handle_createA, (const char *name)) |
| 2040 |
ITT_STUB(ITTAPI, __itt_string_handle*, string_handle_createW, (const wchar_t *name)) |
| 2041 |
#else |
| 2042 |
ITT_STUB(ITTAPI, __itt_string_handle*, string_handle_create, (const char *name)) |
| 2043 |
#endif |
| 2044 |
#if ITT_PLATFORM==ITT_PLATFORM_WIN |
| 2045 |
#define __itt_string_handle_createA ITTNOTIFY_DATA(string_handle_createA) |
| 2046 |
#define __itt_string_handle_createA_ptr ITTNOTIFY_NAME(string_handle_createA) |
| 2047 |
#define __itt_string_handle_createW ITTNOTIFY_DATA(string_handle_createW) |
| 2048 |
#define __itt_string_handle_createW_ptr ITTNOTIFY_NAME(string_handle_createW) |
| 2049 |
#else |
| 2050 |
#define __itt_string_handle_create ITTNOTIFY_DATA(string_handle_create) |
| 2051 |
#define __itt_string_handle_create_ptr ITTNOTIFY_NAME(string_handle_create) |
| 2052 |
#endif |
| 2053 |
#else |
| 2054 |
#if ITT_PLATFORM==ITT_PLATFORM_WIN |
| 2055 |
#define __itt_string_handle_createA(name) (__itt_string_handle*)0 |
| 2056 |
#define __itt_string_handle_createA_ptr 0 |
| 2057 |
#define __itt_string_handle_createW(name) (__itt_string_handle*)0 |
| 2058 |
#define __itt_string_handle_createW_ptr 0 |
| 2059 |
#else |
| 2060 |
#define __itt_string_handle_create(name) (__itt_string_handle*)0 |
| 2061 |
#define __itt_string_handle_create_ptr 0 |
| 2062 |
#endif |
| 2063 |
#endif |
| 2064 |
#else |
| 2065 |
#if ITT_PLATFORM==ITT_PLATFORM_WIN |
| 2066 |
#define __itt_string_handle_createA_ptr 0 |
| 2067 |
#define __itt_string_handle_createW_ptr 0 |
| 2068 |
#else |
| 2069 |
#define __itt_string_handle_create_ptr 0 |
| 2070 |
#endif |
| 2071 |
#endif |
| 2072 |
|
| 2073 |
|
| 2074 |
|
| 2075 |
|
| 2076 |
typedef unsigned long long __itt_timestamp; |
| 2077 |
|
| 2078 |
|
| 2079 |
#define __itt_timestamp_none ((__itt_timestamp)-1LL) |
| 2080 |
|
| 2081 |
|
| 2082 |
|
| 2083 |
|
| 2084 |
|
| 2085 |
|
| 2086 |
|
| 2087 |
|
| 2088 |
|
| 2089 |
|
| 2090 |
__itt_timestamp ITTAPI __itt_get_timestamp(void); |
| 2091 |
|
| 2092 |
|
| 2093 |
#ifndef INTEL_NO_MACRO_BODY |
| 2094 |
#ifndef INTEL_NO_ITTNOTIFY_API |
| 2095 |
ITT_STUB(ITTAPI, __itt_timestamp, get_timestamp, (void)) |
| 2096 |
#define __itt_get_timestamp ITTNOTIFY_DATA(get_timestamp) |
| 2097 |
#define __itt_get_timestamp_ptr ITTNOTIFY_NAME(get_timestamp) |
| 2098 |
#else |
| 2099 |
#define __itt_get_timestamp() |
| 2100 |
#define __itt_get_timestamp_ptr 0 |
| 2101 |
#endif |
| 2102 |
#else |
| 2103 |
#define __itt_get_timestamp_ptr 0 |
| 2104 |
#endif |
| 2105 |
|
| 2106 |
|
| 2107 |
|
| 2108 |
|
| 2109 |
|
| 2110 |
|
| 2111 |
|
| 2112 |
|
| 2113 |
|
| 2114 |
|
| 2115 |
|
| 2116 |
|
| 2117 |
|
| 2118 |
|
| 2119 |
|
| 2120 |
|
| 2121 |
|
| 2122 |
|
| 2123 |
|
| 2124 |
|
| 2125 |
|
| 2126 |
|
| 2127 |
void ITTAPI __itt_region_begin(const __itt_domain *domain, __itt_id id, __itt_id parentid, __itt_string_handle *name); |
| 2128 |
|
| 2129 |
|
| 2130 |
|
| 2131 |
|
| 2132 |
|
| 2133 |
|
| 2134 |
|
| 2135 |
|
| 2136 |
|
| 2137 |
|
| 2138 |
void ITTAPI __itt_region_end(const __itt_domain *domain, __itt_id id); |
| 2139 |
|
| 2140 |
|
| 2141 |
#ifndef INTEL_NO_MACRO_BODY |
| 2142 |
#ifndef INTEL_NO_ITTNOTIFY_API |
| 2143 |
ITT_STUBV(ITTAPI, void, region_begin, (const __itt_domain *domain, __itt_id id, __itt_id parentid, __itt_string_handle *name)) |
| 2144 |
ITT_STUBV(ITTAPI, void, region_end, (const __itt_domain *domain, __itt_id id)) |
| 2145 |
#define __itt_region_begin(d,x,y,z) ITTNOTIFY_VOID_D3(region_begin,d,x,y,z) |
| 2146 |
#define __itt_region_begin_ptr ITTNOTIFY_NAME(region_begin) |
| 2147 |
#define __itt_region_end(d,x) ITTNOTIFY_VOID_D1(region_end,d,x) |
| 2148 |
#define __itt_region_end_ptr ITTNOTIFY_NAME(region_end) |
| 2149 |
#else |
| 2150 |
#define __itt_region_begin(d,x,y,z) |
| 2151 |
#define __itt_region_begin_ptr 0 |
| 2152 |
#define __itt_region_end(d,x) |
| 2153 |
#define __itt_region_end_ptr 0 |
| 2154 |
#endif |
| 2155 |
#else |
| 2156 |
#define __itt_region_begin_ptr 0 |
| 2157 |
#define __itt_region_end_ptr 0 |
| 2158 |
#endif |
| 2159 |
|
| 2160 |
|
| 2161 |
|
| 2162 |
|
| 2163 |
|
| 2164 |
|
| 2165 |
|
| 2166 |
|
| 2167 |
|
| 2168 |
|
| 2169 |
|
| 2170 |
|
| 2171 |
|
| 2172 |
|
| 2173 |
|
| 2174 |
|
| 2175 |
|
| 2176 |
|
| 2177 |
|
| 2178 |
|
| 2179 |
|
| 2180 |
void ITTAPI __itt_frame_begin_v3(const __itt_domain *domain, __itt_id *id); |
| 2181 |
|
| 2182 |
|
| 2183 |
|
| 2184 |
|
| 2185 |
|
| 2186 |
|
| 2187 |
|
| 2188 |
|
| 2189 |
|
| 2190 |
|
| 2191 |
void ITTAPI __itt_frame_end_v3(const __itt_domain *domain, __itt_id *id); |
| 2192 |
|
| 2193 |
|
| 2194 |
|
| 2195 |
|
| 2196 |
|
| 2197 |
|
| 2198 |
|
| 2199 |
|
| 2200 |
|
| 2201 |
|
| 2202 |
|
| 2203 |
|
| 2204 |
|
| 2205 |
|
| 2206 |
void ITTAPI __itt_frame_submit_v3(const __itt_domain *domain, __itt_id *id, |
| 2207 |
__itt_timestamp begin, __itt_timestamp end); |
| 2208 |
|
| 2209 |
|
| 2210 |
#ifndef INTEL_NO_MACRO_BODY |
| 2211 |
#ifndef INTEL_NO_ITTNOTIFY_API |
| 2212 |
ITT_STUBV(ITTAPI, void, frame_begin_v3, (const __itt_domain *domain, __itt_id *id)) |
| 2213 |
ITT_STUBV(ITTAPI, void, frame_end_v3, (const __itt_domain *domain, __itt_id *id)) |
| 2214 |
ITT_STUBV(ITTAPI, void, frame_submit_v3, (const __itt_domain *domain, __itt_id *id, __itt_timestamp begin, __itt_timestamp end)) |
| 2215 |
#define __itt_frame_begin_v3(d,x) ITTNOTIFY_VOID_D1(frame_begin_v3,d,x) |
| 2216 |
#define __itt_frame_begin_v3_ptr ITTNOTIFY_NAME(frame_begin_v3) |
| 2217 |
#define __itt_frame_end_v3(d,x) ITTNOTIFY_VOID_D1(frame_end_v3,d,x) |
| 2218 |
#define __itt_frame_end_v3_ptr ITTNOTIFY_NAME(frame_end_v3) |
| 2219 |
#define __itt_frame_submit_v3(d,x,b,e) ITTNOTIFY_VOID_D3(frame_submit_v3,d,x,b,e) |
| 2220 |
#define __itt_frame_submit_v3_ptr ITTNOTIFY_NAME(frame_submit_v3) |
| 2221 |
#else |
| 2222 |
#define __itt_frame_begin_v3(domain,id) |
| 2223 |
#define __itt_frame_begin_v3_ptr 0 |
| 2224 |
#define __itt_frame_end_v3(domain,id) |
| 2225 |
#define __itt_frame_end_v3_ptr 0 |
| 2226 |
#define __itt_frame_submit_v3(domain,id,begin,end) |
| 2227 |
#define __itt_frame_submit_v3_ptr 0 |
| 2228 |
#endif |
| 2229 |
#else |
| 2230 |
#define __itt_frame_begin_v3_ptr 0 |
| 2231 |
#define __itt_frame_end_v3_ptr 0 |
| 2232 |
#define __itt_frame_submit_v3_ptr 0 |
| 2233 |
#endif |
| 2234 |
|
| 2235 |
|
| 2236 |
|
| 2237 |
|
| 2238 |
|
| 2239 |
|
| 2240 |
|
| 2241 |
|
| 2242 |
|
| 2243 |
|
| 2244 |
|
| 2245 |
|
| 2246 |
|
| 2247 |
|
| 2248 |
|
| 2249 |
|
| 2250 |
|
| 2251 |
|
| 2252 |
|
| 2253 |
void ITTAPI __itt_task_group(const __itt_domain *domain, __itt_id id, __itt_id parentid, __itt_string_handle *name); |
| 2254 |
|
| 2255 |
|
| 2256 |
#ifndef INTEL_NO_MACRO_BODY |
| 2257 |
#ifndef INTEL_NO_ITTNOTIFY_API |
| 2258 |
ITT_STUBV(ITTAPI, void, task_group, (const __itt_domain *domain, __itt_id id, __itt_id parentid, __itt_string_handle *name)) |
| 2259 |
#define __itt_task_group(d,x,y,z) ITTNOTIFY_VOID_D3(task_group,d,x,y,z) |
| 2260 |
#define __itt_task_group_ptr ITTNOTIFY_NAME(task_group) |
| 2261 |
#else |
| 2262 |
#define __itt_task_group(d,x,y,z) |
| 2263 |
#define __itt_task_group_ptr 0 |
| 2264 |
#endif |
| 2265 |
#else |
| 2266 |
#define __itt_task_group_ptr 0 |
| 2267 |
#endif |
| 2268 |
|
| 2269 |
|
| 2270 |
|
| 2271 |
|
| 2272 |
|
| 2273 |
|
| 2274 |
|
| 2275 |
|
| 2276 |
|
| 2277 |
|
| 2278 |
|
| 2279 |
|
| 2280 |
|
| 2281 |
|
| 2282 |
|
| 2283 |
|
| 2284 |
|
| 2285 |
|
| 2286 |
|
| 2287 |
|
| 2288 |
|
| 2289 |
|
| 2290 |
|
| 2291 |
|
| 2292 |
|
| 2293 |
|
| 2294 |
|
| 2295 |
|
| 2296 |
|
| 2297 |
|
| 2298 |
|
| 2299 |
void ITTAPI __itt_task_begin(const __itt_domain *domain, __itt_id taskid, __itt_id parentid, __itt_string_handle *name); |
| 2300 |
|
| 2301 |
|
| 2302 |
|
| 2303 |
|
| 2304 |
|
| 2305 |
|
| 2306 |
|
| 2307 |
|
| 2308 |
|
| 2309 |
void ITTAPI __itt_task_begin_fn(const __itt_domain *domain, __itt_id taskid, __itt_id parentid, void* fn); |
| 2310 |
|
| 2311 |
|
| 2312 |
|
| 2313 |
|
| 2314 |
|
| 2315 |
|
| 2316 |
void ITTAPI __itt_task_end(const __itt_domain *domain); |
| 2317 |
|
| 2318 |
|
| 2319 |
|
| 2320 |
|
| 2321 |
|
| 2322 |
|
| 2323 |
|
| 2324 |
|
| 2325 |
|
| 2326 |
void ITTAPI __itt_task_begin_overlapped(const __itt_domain* domain, __itt_id taskid, __itt_id parentid, __itt_string_handle* name); |
| 2327 |
|
| 2328 |
|
| 2329 |
|
| 2330 |
|
| 2331 |
|
| 2332 |
|
| 2333 |
|
| 2334 |
void ITTAPI __itt_task_end_overlapped(const __itt_domain *domain, __itt_id taskid); |
| 2335 |
|
| 2336 |
|
| 2337 |
#ifndef INTEL_NO_MACRO_BODY |
| 2338 |
#ifndef INTEL_NO_ITTNOTIFY_API |
| 2339 |
ITT_STUBV(ITTAPI, void, task_begin, (const __itt_domain *domain, __itt_id id, __itt_id parentid, __itt_string_handle *name)) |
| 2340 |
ITT_STUBV(ITTAPI, void, task_begin_fn, (const __itt_domain *domain, __itt_id id, __itt_id parentid, void* fn)) |
| 2341 |
ITT_STUBV(ITTAPI, void, task_end, (const __itt_domain *domain)) |
| 2342 |
ITT_STUBV(ITTAPI, void, task_begin_overlapped, (const __itt_domain *domain, __itt_id taskid, __itt_id parentid, __itt_string_handle *name)) |
| 2343 |
ITT_STUBV(ITTAPI, void, task_end_overlapped, (const __itt_domain *domain, __itt_id taskid)) |
| 2344 |
#define __itt_task_begin(d,x,y,z) ITTNOTIFY_VOID_D3(task_begin,d,x,y,z) |
| 2345 |
#define __itt_task_begin_ptr ITTNOTIFY_NAME(task_begin) |
| 2346 |
#define __itt_task_begin_fn(d,x,y,z) ITTNOTIFY_VOID_D3(task_begin_fn,d,x,y,z) |
| 2347 |
#define __itt_task_begin_fn_ptr ITTNOTIFY_NAME(task_begin_fn) |
| 2348 |
#define __itt_task_end(d) ITTNOTIFY_VOID_D0(task_end,d) |
| 2349 |
#define __itt_task_end_ptr ITTNOTIFY_NAME(task_end) |
| 2350 |
#define __itt_task_begin_overlapped(d,x,y,z) ITTNOTIFY_VOID_D3(task_begin_overlapped,d,x,y,z) |
| 2351 |
#define __itt_task_begin_overlapped_ptr ITTNOTIFY_NAME(task_begin_overlapped) |
| 2352 |
#define __itt_task_end_overlapped(d,x) ITTNOTIFY_VOID_D1(task_end_overlapped,d,x) |
| 2353 |
#define __itt_task_end_overlapped_ptr ITTNOTIFY_NAME(task_end_overlapped) |
| 2354 |
#else |
| 2355 |
#define __itt_task_begin(domain,id,parentid,name) |
| 2356 |
#define __itt_task_begin_ptr 0 |
| 2357 |
#define __itt_task_begin_fn(domain,id,parentid,fn) |
| 2358 |
#define __itt_task_begin_fn_ptr 0 |
| 2359 |
#define __itt_task_end(domain) |
| 2360 |
#define __itt_task_end_ptr 0 |
| 2361 |
#define __itt_task_begin_overlapped(domain,taskid,parentid,name) |
| 2362 |
#define __itt_task_begin_overlapped_ptr 0 |
| 2363 |
#define __itt_task_end_overlapped(domain,taskid) |
| 2364 |
#define __itt_task_end_overlapped_ptr 0 |
| 2365 |
#endif |
| 2366 |
#else |
| 2367 |
#define __itt_task_begin_ptr 0 |
| 2368 |
#define __itt_task_begin_fn_ptr 0 |
| 2369 |
#define __itt_task_end_ptr 0 |
| 2370 |
#define __itt_task_begin_overlapped_ptr 0 |
| 2371 |
#define __itt_task_end_overlapped_ptr 0 |
| 2372 |
#endif |
| 2373 |
|
| 2374 |
|
| 2375 |
|
| 2376 |
|
| 2377 |
|
| 2378 |
|
| 2379 |
|
| 2380 |
|
| 2381 |
|
| 2382 |
|
| 2383 |
|
| 2384 |
|
| 2385 |
|
| 2386 |
|
| 2387 |
|
| 2388 |
|
| 2389 |
typedef enum |
| 2390 |
{ |
| 2391 |
__itt_scope_unknown = 0, |
| 2392 |
__itt_scope_global, |
| 2393 |
__itt_scope_track_group, |
| 2394 |
__itt_scope_track, |
| 2395 |
__itt_scope_task, |
| 2396 |
__itt_scope_marker |
| 2397 |
} __itt_scope; |
| 2398 |
|
| 2399 |
|
| 2400 |
#define __itt_marker_scope_unknown __itt_scope_unknown |
| 2401 |
#define __itt_marker_scope_global __itt_scope_global |
| 2402 |
#define __itt_marker_scope_process __itt_scope_track_group |
| 2403 |
#define __itt_marker_scope_thread __itt_scope_track |
| 2404 |
#define __itt_marker_scope_task __itt_scope_task |
| 2405 |
|
| 2406 |
|
| 2407 |
|
| 2408 |
|
| 2409 |
|
| 2410 |
|
| 2411 |
|
| 2412 |
|
| 2413 |
|
| 2414 |
|
| 2415 |
void ITTAPI __itt_marker(const __itt_domain *domain, __itt_id id, __itt_string_handle *name, __itt_scope scope); |
| 2416 |
|
| 2417 |
|
| 2418 |
#ifndef INTEL_NO_MACRO_BODY |
| 2419 |
#ifndef INTEL_NO_ITTNOTIFY_API |
| 2420 |
ITT_STUBV(ITTAPI, void, marker, (const __itt_domain *domain, __itt_id id, __itt_string_handle *name, __itt_scope scope)) |
| 2421 |
#define __itt_marker(d,x,y,z) ITTNOTIFY_VOID_D3(marker,d,x,y,z) |
| 2422 |
#define __itt_marker_ptr ITTNOTIFY_NAME(marker) |
| 2423 |
#else |
| 2424 |
#define __itt_marker(domain,id,name,scope) |
| 2425 |
#define __itt_marker_ptr 0 |
| 2426 |
#endif |
| 2427 |
#else |
| 2428 |
#define __itt_marker_ptr 0 |
| 2429 |
#endif |
| 2430 |
|
| 2431 |
|
| 2432 |
|
| 2433 |
|
| 2434 |
|
| 2435 |
|
| 2436 |
|
| 2437 |
|
| 2438 |
|
| 2439 |
|
| 2440 |
|
| 2441 |
|
| 2442 |
|
| 2443 |
|
| 2444 |
|
| 2445 |
|
| 2446 |
|
| 2447 |
|
| 2448 |
|
| 2449 |
|
| 2450 |
|
| 2451 |
typedef enum { |
| 2452 |
__itt_metadata_unknown = 0, |
| 2453 |
__itt_metadata_u64, |
| 2454 |
__itt_metadata_s64, |
| 2455 |
__itt_metadata_u32, |
| 2456 |
__itt_metadata_s32, |
| 2457 |
__itt_metadata_u16, |
| 2458 |
__itt_metadata_s16, |
| 2459 |
__itt_metadata_float, |
| 2460 |
__itt_metadata_double |
| 2461 |
} __itt_metadata_type; |
| 2462 |
|
| 2463 |
|
| 2464 |
|
| 2465 |
|
| 2466 |
|
| 2467 |
|
| 2468 |
|
| 2469 |
|
| 2470 |
|
| 2471 |
|
| 2472 |
|
| 2473 |
void ITTAPI __itt_metadata_add(const __itt_domain *domain, __itt_id id, __itt_string_handle *key, __itt_metadata_type type, size_t count, void *data); |
| 2474 |
|
| 2475 |
|
| 2476 |
#ifndef INTEL_NO_MACRO_BODY |
| 2477 |
#ifndef INTEL_NO_ITTNOTIFY_API |
| 2478 |
ITT_STUBV(ITTAPI, void, metadata_add, (const __itt_domain *domain, __itt_id id, __itt_string_handle *key, __itt_metadata_type type, size_t count, void *data)) |
| 2479 |
#define __itt_metadata_add(d,x,y,z,a,b) ITTNOTIFY_VOID_D5(metadata_add,d,x,y,z,a,b) |
| 2480 |
#define __itt_metadata_add_ptr ITTNOTIFY_NAME(metadata_add) |
| 2481 |
#else |
| 2482 |
#define __itt_metadata_add(d,x,y,z,a,b) |
| 2483 |
#define __itt_metadata_add_ptr 0 |
| 2484 |
#endif |
| 2485 |
#else |
| 2486 |
#define __itt_metadata_add_ptr 0 |
| 2487 |
#endif |
| 2488 |
|
| 2489 |
|
| 2490 |
|
| 2491 |
|
| 2492 |
|
| 2493 |
|
| 2494 |
|
| 2495 |
|
| 2496 |
|
| 2497 |
|
| 2498 |
|
| 2499 |
#if ITT_PLATFORM==ITT_PLATFORM_WIN |
| 2500 |
void ITTAPI __itt_metadata_str_addA(const __itt_domain *domain, __itt_id id, __itt_string_handle *key, const char *data, size_t length); |
| 2501 |
void ITTAPI __itt_metadata_str_addW(const __itt_domain *domain, __itt_id id, __itt_string_handle *key, const wchar_t *data, size_t length); |
| 2502 |
#if defined(UNICODE) || defined(_UNICODE) |
| 2503 |
# define __itt_metadata_str_add __itt_metadata_str_addW |
| 2504 |
# define __itt_metadata_str_add_ptr __itt_metadata_str_addW_ptr |
| 2505 |
#else |
| 2506 |
# define __itt_metadata_str_add __itt_metadata_str_addA |
| 2507 |
# define __itt_metadata_str_add_ptr __itt_metadata_str_addA_ptr |
| 2508 |
#endif |
| 2509 |
#else |
| 2510 |
void ITTAPI __itt_metadata_str_add(const __itt_domain *domain, __itt_id id, __itt_string_handle *key, const char *data, size_t length); |
| 2511 |
#endif |
| 2512 |
|
| 2513 |
|
| 2514 |
#ifndef INTEL_NO_MACRO_BODY |
| 2515 |
#ifndef INTEL_NO_ITTNOTIFY_API |
| 2516 |
#if ITT_PLATFORM==ITT_PLATFORM_WIN |
| 2517 |
ITT_STUBV(ITTAPI, void, metadata_str_addA, (const __itt_domain *domain, __itt_id id, __itt_string_handle *key, const char *data, size_t length)) |
| 2518 |
ITT_STUBV(ITTAPI, void, metadata_str_addW, (const __itt_domain *domain, __itt_id id, __itt_string_handle *key, const wchar_t *data, size_t length)) |
| 2519 |
#else |
| 2520 |
ITT_STUBV(ITTAPI, void, metadata_str_add, (const __itt_domain *domain, __itt_id id, __itt_string_handle *key, const char *data, size_t length)) |
| 2521 |
#endif |
| 2522 |
#if ITT_PLATFORM==ITT_PLATFORM_WIN |
| 2523 |
#define __itt_metadata_str_addA(d,x,y,z,a) ITTNOTIFY_VOID_D4(metadata_str_addA,d,x,y,z,a) |
| 2524 |
#define __itt_metadata_str_addA_ptr ITTNOTIFY_NAME(metadata_str_addA) |
| 2525 |
#define __itt_metadata_str_addW(d,x,y,z,a) ITTNOTIFY_VOID_D4(metadata_str_addW,d,x,y,z,a) |
| 2526 |
#define __itt_metadata_str_addW_ptr ITTNOTIFY_NAME(metadata_str_addW) |
| 2527 |
#else |
| 2528 |
#define __itt_metadata_str_add(d,x,y,z,a) ITTNOTIFY_VOID_D4(metadata_str_add,d,x,y,z,a) |
| 2529 |
#define __itt_metadata_str_add_ptr ITTNOTIFY_NAME(metadata_str_add) |
| 2530 |
#endif |
| 2531 |
#else |
| 2532 |
#if ITT_PLATFORM==ITT_PLATFORM_WIN |
| 2533 |
#define __itt_metadata_str_addA(d,x,y,z,a) |
| 2534 |
#define __itt_metadata_str_addA_ptr 0 |
| 2535 |
#define __itt_metadata_str_addW(d,x,y,z,a) |
| 2536 |
#define __itt_metadata_str_addW_ptr 0 |
| 2537 |
#else |
| 2538 |
#define __itt_metadata_str_add(d,x,y,z,a) |
| 2539 |
#define __itt_metadata_str_add_ptr 0 |
| 2540 |
#endif |
| 2541 |
#endif |
| 2542 |
#else |
| 2543 |
#if ITT_PLATFORM==ITT_PLATFORM_WIN |
| 2544 |
#define __itt_metadata_str_addA_ptr 0 |
| 2545 |
#define __itt_metadata_str_addW_ptr 0 |
| 2546 |
#else |
| 2547 |
#define __itt_metadata_str_add_ptr 0 |
| 2548 |
#endif |
| 2549 |
#endif |
| 2550 |
|
| 2551 |
|
| 2552 |
|
| 2553 |
|
| 2554 |
|
| 2555 |
|
| 2556 |
|
| 2557 |
|
| 2558 |
|
| 2559 |
|
| 2560 |
|
| 2561 |
|
| 2562 |
|
| 2563 |
|
| 2564 |
|
| 2565 |
void ITTAPI __itt_metadata_add_with_scope(const __itt_domain *domain, __itt_scope scope, __itt_string_handle *key, __itt_metadata_type type, size_t count, void *data); |
| 2566 |
|
| 2567 |
|
| 2568 |
#ifndef INTEL_NO_MACRO_BODY |
| 2569 |
#ifndef INTEL_NO_ITTNOTIFY_API |
| 2570 |
ITT_STUBV(ITTAPI, void, metadata_add_with_scope, (const __itt_domain *domain, __itt_scope scope, __itt_string_handle *key, __itt_metadata_type type, size_t count, void *data)) |
| 2571 |
#define __itt_metadata_add_with_scope(d,x,y,z,a,b) ITTNOTIFY_VOID_D5(metadata_add_with_scope,d,x,y,z,a,b) |
| 2572 |
#define __itt_metadata_add_with_scope_ptr ITTNOTIFY_NAME(metadata_add_with_scope) |
| 2573 |
#else |
| 2574 |
#define __itt_metadata_add_with_scope(d,x,y,z,a,b) |
| 2575 |
#define __itt_metadata_add_with_scope_ptr 0 |
| 2576 |
#endif |
| 2577 |
#else |
| 2578 |
#define __itt_metadata_add_with_scope_ptr 0 |
| 2579 |
#endif |
| 2580 |
|
| 2581 |
|
| 2582 |
|
| 2583 |
|
| 2584 |
|
| 2585 |
|
| 2586 |
|
| 2587 |
|
| 2588 |
|
| 2589 |
|
| 2590 |
|
| 2591 |
|
| 2592 |
|
| 2593 |
|
| 2594 |
#if ITT_PLATFORM==ITT_PLATFORM_WIN |
| 2595 |
void ITTAPI __itt_metadata_str_add_with_scopeA(const __itt_domain *domain, __itt_scope scope, __itt_string_handle *key, const char *data, size_t length); |
| 2596 |
void ITTAPI __itt_metadata_str_add_with_scopeW(const __itt_domain *domain, __itt_scope scope, __itt_string_handle *key, const wchar_t *data, size_t length); |
| 2597 |
#if defined(UNICODE) || defined(_UNICODE) |
| 2598 |
# define __itt_metadata_str_add_with_scope __itt_metadata_str_add_with_scopeW |
| 2599 |
# define __itt_metadata_str_add_with_scope_ptr __itt_metadata_str_add_with_scopeW_ptr |
| 2600 |
#else |
| 2601 |
# define __itt_metadata_str_add_with_scope __itt_metadata_str_add_with_scopeA |
| 2602 |
# define __itt_metadata_str_add_with_scope_ptr __itt_metadata_str_add_with_scopeA_ptr |
| 2603 |
#endif |
| 2604 |
#else |
| 2605 |
void ITTAPI __itt_metadata_str_add_with_scope(const __itt_domain *domain, __itt_scope scope, __itt_string_handle *key, const char *data, size_t length); |
| 2606 |
#endif |
| 2607 |
|
| 2608 |
|
| 2609 |
#ifndef INTEL_NO_MACRO_BODY |
| 2610 |
#ifndef INTEL_NO_ITTNOTIFY_API |
| 2611 |
#if ITT_PLATFORM==ITT_PLATFORM_WIN |
| 2612 |
ITT_STUBV(ITTAPI, void, metadata_str_add_with_scopeA, (const __itt_domain *domain, __itt_scope scope, __itt_string_handle *key, const char *data, size_t length)) |
| 2613 |
ITT_STUBV(ITTAPI, void, metadata_str_add_with_scopeW, (const __itt_domain *domain, __itt_scope scope, __itt_string_handle *key, const wchar_t *data, size_t length)) |
| 2614 |
#else |
| 2615 |
ITT_STUBV(ITTAPI, void, metadata_str_add_with_scope, (const __itt_domain *domain, __itt_scope scope, __itt_string_handle *key, const char *data, size_t length)) |
| 2616 |
#endif |
| 2617 |
#if ITT_PLATFORM==ITT_PLATFORM_WIN |
| 2618 |
#define __itt_metadata_str_add_with_scopeA(d,x,y,z,a) ITTNOTIFY_VOID_D4(metadata_str_add_with_scopeA,d,x,y,z,a) |
| 2619 |
#define __itt_metadata_str_add_with_scopeA_ptr ITTNOTIFY_NAME(metadata_str_add_with_scopeA) |
| 2620 |
#define __itt_metadata_str_add_with_scopeW(d,x,y,z,a) ITTNOTIFY_VOID_D4(metadata_str_add_with_scopeW,d,x,y,z,a) |
| 2621 |
#define __itt_metadata_str_add_with_scopeW_ptr ITTNOTIFY_NAME(metadata_str_add_with_scopeW) |
| 2622 |
#else |
| 2623 |
#define __itt_metadata_str_add_with_scope(d,x,y,z,a) ITTNOTIFY_VOID_D4(metadata_str_add_with_scope,d,x,y,z,a) |
| 2624 |
#define __itt_metadata_str_add_with_scope_ptr ITTNOTIFY_NAME(metadata_str_add_with_scope) |
| 2625 |
#endif |
| 2626 |
#else |
| 2627 |
#if ITT_PLATFORM==ITT_PLATFORM_WIN |
| 2628 |
#define __itt_metadata_str_add_with_scopeA(d,x,y,z,a) |
| 2629 |
#define __itt_metadata_str_add_with_scopeA_ptr 0 |
| 2630 |
#define __itt_metadata_str_add_with_scopeW(d,x,y,z,a) |
| 2631 |
#define __itt_metadata_str_add_with_scopeW_ptr 0 |
| 2632 |
#else |
| 2633 |
#define __itt_metadata_str_add_with_scope(d,x,y,z,a) |
| 2634 |
#define __itt_metadata_str_add_with_scope_ptr 0 |
| 2635 |
#endif |
| 2636 |
#endif |
| 2637 |
#else |
| 2638 |
#if ITT_PLATFORM==ITT_PLATFORM_WIN |
| 2639 |
#define __itt_metadata_str_add_with_scopeA_ptr 0 |
| 2640 |
#define __itt_metadata_str_add_with_scopeW_ptr 0 |
| 2641 |
#else |
| 2642 |
#define __itt_metadata_str_add_with_scope_ptr 0 |
| 2643 |
#endif |
| 2644 |
#endif |
| 2645 |
|
| 2646 |
|
| 2647 |
|
| 2648 |
|
| 2649 |
|
| 2650 |
|
| 2651 |
|
| 2652 |
|
| 2653 |
|
| 2654 |
|
| 2655 |
|
| 2656 |
|
| 2657 |
|
| 2658 |
|
| 2659 |
|
| 2660 |
|
| 2661 |
|
| 2662 |
|
| 2663 |
|
| 2664 |
|
| 2665 |
|
| 2666 |
typedef enum |
| 2667 |
{ |
| 2668 |
__itt_relation_is_unknown = 0, |
| 2669 |
__itt_relation_is_dependent_on, |
| 2670 |
__itt_relation_is_sibling_of, |
| 2671 |
__itt_relation_is_parent_of, |
| 2672 |
__itt_relation_is_continuation_of, |
| 2673 |
__itt_relation_is_child_of, |
| 2674 |
__itt_relation_is_continued_by, |
| 2675 |
__itt_relation_is_predecessor_to |
| 2676 |
} __itt_relation; |
| 2677 |
|
| 2678 |
|
| 2679 |
|
| 2680 |
|
| 2681 |
|
| 2682 |
|
| 2683 |
|
| 2684 |
|
| 2685 |
|
| 2686 |
void ITTAPI __itt_relation_add_to_current(const __itt_domain *domain, __itt_relation relation, __itt_id tail); |
| 2687 |
|
| 2688 |
|
| 2689 |
|
| 2690 |
|
| 2691 |
|
| 2692 |
|
| 2693 |
|
| 2694 |
|
| 2695 |
|
| 2696 |
void ITTAPI __itt_relation_add(const __itt_domain *domain, __itt_id head, __itt_relation relation, __itt_id tail); |
| 2697 |
|
| 2698 |
|
| 2699 |
#ifndef INTEL_NO_MACRO_BODY |
| 2700 |
#ifndef INTEL_NO_ITTNOTIFY_API |
| 2701 |
ITT_STUBV(ITTAPI, void, relation_add_to_current, (const __itt_domain *domain, __itt_relation relation, __itt_id tail)) |
| 2702 |
ITT_STUBV(ITTAPI, void, relation_add, (const __itt_domain *domain, __itt_id head, __itt_relation relation, __itt_id tail)) |
| 2703 |
#define __itt_relation_add_to_current(d,x,y) ITTNOTIFY_VOID_D2(relation_add_to_current,d,x,y) |
| 2704 |
#define __itt_relation_add_to_current_ptr ITTNOTIFY_NAME(relation_add_to_current) |
| 2705 |
#define __itt_relation_add(d,x,y,z) ITTNOTIFY_VOID_D3(relation_add,d,x,y,z) |
| 2706 |
#define __itt_relation_add_ptr ITTNOTIFY_NAME(relation_add) |
| 2707 |
#else |
| 2708 |
#define __itt_relation_add_to_current(d,x,y) |
| 2709 |
#define __itt_relation_add_to_current_ptr 0 |
| 2710 |
#define __itt_relation_add(d,x,y,z) |
| 2711 |
#define __itt_relation_add_ptr 0 |
| 2712 |
#endif |
| 2713 |
#else |
| 2714 |
#define __itt_relation_add_to_current_ptr 0 |
| 2715 |
#define __itt_relation_add_ptr 0 |
| 2716 |
#endif |
| 2717 |
|
| 2718 |
|
| 2719 |
|
| 2720 |
|
| 2721 |
#pragma pack(push, 8) |
| 2722 |
|
| 2723 |
typedef struct ___itt_clock_info |
| 2724 |
{ |
| 2725 |
unsigned long long clock_freq; |
| 2726 |
unsigned long long clock_base; |
| 2727 |
} __itt_clock_info; |
| 2728 |
|
| 2729 |
#pragma pack(pop) |
| 2730 |
|
| 2731 |
|
| 2732 |
|
| 2733 |
typedef void (ITTAPI *__itt_get_clock_info_fn)(__itt_clock_info* clock_info, void* data); |
| 2734 |
|
| 2735 |
|
| 2736 |
|
| 2737 |
#pragma pack(push, 8) |
| 2738 |
|
| 2739 |
typedef struct ___itt_clock_domain |
| 2740 |
{ |
| 2741 |
__itt_clock_info info; |
| 2742 |
__itt_get_clock_info_fn fn; |
| 2743 |
void* fn_data; |
| 2744 |
int extra1; |
| 2745 |
void* extra2; |
| 2746 |
struct ___itt_clock_domain* next; |
| 2747 |
} __itt_clock_domain; |
| 2748 |
|
| 2749 |
#pragma pack(pop) |
| 2750 |
|
| 2751 |
|
| 2752 |
|
| 2753 |
|
| 2754 |
|
| 2755 |
|
| 2756 |
|
| 2757 |
|
| 2758 |
|
| 2759 |
|
| 2760 |
|
| 2761 |
|
| 2762 |
|
| 2763 |
|
| 2764 |
|
| 2765 |
__itt_clock_domain* ITTAPI __itt_clock_domain_create(__itt_get_clock_info_fn fn, void* fn_data); |
| 2766 |
|
| 2767 |
|
| 2768 |
#ifndef INTEL_NO_MACRO_BODY |
| 2769 |
#ifndef INTEL_NO_ITTNOTIFY_API |
| 2770 |
ITT_STUB(ITTAPI, __itt_clock_domain*, clock_domain_create, (__itt_get_clock_info_fn fn, void* fn_data)) |
| 2771 |
#define __itt_clock_domain_create ITTNOTIFY_DATA(clock_domain_create) |
| 2772 |
#define __itt_clock_domain_create_ptr ITTNOTIFY_NAME(clock_domain_create) |
| 2773 |
#else |
| 2774 |
#define __itt_clock_domain_create(fn,fn_data) (__itt_clock_domain*)0 |
| 2775 |
#define __itt_clock_domain_create_ptr 0 |
| 2776 |
#endif |
| 2777 |
#else |
| 2778 |
#define __itt_clock_domain_create_ptr 0 |
| 2779 |
#endif |
| 2780 |
|
| 2781 |
|
| 2782 |
|
| 2783 |
|
| 2784 |
|
| 2785 |
|
| 2786 |
void ITTAPI __itt_clock_domain_reset(void); |
| 2787 |
|
| 2788 |
|
| 2789 |
#ifndef INTEL_NO_MACRO_BODY |
| 2790 |
#ifndef INTEL_NO_ITTNOTIFY_API |
| 2791 |
ITT_STUBV(ITTAPI, void, clock_domain_reset, (void)) |
| 2792 |
#define __itt_clock_domain_reset ITTNOTIFY_VOID(clock_domain_reset) |
| 2793 |
#define __itt_clock_domain_reset_ptr ITTNOTIFY_NAME(clock_domain_reset) |
| 2794 |
#else |
| 2795 |
#define __itt_clock_domain_reset() |
| 2796 |
#define __itt_clock_domain_reset_ptr 0 |
| 2797 |
#endif |
| 2798 |
#else |
| 2799 |
#define __itt_clock_domain_reset_ptr 0 |
| 2800 |
#endif |
| 2801 |
|
| 2802 |
|
| 2803 |
|
| 2804 |
|
| 2805 |
|
| 2806 |
|
| 2807 |
|
| 2808 |
|
| 2809 |
|
| 2810 |
|
| 2811 |
|
| 2812 |
|
| 2813 |
|
| 2814 |
void ITTAPI __itt_id_create_ex(const __itt_domain* domain, __itt_clock_domain* clock_domain, unsigned long long timestamp, __itt_id id); |
| 2815 |
|
| 2816 |
|
| 2817 |
|
| 2818 |
|
| 2819 |
|
| 2820 |
|
| 2821 |
|
| 2822 |
|
| 2823 |
|
| 2824 |
|
| 2825 |
|
| 2826 |
|
| 2827 |
void ITTAPI __itt_id_destroy_ex(const __itt_domain* domain, __itt_clock_domain* clock_domain, unsigned long long timestamp, __itt_id id); |
| 2828 |
|
| 2829 |
|
| 2830 |
#ifndef INTEL_NO_MACRO_BODY |
| 2831 |
#ifndef INTEL_NO_ITTNOTIFY_API |
| 2832 |
ITT_STUBV(ITTAPI, void, id_create_ex, (const __itt_domain *domain, __itt_clock_domain* clock_domain, unsigned long long timestamp, __itt_id id)) |
| 2833 |
ITT_STUBV(ITTAPI, void, id_destroy_ex, (const __itt_domain *domain, __itt_clock_domain* clock_domain, unsigned long long timestamp, __itt_id id)) |
| 2834 |
#define __itt_id_create_ex(d,x,y,z) ITTNOTIFY_VOID_D3(id_create_ex,d,x,y,z) |
| 2835 |
#define __itt_id_create_ex_ptr ITTNOTIFY_NAME(id_create_ex) |
| 2836 |
#define __itt_id_destroy_ex(d,x,y,z) ITTNOTIFY_VOID_D3(id_destroy_ex,d,x,y,z) |
| 2837 |
#define __itt_id_destroy_ex_ptr ITTNOTIFY_NAME(id_destroy_ex) |
| 2838 |
#else |
| 2839 |
#define __itt_id_create_ex(domain,clock_domain,timestamp,id) |
| 2840 |
#define __itt_id_create_ex_ptr 0 |
| 2841 |
#define __itt_id_destroy_ex(domain,clock_domain,timestamp,id) |
| 2842 |
#define __itt_id_destroy_ex_ptr 0 |
| 2843 |
#endif |
| 2844 |
#else |
| 2845 |
#define __itt_id_create_ex_ptr 0 |
| 2846 |
#define __itt_id_destroy_ex_ptr 0 |
| 2847 |
#endif |
| 2848 |
|
| 2849 |
|
| 2850 |
|
| 2851 |
|
| 2852 |
|
| 2853 |
|
| 2854 |
|
| 2855 |
|
| 2856 |
|
| 2857 |
|
| 2858 |
|
| 2859 |
|
| 2860 |
void ITTAPI __itt_task_begin_ex(const __itt_domain* domain, __itt_clock_domain* clock_domain, unsigned long long timestamp, __itt_id taskid, __itt_id parentid, __itt_string_handle* name); |
| 2861 |
|
| 2862 |
|
| 2863 |
|
| 2864 |
|
| 2865 |
|
| 2866 |
|
| 2867 |
|
| 2868 |
|
| 2869 |
|
| 2870 |
|
| 2871 |
|
| 2872 |
void ITTAPI __itt_task_begin_fn_ex(const __itt_domain* domain, __itt_clock_domain* clock_domain, unsigned long long timestamp, __itt_id taskid, __itt_id parentid, void* fn); |
| 2873 |
|
| 2874 |
|
| 2875 |
|
| 2876 |
|
| 2877 |
|
| 2878 |
|
| 2879 |
|
| 2880 |
|
| 2881 |
void ITTAPI __itt_task_end_ex(const __itt_domain* domain, __itt_clock_domain* clock_domain, unsigned long long timestamp); |
| 2882 |
|
| 2883 |
|
| 2884 |
#ifndef INTEL_NO_MACRO_BODY |
| 2885 |
#ifndef INTEL_NO_ITTNOTIFY_API |
| 2886 |
ITT_STUBV(ITTAPI, void, task_begin_ex, (const __itt_domain *domain, __itt_clock_domain* clock_domain, unsigned long long timestamp, __itt_id id, __itt_id parentid, __itt_string_handle *name)) |
| 2887 |
ITT_STUBV(ITTAPI, void, task_begin_fn_ex, (const __itt_domain *domain, __itt_clock_domain* clock_domain, unsigned long long timestamp, __itt_id id, __itt_id parentid, void* fn)) |
| 2888 |
ITT_STUBV(ITTAPI, void, task_end_ex, (const __itt_domain *domain, __itt_clock_domain* clock_domain, unsigned long long timestamp)) |
| 2889 |
#define __itt_task_begin_ex(d,x,y,z,a,b) ITTNOTIFY_VOID_D5(task_begin_ex,d,x,y,z,a,b) |
| 2890 |
#define __itt_task_begin_ex_ptr ITTNOTIFY_NAME(task_begin_ex) |
| 2891 |
#define __itt_task_begin_fn_ex(d,x,y,z,a,b) ITTNOTIFY_VOID_D5(task_begin_fn_ex,d,x,y,z,a,b) |
| 2892 |
#define __itt_task_begin_fn_ex_ptr ITTNOTIFY_NAME(task_begin_fn_ex) |
| 2893 |
#define __itt_task_end_ex(d,x,y) ITTNOTIFY_VOID_D2(task_end_ex,d,x,y) |
| 2894 |
#define __itt_task_end_ex_ptr ITTNOTIFY_NAME(task_end_ex) |
| 2895 |
#else |
| 2896 |
#define __itt_task_begin_ex(domain,clock_domain,timestamp,id,parentid,name) |
| 2897 |
#define __itt_task_begin_ex_ptr 0 |
| 2898 |
#define __itt_task_begin_fn_ex(domain,clock_domain,timestamp,id,parentid,fn) |
| 2899 |
#define __itt_task_begin_fn_ex_ptr 0 |
| 2900 |
#define __itt_task_end_ex(domain,clock_domain,timestamp) |
| 2901 |
#define __itt_task_end_ex_ptr 0 |
| 2902 |
#endif |
| 2903 |
#else |
| 2904 |
#define __itt_task_begin_ex_ptr 0 |
| 2905 |
#define __itt_task_begin_fn_ex_ptr 0 |
| 2906 |
#define __itt_task_end_ex_ptr 0 |
| 2907 |
#endif |
| 2908 |
|
| 2909 |
|
| 2910 |
|
| 2911 |
|
| 2912 |
|
| 2913 |
|
| 2914 |
|
| 2915 |
|
| 2916 |
|
| 2917 |
|
| 2918 |
|
| 2919 |
|
| 2920 |
|
| 2921 |
|
| 2922 |
|
| 2923 |
|
| 2924 |
|
| 2925 |
typedef struct ___itt_counter* __itt_counter; |
| 2926 |
|
| 2927 |
|
| 2928 |
|
| 2929 |
|
| 2930 |
|
| 2931 |
|
| 2932 |
|
| 2933 |
|
| 2934 |
|
| 2935 |
|
| 2936 |
#if ITT_PLATFORM==ITT_PLATFORM_WIN |
| 2937 |
__itt_counter ITTAPI __itt_counter_createA(const char *name, const char *domain); |
| 2938 |
__itt_counter ITTAPI __itt_counter_createW(const wchar_t *name, const wchar_t *domain); |
| 2939 |
#if defined(UNICODE) || defined(_UNICODE) |
| 2940 |
# define __itt_counter_create __itt_counter_createW |
| 2941 |
# define __itt_counter_create_ptr __itt_counter_createW_ptr |
| 2942 |
#else |
| 2943 |
# define __itt_counter_create __itt_counter_createA |
| 2944 |
# define __itt_counter_create_ptr __itt_counter_createA_ptr |
| 2945 |
#endif |
| 2946 |
#else |
| 2947 |
__itt_counter ITTAPI __itt_counter_create(const char *name, const char *domain); |
| 2948 |
#endif |
| 2949 |
|
| 2950 |
#ifndef INTEL_NO_MACRO_BODY |
| 2951 |
#ifndef INTEL_NO_ITTNOTIFY_API |
| 2952 |
#if ITT_PLATFORM==ITT_PLATFORM_WIN |
| 2953 |
ITT_STUB(ITTAPI, __itt_counter, counter_createA, (const char *name, const char *domain)) |
| 2954 |
ITT_STUB(ITTAPI, __itt_counter, counter_createW, (const wchar_t *name, const wchar_t *domain)) |
| 2955 |
#else |
| 2956 |
ITT_STUB(ITTAPI, __itt_counter, counter_create, (const char *name, const char *domain)) |
| 2957 |
#endif |
| 2958 |
#if ITT_PLATFORM==ITT_PLATFORM_WIN |
| 2959 |
#define __itt_counter_createA ITTNOTIFY_DATA(counter_createA) |
| 2960 |
#define __itt_counter_createA_ptr ITTNOTIFY_NAME(counter_createA) |
| 2961 |
#define __itt_counter_createW ITTNOTIFY_DATA(counter_createW) |
| 2962 |
#define __itt_counter_createW_ptr ITTNOTIFY_NAME(counter_createW) |
| 2963 |
#else |
| 2964 |
#define __itt_counter_create ITTNOTIFY_DATA(counter_create) |
| 2965 |
#define __itt_counter_create_ptr ITTNOTIFY_NAME(counter_create) |
| 2966 |
#endif |
| 2967 |
#else |
| 2968 |
#if ITT_PLATFORM==ITT_PLATFORM_WIN |
| 2969 |
#define __itt_counter_createA(name, domain) |
| 2970 |
#define __itt_counter_createA_ptr 0 |
| 2971 |
#define __itt_counter_createW(name, domain) |
| 2972 |
#define __itt_counter_createW_ptr 0 |
| 2973 |
#else |
| 2974 |
#define __itt_counter_create(name, domain) |
| 2975 |
#define __itt_counter_create_ptr 0 |
| 2976 |
#endif |
| 2977 |
#endif |
| 2978 |
#else |
| 2979 |
#if ITT_PLATFORM==ITT_PLATFORM_WIN |
| 2980 |
#define __itt_counter_createA_ptr 0 |
| 2981 |
#define __itt_counter_createW_ptr 0 |
| 2982 |
#else |
| 2983 |
#define __itt_counter_create_ptr 0 |
| 2984 |
#endif |
| 2985 |
#endif |
| 2986 |
|
| 2987 |
|
| 2988 |
|
| 2989 |
|
| 2990 |
|
| 2991 |
|
| 2992 |
|
| 2993 |
void ITTAPI __itt_counter_inc(__itt_counter id); |
| 2994 |
|
| 2995 |
#ifndef INTEL_NO_MACRO_BODY |
| 2996 |
#ifndef INTEL_NO_ITTNOTIFY_API |
| 2997 |
ITT_STUBV(ITTAPI, void, counter_inc, (__itt_counter id)) |
| 2998 |
#define __itt_counter_inc ITTNOTIFY_VOID(counter_inc) |
| 2999 |
#define __itt_counter_inc_ptr ITTNOTIFY_NAME(counter_inc) |
| 3000 |
#else |
| 3001 |
#define __itt_counter_inc(id) |
| 3002 |
#define __itt_counter_inc_ptr 0 |
| 3003 |
#endif |
| 3004 |
#else |
| 3005 |
#define __itt_counter_inc_ptr 0 |
| 3006 |
#endif |
| 3007 |
|
| 3008 |
|
| 3009 |
|
| 3010 |
|
| 3011 |
|
| 3012 |
|
| 3013 |
void ITTAPI __itt_counter_inc_delta(__itt_counter id, unsigned long long value); |
| 3014 |
|
| 3015 |
#ifndef INTEL_NO_MACRO_BODY |
| 3016 |
#ifndef INTEL_NO_ITTNOTIFY_API |
| 3017 |
ITT_STUBV(ITTAPI, void, counter_inc_delta, (__itt_counter id, unsigned long long value)) |
| 3018 |
#define __itt_counter_inc_delta ITTNOTIFY_VOID(counter_inc_delta) |
| 3019 |
#define __itt_counter_inc_delta_ptr ITTNOTIFY_NAME(counter_inc_delta) |
| 3020 |
#else |
| 3021 |
#define __itt_counter_inc_delta(id, value) |
| 3022 |
#define __itt_counter_inc_delta_ptr 0 |
| 3023 |
#endif |
| 3024 |
#else |
| 3025 |
#define __itt_counter_inc_delta_ptr 0 |
| 3026 |
#endif |
| 3027 |
|
| 3028 |
|
| 3029 |
|
| 3030 |
|
| 3031 |
|
| 3032 |
|
| 3033 |
|
| 3034 |
void ITTAPI __itt_counter_dec(__itt_counter id); |
| 3035 |
|
| 3036 |
#ifndef INTEL_NO_MACRO_BODY |
| 3037 |
#ifndef INTEL_NO_ITTNOTIFY_API |
| 3038 |
ITT_STUBV(ITTAPI, void, counter_dec, (__itt_counter id)) |
| 3039 |
#define __itt_counter_dec ITTNOTIFY_VOID(counter_dec) |
| 3040 |
#define __itt_counter_dec_ptr ITTNOTIFY_NAME(counter_dec) |
| 3041 |
#else |
| 3042 |
#define __itt_counter_dec(id) |
| 3043 |
#define __itt_counter_dec_ptr 0 |
| 3044 |
#endif |
| 3045 |
#else |
| 3046 |
#define __itt_counter_dec_ptr 0 |
| 3047 |
#endif |
| 3048 |
|
| 3049 |
|
| 3050 |
|
| 3051 |
|
| 3052 |
|
| 3053 |
|
| 3054 |
void ITTAPI __itt_counter_dec_delta(__itt_counter id, unsigned long long value); |
| 3055 |
|
| 3056 |
#ifndef INTEL_NO_MACRO_BODY |
| 3057 |
#ifndef INTEL_NO_ITTNOTIFY_API |
| 3058 |
ITT_STUBV(ITTAPI, void, counter_dec_delta, (__itt_counter id, unsigned long long value)) |
| 3059 |
#define __itt_counter_dec_delta ITTNOTIFY_VOID(counter_dec_delta) |
| 3060 |
#define __itt_counter_dec_delta_ptr ITTNOTIFY_NAME(counter_dec_delta) |
| 3061 |
#else |
| 3062 |
#define __itt_counter_dec_delta(id, value) |
| 3063 |
#define __itt_counter_dec_delta_ptr 0 |
| 3064 |
#endif |
| 3065 |
#else |
| 3066 |
#define __itt_counter_dec_delta_ptr 0 |
| 3067 |
#endif |
| 3068 |
|
| 3069 |
|
| 3070 |
|
| 3071 |
|
| 3072 |
|
| 3073 |
|
| 3074 |
|
| 3075 |
|
| 3076 |
|
| 3077 |
|
| 3078 |
|
| 3079 |
void ITTAPI __itt_counter_inc_v3(const __itt_domain *domain, __itt_string_handle *name); |
| 3080 |
|
| 3081 |
|
| 3082 |
|
| 3083 |
|
| 3084 |
|
| 3085 |
|
| 3086 |
|
| 3087 |
|
| 3088 |
|
| 3089 |
void ITTAPI __itt_counter_inc_delta_v3(const __itt_domain *domain, __itt_string_handle *name, unsigned long long delta); |
| 3090 |
|
| 3091 |
#ifndef INTEL_NO_MACRO_BODY |
| 3092 |
#ifndef INTEL_NO_ITTNOTIFY_API |
| 3093 |
ITT_STUBV(ITTAPI, void, counter_inc_v3, (const __itt_domain *domain, __itt_string_handle *name)) |
| 3094 |
ITT_STUBV(ITTAPI, void, counter_inc_delta_v3, (const __itt_domain *domain, __itt_string_handle *name, unsigned long long delta)) |
| 3095 |
#define __itt_counter_inc_v3(d,x) ITTNOTIFY_VOID_D1(counter_inc_v3,d,x) |
| 3096 |
#define __itt_counter_inc_v3_ptr ITTNOTIFY_NAME(counter_inc_v3) |
| 3097 |
#define __itt_counter_inc_delta_v3(d,x,y) ITTNOTIFY_VOID_D2(counter_inc_delta_v3,d,x,y) |
| 3098 |
#define __itt_counter_inc_delta_v3_ptr ITTNOTIFY_NAME(counter_inc_delta_v3) |
| 3099 |
#else |
| 3100 |
#define __itt_counter_inc_v3(domain,name) |
| 3101 |
#define __itt_counter_inc_v3_ptr 0 |
| 3102 |
#define __itt_counter_inc_delta_v3(domain,name,delta) |
| 3103 |
#define __itt_counter_inc_delta_v3_ptr 0 |
| 3104 |
#endif |
| 3105 |
#else |
| 3106 |
#define __itt_counter_inc_v3_ptr 0 |
| 3107 |
#define __itt_counter_inc_delta_v3_ptr 0 |
| 3108 |
#endif |
| 3109 |
|
| 3110 |
|
| 3111 |
|
| 3112 |
|
| 3113 |
|
| 3114 |
|
| 3115 |
|
| 3116 |
|
| 3117 |
|
| 3118 |
|
| 3119 |
|
| 3120 |
|
| 3121 |
void ITTAPI __itt_counter_dec_v3(const __itt_domain *domain, __itt_string_handle *name); |
| 3122 |
|
| 3123 |
|
| 3124 |
|
| 3125 |
|
| 3126 |
|
| 3127 |
|
| 3128 |
|
| 3129 |
|
| 3130 |
|
| 3131 |
void ITTAPI __itt_counter_dec_delta_v3(const __itt_domain *domain, __itt_string_handle *name, unsigned long long delta); |
| 3132 |
|
| 3133 |
#ifndef INTEL_NO_MACRO_BODY |
| 3134 |
#ifndef INTEL_NO_ITTNOTIFY_API |
| 3135 |
ITT_STUBV(ITTAPI, void, counter_dec_v3, (const __itt_domain *domain, __itt_string_handle *name)) |
| 3136 |
ITT_STUBV(ITTAPI, void, counter_dec_delta_v3, (const __itt_domain *domain, __itt_string_handle *name, unsigned long long delta)) |
| 3137 |
#define __itt_counter_dec_v3(d,x) ITTNOTIFY_VOID_D1(counter_dec_v3,d,x) |
| 3138 |
#define __itt_counter_dec_v3_ptr ITTNOTIFY_NAME(counter_dec_v3) |
| 3139 |
#define __itt_counter_dec_delta_v3(d,x,y) ITTNOTIFY_VOID_D2(counter_dec_delta_v3,d,x,y) |
| 3140 |
#define __itt_counter_dec_delta_v3_ptr ITTNOTIFY_NAME(counter_dec_delta_v3) |
| 3141 |
#else |
| 3142 |
#define __itt_counter_dec_v3(domain,name) |
| 3143 |
#define __itt_counter_dec_v3_ptr 0 |
| 3144 |
#define __itt_counter_dec_delta_v3(domain,name,delta) |
| 3145 |
#define __itt_counter_dec_delta_v3_ptr 0 |
| 3146 |
#endif |
| 3147 |
#else |
| 3148 |
#define __itt_counter_dec_v3_ptr 0 |
| 3149 |
#define __itt_counter_dec_delta_v3_ptr 0 |
| 3150 |
#endif |
| 3151 |
|
| 3152 |
|
| 3153 |
|
| 3154 |
|
| 3155 |
|
| 3156 |
|
| 3157 |
|
| 3158 |
|
| 3159 |
void ITTAPI __itt_counter_set_value(__itt_counter id, void *value_ptr); |
| 3160 |
|
| 3161 |
#ifndef INTEL_NO_MACRO_BODY |
| 3162 |
#ifndef INTEL_NO_ITTNOTIFY_API |
| 3163 |
ITT_STUBV(ITTAPI, void, counter_set_value, (__itt_counter id, void *value_ptr)) |
| 3164 |
#define __itt_counter_set_value ITTNOTIFY_VOID(counter_set_value) |
| 3165 |
#define __itt_counter_set_value_ptr ITTNOTIFY_NAME(counter_set_value) |
| 3166 |
#else |
| 3167 |
#define __itt_counter_set_value(id, value_ptr) |
| 3168 |
#define __itt_counter_set_value_ptr 0 |
| 3169 |
#endif |
| 3170 |
#else |
| 3171 |
#define __itt_counter_set_value_ptr 0 |
| 3172 |
#endif |
| 3173 |
|
| 3174 |
|
| 3175 |
|
| 3176 |
|
| 3177 |
|
| 3178 |
void ITTAPI __itt_counter_set_value_ex(__itt_counter id, __itt_clock_domain *clock_domain, unsigned long long timestamp, void *value_ptr); |
| 3179 |
|
| 3180 |
|
| 3181 |
#ifndef INTEL_NO_MACRO_BODY |
| 3182 |
#ifndef INTEL_NO_ITTNOTIFY_API |
| 3183 |
ITT_STUBV(ITTAPI, void, counter_set_value_ex, (__itt_counter id, __itt_clock_domain *clock_domain, unsigned long long timestamp, void *value_ptr)) |
| 3184 |
#define __itt_counter_set_value_ex ITTNOTIFY_VOID(counter_set_value_ex) |
| 3185 |
#define __itt_counter_set_value_ex_ptr ITTNOTIFY_NAME(counter_set_value_ex) |
| 3186 |
#else |
| 3187 |
#define __itt_counter_set_value_ex(id, clock_domain, timestamp, value_ptr) |
| 3188 |
#define __itt_counter_set_value_ex_ptr 0 |
| 3189 |
#endif |
| 3190 |
#else |
| 3191 |
#define __itt_counter_set_value_ex_ptr 0 |
| 3192 |
#endif |
| 3193 |
|
| 3194 |
|
| 3195 |
|
| 3196 |
|
| 3197 |
|
| 3198 |
|
| 3199 |
|
| 3200 |
|
| 3201 |
|
| 3202 |
#if ITT_PLATFORM==ITT_PLATFORM_WIN |
| 3203 |
__itt_counter ITTAPI __itt_counter_create_typedA(const char *name, const char *domain, __itt_metadata_type type); |
| 3204 |
__itt_counter ITTAPI __itt_counter_create_typedW(const wchar_t *name, const wchar_t *domain, __itt_metadata_type type); |
| 3205 |
#if defined(UNICODE) || defined(_UNICODE) |
| 3206 |
# define __itt_counter_create_typed __itt_counter_create_typedW |
| 3207 |
# define __itt_counter_create_typed_ptr __itt_counter_create_typedW_ptr |
| 3208 |
#else |
| 3209 |
# define __itt_counter_create_typed __itt_counter_create_typedA |
| 3210 |
# define __itt_counter_create_typed_ptr __itt_counter_create_typedA_ptr |
| 3211 |
#endif |
| 3212 |
#else |
| 3213 |
__itt_counter ITTAPI __itt_counter_create_typed(const char *name, const char *domain, __itt_metadata_type type); |
| 3214 |
#endif |
| 3215 |
|
| 3216 |
#ifndef INTEL_NO_MACRO_BODY |
| 3217 |
#ifndef INTEL_NO_ITTNOTIFY_API |
| 3218 |
#if ITT_PLATFORM==ITT_PLATFORM_WIN |
| 3219 |
ITT_STUB(ITTAPI, __itt_counter, counter_create_typedA, (const char *name, const char *domain, __itt_metadata_type type)) |
| 3220 |
ITT_STUB(ITTAPI, __itt_counter, counter_create_typedW, (const wchar_t *name, const wchar_t *domain, __itt_metadata_type type)) |
| 3221 |
#else |
| 3222 |
ITT_STUB(ITTAPI, __itt_counter, counter_create_typed, (const char *name, const char *domain, __itt_metadata_type type)) |
| 3223 |
#endif |
| 3224 |
#if ITT_PLATFORM==ITT_PLATFORM_WIN |
| 3225 |
#define __itt_counter_create_typedA ITTNOTIFY_DATA(counter_create_typedA) |
| 3226 |
#define __itt_counter_create_typedA_ptr ITTNOTIFY_NAME(counter_create_typedA) |
| 3227 |
#define __itt_counter_create_typedW ITTNOTIFY_DATA(counter_create_typedW) |
| 3228 |
#define __itt_counter_create_typedW_ptr ITTNOTIFY_NAME(counter_create_typedW) |
| 3229 |
#else |
| 3230 |
#define __itt_counter_create_typed ITTNOTIFY_DATA(counter_create_typed) |
| 3231 |
#define __itt_counter_create_typed_ptr ITTNOTIFY_NAME(counter_create_typed) |
| 3232 |
#endif |
| 3233 |
#else |
| 3234 |
#if ITT_PLATFORM==ITT_PLATFORM_WIN |
| 3235 |
#define __itt_counter_create_typedA(name, domain, type) |
| 3236 |
#define __itt_counter_create_typedA_ptr 0 |
| 3237 |
#define __itt_counter_create_typedW(name, domain, type) |
| 3238 |
#define __itt_counter_create_typedW_ptr 0 |
| 3239 |
#else |
| 3240 |
#define __itt_counter_create_typed(name, domain, type) |
| 3241 |
#define __itt_counter_create_typed_ptr 0 |
| 3242 |
#endif |
| 3243 |
#endif |
| 3244 |
#else |
| 3245 |
#if ITT_PLATFORM==ITT_PLATFORM_WIN |
| 3246 |
#define __itt_counter_create_typedA_ptr 0 |
| 3247 |
#define __itt_counter_create_typedW_ptr 0 |
| 3248 |
#else |
| 3249 |
#define __itt_counter_create_typed_ptr 0 |
| 3250 |
#endif |
| 3251 |
#endif |
| 3252 |
|
| 3253 |
|
| 3254 |
|
| 3255 |
|
| 3256 |
|
| 3257 |
|
| 3258 |
void ITTAPI __itt_counter_destroy(__itt_counter id); |
| 3259 |
|
| 3260 |
#ifndef INTEL_NO_MACRO_BODY |
| 3261 |
#ifndef INTEL_NO_ITTNOTIFY_API |
| 3262 |
ITT_STUBV(ITTAPI, void, counter_destroy, (__itt_counter id)) |
| 3263 |
#define __itt_counter_destroy ITTNOTIFY_VOID(counter_destroy) |
| 3264 |
#define __itt_counter_destroy_ptr ITTNOTIFY_NAME(counter_destroy) |
| 3265 |
#else |
| 3266 |
#define __itt_counter_destroy(id) |
| 3267 |
#define __itt_counter_destroy_ptr 0 |
| 3268 |
#endif |
| 3269 |
#else |
| 3270 |
#define __itt_counter_destroy_ptr 0 |
| 3271 |
#endif |
| 3272 |
|
| 3273 |
|
| 3274 |
|
| 3275 |
|
| 3276 |
|
| 3277 |
|
| 3278 |
|
| 3279 |
|
| 3280 |
|
| 3281 |
|
| 3282 |
|
| 3283 |
|
| 3284 |
|
| 3285 |
void ITTAPI __itt_marker_ex(const __itt_domain *domain, __itt_clock_domain* clock_domain, unsigned long long timestamp, __itt_id id, __itt_string_handle *name, __itt_scope scope); |
| 3286 |
|
| 3287 |
|
| 3288 |
#ifndef INTEL_NO_MACRO_BODY |
| 3289 |
#ifndef INTEL_NO_ITTNOTIFY_API |
| 3290 |
ITT_STUBV(ITTAPI, void, marker_ex, (const __itt_domain *domain, __itt_clock_domain* clock_domain, unsigned long long timestamp, __itt_id id, __itt_string_handle *name, __itt_scope scope)) |
| 3291 |
#define __itt_marker_ex(d,x,y,z,a,b) ITTNOTIFY_VOID_D5(marker_ex,d,x,y,z,a,b) |
| 3292 |
#define __itt_marker_ex_ptr ITTNOTIFY_NAME(marker_ex) |
| 3293 |
#else |
| 3294 |
#define __itt_marker_ex(domain,clock_domain,timestamp,id,name,scope) |
| 3295 |
#define __itt_marker_ex_ptr 0 |
| 3296 |
#endif |
| 3297 |
#else |
| 3298 |
#define __itt_marker_ex_ptr 0 |
| 3299 |
#endif |
| 3300 |
|
| 3301 |
|
| 3302 |
|
| 3303 |
|
| 3304 |
|
| 3305 |
|
| 3306 |
|
| 3307 |
|
| 3308 |
|
| 3309 |
|
| 3310 |
|
| 3311 |
|
| 3312 |
void ITTAPI __itt_relation_add_to_current_ex(const __itt_domain *domain, __itt_clock_domain* clock_domain, unsigned long long timestamp, __itt_relation relation, __itt_id tail); |
| 3313 |
|
| 3314 |
|
| 3315 |
|
| 3316 |
|
| 3317 |
|
| 3318 |
|
| 3319 |
|
| 3320 |
|
| 3321 |
|
| 3322 |
|
| 3323 |
|
| 3324 |
void ITTAPI __itt_relation_add_ex(const __itt_domain *domain, __itt_clock_domain* clock_domain, unsigned long long timestamp, __itt_id head, __itt_relation relation, __itt_id tail); |
| 3325 |
|
| 3326 |
|
| 3327 |
#ifndef INTEL_NO_MACRO_BODY |
| 3328 |
#ifndef INTEL_NO_ITTNOTIFY_API |
| 3329 |
ITT_STUBV(ITTAPI, void, relation_add_to_current_ex, (const __itt_domain *domain, __itt_clock_domain* clock_domain, unsigned long long timestamp, __itt_relation relation, __itt_id tail)) |
| 3330 |
ITT_STUBV(ITTAPI, void, relation_add_ex, (const __itt_domain *domain, __itt_clock_domain* clock_domain, unsigned long long timestamp, __itt_id head, __itt_relation relation, __itt_id tail)) |
| 3331 |
#define __itt_relation_add_to_current_ex(d,x,y,z,a) ITTNOTIFY_VOID_D4(relation_add_to_current_ex,d,x,y,z,a) |
| 3332 |
#define __itt_relation_add_to_current_ex_ptr ITTNOTIFY_NAME(relation_add_to_current_ex) |
| 3333 |
#define __itt_relation_add_ex(d,x,y,z,a,b) ITTNOTIFY_VOID_D5(relation_add_ex,d,x,y,z,a,b) |
| 3334 |
#define __itt_relation_add_ex_ptr ITTNOTIFY_NAME(relation_add_ex) |
| 3335 |
#else |
| 3336 |
#define __itt_relation_add_to_current_ex(domain,clock_domain,timestame,relation,tail) |
| 3337 |
#define __itt_relation_add_to_current_ex_ptr 0 |
| 3338 |
#define __itt_relation_add_ex(domain,clock_domain,timestamp,head,relation,tail) |
| 3339 |
#define __itt_relation_add_ex_ptr 0 |
| 3340 |
#endif |
| 3341 |
#else |
| 3342 |
#define __itt_relation_add_to_current_ex_ptr 0 |
| 3343 |
#define __itt_relation_add_ex_ptr 0 |
| 3344 |
#endif |
| 3345 |
|
| 3346 |
|
| 3347 |
|
| 3348 |
typedef enum ___itt_track_group_type |
| 3349 |
{ |
| 3350 |
__itt_track_group_type_normal = 0 |
| 3351 |
} __itt_track_group_type; |
| 3352 |
|
| 3353 |
|
| 3354 |
|
| 3355 |
#pragma pack(push, 8) |
| 3356 |
|
| 3357 |
typedef struct ___itt_track_group |
| 3358 |
{ |
| 3359 |
__itt_string_handle* name; |
| 3360 |
struct ___itt_track* track; |
| 3361 |
__itt_track_group_type tgtype; |
| 3362 |
int extra1; |
| 3363 |
void* extra2; |
| 3364 |
struct ___itt_track_group* next; |
| 3365 |
} __itt_track_group; |
| 3366 |
|
| 3367 |
#pragma pack(pop) |
| 3368 |
|
| 3369 |
|
| 3370 |
|
| 3371 |
|
| 3372 |
|
| 3373 |
|
| 3374 |
typedef enum ___itt_track_type |
| 3375 |
{ |
| 3376 |
__itt_track_type_normal = 0 |
| 3377 |
#ifdef INTEL_ITTNOTIFY_API_PRIVATE |
| 3378 |
, __itt_track_type_queue |
| 3379 |
#endif |
| 3380 |
} __itt_track_type; |
| 3381 |
|
| 3382 |
|
| 3383 |
#pragma pack(push, 8) |
| 3384 |
|
| 3385 |
typedef struct ___itt_track |
| 3386 |
{ |
| 3387 |
__itt_string_handle* name; |
| 3388 |
__itt_track_group* group; |
| 3389 |
__itt_track_type ttype; |
| 3390 |
int extra1; |
| 3391 |
void* extra2; |
| 3392 |
struct ___itt_track* next; |
| 3393 |
} __itt_track; |
| 3394 |
|
| 3395 |
#pragma pack(pop) |
| 3396 |
|
| 3397 |
|
| 3398 |
|
| 3399 |
|
| 3400 |
|
| 3401 |
__itt_track_group* ITTAPI __itt_track_group_create(__itt_string_handle* name, __itt_track_group_type track_group_type); |
| 3402 |
|
| 3403 |
|
| 3404 |
#ifndef INTEL_NO_MACRO_BODY |
| 3405 |
#ifndef INTEL_NO_ITTNOTIFY_API |
| 3406 |
ITT_STUB(ITTAPI, __itt_track_group*, track_group_create, (__itt_string_handle* name, __itt_track_group_type track_group_type)) |
| 3407 |
#define __itt_track_group_create ITTNOTIFY_DATA(track_group_create) |
| 3408 |
#define __itt_track_group_create_ptr ITTNOTIFY_NAME(track_group_create) |
| 3409 |
#else |
| 3410 |
#define __itt_track_group_create(name) (__itt_track_group*)0 |
| 3411 |
#define __itt_track_group_create_ptr 0 |
| 3412 |
#endif |
| 3413 |
#else |
| 3414 |
#define __itt_track_group_create_ptr 0 |
| 3415 |
#endif |
| 3416 |
|
| 3417 |
|
| 3418 |
|
| 3419 |
|
| 3420 |
|
| 3421 |
__itt_track* ITTAPI __itt_track_create(__itt_track_group* track_group, __itt_string_handle* name, __itt_track_type track_type); |
| 3422 |
|
| 3423 |
|
| 3424 |
#ifndef INTEL_NO_MACRO_BODY |
| 3425 |
#ifndef INTEL_NO_ITTNOTIFY_API |
| 3426 |
ITT_STUB(ITTAPI, __itt_track*, track_create, (__itt_track_group* track_group,__itt_string_handle* name, __itt_track_type track_type)) |
| 3427 |
#define __itt_track_create ITTNOTIFY_DATA(track_create) |
| 3428 |
#define __itt_track_create_ptr ITTNOTIFY_NAME(track_create) |
| 3429 |
#else |
| 3430 |
#define __itt_track_create(track_group,name,track_type) (__itt_track*)0 |
| 3431 |
#define __itt_track_create_ptr 0 |
| 3432 |
#endif |
| 3433 |
#else |
| 3434 |
#define __itt_track_create_ptr 0 |
| 3435 |
#endif |
| 3436 |
|
| 3437 |
|
| 3438 |
|
| 3439 |
|
| 3440 |
|
| 3441 |
void ITTAPI __itt_set_track(__itt_track* track); |
| 3442 |
|
| 3443 |
|
| 3444 |
#ifndef INTEL_NO_MACRO_BODY |
| 3445 |
#ifndef INTEL_NO_ITTNOTIFY_API |
| 3446 |
ITT_STUBV(ITTAPI, void, set_track, (__itt_track *track)) |
| 3447 |
#define __itt_set_track ITTNOTIFY_VOID(set_track) |
| 3448 |
#define __itt_set_track_ptr ITTNOTIFY_NAME(set_track) |
| 3449 |
#else |
| 3450 |
#define __itt_set_track(track) |
| 3451 |
#define __itt_set_track_ptr 0 |
| 3452 |
#endif |
| 3453 |
#else |
| 3454 |
#define __itt_set_track_ptr 0 |
| 3455 |
#endif |
| 3456 |
|
| 3457 |
|
| 3458 |
|
| 3459 |
|
| 3460 |
|
| 3461 |
|
| 3462 |
|
| 3463 |
|
| 3464 |
|
| 3465 |
|
| 3466 |
|
| 3467 |
typedef int __itt_event; |
| 3468 |
|
| 3469 |
|
| 3470 |
|
| 3471 |
|
| 3472 |
|
| 3473 |
|
| 3474 |
#if ITT_PLATFORM==ITT_PLATFORM_WIN |
| 3475 |
__itt_event LIBITTAPI __itt_event_createA(const char *name, int namelen); |
| 3476 |
__itt_event LIBITTAPI __itt_event_createW(const wchar_t *name, int namelen); |
| 3477 |
#if defined(UNICODE) || defined(_UNICODE) |
| 3478 |
# define __itt_event_create __itt_event_createW |
| 3479 |
# define __itt_event_create_ptr __itt_event_createW_ptr |
| 3480 |
#else |
| 3481 |
# define __itt_event_create __itt_event_createA |
| 3482 |
# define __itt_event_create_ptr __itt_event_createA_ptr |
| 3483 |
#endif |
| 3484 |
#else |
| 3485 |
__itt_event LIBITTAPI __itt_event_create(const char *name, int namelen); |
| 3486 |
#endif |
| 3487 |
|
| 3488 |
|
| 3489 |
#ifndef INTEL_NO_MACRO_BODY |
| 3490 |
#ifndef INTEL_NO_ITTNOTIFY_API |
| 3491 |
#if ITT_PLATFORM==ITT_PLATFORM_WIN |
| 3492 |
ITT_STUB(LIBITTAPI, __itt_event, event_createA, (const char *name, int namelen)) |
| 3493 |
ITT_STUB(LIBITTAPI, __itt_event, event_createW, (const wchar_t *name, int namelen)) |
| 3494 |
#else |
| 3495 |
ITT_STUB(LIBITTAPI, __itt_event, event_create, (const char *name, int namelen)) |
| 3496 |
#endif |
| 3497 |
#if ITT_PLATFORM==ITT_PLATFORM_WIN |
| 3498 |
#define __itt_event_createA ITTNOTIFY_DATA(event_createA) |
| 3499 |
#define __itt_event_createA_ptr ITTNOTIFY_NAME(event_createA) |
| 3500 |
#define __itt_event_createW ITTNOTIFY_DATA(event_createW) |
| 3501 |
#define __itt_event_createW_ptr ITTNOTIFY_NAME(event_createW) |
| 3502 |
#else |
| 3503 |
#define __itt_event_create ITTNOTIFY_DATA(event_create) |
| 3504 |
#define __itt_event_create_ptr ITTNOTIFY_NAME(event_create) |
| 3505 |
#endif |
| 3506 |
#else |
| 3507 |
#if ITT_PLATFORM==ITT_PLATFORM_WIN |
| 3508 |
#define __itt_event_createA(name, namelen) (__itt_event)0 |
| 3509 |
#define __itt_event_createA_ptr 0 |
| 3510 |
#define __itt_event_createW(name, namelen) (__itt_event)0 |
| 3511 |
#define __itt_event_createW_ptr 0 |
| 3512 |
#else |
| 3513 |
#define __itt_event_create(name, namelen) (__itt_event)0 |
| 3514 |
#define __itt_event_create_ptr 0 |
| 3515 |
#endif |
| 3516 |
#endif |
| 3517 |
#else |
| 3518 |
#if ITT_PLATFORM==ITT_PLATFORM_WIN |
| 3519 |
#define __itt_event_createA_ptr 0 |
| 3520 |
#define __itt_event_createW_ptr 0 |
| 3521 |
#else |
| 3522 |
#define __itt_event_create_ptr 0 |
| 3523 |
#endif |
| 3524 |
#endif |
| 3525 |
|
| 3526 |
|
| 3527 |
|
| 3528 |
|
| 3529 |
|
| 3530 |
|
| 3531 |
int LIBITTAPI __itt_event_start(__itt_event event); |
| 3532 |
|
| 3533 |
|
| 3534 |
#ifndef INTEL_NO_MACRO_BODY |
| 3535 |
#ifndef INTEL_NO_ITTNOTIFY_API |
| 3536 |
ITT_STUB(LIBITTAPI, int, event_start, (__itt_event event)) |
| 3537 |
#define __itt_event_start ITTNOTIFY_DATA(event_start) |
| 3538 |
#define __itt_event_start_ptr ITTNOTIFY_NAME(event_start) |
| 3539 |
#else |
| 3540 |
#define __itt_event_start(event) (int)0 |
| 3541 |
#define __itt_event_start_ptr 0 |
| 3542 |
#endif |
| 3543 |
#else |
| 3544 |
#define __itt_event_start_ptr 0 |
| 3545 |
#endif |
| 3546 |
|
| 3547 |
|
| 3548 |
|
| 3549 |
|
| 3550 |
|
| 3551 |
|
| 3552 |
|
| 3553 |
int LIBITTAPI __itt_event_end(__itt_event event); |
| 3554 |
|
| 3555 |
|
| 3556 |
#ifndef INTEL_NO_MACRO_BODY |
| 3557 |
#ifndef INTEL_NO_ITTNOTIFY_API |
| 3558 |
ITT_STUB(LIBITTAPI, int, event_end, (__itt_event event)) |
| 3559 |
#define __itt_event_end ITTNOTIFY_DATA(event_end) |
| 3560 |
#define __itt_event_end_ptr ITTNOTIFY_NAME(event_end) |
| 3561 |
#else |
| 3562 |
#define __itt_event_end(event) (int)0 |
| 3563 |
#define __itt_event_end_ptr 0 |
| 3564 |
#endif |
| 3565 |
#else |
| 3566 |
#define __itt_event_end_ptr 0 |
| 3567 |
#endif |
| 3568 |
|
| 3569 |
|
| 3570 |
|
| 3571 |
|
| 3572 |
|
| 3573 |
|
| 3574 |
|
| 3575 |
|
| 3576 |
|
| 3577 |
|
| 3578 |
|
| 3579 |
|
| 3580 |
|
| 3581 |
|
| 3582 |
|
| 3583 |
typedef enum |
| 3584 |
{ |
| 3585 |
__itt_e_first = 0, |
| 3586 |
__itt_e_char = 0, |
| 3587 |
__itt_e_uchar, |
| 3588 |
__itt_e_int16, |
| 3589 |
__itt_e_uint16, |
| 3590 |
__itt_e_int32, |
| 3591 |
__itt_e_uint32, |
| 3592 |
__itt_e_int64, |
| 3593 |
__itt_e_uint64, |
| 3594 |
__itt_e_float, |
| 3595 |
__itt_e_double, |
| 3596 |
__itt_e_last = __itt_e_double |
| 3597 |
} __itt_av_data_type; |
| 3598 |
|
| 3599 |
|
| 3600 |
|
| 3601 |
|
| 3602 |
|
| 3603 |
|
| 3604 |
|
| 3605 |
|
| 3606 |
|
| 3607 |
|
| 3608 |
|
| 3609 |
|
| 3610 |
|
| 3611 |
|
| 3612 |
#if ITT_PLATFORM==ITT_PLATFORM_WIN |
| 3613 |
int ITTAPI __itt_av_saveA(void *data, int rank, const int *dimensions, int type, const char *filePath, int columnOrder); |
| 3614 |
int ITTAPI __itt_av_saveW(void *data, int rank, const int *dimensions, int type, const wchar_t *filePath, int columnOrder); |
| 3615 |
#if defined(UNICODE) || defined(_UNICODE) |
| 3616 |
# define __itt_av_save __itt_av_saveW |
| 3617 |
# define __itt_av_save_ptr __itt_av_saveW_ptr |
| 3618 |
#else |
| 3619 |
# define __itt_av_save __itt_av_saveA |
| 3620 |
# define __itt_av_save_ptr __itt_av_saveA_ptr |
| 3621 |
#endif |
| 3622 |
#else |
| 3623 |
int ITTAPI __itt_av_save(void *data, int rank, const int *dimensions, int type, const char *filePath, int columnOrder); |
| 3624 |
#endif |
| 3625 |
|
| 3626 |
|
| 3627 |
#ifndef INTEL_NO_MACRO_BODY |
| 3628 |
#ifndef INTEL_NO_ITTNOTIFY_API |
| 3629 |
#if ITT_PLATFORM==ITT_PLATFORM_WIN |
| 3630 |
ITT_STUB(ITTAPI, int, av_saveA, (void *data, int rank, const int *dimensions, int type, const char *filePath, int columnOrder)) |
| 3631 |
ITT_STUB(ITTAPI, int, av_saveW, (void *data, int rank, const int *dimensions, int type, const wchar_t *filePath, int columnOrder)) |
| 3632 |
#else |
| 3633 |
ITT_STUB(ITTAPI, int, av_save, (void *data, int rank, const int *dimensions, int type, const char *filePath, int columnOrder)) |
| 3634 |
#endif |
| 3635 |
#if ITT_PLATFORM==ITT_PLATFORM_WIN |
| 3636 |
#define __itt_av_saveA ITTNOTIFY_DATA(av_saveA) |
| 3637 |
#define __itt_av_saveA_ptr ITTNOTIFY_NAME(av_saveA) |
| 3638 |
#define __itt_av_saveW ITTNOTIFY_DATA(av_saveW) |
| 3639 |
#define __itt_av_saveW_ptr ITTNOTIFY_NAME(av_saveW) |
| 3640 |
#else |
| 3641 |
#define __itt_av_save ITTNOTIFY_DATA(av_save) |
| 3642 |
#define __itt_av_save_ptr ITTNOTIFY_NAME(av_save) |
| 3643 |
#endif |
| 3644 |
#else |
| 3645 |
#if ITT_PLATFORM==ITT_PLATFORM_WIN |
| 3646 |
#define __itt_av_saveA(name) |
| 3647 |
#define __itt_av_saveA_ptr 0 |
| 3648 |
#define __itt_av_saveW(name) |
| 3649 |
#define __itt_av_saveW_ptr 0 |
| 3650 |
#else |
| 3651 |
#define __itt_av_save(name) |
| 3652 |
#define __itt_av_save_ptr 0 |
| 3653 |
#endif |
| 3654 |
#endif |
| 3655 |
#else |
| 3656 |
#if ITT_PLATFORM==ITT_PLATFORM_WIN |
| 3657 |
#define __itt_av_saveA_ptr 0 |
| 3658 |
#define __itt_av_saveW_ptr 0 |
| 3659 |
#else |
| 3660 |
#define __itt_av_save_ptr 0 |
| 3661 |
#endif |
| 3662 |
#endif |
| 3663 |
|
| 3664 |
|
| 3665 |
void ITTAPI __itt_enable_attach(void); |
| 3666 |
|
| 3667 |
|
| 3668 |
#ifndef INTEL_NO_MACRO_BODY |
| 3669 |
#ifndef INTEL_NO_ITTNOTIFY_API |
| 3670 |
ITT_STUBV(ITTAPI, void, enable_attach, (void)) |
| 3671 |
#define __itt_enable_attach ITTNOTIFY_VOID(enable_attach) |
| 3672 |
#define __itt_enable_attach_ptr ITTNOTIFY_NAME(enable_attach) |
| 3673 |
#else |
| 3674 |
#define __itt_enable_attach() |
| 3675 |
#define __itt_enable_attach_ptr 0 |
| 3676 |
#endif |
| 3677 |
#else |
| 3678 |
#define __itt_enable_attach_ptr 0 |
| 3679 |
#endif |
| 3680 |
|
| 3681 |
|
| 3682 |
|
| 3683 |
|
| 3684 |
|
| 3685 |
|
| 3686 |
|
| 3687 |
|
| 3688 |
|
| 3689 |
|
| 3690 |
|
| 3691 |
|
| 3692 |
|
| 3693 |
|
| 3694 |
|
| 3695 |
|
| 3696 |
#if ITT_PLATFORM==ITT_PLATFORM_WIN |
| 3697 |
void ITTAPI __itt_module_loadA(void *start_addr, void *end_addr, const char *path); |
| 3698 |
void ITTAPI __itt_module_loadW(void *start_addr, void *end_addr, const wchar_t *path); |
| 3699 |
#if defined(UNICODE) || defined(_UNICODE) |
| 3700 |
# define __itt_module_load __itt_module_loadW |
| 3701 |
# define __itt_module_load_ptr __itt_module_loadW_ptr |
| 3702 |
#else |
| 3703 |
# define __itt_module_load __itt_module_loadA |
| 3704 |
# define __itt_module_load_ptr __itt_module_loadA_ptr |
| 3705 |
#endif |
| 3706 |
#else |
| 3707 |
void ITTAPI __itt_module_load(void *start_addr, void *end_addr, const char *path); |
| 3708 |
#endif |
| 3709 |
|
| 3710 |
|
| 3711 |
#ifndef INTEL_NO_MACRO_BODY |
| 3712 |
#ifndef INTEL_NO_ITTNOTIFY_API |
| 3713 |
#if ITT_PLATFORM==ITT_PLATFORM_WIN |
| 3714 |
ITT_STUB(ITTAPI, void, module_loadA, (void *start_addr, void *end_addr, const char *path)) |
| 3715 |
ITT_STUB(ITTAPI, void, module_loadW, (void *start_addr, void *end_addr, const wchar_t *path)) |
| 3716 |
#else |
| 3717 |
ITT_STUB(ITTAPI, void, module_load, (void *start_addr, void *end_addr, const char *path)) |
| 3718 |
#endif |
| 3719 |
#if ITT_PLATFORM==ITT_PLATFORM_WIN |
| 3720 |
#define __itt_module_loadA ITTNOTIFY_VOID(module_loadA) |
| 3721 |
#define __itt_module_loadA_ptr ITTNOTIFY_NAME(module_loadA) |
| 3722 |
#define __itt_module_loadW ITTNOTIFY_VOID(module_loadW) |
| 3723 |
#define __itt_module_loadW_ptr ITTNOTIFY_NAME(module_loadW) |
| 3724 |
#else |
| 3725 |
#define __itt_module_load ITTNOTIFY_VOID(module_load) |
| 3726 |
#define __itt_module_load_ptr ITTNOTIFY_NAME(module_load) |
| 3727 |
#endif |
| 3728 |
#else |
| 3729 |
#if ITT_PLATFORM==ITT_PLATFORM_WIN |
| 3730 |
#define __itt_module_loadA(start_addr, end_addr, path) |
| 3731 |
#define __itt_module_loadA_ptr 0 |
| 3732 |
#define __itt_module_loadW(start_addr, end_addr, path) |
| 3733 |
#define __itt_module_loadW_ptr 0 |
| 3734 |
#else |
| 3735 |
#define __itt_module_load(start_addr, end_addr, path) |
| 3736 |
#define __itt_module_load_ptr 0 |
| 3737 |
#endif |
| 3738 |
#endif |
| 3739 |
#else |
| 3740 |
#if ITT_PLATFORM==ITT_PLATFORM_WIN |
| 3741 |
#define __itt_module_loadA_ptr 0 |
| 3742 |
#define __itt_module_loadW_ptr 0 |
| 3743 |
#else |
| 3744 |
#define __itt_module_load_ptr 0 |
| 3745 |
#endif |
| 3746 |
#endif |
| 3747 |
|
| 3748 |
|
| 3749 |
|
| 3750 |
|
| 3751 |
|
| 3752 |
|
| 3753 |
|
| 3754 |
|
| 3755 |
void ITTAPI __itt_module_unload(void *addr); |
| 3756 |
|
| 3757 |
|
| 3758 |
#ifndef INTEL_NO_MACRO_BODY |
| 3759 |
#ifndef INTEL_NO_ITTNOTIFY_API |
| 3760 |
ITT_STUBV(ITTAPI, void, module_unload, (void *addr)) |
| 3761 |
#define __itt_module_unload ITTNOTIFY_VOID(module_unload) |
| 3762 |
#define __itt_module_unload_ptr ITTNOTIFY_NAME(module_unload) |
| 3763 |
#else |
| 3764 |
#define __itt_module_unload(addr) |
| 3765 |
#define __itt_module_unload_ptr 0 |
| 3766 |
#endif |
| 3767 |
#else |
| 3768 |
#define __itt_module_unload_ptr 0 |
| 3769 |
#endif |
| 3770 |
|
| 3771 |
|
| 3772 |
|
| 3773 |
typedef enum |
| 3774 |
{ |
| 3775 |
__itt_module_type_unknown = 0, |
| 3776 |
__itt_module_type_elf, |
| 3777 |
__itt_module_type_coff |
| 3778 |
} __itt_module_type; |
| 3779 |
|
| 3780 |
|
| 3781 |
|
| 3782 |
typedef enum |
| 3783 |
{ |
| 3784 |
itt_section_type_unknown, |
| 3785 |
itt_section_type_bss, |
| 3786 |
|
| 3787 |
|
| 3788 |
|
| 3789 |
itt_section_type_data, |
| 3790 |
|
| 3791 |
|
| 3792 |
|
| 3793 |
itt_section_type_text |
| 3794 |
|
| 3795 |
|
| 3796 |
|
| 3797 |
} __itt_section_type; |
| 3798 |
|
| 3799 |
|
| 3800 |
|
| 3801 |
|
| 3802 |
|
| 3803 |
|
| 3804 |
|
| 3805 |
|
| 3806 |
|
| 3807 |
#define __itt_section_exec 0x20000000 |
| 3808 |
|
| 3809 |
|
| 3810 |
|
| 3811 |
|
| 3812 |
|
| 3813 |
|
| 3814 |
|
| 3815 |
|
| 3816 |
#define __itt_section_read 0x40000000 |
| 3817 |
|
| 3818 |
|
| 3819 |
|
| 3820 |
|
| 3821 |
|
| 3822 |
|
| 3823 |
|
| 3824 |
|
| 3825 |
#define __itt_section_write 0x80000000 |
| 3826 |
|
| 3827 |
|
| 3828 |
#pragma pack(push, 8) |
| 3829 |
|
| 3830 |
typedef struct ___itt_section_info |
| 3831 |
{ |
| 3832 |
const char* name; |
| 3833 |
__itt_section_type type; |
| 3834 |
size_t flags; |
| 3835 |
|
| 3836 |
|
| 3837 |
void* start_addr; |
| 3838 |
size_t size; |
| 3839 |
size_t file_offset; |
| 3840 |
} __itt_section_info; |
| 3841 |
|
| 3842 |
#pragma pack(pop) |
| 3843 |
|
| 3844 |
|
| 3845 |
|
| 3846 |
#pragma pack(push, 8) |
| 3847 |
|
| 3848 |
typedef struct ___itt_module_object |
| 3849 |
{ |
| 3850 |
unsigned int version; |
| 3851 |
__itt_id module_id; |
| 3852 |
__itt_module_type module_type; |
| 3853 |
const char* module_name; |
| 3854 |
|
| 3855 |
|
| 3856 |
|
| 3857 |
|
| 3858 |
void* module_buffer; |
| 3859 |
size_t module_size; |
| 3860 |
|
| 3861 |
|
| 3862 |
|
| 3863 |
|
| 3864 |
|
| 3865 |
__itt_section_info* section_array; |
| 3866 |
size_t section_number; |
| 3867 |
} __itt_module_object; |
| 3868 |
|
| 3869 |
#pragma pack(pop) |
| 3870 |
|
| 3871 |
|
| 3872 |
|
| 3873 |
|
| 3874 |
|
| 3875 |
|
| 3876 |
|
| 3877 |
|
| 3878 |
|
| 3879 |
|
| 3880 |
void ITTAPI __itt_module_load_with_sections(__itt_module_object* module_obj); |
| 3881 |
|
| 3882 |
|
| 3883 |
#ifndef INTEL_NO_MACRO_BODY |
| 3884 |
#ifndef INTEL_NO_ITTNOTIFY_API |
| 3885 |
ITT_STUBV(ITTAPI, void, module_load_with_sections, (__itt_module_object* module_obj)) |
| 3886 |
#define __itt_module_load_with_sections ITTNOTIFY_VOID(module_load_with_sections) |
| 3887 |
#define __itt_module_load_with_sections_ptr ITTNOTIFY_NAME(module_load_with_sections) |
| 3888 |
#else |
| 3889 |
#define __itt_module_load_with_sections(module_obj) |
| 3890 |
#define __itt_module_load_with_sections_ptr 0 |
| 3891 |
#endif |
| 3892 |
#else |
| 3893 |
#define __itt_module_load_with_sections_ptr 0 |
| 3894 |
#endif |
| 3895 |
|
| 3896 |
|
| 3897 |
|
| 3898 |
|
| 3899 |
|
| 3900 |
|
| 3901 |
|
| 3902 |
|
| 3903 |
void ITTAPI __itt_module_unload_with_sections(__itt_module_object* module_obj); |
| 3904 |
|
| 3905 |
|
| 3906 |
#ifndef INTEL_NO_MACRO_BODY |
| 3907 |
#ifndef INTEL_NO_ITTNOTIFY_API |
| 3908 |
ITT_STUBV(ITTAPI, void, module_unload_with_sections, (__itt_module_object* module_obj)) |
| 3909 |
#define __itt_module_unload_with_sections ITTNOTIFY_VOID(module_unload_with_sections) |
| 3910 |
#define __itt_module_unload_with_sections_ptr ITTNOTIFY_NAME(module_unload_with_sections) |
| 3911 |
#else |
| 3912 |
#define __itt_module_unload_with_sections(module_obj) |
| 3913 |
#define __itt_module_unload_with_sections_ptr 0 |
| 3914 |
#endif |
| 3915 |
#else |
| 3916 |
#define __itt_module_unload_with_sections_ptr 0 |
| 3917 |
#endif |
| 3918 |
|
| 3919 |
|
| 3920 |
|
| 3921 |
#pragma pack(push, 8) |
| 3922 |
|
| 3923 |
typedef struct ___itt_histogram |
| 3924 |
{ |
| 3925 |
const __itt_domain* domain; |
| 3926 |
const char* nameA; |
| 3927 |
#if defined(UNICODE) || defined(_UNICODE) |
| 3928 |
const wchar_t* nameW; |
| 3929 |
#else |
| 3930 |
void* nameW; |
| 3931 |
#endif |
| 3932 |
__itt_metadata_type x_type; |
| 3933 |
__itt_metadata_type y_type; |
| 3934 |
int extra1; |
| 3935 |
void* extra2; |
| 3936 |
struct ___itt_histogram* next; |
| 3937 |
} __itt_histogram; |
| 3938 |
|
| 3939 |
#pragma pack(pop) |
| 3940 |
|
| 3941 |
|
| 3942 |
|
| 3943 |
|
| 3944 |
|
| 3945 |
|
| 3946 |
|
| 3947 |
|
| 3948 |
|
| 3949 |
#if ITT_PLATFORM==ITT_PLATFORM_WIN |
| 3950 |
__itt_histogram* ITTAPI __itt_histogram_createA(const __itt_domain* domain, const char* name, __itt_metadata_type x_type, __itt_metadata_type y_type); |
| 3951 |
__itt_histogram* ITTAPI __itt_histogram_createW(const __itt_domain* domain, const wchar_t* name, __itt_metadata_type x_type, __itt_metadata_type y_type); |
| 3952 |
#if defined(UNICODE) || defined(_UNICODE) |
| 3953 |
# define __itt_histogram_create __itt_histogram_createW |
| 3954 |
# define __itt_histogram_create_ptr __itt_histogram_createW_ptr |
| 3955 |
#else |
| 3956 |
# define __itt_histogram_create __itt_histogram_createA |
| 3957 |
# define __itt_histogram_create_ptr __itt_histogram_createA_ptr |
| 3958 |
#endif |
| 3959 |
#else |
| 3960 |
__itt_histogram* ITTAPI __itt_histogram_create(const __itt_domain* domain, const char* name, __itt_metadata_type x_type, __itt_metadata_type y_type); |
| 3961 |
#endif |
| 3962 |
|
| 3963 |
|
| 3964 |
#ifndef INTEL_NO_MACRO_BODY |
| 3965 |
#ifndef INTEL_NO_ITTNOTIFY_API |
| 3966 |
#if ITT_PLATFORM==ITT_PLATFORM_WIN |
| 3967 |
ITT_STUB(ITTAPI, __itt_histogram*, histogram_createA, (const __itt_domain* domain, const char* name, __itt_metadata_type x_type, __itt_metadata_type y_type)) |
| 3968 |
ITT_STUB(ITTAPI, __itt_histogram*, histogram_createW, (const __itt_domain* domain, const wchar_t* name, __itt_metadata_type x_type, __itt_metadata_type y_type)) |
| 3969 |
#else |
| 3970 |
ITT_STUB(ITTAPI, __itt_histogram*, histogram_create, (const __itt_domain* domain, const char* name, __itt_metadata_type x_type, __itt_metadata_type y_type)) |
| 3971 |
#endif |
| 3972 |
#if ITT_PLATFORM==ITT_PLATFORM_WIN |
| 3973 |
#define __itt_histogram_createA ITTNOTIFY_DATA(histogram_createA) |
| 3974 |
#define __itt_histogram_createA_ptr ITTNOTIFY_NAME(histogram_createA) |
| 3975 |
#define __itt_histogram_createW ITTNOTIFY_DATA(histogram_createW) |
| 3976 |
#define __itt_histogram_createW_ptr ITTNOTIFY_NAME(histogram_createW) |
| 3977 |
#else |
| 3978 |
#define __itt_histogram_create ITTNOTIFY_DATA(histogram_create) |
| 3979 |
#define __itt_histogram_create_ptr ITTNOTIFY_NAME(histogram_create) |
| 3980 |
#endif |
| 3981 |
#else |
| 3982 |
#if ITT_PLATFORM==ITT_PLATFORM_WIN |
| 3983 |
#define __itt_histogram_createA(domain, name, x_type, y_type) (__itt_histogram*)0 |
| 3984 |
#define __itt_histogram_createA_ptr 0 |
| 3985 |
#define __itt_histogram_createW(domain, name, x_type, y_type) (__itt_histogram*)0 |
| 3986 |
#define __itt_histogram_createW_ptr 0 |
| 3987 |
#else |
| 3988 |
#define __itt_histogram_create(domain, name, x_type, y_type) (__itt_histogram*)0 |
| 3989 |
#define __itt_histogram_create_ptr 0 |
| 3990 |
#endif |
| 3991 |
#endif |
| 3992 |
#else |
| 3993 |
#if ITT_PLATFORM==ITT_PLATFORM_WIN |
| 3994 |
#define __itt_histogram_createA_ptr 0 |
| 3995 |
#define __itt_histogram_createW_ptr 0 |
| 3996 |
#else |
| 3997 |
#define __itt_histogram_create_ptr 0 |
| 3998 |
#endif |
| 3999 |
#endif |
| 4000 |
|
| 4001 |
|
| 4002 |
|
| 4003 |
|
| 4004 |
|
| 4005 |
|
| 4006 |
|
| 4007 |
|
| 4008 |
|
| 4009 |
void ITTAPI __itt_histogram_submit(__itt_histogram* hist, size_t length, void* x_data, void* y_data); |
| 4010 |
|
| 4011 |
|
| 4012 |
#ifndef INTEL_NO_MACRO_BODY |
| 4013 |
#ifndef INTEL_NO_ITTNOTIFY_API |
| 4014 |
ITT_STUBV(ITTAPI, void, histogram_submit, (__itt_histogram* hist, size_t length, void* x_data, void* y_data)) |
| 4015 |
#define __itt_histogram_submit ITTNOTIFY_VOID(histogram_submit) |
| 4016 |
#define __itt_histogram_submit_ptr ITTNOTIFY_NAME(histogram_submit) |
| 4017 |
#else |
| 4018 |
#define __itt_histogram_submit(hist, length, x_data, y_data) |
| 4019 |
#define __itt_histogram_submit_ptr 0 |
| 4020 |
#endif |
| 4021 |
#else |
| 4022 |
#define __itt_histogram_submit_ptr 0 |
| 4023 |
#endif |
| 4024 |
|
| 4025 |
|
| 4026 |
|
| 4027 |
|
| 4028 |
|
| 4029 |
__itt_collection_state __itt_get_collection_state(void); |
| 4030 |
|
| 4031 |
|
| 4032 |
|
| 4033 |
|
| 4034 |
|
| 4035 |
|
| 4036 |
void __itt_release_resources(void); |
| 4037 |
|
| 4038 |
|
| 4039 |
|
| 4040 |
|
| 4041 |
|
| 4042 |
#if ITT_PLATFORM==ITT_PLATFORM_WIN |
| 4043 |
__itt_counter ITTAPI __itt_counter_createA_v3(const __itt_domain* domain, const char* name, __itt_metadata_type type); |
| 4044 |
__itt_counter ITTAPI __itt_counter_createW_v3(const __itt_domain* domain, const wchar_t* name, __itt_metadata_type type); |
| 4045 |
#if defined(UNICODE) || defined(_UNICODE) |
| 4046 |
# define __itt_counter_create_v3 __itt_counter_createW_v3 |
| 4047 |
# define __itt_counter_create_v3_ptr __itt_counter_createW_v3_ptr |
| 4048 |
#else |
| 4049 |
# define __itt_counter_create_v3 __itt_counter_createA_v3 |
| 4050 |
# define __itt_counter_create_v3_ptr __itt_counter_createA_v3_ptr |
| 4051 |
#endif |
| 4052 |
#else |
| 4053 |
__itt_counter ITTAPI __itt_counter_create_v3(const __itt_domain* domain, const char* name, __itt_metadata_type type); |
| 4054 |
#endif |
| 4055 |
|
| 4056 |
#ifndef INTEL_NO_MACRO_BODY |
| 4057 |
#ifndef INTEL_NO_ITTNOTIFY_API |
| 4058 |
#if ITT_PLATFORM==ITT_PLATFORM_WIN |
| 4059 |
ITT_STUB(ITTAPI, __itt_counter, counter_createA_v3, (const __itt_domain* domain, const char* name, __itt_metadata_type type)) |
| 4060 |
ITT_STUB(ITTAPI, __itt_counter, counter_createW_v3, (const __itt_domain* domain, const wchar_t* name, __itt_metadata_type type)) |
| 4061 |
#else |
| 4062 |
ITT_STUB(ITTAPI, __itt_counter, counter_create_v3, (const __itt_domain* domain, const char* name, __itt_metadata_type type)) |
| 4063 |
#endif |
| 4064 |
#if ITT_PLATFORM==ITT_PLATFORM_WIN |
| 4065 |
#define __itt_counter_createA_v3 ITTNOTIFY_DATA(counter_createA_v3) |
| 4066 |
#define __itt_counter_createA_v3_ptr ITTNOTIFY_NAME(counter_createA_v3) |
| 4067 |
#define __itt_counter_createW_v3 ITTNOTIFY_DATA(counter_createW_v3) |
| 4068 |
#define __itt_counter_createW_v3_ptr ITTNOTIFY_NAME(counter_createW_v3) |
| 4069 |
#else |
| 4070 |
#define __itt_counter_create_v3 ITTNOTIFY_DATA(counter_create_v3) |
| 4071 |
#define __itt_counter_create_v3_ptr ITTNOTIFY_NAME(counter_create_v3) |
| 4072 |
#endif |
| 4073 |
#else |
| 4074 |
#if ITT_PLATFORM==ITT_PLATFORM_WIN |
| 4075 |
#define __itt_counter_createA_v3(domain, name, type) (__itt_counter)0 |
| 4076 |
#define __itt_counter_createA_v3_ptr 0 |
| 4077 |
#define __itt_counter_createW_v3(domain, name, type) (__itt_counter)0 |
| 4078 |
#define __itt_counter_create_typedW_ptr 0 |
| 4079 |
#else |
| 4080 |
#define __itt_counter_create_v3(domain, name, type) (__itt_counter)0 |
| 4081 |
#define __itt_counter_create_v3_ptr 0 |
| 4082 |
#endif |
| 4083 |
#endif |
| 4084 |
#else |
| 4085 |
#if ITT_PLATFORM==ITT_PLATFORM_WIN |
| 4086 |
#define __itt_counter_createA_v3_ptr 0 |
| 4087 |
#define __itt_counter_createW_v3_ptr 0 |
| 4088 |
#else |
| 4089 |
#define __itt_counter_create_v3_ptr 0 |
| 4090 |
#endif |
| 4091 |
#endif |
| 4092 |
|
| 4093 |
|
| 4094 |
|
| 4095 |
|
| 4096 |
|
| 4097 |
void ITTAPI __itt_counter_set_value_v3(__itt_counter counter, void *value_ptr); |
| 4098 |
|
| 4099 |
#ifndef INTEL_NO_MACRO_BODY |
| 4100 |
#ifndef INTEL_NO_ITTNOTIFY_API |
| 4101 |
ITT_STUBV(ITTAPI, void, counter_set_value_v3, (__itt_counter counter, void *value_ptr)) |
| 4102 |
#define __itt_counter_set_value_v3 ITTNOTIFY_VOID(counter_set_value_v3) |
| 4103 |
#define __itt_counter_set_value_v3_ptr ITTNOTIFY_NAME(counter_set_value_v3) |
| 4104 |
#else |
| 4105 |
#define __itt_counter_set_value_v3(counter, value_ptr) |
| 4106 |
#define __itt_counter_set_value_v3_ptr 0 |
| 4107 |
#endif |
| 4108 |
#else |
| 4109 |
#define __itt_counter_set_value_v3_ptr 0 |
| 4110 |
#endif |
| 4111 |
|
| 4112 |
|
| 4113 |
|
| 4114 |
|
| 4115 |
|
| 4116 |
typedef enum { |
| 4117 |
__itt_context_unknown = 0, |
| 4118 |
__itt_context_nameA, |
| 4119 |
__itt_context_nameW, |
| 4120 |
__itt_context_deviceA, |
| 4121 |
__itt_context_deviceW, |
| 4122 |
__itt_context_unitsA, |
| 4123 |
__itt_context_unitsW, |
| 4124 |
__itt_context_pci_addrA, |
| 4125 |
__itt_context_pci_addrW, |
| 4126 |
__itt_context_tid, |
| 4127 |
__itt_context_max_val, |
| 4128 |
__itt_context_bandwidth_flag, |
| 4129 |
__itt_context_latency_flag, |
| 4130 |
__itt_context_occupancy_flag, |
| 4131 |
__itt_context_on_thread_flag, |
| 4132 |
__itt_context_is_abs_val_flag, |
| 4133 |
__itt_context_cpu_instructions_flag, |
| 4134 |
__itt_context_cpu_cycles_flag |
| 4135 |
} __itt_context_type; |
| 4136 |
|
| 4137 |
#if defined(UNICODE) || defined(_UNICODE) |
| 4138 |
# define __itt_context_name __itt_context_nameW |
| 4139 |
# define __itt_context_device __itt_context_deviceW |
| 4140 |
# define __itt_context_units __itt_context_unitsW |
| 4141 |
# define __itt_context_pci_addr __itt_context_pci_addrW |
| 4142 |
#else |
| 4143 |
# define __itt_context_name __itt_context_nameA |
| 4144 |
# define __itt_context_device __itt_context_deviceA |
| 4145 |
# define __itt_context_units __itt_context_unitsA |
| 4146 |
# define __itt_context_pci_addr __itt_context_pci_addrA |
| 4147 |
#endif |
| 4148 |
|
| 4149 |
|
| 4150 |
#pragma pack(push, 8) |
| 4151 |
|
| 4152 |
typedef struct ___itt_context_metadata |
| 4153 |
{ |
| 4154 |
__itt_context_type type; |
| 4155 |
void* value; |
| 4156 |
} __itt_context_metadata; |
| 4157 |
|
| 4158 |
#pragma pack(pop) |
| 4159 |
|
| 4160 |
|
| 4161 |
|
| 4162 |
#pragma pack(push, 8) |
| 4163 |
|
| 4164 |
typedef struct ___itt_counter_metadata |
| 4165 |
{ |
| 4166 |
__itt_counter counter; |
| 4167 |
__itt_context_type type; |
| 4168 |
const char* str_valueA; |
| 4169 |
#if defined(UNICODE) || defined(_UNICODE) |
| 4170 |
const wchar_t* str_valueW; |
| 4171 |
#else |
| 4172 |
void* str_valueW; |
| 4173 |
#endif |
| 4174 |
unsigned long long value; |
| 4175 |
int extra1; |
| 4176 |
void* extra2; |
| 4177 |
struct ___itt_counter_metadata* next; |
| 4178 |
} __itt_counter_metadata; |
| 4179 |
|
| 4180 |
#pragma pack(pop) |
| 4181 |
|
| 4182 |
|
| 4183 |
|
| 4184 |
|
| 4185 |
|
| 4186 |
|
| 4187 |
|
| 4188 |
|
| 4189 |
void ITTAPI __itt_bind_context_metadata_to_counter(__itt_counter counter, size_t length, __itt_context_metadata* metadata); |
| 4190 |
|
| 4191 |
|
| 4192 |
#ifndef INTEL_NO_MACRO_BODY |
| 4193 |
#ifndef INTEL_NO_ITTNOTIFY_API |
| 4194 |
ITT_STUBV(ITTAPI, void, bind_context_metadata_to_counter, (__itt_counter counter, size_t length, __itt_context_metadata* metadata)) |
| 4195 |
#define __itt_bind_context_metadata_to_counter ITTNOTIFY_VOID(bind_context_metadata_to_counter) |
| 4196 |
#define __itt_bind_context_metadata_to_counter_ptr ITTNOTIFY_NAME(bind_context_metadata_to_counter) |
| 4197 |
#else |
| 4198 |
#define __itt_bind_context_metadata_to_counter(counter, length, metadata) |
| 4199 |
#define __itt_bind_context_metadata_to_counter_ptr 0 |
| 4200 |
#endif |
| 4201 |
#else |
| 4202 |
#define __itt_bind_context_metadata_to_counter_ptr 0 |
| 4203 |
#endif |
| 4204 |
|
| 4205 |
|
| 4206 |
#ifdef __cplusplus |
| 4207 |
} |
| 4208 |
#endif |
| 4209 |
|
| 4210 |
#endif |
| 4211 |
|
| 4212 |
#ifdef INTEL_ITTNOTIFY_API_PRIVATE |
| 4213 |
|
| 4214 |
#ifndef _ITTNOTIFY_PRIVATE_ |
| 4215 |
#define _ITTNOTIFY_PRIVATE_ |
| 4216 |
|
| 4217 |
#ifdef __cplusplus |
| 4218 |
extern "C" { |
| 4219 |
#endif |
| 4220 |
|
| 4221 |
|
| 4222 |
|
| 4223 |
|
| 4224 |
|
| 4225 |
|
| 4226 |
|
| 4227 |
|
| 4228 |
|
| 4229 |
|
| 4230 |
|
| 4231 |
void ITTAPI __itt_task_begin_overlapped_ex(const __itt_domain* domain, __itt_clock_domain* clock_domain, unsigned long long timestamp, __itt_id taskid, __itt_id parentid, __itt_string_handle* name); |
| 4232 |
|
| 4233 |
|
| 4234 |
|
| 4235 |
|
| 4236 |
|
| 4237 |
|
| 4238 |
|
| 4239 |
|
| 4240 |
|
| 4241 |
void ITTAPI __itt_task_end_overlapped_ex(const __itt_domain* domain, __itt_clock_domain* clock_domain, unsigned long long timestamp, __itt_id taskid); |
| 4242 |
|
| 4243 |
|
| 4244 |
#ifndef INTEL_NO_MACRO_BODY |
| 4245 |
#ifndef INTEL_NO_ITTNOTIFY_API |
| 4246 |
ITT_STUBV(ITTAPI, void, task_begin_overlapped_ex, (const __itt_domain* domain, __itt_clock_domain* clock_domain, unsigned long long timestamp, __itt_id taskid, __itt_id parentid, __itt_string_handle* name)) |
| 4247 |
ITT_STUBV(ITTAPI, void, task_end_overlapped_ex, (const __itt_domain* domain, __itt_clock_domain* clock_domain, unsigned long long timestamp, __itt_id taskid)) |
| 4248 |
#define __itt_task_begin_overlapped_ex(d,x,y,z,a,b) ITTNOTIFY_VOID_D5(task_begin_overlapped_ex,d,x,y,z,a,b) |
| 4249 |
#define __itt_task_begin_overlapped_ex_ptr ITTNOTIFY_NAME(task_begin_overlapped_ex) |
| 4250 |
#define __itt_task_end_overlapped_ex(d,x,y,z) ITTNOTIFY_VOID_D3(task_end_overlapped_ex,d,x,y,z) |
| 4251 |
#define __itt_task_end_overlapped_ex_ptr ITTNOTIFY_NAME(task_end_overlapped_ex) |
| 4252 |
#else |
| 4253 |
#define __itt_task_begin_overlapped_ex(domain,clock_domain,timestamp,taskid,parentid,name) |
| 4254 |
#define __itt_task_begin_overlapped_ex_ptr 0 |
| 4255 |
#define __itt_task_end_overlapped_ex(domain,clock_domain,timestamp,taskid) |
| 4256 |
#define __itt_task_end_overlapped_ex_ptr 0 |
| 4257 |
#endif |
| 4258 |
#else |
| 4259 |
#define __itt_task_begin_overlapped_ex_ptr 0 |
| 4260 |
#define __itt_task_end_overlapped_ptr 0 |
| 4261 |
#define __itt_task_end_overlapped_ex_ptr 0 |
| 4262 |
#endif |
| 4263 |
|
| 4264 |
|
| 4265 |
|
| 4266 |
|
| 4267 |
|
| 4268 |
|
| 4269 |
|
| 4270 |
|
| 4271 |
|
| 4272 |
|
| 4273 |
|
| 4274 |
|
| 4275 |
typedef int __itt_mark_type; |
| 4276 |
|
| 4277 |
|
| 4278 |
|
| 4279 |
|
| 4280 |
|
| 4281 |
|
| 4282 |
#if ITT_PLATFORM==ITT_PLATFORM_WIN |
| 4283 |
__itt_mark_type ITTAPI __itt_mark_createA(const char *name); |
| 4284 |
__itt_mark_type ITTAPI __itt_mark_createW(const wchar_t *name); |
| 4285 |
#if defined(UNICODE) || defined(_UNICODE) |
| 4286 |
# define __itt_mark_create __itt_mark_createW |
| 4287 |
# define __itt_mark_create_ptr __itt_mark_createW_ptr |
| 4288 |
#else |
| 4289 |
# define __itt_mark_create __itt_mark_createA |
| 4290 |
# define __itt_mark_create_ptr __itt_mark_createA_ptr |
| 4291 |
#endif |
| 4292 |
#else |
| 4293 |
__itt_mark_type ITTAPI __itt_mark_create(const char *name); |
| 4294 |
#endif |
| 4295 |
|
| 4296 |
|
| 4297 |
#ifndef INTEL_NO_MACRO_BODY |
| 4298 |
#ifndef INTEL_NO_ITTNOTIFY_API |
| 4299 |
#if ITT_PLATFORM==ITT_PLATFORM_WIN |
| 4300 |
ITT_STUB(ITTAPI, __itt_mark_type, mark_createA, (const char *name)) |
| 4301 |
ITT_STUB(ITTAPI, __itt_mark_type, mark_createW, (const wchar_t *name)) |
| 4302 |
#else |
| 4303 |
ITT_STUB(ITTAPI, __itt_mark_type, mark_create, (const char *name)) |
| 4304 |
#endif |
| 4305 |
#if ITT_PLATFORM==ITT_PLATFORM_WIN |
| 4306 |
#define __itt_mark_createA ITTNOTIFY_DATA(mark_createA) |
| 4307 |
#define __itt_mark_createA_ptr ITTNOTIFY_NAME(mark_createA) |
| 4308 |
#define __itt_mark_createW ITTNOTIFY_DATA(mark_createW) |
| 4309 |
#define __itt_mark_createW_ptr ITTNOTIFY_NAME(mark_createW) |
| 4310 |
#else |
| 4311 |
#define __itt_mark_create ITTNOTIFY_DATA(mark_create) |
| 4312 |
#define __itt_mark_create_ptr ITTNOTIFY_NAME(mark_create) |
| 4313 |
#endif |
| 4314 |
#else |
| 4315 |
#if ITT_PLATFORM==ITT_PLATFORM_WIN |
| 4316 |
#define __itt_mark_createA(name) (__itt_mark_type)0 |
| 4317 |
#define __itt_mark_createA_ptr 0 |
| 4318 |
#define __itt_mark_createW(name) (__itt_mark_type)0 |
| 4319 |
#define __itt_mark_createW_ptr 0 |
| 4320 |
#else |
| 4321 |
#define __itt_mark_create(name) (__itt_mark_type)0 |
| 4322 |
#define __itt_mark_create_ptr 0 |
| 4323 |
#endif |
| 4324 |
#endif |
| 4325 |
#else |
| 4326 |
#if ITT_PLATFORM==ITT_PLATFORM_WIN |
| 4327 |
#define __itt_mark_createA_ptr 0 |
| 4328 |
#define __itt_mark_createW_ptr 0 |
| 4329 |
#else |
| 4330 |
#define __itt_mark_create_ptr 0 |
| 4331 |
#endif |
| 4332 |
#endif |
| 4333 |
|
| 4334 |
|
| 4335 |
|
| 4336 |
|
| 4337 |
|
| 4338 |
|
| 4339 |
|
| 4340 |
|
| 4341 |
|
| 4342 |
|
| 4343 |
|
| 4344 |
|
| 4345 |
|
| 4346 |
|
| 4347 |
#if ITT_PLATFORM==ITT_PLATFORM_WIN |
| 4348 |
int ITTAPI __itt_markA(__itt_mark_type mt, const char *parameter); |
| 4349 |
int ITTAPI __itt_markW(__itt_mark_type mt, const wchar_t *parameter); |
| 4350 |
#if defined(UNICODE) || defined(_UNICODE) |
| 4351 |
# define __itt_mark __itt_markW |
| 4352 |
# define __itt_mark_ptr __itt_markW_ptr |
| 4353 |
#else |
| 4354 |
# define __itt_mark __itt_markA |
| 4355 |
# define __itt_mark_ptr __itt_markA_ptr |
| 4356 |
#endif |
| 4357 |
#else |
| 4358 |
int ITTAPI __itt_mark(__itt_mark_type mt, const char *parameter); |
| 4359 |
#endif |
| 4360 |
|
| 4361 |
|
| 4362 |
#ifndef INTEL_NO_MACRO_BODY |
| 4363 |
#ifndef INTEL_NO_ITTNOTIFY_API |
| 4364 |
#if ITT_PLATFORM==ITT_PLATFORM_WIN |
| 4365 |
ITT_STUB(ITTAPI, int, markA, (__itt_mark_type mt, const char *parameter)) |
| 4366 |
ITT_STUB(ITTAPI, int, markW, (__itt_mark_type mt, const wchar_t *parameter)) |
| 4367 |
#else |
| 4368 |
ITT_STUB(ITTAPI, int, mark, (__itt_mark_type mt, const char *parameter)) |
| 4369 |
#endif |
| 4370 |
#if ITT_PLATFORM==ITT_PLATFORM_WIN |
| 4371 |
#define __itt_markA ITTNOTIFY_DATA(markA) |
| 4372 |
#define __itt_markA_ptr ITTNOTIFY_NAME(markA) |
| 4373 |
#define __itt_markW ITTNOTIFY_DATA(markW) |
| 4374 |
#define __itt_markW_ptr ITTNOTIFY_NAME(markW) |
| 4375 |
#else |
| 4376 |
#define __itt_mark ITTNOTIFY_DATA(mark) |
| 4377 |
#define __itt_mark_ptr ITTNOTIFY_NAME(mark) |
| 4378 |
#endif |
| 4379 |
#else |
| 4380 |
#if ITT_PLATFORM==ITT_PLATFORM_WIN |
| 4381 |
#define __itt_markA(mt, parameter) (int)0 |
| 4382 |
#define __itt_markA_ptr 0 |
| 4383 |
#define __itt_markW(mt, parameter) (int)0 |
| 4384 |
#define __itt_markW_ptr 0 |
| 4385 |
#else |
| 4386 |
#define __itt_mark(mt, parameter) (int)0 |
| 4387 |
#define __itt_mark_ptr 0 |
| 4388 |
#endif |
| 4389 |
#endif |
| 4390 |
#else |
| 4391 |
#if ITT_PLATFORM==ITT_PLATFORM_WIN |
| 4392 |
#define __itt_markA_ptr 0 |
| 4393 |
#define __itt_markW_ptr 0 |
| 4394 |
#else |
| 4395 |
#define __itt_mark_ptr 0 |
| 4396 |
#endif |
| 4397 |
#endif |
| 4398 |
|
| 4399 |
|
| 4400 |
|
| 4401 |
|
| 4402 |
|
| 4403 |
|
| 4404 |
|
| 4405 |
#if ITT_PLATFORM==ITT_PLATFORM_WIN |
| 4406 |
int ITTAPI __itt_mark_globalA(__itt_mark_type mt, const char *parameter); |
| 4407 |
int ITTAPI __itt_mark_globalW(__itt_mark_type mt, const wchar_t *parameter); |
| 4408 |
#if defined(UNICODE) || defined(_UNICODE) |
| 4409 |
# define __itt_mark_global __itt_mark_globalW |
| 4410 |
# define __itt_mark_global_ptr __itt_mark_globalW_ptr |
| 4411 |
#else |
| 4412 |
# define __itt_mark_global __itt_mark_globalA |
| 4413 |
# define __itt_mark_global_ptr __itt_mark_globalA_ptr |
| 4414 |
#endif |
| 4415 |
#else |
| 4416 |
int ITTAPI __itt_mark_global(__itt_mark_type mt, const char *parameter); |
| 4417 |
#endif |
| 4418 |
|
| 4419 |
|
| 4420 |
#ifndef INTEL_NO_MACRO_BODY |
| 4421 |
#ifndef INTEL_NO_ITTNOTIFY_API |
| 4422 |
#if ITT_PLATFORM==ITT_PLATFORM_WIN |
| 4423 |
ITT_STUB(ITTAPI, int, mark_globalA, (__itt_mark_type mt, const char *parameter)) |
| 4424 |
ITT_STUB(ITTAPI, int, mark_globalW, (__itt_mark_type mt, const wchar_t *parameter)) |
| 4425 |
#else |
| 4426 |
ITT_STUB(ITTAPI, int, mark_global, (__itt_mark_type mt, const char *parameter)) |
| 4427 |
#endif |
| 4428 |
#if ITT_PLATFORM==ITT_PLATFORM_WIN |
| 4429 |
#define __itt_mark_globalA ITTNOTIFY_DATA(mark_globalA) |
| 4430 |
#define __itt_mark_globalA_ptr ITTNOTIFY_NAME(mark_globalA) |
| 4431 |
#define __itt_mark_globalW ITTNOTIFY_DATA(mark_globalW) |
| 4432 |
#define __itt_mark_globalW_ptr ITTNOTIFY_NAME(mark_globalW) |
| 4433 |
#else |
| 4434 |
#define __itt_mark_global ITTNOTIFY_DATA(mark_global) |
| 4435 |
#define __itt_mark_global_ptr ITTNOTIFY_NAME(mark_global) |
| 4436 |
#endif |
| 4437 |
#else |
| 4438 |
#if ITT_PLATFORM==ITT_PLATFORM_WIN |
| 4439 |
#define __itt_mark_globalA(mt, parameter) (int)0 |
| 4440 |
#define __itt_mark_globalA_ptr 0 |
| 4441 |
#define __itt_mark_globalW(mt, parameter) (int)0 |
| 4442 |
#define __itt_mark_globalW_ptr 0 |
| 4443 |
#else |
| 4444 |
#define __itt_mark_global(mt, parameter) (int)0 |
| 4445 |
#define __itt_mark_global_ptr 0 |
| 4446 |
#endif |
| 4447 |
#endif |
| 4448 |
#else |
| 4449 |
#if ITT_PLATFORM==ITT_PLATFORM_WIN |
| 4450 |
#define __itt_mark_globalA_ptr 0 |
| 4451 |
#define __itt_mark_globalW_ptr 0 |
| 4452 |
#else |
| 4453 |
#define __itt_mark_global_ptr 0 |
| 4454 |
#endif |
| 4455 |
#endif |
| 4456 |
|
| 4457 |
|
| 4458 |
|
| 4459 |
|
| 4460 |
|
| 4461 |
|
| 4462 |
|
| 4463 |
|
| 4464 |
|
| 4465 |
|
| 4466 |
|
| 4467 |
|
| 4468 |
|
| 4469 |
|
| 4470 |
|
| 4471 |
|
| 4472 |
|
| 4473 |
int ITTAPI __itt_mark_off(__itt_mark_type mt); |
| 4474 |
|
| 4475 |
|
| 4476 |
#ifndef INTEL_NO_MACRO_BODY |
| 4477 |
#ifndef INTEL_NO_ITTNOTIFY_API |
| 4478 |
ITT_STUB(ITTAPI, int, mark_off, (__itt_mark_type mt)) |
| 4479 |
#define __itt_mark_off ITTNOTIFY_DATA(mark_off) |
| 4480 |
#define __itt_mark_off_ptr ITTNOTIFY_NAME(mark_off) |
| 4481 |
#else |
| 4482 |
#define __itt_mark_off(mt) (int)0 |
| 4483 |
#define __itt_mark_off_ptr 0 |
| 4484 |
#endif |
| 4485 |
#else |
| 4486 |
#define __itt_mark_off_ptr 0 |
| 4487 |
#endif |
| 4488 |
|
| 4489 |
|
| 4490 |
|
| 4491 |
|
| 4492 |
|
| 4493 |
|
| 4494 |
int ITTAPI __itt_mark_global_off(__itt_mark_type mt); |
| 4495 |
|
| 4496 |
|
| 4497 |
#ifndef INTEL_NO_MACRO_BODY |
| 4498 |
#ifndef INTEL_NO_ITTNOTIFY_API |
| 4499 |
ITT_STUB(ITTAPI, int, mark_global_off, (__itt_mark_type mt)) |
| 4500 |
#define __itt_mark_global_off ITTNOTIFY_DATA(mark_global_off) |
| 4501 |
#define __itt_mark_global_off_ptr ITTNOTIFY_NAME(mark_global_off) |
| 4502 |
#else |
| 4503 |
#define __itt_mark_global_off(mt) (int)0 |
| 4504 |
#define __itt_mark_global_off_ptr 0 |
| 4505 |
#endif |
| 4506 |
#else |
| 4507 |
#define __itt_mark_global_off_ptr 0 |
| 4508 |
#endif |
| 4509 |
|
| 4510 |
|
| 4511 |
|
| 4512 |
|
| 4513 |
|
| 4514 |
|
| 4515 |
|
| 4516 |
|
| 4517 |
|
| 4518 |
|
| 4519 |
|
| 4520 |
|
| 4521 |
|
| 4522 |
|
| 4523 |
|
| 4524 |
|
| 4525 |
|
| 4526 |
|
| 4527 |
|
| 4528 |
|
| 4529 |
typedef struct ___itt_caller *__itt_caller; |
| 4530 |
|
| 4531 |
|
| 4532 |
|
| 4533 |
|
| 4534 |
|
| 4535 |
__itt_caller ITTAPI __itt_stack_caller_create(void); |
| 4536 |
|
| 4537 |
|
| 4538 |
#ifndef INTEL_NO_MACRO_BODY |
| 4539 |
#ifndef INTEL_NO_ITTNOTIFY_API |
| 4540 |
ITT_STUB(ITTAPI, __itt_caller, stack_caller_create, (void)) |
| 4541 |
#define __itt_stack_caller_create ITTNOTIFY_DATA(stack_caller_create) |
| 4542 |
#define __itt_stack_caller_create_ptr ITTNOTIFY_NAME(stack_caller_create) |
| 4543 |
#else |
| 4544 |
#define __itt_stack_caller_create() (__itt_caller)0 |
| 4545 |
#define __itt_stack_caller_create_ptr 0 |
| 4546 |
#endif |
| 4547 |
#else |
| 4548 |
#define __itt_stack_caller_create_ptr 0 |
| 4549 |
#endif |
| 4550 |
|
| 4551 |
|
| 4552 |
|
| 4553 |
|
| 4554 |
|
| 4555 |
void ITTAPI __itt_stack_caller_destroy(__itt_caller id); |
| 4556 |
|
| 4557 |
|
| 4558 |
#ifndef INTEL_NO_MACRO_BODY |
| 4559 |
#ifndef INTEL_NO_ITTNOTIFY_API |
| 4560 |
ITT_STUBV(ITTAPI, void, stack_caller_destroy, (__itt_caller id)) |
| 4561 |
#define __itt_stack_caller_destroy ITTNOTIFY_VOID(stack_caller_destroy) |
| 4562 |
#define __itt_stack_caller_destroy_ptr ITTNOTIFY_NAME(stack_caller_destroy) |
| 4563 |
#else |
| 4564 |
#define __itt_stack_caller_destroy(id) |
| 4565 |
#define __itt_stack_caller_destroy_ptr 0 |
| 4566 |
#endif |
| 4567 |
#else |
| 4568 |
#define __itt_stack_caller_destroy_ptr 0 |
| 4569 |
#endif |
| 4570 |
|
| 4571 |
|
| 4572 |
|
| 4573 |
|
| 4574 |
|
| 4575 |
|
| 4576 |
void ITTAPI __itt_stack_callee_enter(__itt_caller id); |
| 4577 |
|
| 4578 |
|
| 4579 |
#ifndef INTEL_NO_MACRO_BODY |
| 4580 |
#ifndef INTEL_NO_ITTNOTIFY_API |
| 4581 |
ITT_STUBV(ITTAPI, void, stack_callee_enter, (__itt_caller id)) |
| 4582 |
#define __itt_stack_callee_enter ITTNOTIFY_VOID(stack_callee_enter) |
| 4583 |
#define __itt_stack_callee_enter_ptr ITTNOTIFY_NAME(stack_callee_enter) |
| 4584 |
#else |
| 4585 |
#define __itt_stack_callee_enter(id) |
| 4586 |
#define __itt_stack_callee_enter_ptr 0 |
| 4587 |
#endif |
| 4588 |
#else |
| 4589 |
#define __itt_stack_callee_enter_ptr 0 |
| 4590 |
#endif |
| 4591 |
|
| 4592 |
|
| 4593 |
|
| 4594 |
|
| 4595 |
|
| 4596 |
void ITTAPI __itt_stack_callee_leave(__itt_caller id); |
| 4597 |
|
| 4598 |
|
| 4599 |
#ifndef INTEL_NO_MACRO_BODY |
| 4600 |
#ifndef INTEL_NO_ITTNOTIFY_API |
| 4601 |
ITT_STUBV(ITTAPI, void, stack_callee_leave, (__itt_caller id)) |
| 4602 |
#define __itt_stack_callee_leave ITTNOTIFY_VOID(stack_callee_leave) |
| 4603 |
#define __itt_stack_callee_leave_ptr ITTNOTIFY_NAME(stack_callee_leave) |
| 4604 |
#else |
| 4605 |
#define __itt_stack_callee_leave(id) |
| 4606 |
#define __itt_stack_callee_leave_ptr 0 |
| 4607 |
#endif |
| 4608 |
#else |
| 4609 |
#define __itt_stack_callee_leave_ptr 0 |
| 4610 |
#endif |
| 4611 |
|
| 4612 |
|
| 4613 |
|
| 4614 |
|
| 4615 |
|
| 4616 |
|
| 4617 |
#include <stdarg.h> |
| 4618 |
|
| 4619 |
|
| 4620 |
typedef enum __itt_error_code |
| 4621 |
{ |
| 4622 |
__itt_error_success = 0, |
| 4623 |
__itt_error_no_module = 1, |
| 4624 |
|
| 4625 |
__itt_error_no_symbol = 2, |
| 4626 |
|
| 4627 |
__itt_error_unknown_group = 3, |
| 4628 |
|
| 4629 |
__itt_error_cant_read_env = 4, |
| 4630 |
|
| 4631 |
__itt_error_env_too_long = 5, |
| 4632 |
|
| 4633 |
__itt_error_system = 6 |
| 4634 |
|
| 4635 |
} __itt_error_code; |
| 4636 |
|
| 4637 |
typedef void (__itt_error_handler_t)(__itt_error_code code, va_list); |
| 4638 |
__itt_error_handler_t* __itt_set_error_handler(__itt_error_handler_t*); |
| 4639 |
|
| 4640 |
const char* ITTAPI __itt_api_version(void); |
| 4641 |
|
| 4642 |
|
| 4643 |
|
| 4644 |
#ifndef INTEL_NO_MACRO_BODY |
| 4645 |
#ifndef INTEL_NO_ITTNOTIFY_API |
| 4646 |
#define __itt_error_handler ITT_JOIN(INTEL_ITTNOTIFY_PREFIX, error_handler) |
| 4647 |
void __itt_error_handler(__itt_error_code code, va_list args); |
| 4648 |
extern const int ITTNOTIFY_NAME(err); |
| 4649 |
#define __itt_err ITTNOTIFY_NAME(err) |
| 4650 |
ITT_STUB(ITTAPI, const char*, api_version, (void)) |
| 4651 |
#define __itt_api_version ITTNOTIFY_DATA(api_version) |
| 4652 |
#define __itt_api_version_ptr ITTNOTIFY_NAME(api_version) |
| 4653 |
#else |
| 4654 |
#define __itt_api_version() (const char*)0 |
| 4655 |
#define __itt_api_version_ptr 0 |
| 4656 |
#endif |
| 4657 |
#else |
| 4658 |
#define __itt_api_version_ptr 0 |
| 4659 |
#endif |
| 4660 |
|
| 4661 |
|
| 4662 |
#ifdef __cplusplus |
| 4663 |
} |
| 4664 |
#endif |
| 4665 |
|
| 4666 |
#endif |
| 4667 |
|
| 4668 |
#endif |