10b57cec5SDimitry Andric 20b57cec5SDimitry Andric //===----------------------------------------------------------------------===// 30b57cec5SDimitry Andric // 40b57cec5SDimitry Andric // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. 50b57cec5SDimitry Andric // See https://llvm.org/LICENSE.txt for license information. 60b57cec5SDimitry Andric // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception 70b57cec5SDimitry Andric // 80b57cec5SDimitry Andric //===----------------------------------------------------------------------===// 90b57cec5SDimitry Andric 100b57cec5SDimitry Andric #include "ittnotify_config.h" 110b57cec5SDimitry Andric 120b57cec5SDimitry Andric #ifndef ITT_FORMAT_DEFINED 130b57cec5SDimitry Andric #ifndef ITT_FORMAT 140b57cec5SDimitry Andric #define ITT_FORMAT 150b57cec5SDimitry Andric #endif /* ITT_FORMAT */ 160b57cec5SDimitry Andric #ifndef ITT_NO_PARAMS 170b57cec5SDimitry Andric #define ITT_NO_PARAMS 180b57cec5SDimitry Andric #endif /* ITT_NO_PARAMS */ 190b57cec5SDimitry Andric #endif /* ITT_FORMAT_DEFINED */ 200b57cec5SDimitry Andric 210b57cec5SDimitry Andric /* 220b57cec5SDimitry Andric * parameters for macro expected: 23fe6060f1SDimitry Andric * ITT_STUB(api, type, func_name, arguments, params, func_name_in_dll, group, 24fe6060f1SDimitry Andric * printf_fmt) 250b57cec5SDimitry Andric */ 260b57cec5SDimitry Andric #ifdef __ITT_INTERNAL_INIT 270b57cec5SDimitry Andric 280b57cec5SDimitry Andric #ifndef __ITT_INTERNAL_BODY 290b57cec5SDimitry Andric #if ITT_PLATFORM == ITT_PLATFORM_WIN 30fe6060f1SDimitry Andric ITT_STUB(ITTAPI, __itt_domain *, domain_createA, (const char *name), 31fe6060f1SDimitry Andric (ITT_FORMAT name), domain_createA, __itt_group_structure, "\"%s\"") 32fe6060f1SDimitry Andric ITT_STUB(ITTAPI, __itt_domain *, domain_createW, (const wchar_t *name), 33fe6060f1SDimitry Andric (ITT_FORMAT name), domain_createW, __itt_group_structure, "\"%S\"") 340b57cec5SDimitry Andric #else /* ITT_PLATFORM!=ITT_PLATFORM_WIN */ 35fe6060f1SDimitry Andric ITT_STUB(ITTAPI, __itt_domain *, domain_create, (const char *name), 36fe6060f1SDimitry Andric (ITT_FORMAT name), domain_create, __itt_group_structure, "\"%s\"") 370b57cec5SDimitry Andric #endif /* ITT_PLATFORM==ITT_PLATFORM_WIN */ 380b57cec5SDimitry Andric 39*349cc55cSDimitry Andric ITT_STUBV(ITTAPI, void, module_load_with_sections, 40*349cc55cSDimitry Andric (__itt_module_object * module_obj), (ITT_FORMAT module_obj), 41*349cc55cSDimitry Andric module_load_with_sections, __itt_group_module, "%p") 42*349cc55cSDimitry Andric ITT_STUBV(ITTAPI, void, module_unload_with_sections, 43*349cc55cSDimitry Andric (__itt_module_object * module_obj), (ITT_FORMAT module_obj), 44*349cc55cSDimitry Andric module_unload_with_sections, __itt_group_module, "%p") 45*349cc55cSDimitry Andric 460b57cec5SDimitry Andric #if ITT_PLATFORM == ITT_PLATFORM_WIN 47fe6060f1SDimitry Andric ITT_STUB(ITTAPI, __itt_string_handle *, string_handle_createA, 48fe6060f1SDimitry Andric (const char *name), (ITT_FORMAT name), string_handle_createA, 49fe6060f1SDimitry Andric __itt_group_structure, "\"%s\"") 50fe6060f1SDimitry Andric ITT_STUB(ITTAPI, __itt_string_handle *, string_handle_createW, 51fe6060f1SDimitry Andric (const wchar_t *name), (ITT_FORMAT name), string_handle_createW, 52fe6060f1SDimitry Andric __itt_group_structure, "\"%S\"") 530b57cec5SDimitry Andric #else /* ITT_PLATFORM!=ITT_PLATFORM_WIN */ 54fe6060f1SDimitry Andric ITT_STUB(ITTAPI, __itt_string_handle *, string_handle_create, 55fe6060f1SDimitry Andric (const char *name), (ITT_FORMAT name), string_handle_create, 56fe6060f1SDimitry Andric __itt_group_structure, "\"%s\"") 570b57cec5SDimitry Andric #endif /* ITT_PLATFORM==ITT_PLATFORM_WIN */ 580b57cec5SDimitry Andric 590b57cec5SDimitry Andric #if ITT_PLATFORM == ITT_PLATFORM_WIN 60fe6060f1SDimitry Andric ITT_STUB(ITTAPI, __itt_counter, counter_createA, 61fe6060f1SDimitry Andric (const char *name, const char *domain), (ITT_FORMAT name, domain), 62fe6060f1SDimitry Andric counter_createA, __itt_group_counter, "\"%s\", \"%s\"") 63fe6060f1SDimitry Andric ITT_STUB(ITTAPI, __itt_counter, counter_createW, 64fe6060f1SDimitry Andric (const wchar_t *name, const wchar_t *domain), 65fe6060f1SDimitry Andric (ITT_FORMAT name, domain), counter_createW, __itt_group_counter, 66fe6060f1SDimitry Andric "\"%s\", \"%s\"") 670b57cec5SDimitry Andric #else /* ITT_PLATFORM==ITT_PLATFORM_WIN */ 68fe6060f1SDimitry Andric ITT_STUB(ITTAPI, __itt_counter, counter_create, 69fe6060f1SDimitry Andric (const char *name, const char *domain), (ITT_FORMAT name, domain), 70fe6060f1SDimitry Andric counter_create, __itt_group_counter, "\"%s\", \"%s\"") 710b57cec5SDimitry Andric #endif /* ITT_PLATFORM==ITT_PLATFORM_WIN */ 720b57cec5SDimitry Andric 730b57cec5SDimitry Andric #if ITT_PLATFORM == ITT_PLATFORM_WIN 74fe6060f1SDimitry Andric ITT_STUB(ITTAPI, __itt_counter, counter_create_typedA, 75fe6060f1SDimitry Andric (const char *name, const char *domain, __itt_metadata_type type), 76fe6060f1SDimitry Andric (ITT_FORMAT name, domain, type), counter_create_typedA, 77fe6060f1SDimitry Andric __itt_group_counter, "\"%s\", \"%s\", %d") 78fe6060f1SDimitry Andric ITT_STUB(ITTAPI, __itt_counter, counter_create_typedW, 79fe6060f1SDimitry Andric (const wchar_t *name, const wchar_t *domain, __itt_metadata_type type), 80fe6060f1SDimitry Andric (ITT_FORMAT name, domain, type), counter_create_typedW, 81fe6060f1SDimitry Andric __itt_group_counter, "\"%s\", \"%s\", %d") 820b57cec5SDimitry Andric #else /* ITT_PLATFORM==ITT_PLATFORM_WIN */ 83fe6060f1SDimitry Andric ITT_STUB(ITTAPI, __itt_counter, counter_create_typed, 84fe6060f1SDimitry Andric (const char *name, const char *domain, __itt_metadata_type type), 85fe6060f1SDimitry Andric (ITT_FORMAT name, domain, type), counter_create_typed, 86fe6060f1SDimitry Andric __itt_group_counter, "\"%s\", \"%s\", %d") 870b57cec5SDimitry Andric #endif /* ITT_PLATFORM==ITT_PLATFORM_WIN */ 880b57cec5SDimitry Andric 89fe6060f1SDimitry Andric ITT_STUBV(ITTAPI, void, pause, (void), (ITT_NO_PARAMS), pause, 90fe6060f1SDimitry Andric __itt_group_control | __itt_group_legacy, "no args") 91fe6060f1SDimitry Andric ITT_STUBV(ITTAPI, void, resume, (void), (ITT_NO_PARAMS), resume, 92fe6060f1SDimitry Andric __itt_group_control | __itt_group_legacy, "no args") 930b57cec5SDimitry Andric 940b57cec5SDimitry Andric #if ITT_PLATFORM == ITT_PLATFORM_WIN 95fe6060f1SDimitry Andric ITT_STUBV(ITTAPI, void, thread_set_nameA, (const char *name), (ITT_FORMAT name), 96fe6060f1SDimitry Andric thread_set_nameA, __itt_group_thread, "\"%s\"") 97fe6060f1SDimitry Andric ITT_STUBV(ITTAPI, void, thread_set_nameW, (const wchar_t *name), 98fe6060f1SDimitry Andric (ITT_FORMAT name), thread_set_nameW, __itt_group_thread, "\"%S\"") 990b57cec5SDimitry Andric #else /* ITT_PLATFORM!=ITT_PLATFORM_WIN */ 100fe6060f1SDimitry Andric ITT_STUBV(ITTAPI, void, thread_set_name, (const char *name), (ITT_FORMAT name), 101fe6060f1SDimitry Andric thread_set_name, __itt_group_thread, "\"%s\"") 1020b57cec5SDimitry Andric #endif /* ITT_PLATFORM==ITT_PLATFORM_WIN */ 103fe6060f1SDimitry Andric ITT_STUBV(ITTAPI, void, thread_ignore, (void), (ITT_NO_PARAMS), thread_ignore, 104fe6060f1SDimitry Andric __itt_group_thread, "no args") 1050b57cec5SDimitry Andric 1060b57cec5SDimitry Andric #if ITT_PLATFORM == ITT_PLATFORM_WIN 107fe6060f1SDimitry Andric ITT_STUB(LIBITTAPI, int, thr_name_setA, (const char *name, int namelen), 108fe6060f1SDimitry Andric (ITT_FORMAT name, namelen), thr_name_setA, 109fe6060f1SDimitry Andric __itt_group_thread | __itt_group_legacy, "\"%s\", %d") 110fe6060f1SDimitry Andric ITT_STUB(LIBITTAPI, int, thr_name_setW, (const wchar_t *name, int namelen), 111fe6060f1SDimitry Andric (ITT_FORMAT name, namelen), thr_name_setW, 112fe6060f1SDimitry Andric __itt_group_thread | __itt_group_legacy, "\"%S\", %d") 1130b57cec5SDimitry Andric #else /* ITT_PLATFORM!=ITT_PLATFORM_WIN */ 114fe6060f1SDimitry Andric ITT_STUB(LIBITTAPI, int, thr_name_set, (const char *name, int namelen), 115fe6060f1SDimitry Andric (ITT_FORMAT name, namelen), thr_name_set, 116fe6060f1SDimitry Andric __itt_group_thread | __itt_group_legacy, "\"%s\", %d") 1170b57cec5SDimitry Andric #endif /* ITT_PLATFORM==ITT_PLATFORM_WIN */ 118fe6060f1SDimitry Andric ITT_STUBV(LIBITTAPI, void, thr_ignore, (void), (ITT_NO_PARAMS), thr_ignore, 119fe6060f1SDimitry Andric __itt_group_thread | __itt_group_legacy, "no args") 120*349cc55cSDimitry Andric 121*349cc55cSDimitry Andric #if ITT_PLATFORM == ITT_PLATFORM_WIN 122*349cc55cSDimitry Andric ITT_STUB(ITTAPI, __itt_histogram *, histogram_createA, 123*349cc55cSDimitry Andric (const __itt_domain *domain, const char *name, 124*349cc55cSDimitry Andric __itt_metadata_type x_type, __itt_metadata_type y_type), 125*349cc55cSDimitry Andric (ITT_FORMAT domain, name, x_type, y_type), histogram_createA, 126*349cc55cSDimitry Andric __itt_group_structure, "%p, \"%s\", %d, %d") 127*349cc55cSDimitry Andric ITT_STUB(ITTAPI, __itt_histogram *, histogram_createW, 128*349cc55cSDimitry Andric (const __itt_domain *domain, const wchar_t *name, 129*349cc55cSDimitry Andric __itt_metadata_type x_type, __itt_metadata_type y_type), 130*349cc55cSDimitry Andric (ITT_FORMAT domain, name, x_type, y_type), histogram_createW, 131*349cc55cSDimitry Andric __itt_group_structure, "%p, \"%s\", %d, %d") 132*349cc55cSDimitry Andric #else /* ITT_PLATFORM==ITT_PLATFORM_WIN */ 133*349cc55cSDimitry Andric ITT_STUB(ITTAPI, __itt_histogram *, histogram_create, 134*349cc55cSDimitry Andric (const __itt_domain *domain, const char *name, 135*349cc55cSDimitry Andric __itt_metadata_type x_type, __itt_metadata_type y_type), 136*349cc55cSDimitry Andric (ITT_FORMAT domain, name, x_type, y_type), histogram_create, 137*349cc55cSDimitry Andric __itt_group_structure, "%p, \"%s\", %d, %d") 138*349cc55cSDimitry Andric #endif /* ITT_PLATFORM==ITT_PLATFORM_WIN */ 139*349cc55cSDimitry Andric 1400b57cec5SDimitry Andric #endif /* __ITT_INTERNAL_BODY */ 1410b57cec5SDimitry Andric 142fe6060f1SDimitry Andric ITT_STUBV(ITTAPI, void, enable_attach, (void), (ITT_NO_PARAMS), enable_attach, 143fe6060f1SDimitry Andric __itt_group_all, "no args") 1440b57cec5SDimitry Andric 1450b57cec5SDimitry Andric #else /* __ITT_INTERNAL_INIT */ 1460b57cec5SDimitry Andric 147fe6060f1SDimitry Andric ITT_STUBV(ITTAPI, void, detach, (void), (ITT_NO_PARAMS), detach, 148fe6060f1SDimitry Andric __itt_group_control | __itt_group_legacy, "no args") 1490b57cec5SDimitry Andric 1500b57cec5SDimitry Andric #if ITT_PLATFORM == ITT_PLATFORM_WIN 151fe6060f1SDimitry Andric ITT_STUBV(ITTAPI, void, sync_createA, 152fe6060f1SDimitry Andric (void *addr, const char *objtype, const char *objname, int attribute), 153fe6060f1SDimitry Andric (ITT_FORMAT addr, objtype, objname, attribute), sync_createA, 154fe6060f1SDimitry Andric __itt_group_sync | __itt_group_fsync, "%p, \"%s\", \"%s\", %x") 155fe6060f1SDimitry Andric ITT_STUBV(ITTAPI, void, sync_createW, 156fe6060f1SDimitry Andric (void *addr, const wchar_t *objtype, const wchar_t *objname, 157fe6060f1SDimitry Andric int attribute), 158fe6060f1SDimitry Andric (ITT_FORMAT addr, objtype, objname, attribute), sync_createW, 159fe6060f1SDimitry Andric __itt_group_sync | __itt_group_fsync, "%p, \"%S\", \"%S\", %x") 160fe6060f1SDimitry Andric ITT_STUBV(ITTAPI, void, sync_renameA, (void *addr, const char *name), 161fe6060f1SDimitry Andric (ITT_FORMAT addr, name), sync_renameA, 162fe6060f1SDimitry Andric __itt_group_sync | __itt_group_fsync, "%p, \"%s\"") 163fe6060f1SDimitry Andric ITT_STUBV(ITTAPI, void, sync_renameW, (void *addr, const wchar_t *name), 164fe6060f1SDimitry Andric (ITT_FORMAT addr, name), sync_renameW, 165fe6060f1SDimitry Andric __itt_group_sync | __itt_group_fsync, "%p, \"%S\"") 1660b57cec5SDimitry Andric #else /* ITT_PLATFORM!=ITT_PLATFORM_WIN */ 167fe6060f1SDimitry Andric ITT_STUBV(ITTAPI, void, sync_create, 168fe6060f1SDimitry Andric (void *addr, const char *objtype, const char *objname, int attribute), 169fe6060f1SDimitry Andric (ITT_FORMAT addr, objtype, objname, attribute), sync_create, 170fe6060f1SDimitry Andric __itt_group_sync | __itt_group_fsync, "%p, \"%s\", \"%s\", %x") 171fe6060f1SDimitry Andric ITT_STUBV(ITTAPI, void, sync_rename, (void *addr, const char *name), 172fe6060f1SDimitry Andric (ITT_FORMAT addr, name), sync_rename, 173fe6060f1SDimitry Andric __itt_group_sync | __itt_group_fsync, "%p, \"%s\"") 1740b57cec5SDimitry Andric #endif /* ITT_PLATFORM==ITT_PLATFORM_WIN */ 175fe6060f1SDimitry Andric ITT_STUBV(ITTAPI, void, sync_destroy, (void *addr), (ITT_FORMAT addr), 176fe6060f1SDimitry Andric sync_destroy, __itt_group_sync | __itt_group_fsync, "%p") 1770b57cec5SDimitry Andric 178fe6060f1SDimitry Andric ITT_STUBV(ITTAPI, void, sync_prepare, (void *addr), (ITT_FORMAT addr), 179fe6060f1SDimitry Andric sync_prepare, __itt_group_sync, "%p") 180fe6060f1SDimitry Andric ITT_STUBV(ITTAPI, void, sync_cancel, (void *addr), (ITT_FORMAT addr), 181fe6060f1SDimitry Andric sync_cancel, __itt_group_sync, "%p") 182fe6060f1SDimitry Andric ITT_STUBV(ITTAPI, void, sync_acquired, (void *addr), (ITT_FORMAT addr), 183fe6060f1SDimitry Andric sync_acquired, __itt_group_sync, "%p") 184fe6060f1SDimitry Andric ITT_STUBV(ITTAPI, void, sync_releasing, (void *addr), (ITT_FORMAT addr), 185fe6060f1SDimitry Andric sync_releasing, __itt_group_sync, "%p") 1860b57cec5SDimitry Andric 187fe6060f1SDimitry Andric ITT_STUBV(ITTAPI, void, suppress_push, (unsigned int mask), (ITT_FORMAT mask), 188fe6060f1SDimitry Andric suppress_push, __itt_group_suppress, "%p") 189fe6060f1SDimitry Andric ITT_STUBV(ITTAPI, void, suppress_pop, (void), (ITT_NO_PARAMS), suppress_pop, 190fe6060f1SDimitry Andric __itt_group_suppress, "no args") 191fe6060f1SDimitry Andric ITT_STUBV(ITTAPI, void, suppress_mark_range, 192fe6060f1SDimitry Andric (__itt_suppress_mode_t mode, unsigned int mask, void *address, 193fe6060f1SDimitry Andric size_t size), 194fe6060f1SDimitry Andric (ITT_FORMAT mode, mask, address, size), suppress_mark_range, 195fe6060f1SDimitry Andric __itt_group_suppress, "%d, %p, %p, %d") 196fe6060f1SDimitry Andric ITT_STUBV(ITTAPI, void, suppress_clear_range, 197fe6060f1SDimitry Andric (__itt_suppress_mode_t mode, unsigned int mask, void *address, 198fe6060f1SDimitry Andric size_t size), 199fe6060f1SDimitry Andric (ITT_FORMAT mode, mask, address, size), suppress_clear_range, 200fe6060f1SDimitry Andric __itt_group_suppress, "%d, %p, %p, %d") 2010b57cec5SDimitry Andric 202fe6060f1SDimitry Andric ITT_STUBV(ITTAPI, void, fsync_prepare, (void *addr), (ITT_FORMAT addr), 203fe6060f1SDimitry Andric sync_prepare, __itt_group_fsync, "%p") 204fe6060f1SDimitry Andric ITT_STUBV(ITTAPI, void, fsync_cancel, (void *addr), (ITT_FORMAT addr), 205fe6060f1SDimitry Andric sync_cancel, __itt_group_fsync, "%p") 206fe6060f1SDimitry Andric ITT_STUBV(ITTAPI, void, fsync_acquired, (void *addr), (ITT_FORMAT addr), 207fe6060f1SDimitry Andric sync_acquired, __itt_group_fsync, "%p") 208fe6060f1SDimitry Andric ITT_STUBV(ITTAPI, void, fsync_releasing, (void *addr), (ITT_FORMAT addr), 209fe6060f1SDimitry Andric sync_releasing, __itt_group_fsync, "%p") 2100b57cec5SDimitry Andric 211fe6060f1SDimitry Andric ITT_STUBV(ITTAPI, void, model_site_begin, 212fe6060f1SDimitry Andric (__itt_model_site * site, __itt_model_site_instance *instance, 213fe6060f1SDimitry Andric const char *name), 214fe6060f1SDimitry Andric (ITT_FORMAT site, instance, name), model_site_begin, 215fe6060f1SDimitry Andric __itt_group_model, "%p, %p, \"%s\"") 216fe6060f1SDimitry Andric ITT_STUBV(ITTAPI, void, model_site_end, 217fe6060f1SDimitry Andric (__itt_model_site * site, __itt_model_site_instance *instance), 218fe6060f1SDimitry Andric (ITT_FORMAT site, instance), model_site_end, __itt_group_model, 219fe6060f1SDimitry Andric "%p, %p") 220fe6060f1SDimitry Andric ITT_STUBV(ITTAPI, void, model_task_begin, 221fe6060f1SDimitry Andric (__itt_model_task * task, __itt_model_task_instance *instance, 222fe6060f1SDimitry Andric const char *name), 223fe6060f1SDimitry Andric (ITT_FORMAT task, instance, name), model_task_begin, 224fe6060f1SDimitry Andric __itt_group_model, "%p, %p, \"%s\"") 225fe6060f1SDimitry Andric ITT_STUBV(ITTAPI, void, model_task_end, 226fe6060f1SDimitry Andric (__itt_model_task * task, __itt_model_task_instance *instance), 227fe6060f1SDimitry Andric (ITT_FORMAT task, instance), model_task_end, __itt_group_model, 228fe6060f1SDimitry Andric "%p, %p") 229fe6060f1SDimitry Andric ITT_STUBV(ITTAPI, void, model_lock_acquire, (void *lock), (ITT_FORMAT lock), 230fe6060f1SDimitry Andric model_lock_acquire, __itt_group_model, "%p") 231fe6060f1SDimitry Andric ITT_STUBV(ITTAPI, void, model_lock_release, (void *lock), (ITT_FORMAT lock), 232fe6060f1SDimitry Andric model_lock_release, __itt_group_model, "%p") 233fe6060f1SDimitry Andric ITT_STUBV(ITTAPI, void, model_record_allocation, (void *addr, size_t size), 234fe6060f1SDimitry Andric (ITT_FORMAT addr, size), model_record_allocation, __itt_group_model, 235fe6060f1SDimitry Andric "%p, %d") 236fe6060f1SDimitry Andric ITT_STUBV(ITTAPI, void, model_record_deallocation, (void *addr), 237fe6060f1SDimitry Andric (ITT_FORMAT addr), model_record_deallocation, __itt_group_model, "%p") 238fe6060f1SDimitry Andric ITT_STUBV(ITTAPI, void, model_induction_uses, (void *addr, size_t size), 239fe6060f1SDimitry Andric (ITT_FORMAT addr, size), model_induction_uses, __itt_group_model, 240fe6060f1SDimitry Andric "%p, %d") 241fe6060f1SDimitry Andric ITT_STUBV(ITTAPI, void, model_reduction_uses, (void *addr, size_t size), 242fe6060f1SDimitry Andric (ITT_FORMAT addr, size), model_reduction_uses, __itt_group_model, 243fe6060f1SDimitry Andric "%p, %d") 244fe6060f1SDimitry Andric ITT_STUBV(ITTAPI, void, model_observe_uses, (void *addr, size_t size), 245fe6060f1SDimitry Andric (ITT_FORMAT addr, size), model_observe_uses, __itt_group_model, 246fe6060f1SDimitry Andric "%p, %d") 247fe6060f1SDimitry Andric ITT_STUBV(ITTAPI, void, model_clear_uses, (void *addr), (ITT_FORMAT addr), 248fe6060f1SDimitry Andric model_clear_uses, __itt_group_model, "%p") 2490b57cec5SDimitry Andric 2500b57cec5SDimitry Andric #ifndef __ITT_INTERNAL_BODY 2510b57cec5SDimitry Andric #if ITT_PLATFORM == ITT_PLATFORM_WIN 252fe6060f1SDimitry Andric ITT_STUBV(ITTAPI, void, model_site_beginW, (const wchar_t *name), 253fe6060f1SDimitry Andric (ITT_FORMAT name), model_site_beginW, __itt_group_model, "\"%s\"") 254fe6060f1SDimitry Andric ITT_STUBV(ITTAPI, void, model_task_beginW, (const wchar_t *name), 255fe6060f1SDimitry Andric (ITT_FORMAT name), model_task_beginW, __itt_group_model, "\"%s\"") 256fe6060f1SDimitry Andric ITT_STUBV(ITTAPI, void, model_iteration_taskW, (const wchar_t *name), 257fe6060f1SDimitry Andric (ITT_FORMAT name), model_iteration_taskW, __itt_group_model, "\"%s\"") 2580b57cec5SDimitry Andric #endif /* ITT_PLATFORM==ITT_PLATFORM_WIN */ 259fe6060f1SDimitry Andric ITT_STUBV(ITTAPI, void, model_site_beginA, (const char *name), 260fe6060f1SDimitry Andric (ITT_FORMAT name), model_site_beginA, __itt_group_model, "\"%s\"") 261fe6060f1SDimitry Andric ITT_STUBV(ITTAPI, void, model_site_beginAL, (const char *name, size_t len), 262fe6060f1SDimitry Andric (ITT_FORMAT name, len), model_site_beginAL, __itt_group_model, 263fe6060f1SDimitry Andric "\"%s\", %d") 264fe6060f1SDimitry Andric ITT_STUBV(ITTAPI, void, model_task_beginA, (const char *name), 265fe6060f1SDimitry Andric (ITT_FORMAT name), model_task_beginA, __itt_group_model, "\"%s\"") 266fe6060f1SDimitry Andric ITT_STUBV(ITTAPI, void, model_task_beginAL, (const char *name, size_t len), 267fe6060f1SDimitry Andric (ITT_FORMAT name, len), model_task_beginAL, __itt_group_model, 268fe6060f1SDimitry Andric "\"%s\", %d") 269fe6060f1SDimitry Andric ITT_STUBV(ITTAPI, void, model_iteration_taskA, (const char *name), 270fe6060f1SDimitry Andric (ITT_FORMAT name), model_iteration_taskA, __itt_group_model, "\"%s\"") 271fe6060f1SDimitry Andric ITT_STUBV(ITTAPI, void, model_iteration_taskAL, (const char *name, size_t len), 272fe6060f1SDimitry Andric (ITT_FORMAT name, len), model_iteration_taskAL, __itt_group_model, 273fe6060f1SDimitry Andric "\"%s\", %d") 274fe6060f1SDimitry Andric ITT_STUBV(ITTAPI, void, model_site_end_2, (void), (ITT_NO_PARAMS), 275fe6060f1SDimitry Andric model_site_end_2, __itt_group_model, "no args") 276fe6060f1SDimitry Andric ITT_STUBV(ITTAPI, void, model_task_end_2, (void), (ITT_NO_PARAMS), 277fe6060f1SDimitry Andric model_task_end_2, __itt_group_model, "no args") 278fe6060f1SDimitry Andric ITT_STUBV(ITTAPI, void, model_lock_acquire_2, (void *lock), (ITT_FORMAT lock), 279fe6060f1SDimitry Andric model_lock_acquire_2, __itt_group_model, "%p") 280fe6060f1SDimitry Andric ITT_STUBV(ITTAPI, void, model_lock_release_2, (void *lock), (ITT_FORMAT lock), 281fe6060f1SDimitry Andric model_lock_release_2, __itt_group_model, "%p") 282fe6060f1SDimitry Andric ITT_STUBV(ITTAPI, void, model_aggregate_task, (size_t count), 283fe6060f1SDimitry Andric (ITT_FORMAT count), model_aggregate_task, __itt_group_model, "%d") 284fe6060f1SDimitry Andric ITT_STUBV(ITTAPI, void, model_disable_push, (__itt_model_disable x), 285fe6060f1SDimitry Andric (ITT_FORMAT x), model_disable_push, __itt_group_model, "%p") 286fe6060f1SDimitry Andric ITT_STUBV(ITTAPI, void, model_disable_pop, (void), (ITT_NO_PARAMS), 287fe6060f1SDimitry Andric model_disable_pop, __itt_group_model, "no args") 2880b57cec5SDimitry Andric #endif /* __ITT_INTERNAL_BODY */ 2890b57cec5SDimitry Andric 2900b57cec5SDimitry Andric #ifndef __ITT_INTERNAL_BODY 2910b57cec5SDimitry Andric #if ITT_PLATFORM == ITT_PLATFORM_WIN 292fe6060f1SDimitry Andric ITT_STUB(ITTAPI, __itt_heap_function, heap_function_createA, 293fe6060f1SDimitry Andric (const char *name, const char *domain), (ITT_FORMAT name, domain), 294fe6060f1SDimitry Andric heap_function_createA, __itt_group_heap, "\"%s\", \"%s\"") 295fe6060f1SDimitry Andric ITT_STUB(ITTAPI, __itt_heap_function, heap_function_createW, 296fe6060f1SDimitry Andric (const wchar_t *name, const wchar_t *domain), 297fe6060f1SDimitry Andric (ITT_FORMAT name, domain), heap_function_createW, __itt_group_heap, 298fe6060f1SDimitry Andric "\"%s\", \"%s\"") 2990b57cec5SDimitry Andric #else /* ITT_PLATFORM==ITT_PLATFORM_WIN */ 300fe6060f1SDimitry Andric ITT_STUB(ITTAPI, __itt_heap_function, heap_function_create, 301fe6060f1SDimitry Andric (const char *name, const char *domain), (ITT_FORMAT name, domain), 302fe6060f1SDimitry Andric heap_function_create, __itt_group_heap, "\"%s\", \"%s\"") 3030b57cec5SDimitry Andric #endif /* ITT_PLATFORM==ITT_PLATFORM_WIN */ 3040b57cec5SDimitry Andric #endif /* __ITT_INTERNAL_BODY */ 305fe6060f1SDimitry Andric ITT_STUBV(ITTAPI, void, heap_allocate_begin, 306fe6060f1SDimitry Andric (__itt_heap_function h, size_t size, int initialized), 307fe6060f1SDimitry Andric (ITT_FORMAT h, size, initialized), heap_allocate_begin, 308fe6060f1SDimitry Andric __itt_group_heap, "%p, %lu, %d") 309fe6060f1SDimitry Andric ITT_STUBV(ITTAPI, void, heap_allocate_end, 310fe6060f1SDimitry Andric (__itt_heap_function h, void **addr, size_t size, int initialized), 311fe6060f1SDimitry Andric (ITT_FORMAT h, addr, size, initialized), heap_allocate_end, 312fe6060f1SDimitry Andric __itt_group_heap, "%p, %p, %lu, %d") 313fe6060f1SDimitry Andric ITT_STUBV(ITTAPI, void, heap_free_begin, (__itt_heap_function h, void *addr), 314fe6060f1SDimitry Andric (ITT_FORMAT h, addr), heap_free_begin, __itt_group_heap, "%p, %p") 315fe6060f1SDimitry Andric ITT_STUBV(ITTAPI, void, heap_free_end, (__itt_heap_function h, void *addr), 316fe6060f1SDimitry Andric (ITT_FORMAT h, addr), heap_free_end, __itt_group_heap, "%p, %p") 317fe6060f1SDimitry Andric ITT_STUBV(ITTAPI, void, heap_reallocate_begin, 318fe6060f1SDimitry Andric (__itt_heap_function h, void *addr, size_t new_size, int initialized), 319fe6060f1SDimitry Andric (ITT_FORMAT h, addr, new_size, initialized), heap_reallocate_begin, 320fe6060f1SDimitry Andric __itt_group_heap, "%p, %p, %lu, %d") 321fe6060f1SDimitry Andric ITT_STUBV(ITTAPI, void, heap_reallocate_end, 322fe6060f1SDimitry Andric (__itt_heap_function h, void *addr, void **new_addr, size_t new_size, 323fe6060f1SDimitry Andric int initialized), 324fe6060f1SDimitry Andric (ITT_FORMAT h, addr, new_addr, new_size, initialized), 325fe6060f1SDimitry Andric heap_reallocate_end, __itt_group_heap, "%p, %p, %p, %lu, %d") 326fe6060f1SDimitry Andric ITT_STUBV(ITTAPI, void, heap_internal_access_begin, (void), (ITT_NO_PARAMS), 327fe6060f1SDimitry Andric heap_internal_access_begin, __itt_group_heap, "no args") 328fe6060f1SDimitry Andric ITT_STUBV(ITTAPI, void, heap_internal_access_end, (void), (ITT_NO_PARAMS), 329fe6060f1SDimitry Andric heap_internal_access_end, __itt_group_heap, "no args") 330fe6060f1SDimitry Andric ITT_STUBV(ITTAPI, void, heap_record_memory_growth_begin, (void), 331fe6060f1SDimitry Andric (ITT_NO_PARAMS), heap_record_memory_growth_begin, __itt_group_heap, 332fe6060f1SDimitry Andric "no args") 333fe6060f1SDimitry Andric ITT_STUBV(ITTAPI, void, heap_record_memory_growth_end, (void), (ITT_NO_PARAMS), 334fe6060f1SDimitry Andric heap_record_memory_growth_end, __itt_group_heap, "no args") 335fe6060f1SDimitry Andric ITT_STUBV(ITTAPI, void, heap_reset_detection, (unsigned int reset_mask), 336fe6060f1SDimitry Andric (ITT_FORMAT reset_mask), heap_reset_detection, __itt_group_heap, "%u") 337fe6060f1SDimitry Andric ITT_STUBV(ITTAPI, void, heap_record, (unsigned int record_mask), 338fe6060f1SDimitry Andric (ITT_FORMAT record_mask), heap_record, __itt_group_heap, "%u") 3390b57cec5SDimitry Andric 340fe6060f1SDimitry Andric ITT_STUBV(ITTAPI, void, id_create, (const __itt_domain *domain, __itt_id id), 341fe6060f1SDimitry Andric (ITT_FORMAT domain, id), id_create, __itt_group_structure, "%p, %lu") 342fe6060f1SDimitry Andric ITT_STUBV(ITTAPI, void, id_destroy, (const __itt_domain *domain, __itt_id id), 343fe6060f1SDimitry Andric (ITT_FORMAT domain, id), id_destroy, __itt_group_structure, "%p, %lu") 3440b57cec5SDimitry Andric 345fe6060f1SDimitry Andric ITT_STUB(ITTAPI, __itt_timestamp, get_timestamp, (void), (ITT_NO_PARAMS), 346fe6060f1SDimitry Andric get_timestamp, __itt_group_structure, "no args") 3470b57cec5SDimitry Andric 348fe6060f1SDimitry Andric ITT_STUBV(ITTAPI, void, region_begin, 349fe6060f1SDimitry Andric (const __itt_domain *domain, __itt_id id, __itt_id parent, 350fe6060f1SDimitry Andric __itt_string_handle *name), 351fe6060f1SDimitry Andric (ITT_FORMAT domain, id, parent, name), region_begin, 352fe6060f1SDimitry Andric __itt_group_structure, "%p, %lu, %lu, %p") 353fe6060f1SDimitry Andric ITT_STUBV(ITTAPI, void, region_end, (const __itt_domain *domain, __itt_id id), 354fe6060f1SDimitry Andric (ITT_FORMAT domain, id), region_end, __itt_group_structure, "%p, %lu") 3550b57cec5SDimitry Andric 3560b57cec5SDimitry Andric #ifndef __ITT_INTERNAL_BODY 357fe6060f1SDimitry Andric ITT_STUBV(ITTAPI, void, frame_begin_v3, 358fe6060f1SDimitry Andric (const __itt_domain *domain, __itt_id *id), (ITT_FORMAT domain, id), 359fe6060f1SDimitry Andric frame_begin_v3, __itt_group_structure, "%p, %p") 360fe6060f1SDimitry Andric ITT_STUBV(ITTAPI, void, frame_end_v3, 361fe6060f1SDimitry Andric (const __itt_domain *domain, __itt_id *id), (ITT_FORMAT domain, id), 362fe6060f1SDimitry Andric frame_end_v3, __itt_group_structure, "%p, %p") 363fe6060f1SDimitry Andric ITT_STUBV(ITTAPI, void, frame_submit_v3, 364fe6060f1SDimitry Andric (const __itt_domain *domain, __itt_id *id, __itt_timestamp begin, 365fe6060f1SDimitry Andric __itt_timestamp end), 366fe6060f1SDimitry Andric (ITT_FORMAT domain, id, begin, end), frame_submit_v3, 367fe6060f1SDimitry Andric __itt_group_structure, "%p, %p, %lu, %lu") 3680b57cec5SDimitry Andric #endif /* __ITT_INTERNAL_BODY */ 3690b57cec5SDimitry Andric 370fe6060f1SDimitry Andric ITT_STUBV(ITTAPI, void, task_group, 371fe6060f1SDimitry Andric (const __itt_domain *domain, __itt_id id, __itt_id parent, 372fe6060f1SDimitry Andric __itt_string_handle *name), 373fe6060f1SDimitry Andric (ITT_FORMAT domain, id, parent, name), task_group, 374fe6060f1SDimitry Andric __itt_group_structure, "%p, %lu, %lu, %p") 3750b57cec5SDimitry Andric 376fe6060f1SDimitry Andric ITT_STUBV(ITTAPI, void, task_begin, 377fe6060f1SDimitry Andric (const __itt_domain *domain, __itt_id id, __itt_id parent, 378fe6060f1SDimitry Andric __itt_string_handle *name), 379fe6060f1SDimitry Andric (ITT_FORMAT domain, id, parent, name), task_begin, 380fe6060f1SDimitry Andric __itt_group_structure, "%p, %lu, %lu, %p") 381fe6060f1SDimitry Andric ITT_STUBV(ITTAPI, void, task_begin_fn, 382fe6060f1SDimitry Andric (const __itt_domain *domain, __itt_id id, __itt_id parent, void *fn), 383fe6060f1SDimitry Andric (ITT_FORMAT domain, id, parent, fn), task_begin_fn, 384fe6060f1SDimitry Andric __itt_group_structure, "%p, %lu, %lu, %p") 385fe6060f1SDimitry Andric ITT_STUBV(ITTAPI, void, task_end, (const __itt_domain *domain), 386fe6060f1SDimitry Andric (ITT_FORMAT domain), task_end, __itt_group_structure, "%p") 3870b57cec5SDimitry Andric 388fe6060f1SDimitry Andric ITT_STUBV(ITTAPI, void, counter_inc_v3, 389fe6060f1SDimitry Andric (const __itt_domain *domain, __itt_string_handle *name), 390fe6060f1SDimitry Andric (ITT_FORMAT domain, name), counter_inc_v3, __itt_group_structure, 391fe6060f1SDimitry Andric "%p, %p") 392fe6060f1SDimitry Andric ITT_STUBV(ITTAPI, void, counter_inc_delta_v3, 393fe6060f1SDimitry Andric (const __itt_domain *domain, __itt_string_handle *name, 394fe6060f1SDimitry Andric unsigned long long value), 395fe6060f1SDimitry Andric (ITT_FORMAT domain, name, value), counter_inc_delta_v3, 396fe6060f1SDimitry Andric __itt_group_structure, "%p, %p, %lu") 397fe6060f1SDimitry Andric ITT_STUBV(ITTAPI, void, counter_dec_v3, 398fe6060f1SDimitry Andric (const __itt_domain *domain, __itt_string_handle *name), 399fe6060f1SDimitry Andric (ITT_FORMAT domain, name), counter_dec_v3, __itt_group_structure, 400fe6060f1SDimitry Andric "%p, %p") 401fe6060f1SDimitry Andric ITT_STUBV(ITTAPI, void, counter_dec_delta_v3, 402fe6060f1SDimitry Andric (const __itt_domain *domain, __itt_string_handle *name, 403fe6060f1SDimitry Andric unsigned long long value), 404fe6060f1SDimitry Andric (ITT_FORMAT domain, name, value), counter_dec_delta_v3, 405fe6060f1SDimitry Andric __itt_group_structure, "%p, %p, %lu") 4060b57cec5SDimitry Andric 407fe6060f1SDimitry Andric ITT_STUBV(ITTAPI, void, marker, 408fe6060f1SDimitry Andric (const __itt_domain *domain, __itt_id id, __itt_string_handle *name, 409fe6060f1SDimitry Andric __itt_scope scope), 410fe6060f1SDimitry Andric (ITT_FORMAT domain, id, name, scope), marker, __itt_group_structure, 411fe6060f1SDimitry Andric "%p, %lu, %p, %d") 4120b57cec5SDimitry Andric 413fe6060f1SDimitry Andric ITT_STUBV(ITTAPI, void, metadata_add, 414fe6060f1SDimitry Andric (const __itt_domain *domain, __itt_id id, __itt_string_handle *key, 415fe6060f1SDimitry Andric __itt_metadata_type type, size_t count, void *data), 416fe6060f1SDimitry Andric (ITT_FORMAT domain, id, key, type, count, data), metadata_add, 417fe6060f1SDimitry Andric __itt_group_structure, "%p, %lu, %p, %d, %lu, %p") 4180b57cec5SDimitry Andric #if ITT_PLATFORM == ITT_PLATFORM_WIN 419fe6060f1SDimitry Andric ITT_STUBV(ITTAPI, void, metadata_str_addA, 420fe6060f1SDimitry Andric (const __itt_domain *domain, __itt_id id, __itt_string_handle *key, 421fe6060f1SDimitry Andric const char *data, size_t length), 422fe6060f1SDimitry Andric (ITT_FORMAT domain, id, key, data, length), metadata_str_addA, 423fe6060f1SDimitry Andric __itt_group_structure, "%p, %lu, %p, %p, %lu") 424fe6060f1SDimitry Andric ITT_STUBV(ITTAPI, void, metadata_str_addW, 425fe6060f1SDimitry Andric (const __itt_domain *domain, __itt_id id, __itt_string_handle *key, 426fe6060f1SDimitry Andric const wchar_t *data, size_t length), 427fe6060f1SDimitry Andric (ITT_FORMAT domain, id, key, data, length), metadata_str_addW, 428fe6060f1SDimitry Andric __itt_group_structure, "%p, %lu, %p, %p, %lu") 4290b57cec5SDimitry Andric #else /* ITT_PLATFORM!=ITT_PLATFORM_WIN */ 430fe6060f1SDimitry Andric ITT_STUBV(ITTAPI, void, metadata_str_add, 431fe6060f1SDimitry Andric (const __itt_domain *domain, __itt_id id, __itt_string_handle *key, 432fe6060f1SDimitry Andric const char *data, size_t length), 433fe6060f1SDimitry Andric (ITT_FORMAT domain, id, key, data, length), metadata_str_add, 434fe6060f1SDimitry Andric __itt_group_structure, "%p, %lu, %p, %p, %lu") 4350b57cec5SDimitry Andric #endif /* ITT_PLATFORM==ITT_PLATFORM_WIN */ 4360b57cec5SDimitry Andric 437fe6060f1SDimitry Andric ITT_STUBV(ITTAPI, void, relation_add_to_current, 438fe6060f1SDimitry Andric (const __itt_domain *domain, __itt_relation relation, __itt_id tail), 439fe6060f1SDimitry Andric (ITT_FORMAT domain, relation, tail), relation_add_to_current, 440fe6060f1SDimitry Andric __itt_group_structure, "%p, %lu, %p") 441fe6060f1SDimitry Andric ITT_STUBV(ITTAPI, void, relation_add, 442fe6060f1SDimitry Andric (const __itt_domain *domain, __itt_id head, __itt_relation relation, 443fe6060f1SDimitry Andric __itt_id tail), 444fe6060f1SDimitry Andric (ITT_FORMAT domain, head, relation, tail), relation_add, 445fe6060f1SDimitry Andric __itt_group_structure, "%p, %p, %lu, %p") 4460b57cec5SDimitry Andric 4470b57cec5SDimitry Andric #ifndef __ITT_INTERNAL_BODY 4480b57cec5SDimitry Andric #if ITT_PLATFORM == ITT_PLATFORM_WIN 449fe6060f1SDimitry Andric ITT_STUB(LIBITTAPI, __itt_event, event_createA, (const char *name, int namelen), 450fe6060f1SDimitry Andric (ITT_FORMAT name, namelen), event_createA, 451fe6060f1SDimitry Andric __itt_group_mark | __itt_group_legacy, "\"%s\", %d") 452fe6060f1SDimitry Andric ITT_STUB(LIBITTAPI, __itt_event, event_createW, 453fe6060f1SDimitry Andric (const wchar_t *name, int namelen), (ITT_FORMAT name, namelen), 454fe6060f1SDimitry Andric event_createW, __itt_group_mark | __itt_group_legacy, "\"%S\", %d") 4550b57cec5SDimitry Andric #else /* ITT_PLATFORM!=ITT_PLATFORM_WIN */ 456fe6060f1SDimitry Andric ITT_STUB(LIBITTAPI, __itt_event, event_create, (const char *name, int namelen), 457fe6060f1SDimitry Andric (ITT_FORMAT name, namelen), event_create, 458fe6060f1SDimitry Andric __itt_group_mark | __itt_group_legacy, "\"%s\", %d") 4590b57cec5SDimitry Andric #endif /* ITT_PLATFORM==ITT_PLATFORM_WIN */ 460fe6060f1SDimitry Andric ITT_STUB(LIBITTAPI, int, event_start, (__itt_event event), (ITT_FORMAT event), 461fe6060f1SDimitry Andric event_start, __itt_group_mark | __itt_group_legacy, "%d") 462fe6060f1SDimitry Andric ITT_STUB(LIBITTAPI, int, event_end, (__itt_event event), (ITT_FORMAT event), 463fe6060f1SDimitry Andric event_end, __itt_group_mark | __itt_group_legacy, "%d") 4640b57cec5SDimitry Andric #endif /* __ITT_INTERNAL_BODY */ 4650b57cec5SDimitry Andric 4660b57cec5SDimitry Andric #ifndef __ITT_INTERNAL_BODY 4670b57cec5SDimitry Andric #if ITT_PLATFORM == ITT_PLATFORM_WIN 468fe6060f1SDimitry Andric ITT_STUBV(ITTAPI, void, sync_set_nameA, 469fe6060f1SDimitry Andric (void *addr, const char *objtype, const char *objname, int attribute), 470fe6060f1SDimitry Andric (ITT_FORMAT addr, objtype, objname, attribute), sync_set_nameA, 471fe6060f1SDimitry Andric __itt_group_sync | __itt_group_fsync | __itt_group_legacy, 472fe6060f1SDimitry Andric "%p, \"%s\", \"%s\", %x") 473fe6060f1SDimitry Andric ITT_STUBV(ITTAPI, void, sync_set_nameW, 474fe6060f1SDimitry Andric (void *addr, const wchar_t *objtype, const wchar_t *objname, 475fe6060f1SDimitry Andric int attribute), 476fe6060f1SDimitry Andric (ITT_FORMAT addr, objtype, objname, attribute), sync_set_nameW, 477fe6060f1SDimitry Andric __itt_group_sync | __itt_group_fsync | __itt_group_legacy, 478fe6060f1SDimitry Andric "%p, \"%S\", \"%S\", %x") 4790b57cec5SDimitry Andric #else /* ITT_PLATFORM!=ITT_PLATFORM_WIN */ 480fe6060f1SDimitry Andric ITT_STUBV(ITTAPI, void, sync_set_name, 481fe6060f1SDimitry Andric (void *addr, const char *objtype, const char *objname, int attribute), 482fe6060f1SDimitry Andric (ITT_FORMAT addr, objtype, objname, attribute), sync_set_name, 483fe6060f1SDimitry Andric __itt_group_sync | __itt_group_fsync | __itt_group_legacy, 484fe6060f1SDimitry Andric "p, \"%s\", \"%s\", %x") 4850b57cec5SDimitry Andric #endif /* ITT_PLATFORM==ITT_PLATFORM_WIN */ 4860b57cec5SDimitry Andric 4870b57cec5SDimitry Andric #if ITT_PLATFORM == ITT_PLATFORM_WIN 488fe6060f1SDimitry Andric ITT_STUB(LIBITTAPI, int, notify_sync_nameA, 489fe6060f1SDimitry Andric (void *p, const char *objtype, int typelen, const char *objname, 490fe6060f1SDimitry Andric int namelen, int attribute), 491fe6060f1SDimitry Andric (ITT_FORMAT p, objtype, typelen, objname, namelen, attribute), 492fe6060f1SDimitry Andric notify_sync_nameA, 493fe6060f1SDimitry Andric __itt_group_sync | __itt_group_fsync | __itt_group_legacy, 494fe6060f1SDimitry Andric "%p, \"%s\", %d, \"%s\", %d, %x") 495fe6060f1SDimitry Andric ITT_STUB(LIBITTAPI, int, notify_sync_nameW, 496fe6060f1SDimitry Andric (void *p, const wchar_t *objtype, int typelen, const wchar_t *objname, 497fe6060f1SDimitry Andric int namelen, int attribute), 498fe6060f1SDimitry Andric (ITT_FORMAT p, objtype, typelen, objname, namelen, attribute), 499fe6060f1SDimitry Andric notify_sync_nameW, 500fe6060f1SDimitry Andric __itt_group_sync | __itt_group_fsync | __itt_group_legacy, 501fe6060f1SDimitry Andric "%p, \"%S\", %d, \"%S\", %d, %x") 5020b57cec5SDimitry Andric #else /* ITT_PLATFORM!=ITT_PLATFORM_WIN */ 503fe6060f1SDimitry Andric ITT_STUB(LIBITTAPI, int, notify_sync_name, 504fe6060f1SDimitry Andric (void *p, const char *objtype, int typelen, const char *objname, 505fe6060f1SDimitry Andric int namelen, int attribute), 506fe6060f1SDimitry Andric (ITT_FORMAT p, objtype, typelen, objname, namelen, attribute), 507fe6060f1SDimitry Andric notify_sync_name, 508fe6060f1SDimitry Andric __itt_group_sync | __itt_group_fsync | __itt_group_legacy, 509fe6060f1SDimitry Andric "%p, \"%s\", %d, \"%s\", %d, %x") 5100b57cec5SDimitry Andric #endif /* ITT_PLATFORM==ITT_PLATFORM_WIN */ 5110b57cec5SDimitry Andric 512fe6060f1SDimitry Andric ITT_STUBV(LIBITTAPI, void, notify_sync_prepare, (void *p), (ITT_FORMAT p), 513fe6060f1SDimitry Andric notify_sync_prepare, 514fe6060f1SDimitry Andric __itt_group_sync | __itt_group_fsync | __itt_group_legacy, "%p") 515fe6060f1SDimitry Andric ITT_STUBV(LIBITTAPI, void, notify_sync_cancel, (void *p), (ITT_FORMAT p), 516fe6060f1SDimitry Andric notify_sync_cancel, 517fe6060f1SDimitry Andric __itt_group_sync | __itt_group_fsync | __itt_group_legacy, "%p") 518fe6060f1SDimitry Andric ITT_STUBV(LIBITTAPI, void, notify_sync_acquired, (void *p), (ITT_FORMAT p), 519fe6060f1SDimitry Andric notify_sync_acquired, 520fe6060f1SDimitry Andric __itt_group_sync | __itt_group_fsync | __itt_group_legacy, "%p") 521fe6060f1SDimitry Andric ITT_STUBV(LIBITTAPI, void, notify_sync_releasing, (void *p), (ITT_FORMAT p), 522fe6060f1SDimitry Andric notify_sync_releasing, 523fe6060f1SDimitry Andric __itt_group_sync | __itt_group_fsync | __itt_group_legacy, "%p") 5240b57cec5SDimitry Andric #endif /* __ITT_INTERNAL_BODY */ 5250b57cec5SDimitry Andric 526fe6060f1SDimitry Andric ITT_STUBV(LIBITTAPI, void, memory_read, (void *addr, size_t size), 527fe6060f1SDimitry Andric (ITT_FORMAT addr, size), memory_read, __itt_group_legacy, "%p, %lu") 528fe6060f1SDimitry Andric ITT_STUBV(LIBITTAPI, void, memory_write, (void *addr, size_t size), 529fe6060f1SDimitry Andric (ITT_FORMAT addr, size), memory_write, __itt_group_legacy, "%p, %lu") 530fe6060f1SDimitry Andric ITT_STUBV(LIBITTAPI, void, memory_update, (void *addr, size_t size), 531fe6060f1SDimitry Andric (ITT_FORMAT addr, size), memory_update, __itt_group_legacy, "%p, %lu") 5320b57cec5SDimitry Andric 533fe6060f1SDimitry Andric ITT_STUB(LIBITTAPI, __itt_state_t, state_get, (void), (ITT_NO_PARAMS), 534fe6060f1SDimitry Andric state_get, __itt_group_legacy, "no args") 535fe6060f1SDimitry Andric ITT_STUB(LIBITTAPI, __itt_state_t, state_set, (__itt_state_t s), (ITT_FORMAT s), 536fe6060f1SDimitry Andric state_set, __itt_group_legacy, "%d") 537fe6060f1SDimitry Andric ITT_STUB(LIBITTAPI, __itt_obj_state_t, obj_mode_set, 538fe6060f1SDimitry Andric (__itt_obj_prop_t p, __itt_obj_state_t s), (ITT_FORMAT p, s), 539fe6060f1SDimitry Andric obj_mode_set, __itt_group_legacy, "%d, %d") 540fe6060f1SDimitry Andric ITT_STUB(LIBITTAPI, __itt_thr_state_t, thr_mode_set, 541fe6060f1SDimitry Andric (__itt_thr_prop_t p, __itt_thr_state_t s), (ITT_FORMAT p, s), 542fe6060f1SDimitry Andric thr_mode_set, __itt_group_legacy, "%d, %d") 5430b57cec5SDimitry Andric 5440b57cec5SDimitry Andric #ifndef __ITT_INTERNAL_BODY 5450b57cec5SDimitry Andric #if ITT_PLATFORM == ITT_PLATFORM_WIN 546fe6060f1SDimitry Andric ITT_STUB(ITTAPI, __itt_frame, frame_createA, (const char *domain), 547fe6060f1SDimitry Andric (ITT_FORMAT domain), frame_createA, __itt_group_frame, "\"%s\"") 548fe6060f1SDimitry Andric ITT_STUB(ITTAPI, __itt_frame, frame_createW, (const wchar_t *domain), 549fe6060f1SDimitry Andric (ITT_FORMAT domain), frame_createW, __itt_group_frame, "\"%s\"") 5500b57cec5SDimitry Andric #else /* ITT_PLATFORM==ITT_PLATFORM_WIN */ 551fe6060f1SDimitry Andric ITT_STUB(ITTAPI, __itt_frame, frame_create, (const char *domain), 552fe6060f1SDimitry Andric (ITT_FORMAT domain), frame_create, __itt_group_frame, "\"%s\"") 5530b57cec5SDimitry Andric #endif /* ITT_PLATFORM==ITT_PLATFORM_WIN */ 554*349cc55cSDimitry Andric 555*349cc55cSDimitry Andric #if ITT_PLATFORM == ITT_PLATFORM_WIN 556*349cc55cSDimitry Andric ITT_STUB(ITTAPI, __itt_pt_region, pt_region_createA, (const char *name), 557*349cc55cSDimitry Andric (ITT_FORMAT name), pt_region_createA, __itt_group_structure, "\"%s\"") 558*349cc55cSDimitry Andric ITT_STUB(ITTAPI, __itt_pt_region, pt_region_createW, (const wchar_t *name), 559*349cc55cSDimitry Andric (ITT_FORMAT name), pt_region_createW, __itt_group_structure, "\"%S\"") 560*349cc55cSDimitry Andric #else /* ITT_PLATFORM!=ITT_PLATFORM_WIN */ 561*349cc55cSDimitry Andric ITT_STUB(ITTAPI, __itt_pt_region, pt_region_create, (const char *name), 562*349cc55cSDimitry Andric (ITT_FORMAT name), pt_region_create, __itt_group_structure, "\"%s\"") 563*349cc55cSDimitry Andric #endif /* ITT_PLATFORM==ITT_PLATFORM_WIN */ 5640b57cec5SDimitry Andric #endif /* __ITT_INTERNAL_BODY */ 565fe6060f1SDimitry Andric ITT_STUBV(ITTAPI, void, frame_begin, (__itt_frame frame), (ITT_FORMAT frame), 566fe6060f1SDimitry Andric frame_begin, __itt_group_frame, "%p") 567fe6060f1SDimitry Andric ITT_STUBV(ITTAPI, void, frame_end, (__itt_frame frame), (ITT_FORMAT frame), 568fe6060f1SDimitry Andric frame_end, __itt_group_frame, "%p") 5690b57cec5SDimitry Andric 570fe6060f1SDimitry Andric ITT_STUBV(ITTAPI, void, counter_destroy, (__itt_counter id), (ITT_FORMAT id), 571fe6060f1SDimitry Andric counter_destroy, __itt_group_counter, "%p") 572fe6060f1SDimitry Andric ITT_STUBV(ITTAPI, void, counter_inc, (__itt_counter id), (ITT_FORMAT id), 573fe6060f1SDimitry Andric counter_inc, __itt_group_counter, "%p") 574fe6060f1SDimitry Andric ITT_STUBV(ITTAPI, void, counter_inc_delta, 575fe6060f1SDimitry Andric (__itt_counter id, unsigned long long value), (ITT_FORMAT id, value), 576fe6060f1SDimitry Andric counter_inc_delta, __itt_group_counter, "%p, %lu") 577fe6060f1SDimitry Andric ITT_STUBV(ITTAPI, void, counter_dec, (__itt_counter id), (ITT_FORMAT id), 578fe6060f1SDimitry Andric counter_dec, __itt_group_counter, "%p") 579fe6060f1SDimitry Andric ITT_STUBV(ITTAPI, void, counter_dec_delta, 580fe6060f1SDimitry Andric (__itt_counter id, unsigned long long value), (ITT_FORMAT id, value), 581fe6060f1SDimitry Andric counter_dec_delta, __itt_group_counter, "%p, %lu") 582fe6060f1SDimitry Andric ITT_STUBV(ITTAPI, void, counter_set_value, (__itt_counter id, void *value_ptr), 583fe6060f1SDimitry Andric (ITT_FORMAT id, value_ptr), counter_set_value, __itt_group_counter, 584fe6060f1SDimitry Andric "%p, %p") 585fe6060f1SDimitry Andric ITT_STUBV(ITTAPI, void, counter_set_value_ex, 586fe6060f1SDimitry Andric (__itt_counter id, __itt_clock_domain *clock_domain, 587fe6060f1SDimitry Andric unsigned long long timestamp, void *value_ptr), 588fe6060f1SDimitry Andric (ITT_FORMAT id, clock_domain, timestamp, value_ptr), 589fe6060f1SDimitry Andric counter_set_value_ex, __itt_group_counter, "%p, %p, %llu, %p") 5900b57cec5SDimitry Andric 5910b57cec5SDimitry Andric #ifndef __ITT_INTERNAL_BODY 5920b57cec5SDimitry Andric #if ITT_PLATFORM == ITT_PLATFORM_WIN 593fe6060f1SDimitry Andric ITT_STUB(ITTAPI, __itt_mark_type, mark_createA, (const char *name), 594fe6060f1SDimitry Andric (ITT_FORMAT name), mark_createA, __itt_group_mark, "\"%s\"") 595fe6060f1SDimitry Andric ITT_STUB(ITTAPI, __itt_mark_type, mark_createW, (const wchar_t *name), 596fe6060f1SDimitry Andric (ITT_FORMAT name), mark_createW, __itt_group_mark, "\"%S\"") 5970b57cec5SDimitry Andric #else /* ITT_PLATFORM!=ITT_PLATFORM_WIN */ 598fe6060f1SDimitry Andric ITT_STUB(ITTAPI, __itt_mark_type, mark_create, (const char *name), 599fe6060f1SDimitry Andric (ITT_FORMAT name), mark_create, __itt_group_mark, "\"%s\"") 6000b57cec5SDimitry Andric #endif /* ITT_PLATFORM==ITT_PLATFORM_WIN */ 6010b57cec5SDimitry Andric #endif /* __ITT_INTERNAL_BODY */ 6020b57cec5SDimitry Andric #if ITT_PLATFORM == ITT_PLATFORM_WIN 603fe6060f1SDimitry Andric ITT_STUB(ITTAPI, int, markA, (__itt_mark_type mt, const char *parameter), 604fe6060f1SDimitry Andric (ITT_FORMAT mt, parameter), markA, __itt_group_mark, "%d, \"%s\"") 605fe6060f1SDimitry Andric ITT_STUB(ITTAPI, int, markW, (__itt_mark_type mt, const wchar_t *parameter), 606fe6060f1SDimitry Andric (ITT_FORMAT mt, parameter), markW, __itt_group_mark, "%d, \"%S\"") 6070b57cec5SDimitry Andric #else /* ITT_PLATFORM!=ITT_PLATFORM_WIN */ 608fe6060f1SDimitry Andric ITT_STUB(ITTAPI, int, mark, (__itt_mark_type mt, const char *parameter), 609fe6060f1SDimitry Andric (ITT_FORMAT mt, parameter), mark, __itt_group_mark, "%d, \"%s\"") 6100b57cec5SDimitry Andric #endif /* ITT_PLATFORM==ITT_PLATFORM_WIN */ 611fe6060f1SDimitry Andric ITT_STUB(ITTAPI, int, mark_off, (__itt_mark_type mt), (ITT_FORMAT mt), mark_off, 612fe6060f1SDimitry Andric __itt_group_mark, "%d") 6130b57cec5SDimitry Andric #if ITT_PLATFORM == ITT_PLATFORM_WIN 614fe6060f1SDimitry Andric ITT_STUB(ITTAPI, int, mark_globalA, (__itt_mark_type mt, const char *parameter), 615fe6060f1SDimitry Andric (ITT_FORMAT mt, parameter), mark_globalA, __itt_group_mark, 616fe6060f1SDimitry Andric "%d, \"%s\"") 617fe6060f1SDimitry Andric ITT_STUB(ITTAPI, int, mark_globalW, 618fe6060f1SDimitry Andric (__itt_mark_type mt, const wchar_t *parameter), 619fe6060f1SDimitry Andric (ITT_FORMAT mt, parameter), mark_globalW, __itt_group_mark, 620fe6060f1SDimitry Andric "%d, \"%S\"") 6210b57cec5SDimitry Andric #else /* ITT_PLATFORM!=ITT_PLATFORM_WIN */ 622fe6060f1SDimitry Andric ITT_STUB(ITTAPI, int, mark_global, (__itt_mark_type mt, const char *parameter), 623fe6060f1SDimitry Andric (ITT_FORMAT mt, parameter), mark_global, __itt_group_mark, 624fe6060f1SDimitry Andric "%d, \"%S\"") 6250b57cec5SDimitry Andric #endif /* ITT_PLATFORM==ITT_PLATFORM_WIN */ 626fe6060f1SDimitry Andric ITT_STUB(ITTAPI, int, mark_global_off, (__itt_mark_type mt), (ITT_FORMAT mt), 627fe6060f1SDimitry Andric mark_global_off, __itt_group_mark, "%d") 6280b57cec5SDimitry Andric 6290b57cec5SDimitry Andric #ifndef __ITT_INTERNAL_BODY 630fe6060f1SDimitry Andric ITT_STUB(ITTAPI, __itt_caller, stack_caller_create, (void), (ITT_NO_PARAMS), 631fe6060f1SDimitry Andric stack_caller_create, __itt_group_stitch, "no args") 6320b57cec5SDimitry Andric #endif /* __ITT_INTERNAL_BODY */ 633fe6060f1SDimitry Andric ITT_STUBV(ITTAPI, void, stack_caller_destroy, (__itt_caller id), 634fe6060f1SDimitry Andric (ITT_FORMAT id), stack_caller_destroy, __itt_group_stitch, "%p") 635fe6060f1SDimitry Andric ITT_STUBV(ITTAPI, void, stack_callee_enter, (__itt_caller id), (ITT_FORMAT id), 636fe6060f1SDimitry Andric stack_callee_enter, __itt_group_stitch, "%p") 637fe6060f1SDimitry Andric ITT_STUBV(ITTAPI, void, stack_callee_leave, (__itt_caller id), (ITT_FORMAT id), 638fe6060f1SDimitry Andric stack_callee_leave, __itt_group_stitch, "%p") 6390b57cec5SDimitry Andric 640fe6060f1SDimitry Andric ITT_STUB(ITTAPI, __itt_clock_domain *, clock_domain_create, 641fe6060f1SDimitry Andric (__itt_get_clock_info_fn fn, void *fn_data), (ITT_FORMAT fn, fn_data), 642fe6060f1SDimitry Andric clock_domain_create, __itt_group_structure, "%p, %p") 643fe6060f1SDimitry Andric ITT_STUBV(ITTAPI, void, clock_domain_reset, (void), (ITT_NO_PARAMS), 644fe6060f1SDimitry Andric clock_domain_reset, __itt_group_structure, "no args") 645fe6060f1SDimitry Andric ITT_STUBV(ITTAPI, void, id_create_ex, 646fe6060f1SDimitry Andric (const __itt_domain *domain, __itt_clock_domain *clock_domain, 647fe6060f1SDimitry Andric unsigned long long timestamp, __itt_id id), 648fe6060f1SDimitry Andric (ITT_FORMAT domain, clock_domain, timestamp, id), id_create_ex, 649fe6060f1SDimitry Andric __itt_group_structure, "%p, %p, %lu, %lu") 650fe6060f1SDimitry Andric ITT_STUBV(ITTAPI, void, id_destroy_ex, 651fe6060f1SDimitry Andric (const __itt_domain *domain, __itt_clock_domain *clock_domain, 652fe6060f1SDimitry Andric unsigned long long timestamp, __itt_id id), 653fe6060f1SDimitry Andric (ITT_FORMAT domain, clock_domain, timestamp, id), id_destroy_ex, 654fe6060f1SDimitry Andric __itt_group_structure, "%p, %p, %lu, %lu") 655fe6060f1SDimitry Andric ITT_STUBV(ITTAPI, void, task_begin_ex, 656fe6060f1SDimitry Andric (const __itt_domain *domain, __itt_clock_domain *clock_domain, 657fe6060f1SDimitry Andric unsigned long long timestamp, __itt_id id, __itt_id parentid, 658fe6060f1SDimitry Andric __itt_string_handle *name), 659fe6060f1SDimitry Andric (ITT_FORMAT domain, clock_domain, timestamp, id, parentid, name), 660fe6060f1SDimitry Andric task_begin_ex, __itt_group_structure, "%p, %p, %lu, %lu, %lu, %p") 661fe6060f1SDimitry Andric ITT_STUBV(ITTAPI, void, task_begin_fn_ex, 662fe6060f1SDimitry Andric (const __itt_domain *domain, __itt_clock_domain *clock_domain, 663fe6060f1SDimitry Andric unsigned long long timestamp, __itt_id id, __itt_id parentid, 664fe6060f1SDimitry Andric void *fn), 665fe6060f1SDimitry Andric (ITT_FORMAT domain, clock_domain, timestamp, id, parentid, fn), 666fe6060f1SDimitry Andric task_begin_fn_ex, __itt_group_structure, "%p, %p, %lu, %lu, %lu, %p") 667fe6060f1SDimitry Andric ITT_STUBV(ITTAPI, void, task_end_ex, 668fe6060f1SDimitry Andric (const __itt_domain *domain, __itt_clock_domain *clock_domain, 669fe6060f1SDimitry Andric unsigned long long timestamp), 670fe6060f1SDimitry Andric (ITT_FORMAT domain, clock_domain, timestamp), task_end_ex, 671fe6060f1SDimitry Andric __itt_group_structure, "%p, %p, %lu") 672fe6060f1SDimitry Andric ITT_STUBV(ITTAPI, void, task_begin_overlapped, 673fe6060f1SDimitry Andric (const __itt_domain *domain, __itt_id id, __itt_id parent, 674fe6060f1SDimitry Andric __itt_string_handle *name), 675fe6060f1SDimitry Andric (ITT_FORMAT domain, id, parent, name), task_begin_overlapped, 676fe6060f1SDimitry Andric __itt_group_structure, "%p, %lu, %lu, %p") 677fe6060f1SDimitry Andric ITT_STUBV(ITTAPI, void, task_begin_overlapped_ex, 678fe6060f1SDimitry Andric (const __itt_domain *domain, __itt_clock_domain *clock_domain, 679fe6060f1SDimitry Andric unsigned long long timestamp, __itt_id id, __itt_id parentid, 680fe6060f1SDimitry Andric __itt_string_handle *name), 681fe6060f1SDimitry Andric (ITT_FORMAT domain, clock_domain, timestamp, id, parentid, name), 682fe6060f1SDimitry Andric task_begin_overlapped_ex, __itt_group_structure, 683fe6060f1SDimitry Andric "%p, %p, %lu, %lu, %lu, %p") 684fe6060f1SDimitry Andric ITT_STUBV(ITTAPI, void, task_end_overlapped, 685fe6060f1SDimitry Andric (const __itt_domain *domain, __itt_id id), (ITT_FORMAT domain, id), 686fe6060f1SDimitry Andric task_end_overlapped, __itt_group_structure, "%p, %lu") 687fe6060f1SDimitry Andric ITT_STUBV(ITTAPI, void, task_end_overlapped_ex, 688fe6060f1SDimitry Andric (const __itt_domain *domain, __itt_clock_domain *clock_domain, 689fe6060f1SDimitry Andric unsigned long long timestamp, __itt_id id), 690fe6060f1SDimitry Andric (ITT_FORMAT domain, clock_domain, timestamp, id), 691fe6060f1SDimitry Andric task_end_overlapped_ex, __itt_group_structure, "%p, %p, %lu, %lu") 692fe6060f1SDimitry Andric ITT_STUBV(ITTAPI, void, marker_ex, 693fe6060f1SDimitry Andric (const __itt_domain *domain, __itt_clock_domain *clock_domain, 694fe6060f1SDimitry Andric unsigned long long timestamp, __itt_id id, __itt_string_handle *name, 695fe6060f1SDimitry Andric __itt_scope scope), 696fe6060f1SDimitry Andric (ITT_FORMAT domain, clock_domain, timestamp, id, name, scope), 697fe6060f1SDimitry Andric marker_ex, __itt_group_structure, "%p, %p, %lu, %lu, %p, %d") 698fe6060f1SDimitry Andric ITT_STUBV(ITTAPI, void, metadata_add_with_scope, 699fe6060f1SDimitry Andric (const __itt_domain *domain, __itt_scope scope, 700fe6060f1SDimitry Andric __itt_string_handle *key, __itt_metadata_type type, size_t count, 701fe6060f1SDimitry Andric void *data), 702fe6060f1SDimitry Andric (ITT_FORMAT domain, scope, key, type, count, data), 703fe6060f1SDimitry Andric metadata_add_with_scope, __itt_group_structure, 704fe6060f1SDimitry Andric "%p, %d, %p, %d, %lu, %p") 7050b57cec5SDimitry Andric #if ITT_PLATFORM == ITT_PLATFORM_WIN 706fe6060f1SDimitry Andric ITT_STUBV(ITTAPI, void, metadata_str_add_with_scopeA, 707fe6060f1SDimitry Andric (const __itt_domain *domain, __itt_scope scope, 708fe6060f1SDimitry Andric __itt_string_handle *key, const char *data, size_t length), 709fe6060f1SDimitry Andric (ITT_FORMAT domain, scope, key, data, length), 710fe6060f1SDimitry Andric metadata_str_add_with_scopeA, __itt_group_structure, 711fe6060f1SDimitry Andric "%p, %d, %p, %p, %lu") 712fe6060f1SDimitry Andric ITT_STUBV(ITTAPI, void, metadata_str_add_with_scopeW, 713fe6060f1SDimitry Andric (const __itt_domain *domain, __itt_scope scope, 714fe6060f1SDimitry Andric __itt_string_handle *key, const wchar_t *data, size_t length), 715fe6060f1SDimitry Andric (ITT_FORMAT domain, scope, key, data, length), 716fe6060f1SDimitry Andric metadata_str_add_with_scopeW, __itt_group_structure, 717fe6060f1SDimitry Andric "%p, %d, %p, %p, %lu") 7180b57cec5SDimitry Andric #else /* ITT_PLATFORM!=ITT_PLATFORM_WIN */ 719fe6060f1SDimitry Andric ITT_STUBV(ITTAPI, void, metadata_str_add_with_scope, 720fe6060f1SDimitry Andric (const __itt_domain *domain, __itt_scope scope, 721fe6060f1SDimitry Andric __itt_string_handle *key, const char *data, size_t length), 722fe6060f1SDimitry Andric (ITT_FORMAT domain, scope, key, data, length), 723fe6060f1SDimitry Andric metadata_str_add_with_scope, __itt_group_structure, 724fe6060f1SDimitry Andric "%p, %d, %p, %p, %lu") 7250b57cec5SDimitry Andric #endif /* ITT_PLATFORM==ITT_PLATFORM_WIN */ 726fe6060f1SDimitry Andric ITT_STUBV(ITTAPI, void, relation_add_to_current_ex, 727fe6060f1SDimitry Andric (const __itt_domain *domain, __itt_clock_domain *clock_domain, 728fe6060f1SDimitry Andric unsigned long long timestamp, __itt_relation relation, 729fe6060f1SDimitry Andric __itt_id tail), 730fe6060f1SDimitry Andric (ITT_FORMAT domain, clock_domain, timestamp, relation, tail), 731fe6060f1SDimitry Andric relation_add_to_current_ex, __itt_group_structure, 732fe6060f1SDimitry Andric "%p, %p, %lu, %d, %lu") 733fe6060f1SDimitry Andric ITT_STUBV(ITTAPI, void, relation_add_ex, 734fe6060f1SDimitry Andric (const __itt_domain *domain, __itt_clock_domain *clock_domain, 735fe6060f1SDimitry Andric unsigned long long timestamp, __itt_id head, __itt_relation relation, 736fe6060f1SDimitry Andric __itt_id tail), 737fe6060f1SDimitry Andric (ITT_FORMAT domain, clock_domain, timestamp, head, relation, tail), 738fe6060f1SDimitry Andric relation_add_ex, __itt_group_structure, "%p, %p, %lu, %lu, %d, %lu") 739fe6060f1SDimitry Andric ITT_STUB(ITTAPI, __itt_track_group *, track_group_create, 740fe6060f1SDimitry Andric (__itt_string_handle * name, __itt_track_group_type track_group_type), 741fe6060f1SDimitry Andric (ITT_FORMAT name, track_group_type), track_group_create, 742fe6060f1SDimitry Andric __itt_group_structure, "%p, %d") 743fe6060f1SDimitry Andric ITT_STUB(ITTAPI, __itt_track *, track_create, 744fe6060f1SDimitry Andric (__itt_track_group * track_group, __itt_string_handle *name, 745fe6060f1SDimitry Andric __itt_track_type track_type), 746fe6060f1SDimitry Andric (ITT_FORMAT track_group, name, track_type), track_create, 747fe6060f1SDimitry Andric __itt_group_structure, "%p, %p, %d") 748fe6060f1SDimitry Andric ITT_STUBV(ITTAPI, void, set_track, (__itt_track * track), (ITT_FORMAT track), 749fe6060f1SDimitry Andric set_track, __itt_group_structure, "%p") 7500b57cec5SDimitry Andric 7510b57cec5SDimitry Andric #ifndef __ITT_INTERNAL_BODY 752fe6060f1SDimitry Andric ITT_STUB(ITTAPI, const char *, api_version, (void), (ITT_NO_PARAMS), 753fe6060f1SDimitry Andric api_version, __itt_group_all & ~__itt_group_legacy, "no args") 7540b57cec5SDimitry Andric #endif /* __ITT_INTERNAL_BODY */ 7550b57cec5SDimitry Andric 7560b57cec5SDimitry Andric #ifndef __ITT_INTERNAL_BODY 7570b57cec5SDimitry Andric #if ITT_PLATFORM == ITT_PLATFORM_WIN 758fe6060f1SDimitry Andric ITT_STUB(ITTAPI, int, av_saveA, 759fe6060f1SDimitry Andric (void *data, int rank, const int *dimensions, int type, 760fe6060f1SDimitry Andric const char *filePath, int columnOrder), 761fe6060f1SDimitry Andric (ITT_FORMAT data, rank, dimensions, type, filePath, columnOrder), 762fe6060f1SDimitry Andric av_saveA, __itt_group_arrays, "%p, %d, %p, %d, \"%s\", %d") 763fe6060f1SDimitry Andric ITT_STUB(ITTAPI, int, av_saveW, 764fe6060f1SDimitry Andric (void *data, int rank, const int *dimensions, int type, 765fe6060f1SDimitry Andric const wchar_t *filePath, int columnOrder), 766fe6060f1SDimitry Andric (ITT_FORMAT data, rank, dimensions, type, filePath, columnOrder), 767fe6060f1SDimitry Andric av_saveW, __itt_group_arrays, "%p, %d, %p, %d, \"%S\", %d") 7680b57cec5SDimitry Andric #else /* ITT_PLATFORM!=ITT_PLATFORM_WIN */ 769fe6060f1SDimitry Andric ITT_STUB(ITTAPI, int, av_save, 770fe6060f1SDimitry Andric (void *data, int rank, const int *dimensions, int type, 771fe6060f1SDimitry Andric const char *filePath, int columnOrder), 772fe6060f1SDimitry Andric (ITT_FORMAT data, rank, dimensions, type, filePath, columnOrder), 773fe6060f1SDimitry Andric av_save, __itt_group_arrays, "%p, %d, %p, %d, \"%s\", %d") 7740b57cec5SDimitry Andric #endif /* ITT_PLATFORM==ITT_PLATFORM_WIN */ 7750b57cec5SDimitry Andric #endif /* __ITT_INTERNAL_BODY */ 7760b57cec5SDimitry Andric 7770b57cec5SDimitry Andric #if ITT_PLATFORM == ITT_PLATFORM_WIN 778fe6060f1SDimitry Andric ITT_STUBV(ITTAPI, void, module_loadA, 779fe6060f1SDimitry Andric (void *start_addr, void *end_addr, const char *path), 780fe6060f1SDimitry Andric (ITT_FORMAT start_addr, end_addr, path), module_loadA, 781*349cc55cSDimitry Andric __itt_group_module, "%p, %p, %p") 782fe6060f1SDimitry Andric ITT_STUBV(ITTAPI, void, module_loadW, 783fe6060f1SDimitry Andric (void *start_addr, void *end_addr, const wchar_t *path), 784fe6060f1SDimitry Andric (ITT_FORMAT start_addr, end_addr, path), module_loadW, 785*349cc55cSDimitry Andric __itt_group_module, "%p, %p, %p") 7860b57cec5SDimitry Andric #else /* ITT_PLATFORM!=ITT_PLATFORM_WIN */ 787fe6060f1SDimitry Andric ITT_STUBV(ITTAPI, void, module_load, 788fe6060f1SDimitry Andric (void *start_addr, void *end_addr, const char *path), 789fe6060f1SDimitry Andric (ITT_FORMAT start_addr, end_addr, path), module_load, 790*349cc55cSDimitry Andric __itt_group_module, "%p, %p, %p") 7910b57cec5SDimitry Andric #endif /* ITT_PLATFORM==ITT_PLATFORM_WIN */ 792*349cc55cSDimitry Andric ITT_STUBV(ITTAPI, void, module_unload, (void *start_addr), 793*349cc55cSDimitry Andric (ITT_FORMAT start_addr), module_unload, __itt_group_module, "%p") 794*349cc55cSDimitry Andric 795*349cc55cSDimitry Andric ITT_STUBV(ITTAPI, void, histogram_submit, 796*349cc55cSDimitry Andric (__itt_histogram * hist, size_t length, void *x_data, void *y_data), 797*349cc55cSDimitry Andric (ITT_FORMAT hist, length, x_data, y_data), histogram_submit, 798*349cc55cSDimitry Andric __itt_group_structure, "%p, %lu, %p, %p") 7990b57cec5SDimitry Andric 8000b57cec5SDimitry Andric #endif /* __ITT_INTERNAL_INIT */ 801