#include "ittnotify_config.h"
#ifndef ITT_FORMAT_DEFINED
#ifndef ITT_FORMAT
#define ITT_FORMAT
#endif
#ifndef ITT_NO_PARAMS
#define ITT_NO_PARAMS
#endif
#endif
#ifdef __ITT_INTERNAL_INIT
#ifndef __ITT_INTERNAL_BODY
#if ITT_PLATFORM == ITT_PLATFORM_WIN
ITT_STUB(ITTAPI, __itt_domain *, domain_createA, (const char *name),
(ITT_FORMAT name), domain_createA, __itt_group_structure, "\"%s\"")
ITT_STUB(ITTAPI, __itt_domain *, domain_createW, (const wchar_t *name),
(ITT_FORMAT name), domain_createW, __itt_group_structure, "\"%S\"")
#else
ITT_STUB(ITTAPI, __itt_domain *, domain_create, (const char *name),
(ITT_FORMAT name), domain_create, __itt_group_structure, "\"%s\"")
#endif
ITT_STUBV(ITTAPI, void, module_load_with_sections,
(__itt_module_object * module_obj), (ITT_FORMAT module_obj),
module_load_with_sections, __itt_group_module, "%p")
ITT_STUBV(ITTAPI, void, module_unload_with_sections,
(__itt_module_object * module_obj), (ITT_FORMAT module_obj),
module_unload_with_sections, __itt_group_module, "%p")
#if ITT_PLATFORM == ITT_PLATFORM_WIN
ITT_STUB(ITTAPI, __itt_string_handle *, string_handle_createA,
(const char *name), (ITT_FORMAT name), string_handle_createA,
__itt_group_structure, "\"%s\"")
ITT_STUB(ITTAPI, __itt_string_handle *, string_handle_createW,
(const wchar_t *name), (ITT_FORMAT name), string_handle_createW,
__itt_group_structure, "\"%S\"")
#else
ITT_STUB(ITTAPI, __itt_string_handle *, string_handle_create,
(const char *name), (ITT_FORMAT name), string_handle_create,
__itt_group_structure, "\"%s\"")
#endif
#if ITT_PLATFORM == ITT_PLATFORM_WIN
ITT_STUB(ITTAPI, __itt_counter, counter_createA,
(const char *name, const char *domain), (ITT_FORMAT name, domain),
counter_createA, __itt_group_counter, "\"%s\", \"%s\"")
ITT_STUB(ITTAPI, __itt_counter, counter_createW,
(const wchar_t *name, const wchar_t *domain),
(ITT_FORMAT name, domain), counter_createW, __itt_group_counter,
"\"%s\", \"%s\"")
#else
ITT_STUB(ITTAPI, __itt_counter, counter_create,
(const char *name, const char *domain), (ITT_FORMAT name, domain),
counter_create, __itt_group_counter, "\"%s\", \"%s\"")
#endif
#if ITT_PLATFORM == ITT_PLATFORM_WIN
ITT_STUB(ITTAPI, __itt_counter, counter_create_typedA,
(const char *name, const char *domain, __itt_metadata_type type),
(ITT_FORMAT name, domain, type), counter_create_typedA,
__itt_group_counter, "\"%s\", \"%s\", %d")
ITT_STUB(ITTAPI, __itt_counter, counter_create_typedW,
(const wchar_t *name, const wchar_t *domain, __itt_metadata_type type),
(ITT_FORMAT name, domain, type), counter_create_typedW,
__itt_group_counter, "\"%s\", \"%s\", %d")
#else
ITT_STUB(ITTAPI, __itt_counter, counter_create_typed,
(const char *name, const char *domain, __itt_metadata_type type),
(ITT_FORMAT name, domain, type), counter_create_typed,
__itt_group_counter, "\"%s\", \"%s\", %d")
#endif
ITT_STUBV(ITTAPI, void, pause, (void), (ITT_NO_PARAMS), pause,
__itt_group_control | __itt_group_legacy, "no args")
ITT_STUBV(ITTAPI, void, resume, (void), (ITT_NO_PARAMS), resume,
__itt_group_control | __itt_group_legacy, "no args")
#if ITT_PLATFORM == ITT_PLATFORM_WIN
ITT_STUBV(ITTAPI, void, thread_set_nameA, (const char *name), (ITT_FORMAT name),
thread_set_nameA, __itt_group_thread, "\"%s\"")
ITT_STUBV(ITTAPI, void, thread_set_nameW, (const wchar_t *name),
(ITT_FORMAT name), thread_set_nameW, __itt_group_thread, "\"%S\"")
#else
ITT_STUBV(ITTAPI, void, thread_set_name, (const char *name), (ITT_FORMAT name),
thread_set_name, __itt_group_thread, "\"%s\"")
#endif
ITT_STUBV(ITTAPI, void, thread_ignore, (void), (ITT_NO_PARAMS), thread_ignore,
__itt_group_thread, "no args")
#if ITT_PLATFORM == ITT_PLATFORM_WIN
ITT_STUB(LIBITTAPI, int, thr_name_setA, (const char *name, int namelen),
(ITT_FORMAT name, namelen), thr_name_setA,
__itt_group_thread | __itt_group_legacy, "\"%s\", %d")
ITT_STUB(LIBITTAPI, int, thr_name_setW, (const wchar_t *name, int namelen),
(ITT_FORMAT name, namelen), thr_name_setW,
__itt_group_thread | __itt_group_legacy, "\"%S\", %d")
#else
ITT_STUB(LIBITTAPI, int, thr_name_set, (const char *name, int namelen),
(ITT_FORMAT name, namelen), thr_name_set,
__itt_group_thread | __itt_group_legacy, "\"%s\", %d")
#endif
ITT_STUBV(LIBITTAPI, void, thr_ignore, (void), (ITT_NO_PARAMS), thr_ignore,
__itt_group_thread | __itt_group_legacy, "no args")
#if ITT_PLATFORM == ITT_PLATFORM_WIN
ITT_STUB(ITTAPI, __itt_histogram *, histogram_createA,
(const __itt_domain *domain, const char *name,
__itt_metadata_type x_type, __itt_metadata_type y_type),
(ITT_FORMAT domain, name, x_type, y_type), histogram_createA,
__itt_group_structure, "%p, \"%s\", %d, %d")
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),
(ITT_FORMAT domain, name, x_type, y_type), histogram_createW,
__itt_group_structure, "%p, \"%s\", %d, %d")
#else
ITT_STUB(ITTAPI, __itt_histogram *, histogram_create,
(const __itt_domain *domain, const char *name,
__itt_metadata_type x_type, __itt_metadata_type y_type),
(ITT_FORMAT domain, name, x_type, y_type), histogram_create,
__itt_group_structure, "%p, \"%s\", %d, %d")
#endif
#endif
ITT_STUBV(ITTAPI, void, enable_attach, (void), (ITT_NO_PARAMS), enable_attach,
__itt_group_all, "no args")
#else
ITT_STUBV …
#if ITT_PLATFORM == ITT_PLATFORM_WIN
ITT_STUBV(ITTAPI, void, sync_createA,
(void *addr, const char *objtype, const char *objname, int attribute),
(ITT_FORMAT addr, objtype, objname, attribute), sync_createA,
__itt_group_sync | __itt_group_fsync, "%p, \"%s\", \"%s\", %x")
ITT_STUBV(ITTAPI, void, sync_createW,
(void *addr, const wchar_t *objtype, const wchar_t *objname,
int attribute),
(ITT_FORMAT addr, objtype, objname, attribute), sync_createW,
__itt_group_sync | __itt_group_fsync, "%p, \"%S\", \"%S\", %x")
ITT_STUBV(ITTAPI, void, sync_renameA, (void *addr, const char *name),
(ITT_FORMAT addr, name), sync_renameA,
__itt_group_sync | __itt_group_fsync, "%p, \"%s\"")
ITT_STUBV(ITTAPI, void, sync_renameW, (void *addr, const wchar_t *name),
(ITT_FORMAT addr, name), sync_renameW,
__itt_group_sync | __itt_group_fsync, "%p, \"%S\"")
#else
ITT_STUBV …
ITT_STUBV …
#endif
ITT_STUBV …
ITT_STUBV …
ITT_STUBV …
ITT_STUBV …
ITT_STUBV …
ITT_STUBV …
ITT_STUBV …
ITT_STUBV …
ITT_STUBV …
ITT_STUBV …
ITT_STUBV …
ITT_STUBV …
ITT_STUBV …
ITT_STUBV …
ITT_STUBV …
ITT_STUBV …
ITT_STUBV …
ITT_STUBV …
ITT_STUBV …
ITT_STUBV …
ITT_STUBV …
ITT_STUBV …
ITT_STUBV …
ITT_STUBV …
ITT_STUBV …
#ifndef __ITT_INTERNAL_BODY
#if ITT_PLATFORM == ITT_PLATFORM_WIN
ITT_STUBV(ITTAPI, void, model_site_beginW, (const wchar_t *name),
(ITT_FORMAT name), model_site_beginW, __itt_group_model, "\"%s\"")
ITT_STUBV(ITTAPI, void, model_task_beginW, (const wchar_t *name),
(ITT_FORMAT name), model_task_beginW, __itt_group_model, "\"%s\"")
ITT_STUBV(ITTAPI, void, model_iteration_taskW, (const wchar_t *name),
(ITT_FORMAT name), model_iteration_taskW, __itt_group_model, "\"%s\"")
#endif
ITT_STUBV …
ITT_STUBV …
ITT_STUBV …
ITT_STUBV …
ITT_STUBV …
ITT_STUBV …
ITT_STUBV …
ITT_STUBV …
ITT_STUBV …
ITT_STUBV …
ITT_STUBV …
ITT_STUBV …
ITT_STUBV …
#endif
#ifndef __ITT_INTERNAL_BODY
#if ITT_PLATFORM == ITT_PLATFORM_WIN
ITT_STUB(ITTAPI, __itt_heap_function, heap_function_createA,
(const char *name, const char *domain), (ITT_FORMAT name, domain),
heap_function_createA, __itt_group_heap, "\"%s\", \"%s\"")
ITT_STUB(ITTAPI, __itt_heap_function, heap_function_createW,
(const wchar_t *name, const wchar_t *domain),
(ITT_FORMAT name, domain), heap_function_createW, __itt_group_heap,
"\"%s\", \"%s\"")
#else
ITT_STUB(…) …
#endif
#endif
ITT_STUBV …
ITT_STUBV …
ITT_STUBV …
ITT_STUBV …
ITT_STUBV …
ITT_STUBV …
ITT_STUBV …
ITT_STUBV …
ITT_STUBV …
ITT_STUBV …
ITT_STUBV …
ITT_STUBV …
ITT_STUBV …
ITT_STUBV …
ITT_STUB(…) …
ITT_STUBV …
ITT_STUBV …
#ifndef __ITT_INTERNAL_BODY
ITT_STUBV …
ITT_STUBV …
ITT_STUBV …
#endif
ITT_STUBV …
ITT_STUBV …
ITT_STUBV …
ITT_STUBV …
ITT_STUBV …
ITT_STUBV …
ITT_STUBV …
ITT_STUBV …
ITT_STUBV …
ITT_STUBV …
#if ITT_PLATFORM == ITT_PLATFORM_WIN
ITT_STUBV(ITTAPI, void, metadata_str_addA,
(const __itt_domain *domain, __itt_id id, __itt_string_handle *key,
const char *data, size_t length),
(ITT_FORMAT domain, id, key, data, length), metadata_str_addA,
__itt_group_structure, "%p, %lu, %p, %p, %lu")
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),
(ITT_FORMAT domain, id, key, data, length), metadata_str_addW,
__itt_group_structure, "%p, %lu, %p, %p, %lu")
#else
ITT_STUBV …
#endif
ITT_STUBV …
ITT_STUBV …
#ifndef __ITT_INTERNAL_BODY
#if ITT_PLATFORM == ITT_PLATFORM_WIN
ITT_STUB(LIBITTAPI, __itt_event, event_createA, (const char *name, int namelen),
(ITT_FORMAT name, namelen), event_createA,
__itt_group_mark | __itt_group_legacy, "\"%s\", %d")
ITT_STUB(LIBITTAPI, __itt_event, event_createW,
(const wchar_t *name, int namelen), (ITT_FORMAT name, namelen),
event_createW, __itt_group_mark | __itt_group_legacy, "\"%S\", %d")
#else
ITT_STUB(…) …
#endif
ITT_STUB(…) …
ITT_STUB(…) …
#endif
#ifndef __ITT_INTERNAL_BODY
#if ITT_PLATFORM == ITT_PLATFORM_WIN
ITT_STUBV(ITTAPI, void, sync_set_nameA,
(void *addr, const char *objtype, const char *objname, int attribute),
(ITT_FORMAT addr, objtype, objname, attribute), sync_set_nameA,
__itt_group_sync | __itt_group_fsync | __itt_group_legacy,
"%p, \"%s\", \"%s\", %x")
ITT_STUBV(ITTAPI, void, sync_set_nameW,
(void *addr, const wchar_t *objtype, const wchar_t *objname,
int attribute),
(ITT_FORMAT addr, objtype, objname, attribute), sync_set_nameW,
__itt_group_sync | __itt_group_fsync | __itt_group_legacy,
"%p, \"%S\", \"%S\", %x")
#else
ITT_STUBV …
#endif
#if ITT_PLATFORM == ITT_PLATFORM_WIN
ITT_STUB(LIBITTAPI, int, notify_sync_nameA,
(void *p, const char *objtype, int typelen, const char *objname,
int namelen, int attribute),
(ITT_FORMAT p, objtype, typelen, objname, namelen, attribute),
notify_sync_nameA,
__itt_group_sync | __itt_group_fsync | __itt_group_legacy,
"%p, \"%s\", %d, \"%s\", %d, %x")
ITT_STUB(LIBITTAPI, int, notify_sync_nameW,
(void *p, const wchar_t *objtype, int typelen, const wchar_t *objname,
int namelen, int attribute),
(ITT_FORMAT p, objtype, typelen, objname, namelen, attribute),
notify_sync_nameW,
__itt_group_sync | __itt_group_fsync | __itt_group_legacy,
"%p, \"%S\", %d, \"%S\", %d, %x")
#else
ITT_STUB(…) …
#endif
ITT_STUBV …
ITT_STUBV …
ITT_STUBV …
ITT_STUBV …
#endif
ITT_STUBV …
ITT_STUBV …
ITT_STUBV …
ITT_STUB(…) …
ITT_STUB(…) …
ITT_STUB(…) …
ITT_STUB(…) …
#ifndef __ITT_INTERNAL_BODY
#if ITT_PLATFORM == ITT_PLATFORM_WIN
ITT_STUB(ITTAPI, __itt_frame, frame_createA, (const char *domain),
(ITT_FORMAT domain), frame_createA, __itt_group_frame, "\"%s\"")
ITT_STUB(ITTAPI, __itt_frame, frame_createW, (const wchar_t *domain),
(ITT_FORMAT domain), frame_createW, __itt_group_frame, "\"%s\"")
#else
ITT_STUB(…) …
#endif
#if ITT_PLATFORM == ITT_PLATFORM_WIN
ITT_STUB(ITTAPI, __itt_pt_region, pt_region_createA, (const char *name),
(ITT_FORMAT name), pt_region_createA, __itt_group_structure, "\"%s\"")
ITT_STUB(ITTAPI, __itt_pt_region, pt_region_createW, (const wchar_t *name),
(ITT_FORMAT name), pt_region_createW, __itt_group_structure, "\"%S\"")
#else
ITT_STUB(…) …
#endif
#endif
ITT_STUBV …
ITT_STUBV …
ITT_STUBV …
ITT_STUBV …
ITT_STUBV …
ITT_STUBV …
ITT_STUBV …
ITT_STUBV …
ITT_STUBV …
#ifndef __ITT_INTERNAL_BODY
#if ITT_PLATFORM == ITT_PLATFORM_WIN
ITT_STUB(ITTAPI, __itt_mark_type, mark_createA, (const char *name),
(ITT_FORMAT name), mark_createA, __itt_group_mark, "\"%s\"")
ITT_STUB(ITTAPI, __itt_mark_type, mark_createW, (const wchar_t *name),
(ITT_FORMAT name), mark_createW, __itt_group_mark, "\"%S\"")
#else
ITT_STUB(…) …
#endif
#endif
#if ITT_PLATFORM == ITT_PLATFORM_WIN
ITT_STUB(ITTAPI, int, markA, (__itt_mark_type mt, const char *parameter),
(ITT_FORMAT mt, parameter), markA, __itt_group_mark, "%d, \"%s\"")
ITT_STUB(ITTAPI, int, markW, (__itt_mark_type mt, const wchar_t *parameter),
(ITT_FORMAT mt, parameter), markW, __itt_group_mark, "%d, \"%S\"")
#else
ITT_STUB(…) …
#endif
ITT_STUB(…) …
#if ITT_PLATFORM == ITT_PLATFORM_WIN
ITT_STUB(ITTAPI, int, mark_globalA, (__itt_mark_type mt, const char *parameter),
(ITT_FORMAT mt, parameter), mark_globalA, __itt_group_mark,
"%d, \"%s\"")
ITT_STUB(ITTAPI, int, mark_globalW,
(__itt_mark_type mt, const wchar_t *parameter),
(ITT_FORMAT mt, parameter), mark_globalW, __itt_group_mark,
"%d, \"%S\"")
#else
ITT_STUB(…) …
#endif
ITT_STUB(…) …
#ifndef __ITT_INTERNAL_BODY
ITT_STUB(…) …
#endif
ITT_STUBV …
ITT_STUBV …
ITT_STUBV …
ITT_STUB(…) …
ITT_STUBV …
ITT_STUBV …
ITT_STUBV …
ITT_STUBV …
ITT_STUBV …
ITT_STUBV …
ITT_STUBV …
ITT_STUBV …
ITT_STUBV …
ITT_STUBV …
ITT_STUBV …
ITT_STUBV …
#if ITT_PLATFORM == ITT_PLATFORM_WIN
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),
(ITT_FORMAT domain, scope, key, data, length),
metadata_str_add_with_scopeA, __itt_group_structure,
"%p, %d, %p, %p, %lu")
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),
(ITT_FORMAT domain, scope, key, data, length),
metadata_str_add_with_scopeW, __itt_group_structure,
"%p, %d, %p, %p, %lu")
#else
ITT_STUBV …
#endif
ITT_STUBV …
ITT_STUBV …
ITT_STUB(…) …
ITT_STUB(…) …
ITT_STUBV …
#ifndef __ITT_INTERNAL_BODY
ITT_STUB(…) …
#endif
#ifndef __ITT_INTERNAL_BODY
#if ITT_PLATFORM == ITT_PLATFORM_WIN
ITT_STUB(ITTAPI, int, av_saveA,
(void *data, int rank, const int *dimensions, int type,
const char *filePath, int columnOrder),
(ITT_FORMAT data, rank, dimensions, type, filePath, columnOrder),
av_saveA, __itt_group_arrays, "%p, %d, %p, %d, \"%s\", %d")
ITT_STUB(ITTAPI, int, av_saveW,
(void *data, int rank, const int *dimensions, int type,
const wchar_t *filePath, int columnOrder),
(ITT_FORMAT data, rank, dimensions, type, filePath, columnOrder),
av_saveW, __itt_group_arrays, "%p, %d, %p, %d, \"%S\", %d")
#else
ITT_STUB(…) …
#endif
#endif
#if ITT_PLATFORM == ITT_PLATFORM_WIN
ITT_STUBV(ITTAPI, void, module_loadA,
(void *start_addr, void *end_addr, const char *path),
(ITT_FORMAT start_addr, end_addr, path), module_loadA,
__itt_group_module, "%p, %p, %p")
ITT_STUBV(ITTAPI, void, module_loadW,
(void *start_addr, void *end_addr, const wchar_t *path),
(ITT_FORMAT start_addr, end_addr, path), module_loadW,
__itt_group_module, "%p, %p, %p")
#else
ITT_STUBV …
#endif
ITT_STUBV …
ITT_STUBV …
#endif