1 2 //===----------------------------------------------------------------------===// 3 // 4 // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. 5 // See https://llvm.org/LICENSE.txt for license information. 6 // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception 7 // 8 //===----------------------------------------------------------------------===// 9 10 #include "ittnotify_config.h" 11 12 #ifndef ITT_FORMAT_DEFINED 13 #ifndef ITT_FORMAT 14 #define ITT_FORMAT 15 #endif /* ITT_FORMAT */ 16 #ifndef ITT_NO_PARAMS 17 #define ITT_NO_PARAMS 18 #endif /* ITT_NO_PARAMS */ 19 #endif /* ITT_FORMAT_DEFINED */ 20 21 /* 22 * parameters for macro expected: 23 * ITT_STUB(api, type, func_name, arguments, params, func_name_in_dll, group, 24 * printf_fmt) 25 */ 26 #ifdef __ITT_INTERNAL_INIT 27 28 #ifndef __ITT_INTERNAL_BODY 29 #if ITT_PLATFORM == ITT_PLATFORM_WIN 30 ITT_STUB(ITTAPI, __itt_domain *, domain_createA, (const char *name), 31 (ITT_FORMAT name), domain_createA, __itt_group_structure, "\"%s\"") 32 ITT_STUB(ITTAPI, __itt_domain *, domain_createW, (const wchar_t *name), 33 (ITT_FORMAT name), domain_createW, __itt_group_structure, "\"%S\"") 34 #else /* ITT_PLATFORM!=ITT_PLATFORM_WIN */ 35 ITT_STUB(ITTAPI, __itt_domain *, domain_create, (const char *name), 36 (ITT_FORMAT name), domain_create, __itt_group_structure, "\"%s\"") 37 #endif /* ITT_PLATFORM==ITT_PLATFORM_WIN */ 38 39 #if ITT_PLATFORM == ITT_PLATFORM_WIN 40 ITT_STUB(ITTAPI, __itt_string_handle *, string_handle_createA, 41 (const char *name), (ITT_FORMAT name), string_handle_createA, 42 __itt_group_structure, "\"%s\"") 43 ITT_STUB(ITTAPI, __itt_string_handle *, string_handle_createW, 44 (const wchar_t *name), (ITT_FORMAT name), string_handle_createW, 45 __itt_group_structure, "\"%S\"") 46 #else /* ITT_PLATFORM!=ITT_PLATFORM_WIN */ 47 ITT_STUB(ITTAPI, __itt_string_handle *, string_handle_create, 48 (const char *name), (ITT_FORMAT name), string_handle_create, 49 __itt_group_structure, "\"%s\"") 50 #endif /* ITT_PLATFORM==ITT_PLATFORM_WIN */ 51 52 #if ITT_PLATFORM == ITT_PLATFORM_WIN 53 ITT_STUB(ITTAPI, __itt_counter, counter_createA, 54 (const char *name, const char *domain), (ITT_FORMAT name, domain), 55 counter_createA, __itt_group_counter, "\"%s\", \"%s\"") 56 ITT_STUB(ITTAPI, __itt_counter, counter_createW, 57 (const wchar_t *name, const wchar_t *domain), 58 (ITT_FORMAT name, domain), counter_createW, __itt_group_counter, 59 "\"%s\", \"%s\"") 60 #else /* ITT_PLATFORM==ITT_PLATFORM_WIN */ 61 ITT_STUB(ITTAPI, __itt_counter, counter_create, 62 (const char *name, const char *domain), (ITT_FORMAT name, domain), 63 counter_create, __itt_group_counter, "\"%s\", \"%s\"") 64 #endif /* ITT_PLATFORM==ITT_PLATFORM_WIN */ 65 66 #if ITT_PLATFORM == ITT_PLATFORM_WIN 67 ITT_STUB(ITTAPI, __itt_counter, counter_create_typedA, 68 (const char *name, const char *domain, __itt_metadata_type type), 69 (ITT_FORMAT name, domain, type), counter_create_typedA, 70 __itt_group_counter, "\"%s\", \"%s\", %d") 71 ITT_STUB(ITTAPI, __itt_counter, counter_create_typedW, 72 (const wchar_t *name, const wchar_t *domain, __itt_metadata_type type), 73 (ITT_FORMAT name, domain, type), counter_create_typedW, 74 __itt_group_counter, "\"%s\", \"%s\", %d") 75 #else /* ITT_PLATFORM==ITT_PLATFORM_WIN */ 76 ITT_STUB(ITTAPI, __itt_counter, counter_create_typed, 77 (const char *name, const char *domain, __itt_metadata_type type), 78 (ITT_FORMAT name, domain, type), counter_create_typed, 79 __itt_group_counter, "\"%s\", \"%s\", %d") 80 #endif /* ITT_PLATFORM==ITT_PLATFORM_WIN */ 81 82 ITT_STUBV(ITTAPI, void, pause, (void), (ITT_NO_PARAMS), pause, 83 __itt_group_control | __itt_group_legacy, "no args") 84 ITT_STUBV(ITTAPI, void, resume, (void), (ITT_NO_PARAMS), resume, 85 __itt_group_control | __itt_group_legacy, "no args") 86 87 #if ITT_PLATFORM == ITT_PLATFORM_WIN 88 ITT_STUBV(ITTAPI, void, thread_set_nameA, (const char *name), (ITT_FORMAT name), 89 thread_set_nameA, __itt_group_thread, "\"%s\"") 90 ITT_STUBV(ITTAPI, void, thread_set_nameW, (const wchar_t *name), 91 (ITT_FORMAT name), thread_set_nameW, __itt_group_thread, "\"%S\"") 92 #else /* ITT_PLATFORM!=ITT_PLATFORM_WIN */ 93 ITT_STUBV(ITTAPI, void, thread_set_name, (const char *name), (ITT_FORMAT name), 94 thread_set_name, __itt_group_thread, "\"%s\"") 95 #endif /* ITT_PLATFORM==ITT_PLATFORM_WIN */ 96 ITT_STUBV(ITTAPI, void, thread_ignore, (void), (ITT_NO_PARAMS), thread_ignore, 97 __itt_group_thread, "no args") 98 99 #if ITT_PLATFORM == ITT_PLATFORM_WIN 100 ITT_STUB(LIBITTAPI, int, thr_name_setA, (const char *name, int namelen), 101 (ITT_FORMAT name, namelen), thr_name_setA, 102 __itt_group_thread | __itt_group_legacy, "\"%s\", %d") 103 ITT_STUB(LIBITTAPI, int, thr_name_setW, (const wchar_t *name, int namelen), 104 (ITT_FORMAT name, namelen), thr_name_setW, 105 __itt_group_thread | __itt_group_legacy, "\"%S\", %d") 106 #else /* ITT_PLATFORM!=ITT_PLATFORM_WIN */ 107 ITT_STUB(LIBITTAPI, int, thr_name_set, (const char *name, int namelen), 108 (ITT_FORMAT name, namelen), thr_name_set, 109 __itt_group_thread | __itt_group_legacy, "\"%s\", %d") 110 #endif /* ITT_PLATFORM==ITT_PLATFORM_WIN */ 111 ITT_STUBV(LIBITTAPI, void, thr_ignore, (void), (ITT_NO_PARAMS), thr_ignore, 112 __itt_group_thread | __itt_group_legacy, "no args") 113 #endif /* __ITT_INTERNAL_BODY */ 114 115 ITT_STUBV(ITTAPI, void, enable_attach, (void), (ITT_NO_PARAMS), enable_attach, 116 __itt_group_all, "no args") 117 118 #else /* __ITT_INTERNAL_INIT */ 119 120 ITT_STUBV(ITTAPI, void, detach, (void), (ITT_NO_PARAMS), detach, 121 __itt_group_control | __itt_group_legacy, "no args") 122 123 #if ITT_PLATFORM == ITT_PLATFORM_WIN 124 ITT_STUBV(ITTAPI, void, sync_createA, 125 (void *addr, const char *objtype, const char *objname, int attribute), 126 (ITT_FORMAT addr, objtype, objname, attribute), sync_createA, 127 __itt_group_sync | __itt_group_fsync, "%p, \"%s\", \"%s\", %x") 128 ITT_STUBV(ITTAPI, void, sync_createW, 129 (void *addr, const wchar_t *objtype, const wchar_t *objname, 130 int attribute), 131 (ITT_FORMAT addr, objtype, objname, attribute), sync_createW, 132 __itt_group_sync | __itt_group_fsync, "%p, \"%S\", \"%S\", %x") 133 ITT_STUBV(ITTAPI, void, sync_renameA, (void *addr, const char *name), 134 (ITT_FORMAT addr, name), sync_renameA, 135 __itt_group_sync | __itt_group_fsync, "%p, \"%s\"") 136 ITT_STUBV(ITTAPI, void, sync_renameW, (void *addr, const wchar_t *name), 137 (ITT_FORMAT addr, name), sync_renameW, 138 __itt_group_sync | __itt_group_fsync, "%p, \"%S\"") 139 #else /* ITT_PLATFORM!=ITT_PLATFORM_WIN */ 140 ITT_STUBV(ITTAPI, void, sync_create, 141 (void *addr, const char *objtype, const char *objname, int attribute), 142 (ITT_FORMAT addr, objtype, objname, attribute), sync_create, 143 __itt_group_sync | __itt_group_fsync, "%p, \"%s\", \"%s\", %x") 144 ITT_STUBV(ITTAPI, void, sync_rename, (void *addr, const char *name), 145 (ITT_FORMAT addr, name), sync_rename, 146 __itt_group_sync | __itt_group_fsync, "%p, \"%s\"") 147 #endif /* ITT_PLATFORM==ITT_PLATFORM_WIN */ 148 ITT_STUBV(ITTAPI, void, sync_destroy, (void *addr), (ITT_FORMAT addr), 149 sync_destroy, __itt_group_sync | __itt_group_fsync, "%p") 150 151 ITT_STUBV(ITTAPI, void, sync_prepare, (void *addr), (ITT_FORMAT addr), 152 sync_prepare, __itt_group_sync, "%p") 153 ITT_STUBV(ITTAPI, void, sync_cancel, (void *addr), (ITT_FORMAT addr), 154 sync_cancel, __itt_group_sync, "%p") 155 ITT_STUBV(ITTAPI, void, sync_acquired, (void *addr), (ITT_FORMAT addr), 156 sync_acquired, __itt_group_sync, "%p") 157 ITT_STUBV(ITTAPI, void, sync_releasing, (void *addr), (ITT_FORMAT addr), 158 sync_releasing, __itt_group_sync, "%p") 159 160 ITT_STUBV(ITTAPI, void, suppress_push, (unsigned int mask), (ITT_FORMAT mask), 161 suppress_push, __itt_group_suppress, "%p") 162 ITT_STUBV(ITTAPI, void, suppress_pop, (void), (ITT_NO_PARAMS), suppress_pop, 163 __itt_group_suppress, "no args") 164 ITT_STUBV(ITTAPI, void, suppress_mark_range, 165 (__itt_suppress_mode_t mode, unsigned int mask, void *address, 166 size_t size), 167 (ITT_FORMAT mode, mask, address, size), suppress_mark_range, 168 __itt_group_suppress, "%d, %p, %p, %d") 169 ITT_STUBV(ITTAPI, void, suppress_clear_range, 170 (__itt_suppress_mode_t mode, unsigned int mask, void *address, 171 size_t size), 172 (ITT_FORMAT mode, mask, address, size), suppress_clear_range, 173 __itt_group_suppress, "%d, %p, %p, %d") 174 175 ITT_STUBV(ITTAPI, void, fsync_prepare, (void *addr), (ITT_FORMAT addr), 176 sync_prepare, __itt_group_fsync, "%p") 177 ITT_STUBV(ITTAPI, void, fsync_cancel, (void *addr), (ITT_FORMAT addr), 178 sync_cancel, __itt_group_fsync, "%p") 179 ITT_STUBV(ITTAPI, void, fsync_acquired, (void *addr), (ITT_FORMAT addr), 180 sync_acquired, __itt_group_fsync, "%p") 181 ITT_STUBV(ITTAPI, void, fsync_releasing, (void *addr), (ITT_FORMAT addr), 182 sync_releasing, __itt_group_fsync, "%p") 183 184 ITT_STUBV(ITTAPI, void, model_site_begin, 185 (__itt_model_site * site, __itt_model_site_instance *instance, 186 const char *name), 187 (ITT_FORMAT site, instance, name), model_site_begin, 188 __itt_group_model, "%p, %p, \"%s\"") 189 ITT_STUBV(ITTAPI, void, model_site_end, 190 (__itt_model_site * site, __itt_model_site_instance *instance), 191 (ITT_FORMAT site, instance), model_site_end, __itt_group_model, 192 "%p, %p") 193 ITT_STUBV(ITTAPI, void, model_task_begin, 194 (__itt_model_task * task, __itt_model_task_instance *instance, 195 const char *name), 196 (ITT_FORMAT task, instance, name), model_task_begin, 197 __itt_group_model, "%p, %p, \"%s\"") 198 ITT_STUBV(ITTAPI, void, model_task_end, 199 (__itt_model_task * task, __itt_model_task_instance *instance), 200 (ITT_FORMAT task, instance), model_task_end, __itt_group_model, 201 "%p, %p") 202 ITT_STUBV(ITTAPI, void, model_lock_acquire, (void *lock), (ITT_FORMAT lock), 203 model_lock_acquire, __itt_group_model, "%p") 204 ITT_STUBV(ITTAPI, void, model_lock_release, (void *lock), (ITT_FORMAT lock), 205 model_lock_release, __itt_group_model, "%p") 206 ITT_STUBV(ITTAPI, void, model_record_allocation, (void *addr, size_t size), 207 (ITT_FORMAT addr, size), model_record_allocation, __itt_group_model, 208 "%p, %d") 209 ITT_STUBV(ITTAPI, void, model_record_deallocation, (void *addr), 210 (ITT_FORMAT addr), model_record_deallocation, __itt_group_model, "%p") 211 ITT_STUBV(ITTAPI, void, model_induction_uses, (void *addr, size_t size), 212 (ITT_FORMAT addr, size), model_induction_uses, __itt_group_model, 213 "%p, %d") 214 ITT_STUBV(ITTAPI, void, model_reduction_uses, (void *addr, size_t size), 215 (ITT_FORMAT addr, size), model_reduction_uses, __itt_group_model, 216 "%p, %d") 217 ITT_STUBV(ITTAPI, void, model_observe_uses, (void *addr, size_t size), 218 (ITT_FORMAT addr, size), model_observe_uses, __itt_group_model, 219 "%p, %d") 220 ITT_STUBV(ITTAPI, void, model_clear_uses, (void *addr), (ITT_FORMAT addr), 221 model_clear_uses, __itt_group_model, "%p") 222 223 #ifndef __ITT_INTERNAL_BODY 224 #if ITT_PLATFORM == ITT_PLATFORM_WIN 225 ITT_STUBV(ITTAPI, void, model_site_beginW, (const wchar_t *name), 226 (ITT_FORMAT name), model_site_beginW, __itt_group_model, "\"%s\"") 227 ITT_STUBV(ITTAPI, void, model_task_beginW, (const wchar_t *name), 228 (ITT_FORMAT name), model_task_beginW, __itt_group_model, "\"%s\"") 229 ITT_STUBV(ITTAPI, void, model_iteration_taskW, (const wchar_t *name), 230 (ITT_FORMAT name), model_iteration_taskW, __itt_group_model, "\"%s\"") 231 #endif /* ITT_PLATFORM==ITT_PLATFORM_WIN */ 232 ITT_STUBV(ITTAPI, void, model_site_beginA, (const char *name), 233 (ITT_FORMAT name), model_site_beginA, __itt_group_model, "\"%s\"") 234 ITT_STUBV(ITTAPI, void, model_site_beginAL, (const char *name, size_t len), 235 (ITT_FORMAT name, len), model_site_beginAL, __itt_group_model, 236 "\"%s\", %d") 237 ITT_STUBV(ITTAPI, void, model_task_beginA, (const char *name), 238 (ITT_FORMAT name), model_task_beginA, __itt_group_model, "\"%s\"") 239 ITT_STUBV(ITTAPI, void, model_task_beginAL, (const char *name, size_t len), 240 (ITT_FORMAT name, len), model_task_beginAL, __itt_group_model, 241 "\"%s\", %d") 242 ITT_STUBV(ITTAPI, void, model_iteration_taskA, (const char *name), 243 (ITT_FORMAT name), model_iteration_taskA, __itt_group_model, "\"%s\"") 244 ITT_STUBV(ITTAPI, void, model_iteration_taskAL, (const char *name, size_t len), 245 (ITT_FORMAT name, len), model_iteration_taskAL, __itt_group_model, 246 "\"%s\", %d") 247 ITT_STUBV(ITTAPI, void, model_site_end_2, (void), (ITT_NO_PARAMS), 248 model_site_end_2, __itt_group_model, "no args") 249 ITT_STUBV(ITTAPI, void, model_task_end_2, (void), (ITT_NO_PARAMS), 250 model_task_end_2, __itt_group_model, "no args") 251 ITT_STUBV(ITTAPI, void, model_lock_acquire_2, (void *lock), (ITT_FORMAT lock), 252 model_lock_acquire_2, __itt_group_model, "%p") 253 ITT_STUBV(ITTAPI, void, model_lock_release_2, (void *lock), (ITT_FORMAT lock), 254 model_lock_release_2, __itt_group_model, "%p") 255 ITT_STUBV(ITTAPI, void, model_aggregate_task, (size_t count), 256 (ITT_FORMAT count), model_aggregate_task, __itt_group_model, "%d") 257 ITT_STUBV(ITTAPI, void, model_disable_push, (__itt_model_disable x), 258 (ITT_FORMAT x), model_disable_push, __itt_group_model, "%p") 259 ITT_STUBV(ITTAPI, void, model_disable_pop, (void), (ITT_NO_PARAMS), 260 model_disable_pop, __itt_group_model, "no args") 261 #endif /* __ITT_INTERNAL_BODY */ 262 263 #ifndef __ITT_INTERNAL_BODY 264 #if ITT_PLATFORM == ITT_PLATFORM_WIN 265 ITT_STUB(ITTAPI, __itt_heap_function, heap_function_createA, 266 (const char *name, const char *domain), (ITT_FORMAT name, domain), 267 heap_function_createA, __itt_group_heap, "\"%s\", \"%s\"") 268 ITT_STUB(ITTAPI, __itt_heap_function, heap_function_createW, 269 (const wchar_t *name, const wchar_t *domain), 270 (ITT_FORMAT name, domain), heap_function_createW, __itt_group_heap, 271 "\"%s\", \"%s\"") 272 #else /* ITT_PLATFORM==ITT_PLATFORM_WIN */ 273 ITT_STUB(ITTAPI, __itt_heap_function, heap_function_create, 274 (const char *name, const char *domain), (ITT_FORMAT name, domain), 275 heap_function_create, __itt_group_heap, "\"%s\", \"%s\"") 276 #endif /* ITT_PLATFORM==ITT_PLATFORM_WIN */ 277 #endif /* __ITT_INTERNAL_BODY */ 278 ITT_STUBV(ITTAPI, void, heap_allocate_begin, 279 (__itt_heap_function h, size_t size, int initialized), 280 (ITT_FORMAT h, size, initialized), heap_allocate_begin, 281 __itt_group_heap, "%p, %lu, %d") 282 ITT_STUBV(ITTAPI, void, heap_allocate_end, 283 (__itt_heap_function h, void **addr, size_t size, int initialized), 284 (ITT_FORMAT h, addr, size, initialized), heap_allocate_end, 285 __itt_group_heap, "%p, %p, %lu, %d") 286 ITT_STUBV(ITTAPI, void, heap_free_begin, (__itt_heap_function h, void *addr), 287 (ITT_FORMAT h, addr), heap_free_begin, __itt_group_heap, "%p, %p") 288 ITT_STUBV(ITTAPI, void, heap_free_end, (__itt_heap_function h, void *addr), 289 (ITT_FORMAT h, addr), heap_free_end, __itt_group_heap, "%p, %p") 290 ITT_STUBV(ITTAPI, void, heap_reallocate_begin, 291 (__itt_heap_function h, void *addr, size_t new_size, int initialized), 292 (ITT_FORMAT h, addr, new_size, initialized), heap_reallocate_begin, 293 __itt_group_heap, "%p, %p, %lu, %d") 294 ITT_STUBV(ITTAPI, void, heap_reallocate_end, 295 (__itt_heap_function h, void *addr, void **new_addr, size_t new_size, 296 int initialized), 297 (ITT_FORMAT h, addr, new_addr, new_size, initialized), 298 heap_reallocate_end, __itt_group_heap, "%p, %p, %p, %lu, %d") 299 ITT_STUBV(ITTAPI, void, heap_internal_access_begin, (void), (ITT_NO_PARAMS), 300 heap_internal_access_begin, __itt_group_heap, "no args") 301 ITT_STUBV(ITTAPI, void, heap_internal_access_end, (void), (ITT_NO_PARAMS), 302 heap_internal_access_end, __itt_group_heap, "no args") 303 ITT_STUBV(ITTAPI, void, heap_record_memory_growth_begin, (void), 304 (ITT_NO_PARAMS), heap_record_memory_growth_begin, __itt_group_heap, 305 "no args") 306 ITT_STUBV(ITTAPI, void, heap_record_memory_growth_end, (void), (ITT_NO_PARAMS), 307 heap_record_memory_growth_end, __itt_group_heap, "no args") 308 ITT_STUBV(ITTAPI, void, heap_reset_detection, (unsigned int reset_mask), 309 (ITT_FORMAT reset_mask), heap_reset_detection, __itt_group_heap, "%u") 310 ITT_STUBV(ITTAPI, void, heap_record, (unsigned int record_mask), 311 (ITT_FORMAT record_mask), heap_record, __itt_group_heap, "%u") 312 313 ITT_STUBV(ITTAPI, void, id_create, (const __itt_domain *domain, __itt_id id), 314 (ITT_FORMAT domain, id), id_create, __itt_group_structure, "%p, %lu") 315 ITT_STUBV(ITTAPI, void, id_destroy, (const __itt_domain *domain, __itt_id id), 316 (ITT_FORMAT domain, id), id_destroy, __itt_group_structure, "%p, %lu") 317 318 ITT_STUB(ITTAPI, __itt_timestamp, get_timestamp, (void), (ITT_NO_PARAMS), 319 get_timestamp, __itt_group_structure, "no args") 320 321 ITT_STUBV(ITTAPI, void, region_begin, 322 (const __itt_domain *domain, __itt_id id, __itt_id parent, 323 __itt_string_handle *name), 324 (ITT_FORMAT domain, id, parent, name), region_begin, 325 __itt_group_structure, "%p, %lu, %lu, %p") 326 ITT_STUBV(ITTAPI, void, region_end, (const __itt_domain *domain, __itt_id id), 327 (ITT_FORMAT domain, id), region_end, __itt_group_structure, "%p, %lu") 328 329 #ifndef __ITT_INTERNAL_BODY 330 ITT_STUBV(ITTAPI, void, frame_begin_v3, 331 (const __itt_domain *domain, __itt_id *id), (ITT_FORMAT domain, id), 332 frame_begin_v3, __itt_group_structure, "%p, %p") 333 ITT_STUBV(ITTAPI, void, frame_end_v3, 334 (const __itt_domain *domain, __itt_id *id), (ITT_FORMAT domain, id), 335 frame_end_v3, __itt_group_structure, "%p, %p") 336 ITT_STUBV(ITTAPI, void, frame_submit_v3, 337 (const __itt_domain *domain, __itt_id *id, __itt_timestamp begin, 338 __itt_timestamp end), 339 (ITT_FORMAT domain, id, begin, end), frame_submit_v3, 340 __itt_group_structure, "%p, %p, %lu, %lu") 341 #endif /* __ITT_INTERNAL_BODY */ 342 343 ITT_STUBV(ITTAPI, void, task_group, 344 (const __itt_domain *domain, __itt_id id, __itt_id parent, 345 __itt_string_handle *name), 346 (ITT_FORMAT domain, id, parent, name), task_group, 347 __itt_group_structure, "%p, %lu, %lu, %p") 348 349 ITT_STUBV(ITTAPI, void, task_begin, 350 (const __itt_domain *domain, __itt_id id, __itt_id parent, 351 __itt_string_handle *name), 352 (ITT_FORMAT domain, id, parent, name), task_begin, 353 __itt_group_structure, "%p, %lu, %lu, %p") 354 ITT_STUBV(ITTAPI, void, task_begin_fn, 355 (const __itt_domain *domain, __itt_id id, __itt_id parent, void *fn), 356 (ITT_FORMAT domain, id, parent, fn), task_begin_fn, 357 __itt_group_structure, "%p, %lu, %lu, %p") 358 ITT_STUBV(ITTAPI, void, task_end, (const __itt_domain *domain), 359 (ITT_FORMAT domain), task_end, __itt_group_structure, "%p") 360 361 ITT_STUBV(ITTAPI, void, counter_inc_v3, 362 (const __itt_domain *domain, __itt_string_handle *name), 363 (ITT_FORMAT domain, name), counter_inc_v3, __itt_group_structure, 364 "%p, %p") 365 ITT_STUBV(ITTAPI, void, counter_inc_delta_v3, 366 (const __itt_domain *domain, __itt_string_handle *name, 367 unsigned long long value), 368 (ITT_FORMAT domain, name, value), counter_inc_delta_v3, 369 __itt_group_structure, "%p, %p, %lu") 370 ITT_STUBV(ITTAPI, void, counter_dec_v3, 371 (const __itt_domain *domain, __itt_string_handle *name), 372 (ITT_FORMAT domain, name), counter_dec_v3, __itt_group_structure, 373 "%p, %p") 374 ITT_STUBV(ITTAPI, void, counter_dec_delta_v3, 375 (const __itt_domain *domain, __itt_string_handle *name, 376 unsigned long long value), 377 (ITT_FORMAT domain, name, value), counter_dec_delta_v3, 378 __itt_group_structure, "%p, %p, %lu") 379 380 ITT_STUBV(ITTAPI, void, marker, 381 (const __itt_domain *domain, __itt_id id, __itt_string_handle *name, 382 __itt_scope scope), 383 (ITT_FORMAT domain, id, name, scope), marker, __itt_group_structure, 384 "%p, %lu, %p, %d") 385 386 ITT_STUBV(ITTAPI, void, metadata_add, 387 (const __itt_domain *domain, __itt_id id, __itt_string_handle *key, 388 __itt_metadata_type type, size_t count, void *data), 389 (ITT_FORMAT domain, id, key, type, count, data), metadata_add, 390 __itt_group_structure, "%p, %lu, %p, %d, %lu, %p") 391 #if ITT_PLATFORM == ITT_PLATFORM_WIN 392 ITT_STUBV(ITTAPI, void, metadata_str_addA, 393 (const __itt_domain *domain, __itt_id id, __itt_string_handle *key, 394 const char *data, size_t length), 395 (ITT_FORMAT domain, id, key, data, length), metadata_str_addA, 396 __itt_group_structure, "%p, %lu, %p, %p, %lu") 397 ITT_STUBV(ITTAPI, void, metadata_str_addW, 398 (const __itt_domain *domain, __itt_id id, __itt_string_handle *key, 399 const wchar_t *data, size_t length), 400 (ITT_FORMAT domain, id, key, data, length), metadata_str_addW, 401 __itt_group_structure, "%p, %lu, %p, %p, %lu") 402 #else /* ITT_PLATFORM!=ITT_PLATFORM_WIN */ 403 ITT_STUBV(ITTAPI, void, metadata_str_add, 404 (const __itt_domain *domain, __itt_id id, __itt_string_handle *key, 405 const char *data, size_t length), 406 (ITT_FORMAT domain, id, key, data, length), metadata_str_add, 407 __itt_group_structure, "%p, %lu, %p, %p, %lu") 408 #endif /* ITT_PLATFORM==ITT_PLATFORM_WIN */ 409 410 ITT_STUBV(ITTAPI, void, relation_add_to_current, 411 (const __itt_domain *domain, __itt_relation relation, __itt_id tail), 412 (ITT_FORMAT domain, relation, tail), relation_add_to_current, 413 __itt_group_structure, "%p, %lu, %p") 414 ITT_STUBV(ITTAPI, void, relation_add, 415 (const __itt_domain *domain, __itt_id head, __itt_relation relation, 416 __itt_id tail), 417 (ITT_FORMAT domain, head, relation, tail), relation_add, 418 __itt_group_structure, "%p, %p, %lu, %p") 419 420 #ifndef __ITT_INTERNAL_BODY 421 #if ITT_PLATFORM == ITT_PLATFORM_WIN 422 ITT_STUB(LIBITTAPI, __itt_event, event_createA, (const char *name, int namelen), 423 (ITT_FORMAT name, namelen), event_createA, 424 __itt_group_mark | __itt_group_legacy, "\"%s\", %d") 425 ITT_STUB(LIBITTAPI, __itt_event, event_createW, 426 (const wchar_t *name, int namelen), (ITT_FORMAT name, namelen), 427 event_createW, __itt_group_mark | __itt_group_legacy, "\"%S\", %d") 428 #else /* ITT_PLATFORM!=ITT_PLATFORM_WIN */ 429 ITT_STUB(LIBITTAPI, __itt_event, event_create, (const char *name, int namelen), 430 (ITT_FORMAT name, namelen), event_create, 431 __itt_group_mark | __itt_group_legacy, "\"%s\", %d") 432 #endif /* ITT_PLATFORM==ITT_PLATFORM_WIN */ 433 ITT_STUB(LIBITTAPI, int, event_start, (__itt_event event), (ITT_FORMAT event), 434 event_start, __itt_group_mark | __itt_group_legacy, "%d") 435 ITT_STUB(LIBITTAPI, int, event_end, (__itt_event event), (ITT_FORMAT event), 436 event_end, __itt_group_mark | __itt_group_legacy, "%d") 437 #endif /* __ITT_INTERNAL_BODY */ 438 439 #ifndef __ITT_INTERNAL_BODY 440 #if ITT_PLATFORM == ITT_PLATFORM_WIN 441 ITT_STUBV(ITTAPI, void, sync_set_nameA, 442 (void *addr, const char *objtype, const char *objname, int attribute), 443 (ITT_FORMAT addr, objtype, objname, attribute), sync_set_nameA, 444 __itt_group_sync | __itt_group_fsync | __itt_group_legacy, 445 "%p, \"%s\", \"%s\", %x") 446 ITT_STUBV(ITTAPI, void, sync_set_nameW, 447 (void *addr, const wchar_t *objtype, const wchar_t *objname, 448 int attribute), 449 (ITT_FORMAT addr, objtype, objname, attribute), sync_set_nameW, 450 __itt_group_sync | __itt_group_fsync | __itt_group_legacy, 451 "%p, \"%S\", \"%S\", %x") 452 #else /* ITT_PLATFORM!=ITT_PLATFORM_WIN */ 453 ITT_STUBV(ITTAPI, void, sync_set_name, 454 (void *addr, const char *objtype, const char *objname, int attribute), 455 (ITT_FORMAT addr, objtype, objname, attribute), sync_set_name, 456 __itt_group_sync | __itt_group_fsync | __itt_group_legacy, 457 "p, \"%s\", \"%s\", %x") 458 #endif /* ITT_PLATFORM==ITT_PLATFORM_WIN */ 459 460 #if ITT_PLATFORM == ITT_PLATFORM_WIN 461 ITT_STUB(LIBITTAPI, int, notify_sync_nameA, 462 (void *p, const char *objtype, int typelen, const char *objname, 463 int namelen, int attribute), 464 (ITT_FORMAT p, objtype, typelen, objname, namelen, attribute), 465 notify_sync_nameA, 466 __itt_group_sync | __itt_group_fsync | __itt_group_legacy, 467 "%p, \"%s\", %d, \"%s\", %d, %x") 468 ITT_STUB(LIBITTAPI, int, notify_sync_nameW, 469 (void *p, const wchar_t *objtype, int typelen, const wchar_t *objname, 470 int namelen, int attribute), 471 (ITT_FORMAT p, objtype, typelen, objname, namelen, attribute), 472 notify_sync_nameW, 473 __itt_group_sync | __itt_group_fsync | __itt_group_legacy, 474 "%p, \"%S\", %d, \"%S\", %d, %x") 475 #else /* ITT_PLATFORM!=ITT_PLATFORM_WIN */ 476 ITT_STUB(LIBITTAPI, int, notify_sync_name, 477 (void *p, const char *objtype, int typelen, const char *objname, 478 int namelen, int attribute), 479 (ITT_FORMAT p, objtype, typelen, objname, namelen, attribute), 480 notify_sync_name, 481 __itt_group_sync | __itt_group_fsync | __itt_group_legacy, 482 "%p, \"%s\", %d, \"%s\", %d, %x") 483 #endif /* ITT_PLATFORM==ITT_PLATFORM_WIN */ 484 485 ITT_STUBV(LIBITTAPI, void, notify_sync_prepare, (void *p), (ITT_FORMAT p), 486 notify_sync_prepare, 487 __itt_group_sync | __itt_group_fsync | __itt_group_legacy, "%p") 488 ITT_STUBV(LIBITTAPI, void, notify_sync_cancel, (void *p), (ITT_FORMAT p), 489 notify_sync_cancel, 490 __itt_group_sync | __itt_group_fsync | __itt_group_legacy, "%p") 491 ITT_STUBV(LIBITTAPI, void, notify_sync_acquired, (void *p), (ITT_FORMAT p), 492 notify_sync_acquired, 493 __itt_group_sync | __itt_group_fsync | __itt_group_legacy, "%p") 494 ITT_STUBV(LIBITTAPI, void, notify_sync_releasing, (void *p), (ITT_FORMAT p), 495 notify_sync_releasing, 496 __itt_group_sync | __itt_group_fsync | __itt_group_legacy, "%p") 497 #endif /* __ITT_INTERNAL_BODY */ 498 499 ITT_STUBV(LIBITTAPI, void, memory_read, (void *addr, size_t size), 500 (ITT_FORMAT addr, size), memory_read, __itt_group_legacy, "%p, %lu") 501 ITT_STUBV(LIBITTAPI, void, memory_write, (void *addr, size_t size), 502 (ITT_FORMAT addr, size), memory_write, __itt_group_legacy, "%p, %lu") 503 ITT_STUBV(LIBITTAPI, void, memory_update, (void *addr, size_t size), 504 (ITT_FORMAT addr, size), memory_update, __itt_group_legacy, "%p, %lu") 505 506 ITT_STUB(LIBITTAPI, __itt_state_t, state_get, (void), (ITT_NO_PARAMS), 507 state_get, __itt_group_legacy, "no args") 508 ITT_STUB(LIBITTAPI, __itt_state_t, state_set, (__itt_state_t s), (ITT_FORMAT s), 509 state_set, __itt_group_legacy, "%d") 510 ITT_STUB(LIBITTAPI, __itt_obj_state_t, obj_mode_set, 511 (__itt_obj_prop_t p, __itt_obj_state_t s), (ITT_FORMAT p, s), 512 obj_mode_set, __itt_group_legacy, "%d, %d") 513 ITT_STUB(LIBITTAPI, __itt_thr_state_t, thr_mode_set, 514 (__itt_thr_prop_t p, __itt_thr_state_t s), (ITT_FORMAT p, s), 515 thr_mode_set, __itt_group_legacy, "%d, %d") 516 517 #ifndef __ITT_INTERNAL_BODY 518 #if ITT_PLATFORM == ITT_PLATFORM_WIN 519 ITT_STUB(ITTAPI, __itt_frame, frame_createA, (const char *domain), 520 (ITT_FORMAT domain), frame_createA, __itt_group_frame, "\"%s\"") 521 ITT_STUB(ITTAPI, __itt_frame, frame_createW, (const wchar_t *domain), 522 (ITT_FORMAT domain), frame_createW, __itt_group_frame, "\"%s\"") 523 #else /* ITT_PLATFORM==ITT_PLATFORM_WIN */ 524 ITT_STUB(ITTAPI, __itt_frame, frame_create, (const char *domain), 525 (ITT_FORMAT domain), frame_create, __itt_group_frame, "\"%s\"") 526 #endif /* ITT_PLATFORM==ITT_PLATFORM_WIN */ 527 #endif /* __ITT_INTERNAL_BODY */ 528 ITT_STUBV(ITTAPI, void, frame_begin, (__itt_frame frame), (ITT_FORMAT frame), 529 frame_begin, __itt_group_frame, "%p") 530 ITT_STUBV(ITTAPI, void, frame_end, (__itt_frame frame), (ITT_FORMAT frame), 531 frame_end, __itt_group_frame, "%p") 532 533 ITT_STUBV(ITTAPI, void, counter_destroy, (__itt_counter id), (ITT_FORMAT id), 534 counter_destroy, __itt_group_counter, "%p") 535 ITT_STUBV(ITTAPI, void, counter_inc, (__itt_counter id), (ITT_FORMAT id), 536 counter_inc, __itt_group_counter, "%p") 537 ITT_STUBV(ITTAPI, void, counter_inc_delta, 538 (__itt_counter id, unsigned long long value), (ITT_FORMAT id, value), 539 counter_inc_delta, __itt_group_counter, "%p, %lu") 540 ITT_STUBV(ITTAPI, void, counter_dec, (__itt_counter id), (ITT_FORMAT id), 541 counter_dec, __itt_group_counter, "%p") 542 ITT_STUBV(ITTAPI, void, counter_dec_delta, 543 (__itt_counter id, unsigned long long value), (ITT_FORMAT id, value), 544 counter_dec_delta, __itt_group_counter, "%p, %lu") 545 ITT_STUBV(ITTAPI, void, counter_set_value, (__itt_counter id, void *value_ptr), 546 (ITT_FORMAT id, value_ptr), counter_set_value, __itt_group_counter, 547 "%p, %p") 548 ITT_STUBV(ITTAPI, void, counter_set_value_ex, 549 (__itt_counter id, __itt_clock_domain *clock_domain, 550 unsigned long long timestamp, void *value_ptr), 551 (ITT_FORMAT id, clock_domain, timestamp, value_ptr), 552 counter_set_value_ex, __itt_group_counter, "%p, %p, %llu, %p") 553 554 #ifndef __ITT_INTERNAL_BODY 555 #if ITT_PLATFORM == ITT_PLATFORM_WIN 556 ITT_STUB(ITTAPI, __itt_mark_type, mark_createA, (const char *name), 557 (ITT_FORMAT name), mark_createA, __itt_group_mark, "\"%s\"") 558 ITT_STUB(ITTAPI, __itt_mark_type, mark_createW, (const wchar_t *name), 559 (ITT_FORMAT name), mark_createW, __itt_group_mark, "\"%S\"") 560 #else /* ITT_PLATFORM!=ITT_PLATFORM_WIN */ 561 ITT_STUB(ITTAPI, __itt_mark_type, mark_create, (const char *name), 562 (ITT_FORMAT name), mark_create, __itt_group_mark, "\"%s\"") 563 #endif /* ITT_PLATFORM==ITT_PLATFORM_WIN */ 564 #endif /* __ITT_INTERNAL_BODY */ 565 #if ITT_PLATFORM == ITT_PLATFORM_WIN 566 ITT_STUB(ITTAPI, int, markA, (__itt_mark_type mt, const char *parameter), 567 (ITT_FORMAT mt, parameter), markA, __itt_group_mark, "%d, \"%s\"") 568 ITT_STUB(ITTAPI, int, markW, (__itt_mark_type mt, const wchar_t *parameter), 569 (ITT_FORMAT mt, parameter), markW, __itt_group_mark, "%d, \"%S\"") 570 #else /* ITT_PLATFORM!=ITT_PLATFORM_WIN */ 571 ITT_STUB(ITTAPI, int, mark, (__itt_mark_type mt, const char *parameter), 572 (ITT_FORMAT mt, parameter), mark, __itt_group_mark, "%d, \"%s\"") 573 #endif /* ITT_PLATFORM==ITT_PLATFORM_WIN */ 574 ITT_STUB(ITTAPI, int, mark_off, (__itt_mark_type mt), (ITT_FORMAT mt), mark_off, 575 __itt_group_mark, "%d") 576 #if ITT_PLATFORM == ITT_PLATFORM_WIN 577 ITT_STUB(ITTAPI, int, mark_globalA, (__itt_mark_type mt, const char *parameter), 578 (ITT_FORMAT mt, parameter), mark_globalA, __itt_group_mark, 579 "%d, \"%s\"") 580 ITT_STUB(ITTAPI, int, mark_globalW, 581 (__itt_mark_type mt, const wchar_t *parameter), 582 (ITT_FORMAT mt, parameter), mark_globalW, __itt_group_mark, 583 "%d, \"%S\"") 584 #else /* ITT_PLATFORM!=ITT_PLATFORM_WIN */ 585 ITT_STUB(ITTAPI, int, mark_global, (__itt_mark_type mt, const char *parameter), 586 (ITT_FORMAT mt, parameter), mark_global, __itt_group_mark, 587 "%d, \"%S\"") 588 #endif /* ITT_PLATFORM==ITT_PLATFORM_WIN */ 589 ITT_STUB(ITTAPI, int, mark_global_off, (__itt_mark_type mt), (ITT_FORMAT mt), 590 mark_global_off, __itt_group_mark, "%d") 591 592 #ifndef __ITT_INTERNAL_BODY 593 ITT_STUB(ITTAPI, __itt_caller, stack_caller_create, (void), (ITT_NO_PARAMS), 594 stack_caller_create, __itt_group_stitch, "no args") 595 #endif /* __ITT_INTERNAL_BODY */ 596 ITT_STUBV(ITTAPI, void, stack_caller_destroy, (__itt_caller id), 597 (ITT_FORMAT id), stack_caller_destroy, __itt_group_stitch, "%p") 598 ITT_STUBV(ITTAPI, void, stack_callee_enter, (__itt_caller id), (ITT_FORMAT id), 599 stack_callee_enter, __itt_group_stitch, "%p") 600 ITT_STUBV(ITTAPI, void, stack_callee_leave, (__itt_caller id), (ITT_FORMAT id), 601 stack_callee_leave, __itt_group_stitch, "%p") 602 603 ITT_STUB(ITTAPI, __itt_clock_domain *, clock_domain_create, 604 (__itt_get_clock_info_fn fn, void *fn_data), (ITT_FORMAT fn, fn_data), 605 clock_domain_create, __itt_group_structure, "%p, %p") 606 ITT_STUBV(ITTAPI, void, clock_domain_reset, (void), (ITT_NO_PARAMS), 607 clock_domain_reset, __itt_group_structure, "no args") 608 ITT_STUBV(ITTAPI, void, id_create_ex, 609 (const __itt_domain *domain, __itt_clock_domain *clock_domain, 610 unsigned long long timestamp, __itt_id id), 611 (ITT_FORMAT domain, clock_domain, timestamp, id), id_create_ex, 612 __itt_group_structure, "%p, %p, %lu, %lu") 613 ITT_STUBV(ITTAPI, void, id_destroy_ex, 614 (const __itt_domain *domain, __itt_clock_domain *clock_domain, 615 unsigned long long timestamp, __itt_id id), 616 (ITT_FORMAT domain, clock_domain, timestamp, id), id_destroy_ex, 617 __itt_group_structure, "%p, %p, %lu, %lu") 618 ITT_STUBV(ITTAPI, void, task_begin_ex, 619 (const __itt_domain *domain, __itt_clock_domain *clock_domain, 620 unsigned long long timestamp, __itt_id id, __itt_id parentid, 621 __itt_string_handle *name), 622 (ITT_FORMAT domain, clock_domain, timestamp, id, parentid, name), 623 task_begin_ex, __itt_group_structure, "%p, %p, %lu, %lu, %lu, %p") 624 ITT_STUBV(ITTAPI, void, task_begin_fn_ex, 625 (const __itt_domain *domain, __itt_clock_domain *clock_domain, 626 unsigned long long timestamp, __itt_id id, __itt_id parentid, 627 void *fn), 628 (ITT_FORMAT domain, clock_domain, timestamp, id, parentid, fn), 629 task_begin_fn_ex, __itt_group_structure, "%p, %p, %lu, %lu, %lu, %p") 630 ITT_STUBV(ITTAPI, void, task_end_ex, 631 (const __itt_domain *domain, __itt_clock_domain *clock_domain, 632 unsigned long long timestamp), 633 (ITT_FORMAT domain, clock_domain, timestamp), task_end_ex, 634 __itt_group_structure, "%p, %p, %lu") 635 ITT_STUBV(ITTAPI, void, task_begin_overlapped, 636 (const __itt_domain *domain, __itt_id id, __itt_id parent, 637 __itt_string_handle *name), 638 (ITT_FORMAT domain, id, parent, name), task_begin_overlapped, 639 __itt_group_structure, "%p, %lu, %lu, %p") 640 ITT_STUBV(ITTAPI, void, task_begin_overlapped_ex, 641 (const __itt_domain *domain, __itt_clock_domain *clock_domain, 642 unsigned long long timestamp, __itt_id id, __itt_id parentid, 643 __itt_string_handle *name), 644 (ITT_FORMAT domain, clock_domain, timestamp, id, parentid, name), 645 task_begin_overlapped_ex, __itt_group_structure, 646 "%p, %p, %lu, %lu, %lu, %p") 647 ITT_STUBV(ITTAPI, void, task_end_overlapped, 648 (const __itt_domain *domain, __itt_id id), (ITT_FORMAT domain, id), 649 task_end_overlapped, __itt_group_structure, "%p, %lu") 650 ITT_STUBV(ITTAPI, void, task_end_overlapped_ex, 651 (const __itt_domain *domain, __itt_clock_domain *clock_domain, 652 unsigned long long timestamp, __itt_id id), 653 (ITT_FORMAT domain, clock_domain, timestamp, id), 654 task_end_overlapped_ex, __itt_group_structure, "%p, %p, %lu, %lu") 655 ITT_STUBV(ITTAPI, void, marker_ex, 656 (const __itt_domain *domain, __itt_clock_domain *clock_domain, 657 unsigned long long timestamp, __itt_id id, __itt_string_handle *name, 658 __itt_scope scope), 659 (ITT_FORMAT domain, clock_domain, timestamp, id, name, scope), 660 marker_ex, __itt_group_structure, "%p, %p, %lu, %lu, %p, %d") 661 ITT_STUBV(ITTAPI, void, metadata_add_with_scope, 662 (const __itt_domain *domain, __itt_scope scope, 663 __itt_string_handle *key, __itt_metadata_type type, size_t count, 664 void *data), 665 (ITT_FORMAT domain, scope, key, type, count, data), 666 metadata_add_with_scope, __itt_group_structure, 667 "%p, %d, %p, %d, %lu, %p") 668 #if ITT_PLATFORM == ITT_PLATFORM_WIN 669 ITT_STUBV(ITTAPI, void, metadata_str_add_with_scopeA, 670 (const __itt_domain *domain, __itt_scope scope, 671 __itt_string_handle *key, const char *data, size_t length), 672 (ITT_FORMAT domain, scope, key, data, length), 673 metadata_str_add_with_scopeA, __itt_group_structure, 674 "%p, %d, %p, %p, %lu") 675 ITT_STUBV(ITTAPI, void, metadata_str_add_with_scopeW, 676 (const __itt_domain *domain, __itt_scope scope, 677 __itt_string_handle *key, const wchar_t *data, size_t length), 678 (ITT_FORMAT domain, scope, key, data, length), 679 metadata_str_add_with_scopeW, __itt_group_structure, 680 "%p, %d, %p, %p, %lu") 681 #else /* ITT_PLATFORM!=ITT_PLATFORM_WIN */ 682 ITT_STUBV(ITTAPI, void, metadata_str_add_with_scope, 683 (const __itt_domain *domain, __itt_scope scope, 684 __itt_string_handle *key, const char *data, size_t length), 685 (ITT_FORMAT domain, scope, key, data, length), 686 metadata_str_add_with_scope, __itt_group_structure, 687 "%p, %d, %p, %p, %lu") 688 #endif /* ITT_PLATFORM==ITT_PLATFORM_WIN */ 689 ITT_STUBV(ITTAPI, void, relation_add_to_current_ex, 690 (const __itt_domain *domain, __itt_clock_domain *clock_domain, 691 unsigned long long timestamp, __itt_relation relation, 692 __itt_id tail), 693 (ITT_FORMAT domain, clock_domain, timestamp, relation, tail), 694 relation_add_to_current_ex, __itt_group_structure, 695 "%p, %p, %lu, %d, %lu") 696 ITT_STUBV(ITTAPI, void, relation_add_ex, 697 (const __itt_domain *domain, __itt_clock_domain *clock_domain, 698 unsigned long long timestamp, __itt_id head, __itt_relation relation, 699 __itt_id tail), 700 (ITT_FORMAT domain, clock_domain, timestamp, head, relation, tail), 701 relation_add_ex, __itt_group_structure, "%p, %p, %lu, %lu, %d, %lu") 702 ITT_STUB(ITTAPI, __itt_track_group *, track_group_create, 703 (__itt_string_handle * name, __itt_track_group_type track_group_type), 704 (ITT_FORMAT name, track_group_type), track_group_create, 705 __itt_group_structure, "%p, %d") 706 ITT_STUB(ITTAPI, __itt_track *, track_create, 707 (__itt_track_group * track_group, __itt_string_handle *name, 708 __itt_track_type track_type), 709 (ITT_FORMAT track_group, name, track_type), track_create, 710 __itt_group_structure, "%p, %p, %d") 711 ITT_STUBV(ITTAPI, void, set_track, (__itt_track * track), (ITT_FORMAT track), 712 set_track, __itt_group_structure, "%p") 713 714 #ifndef __ITT_INTERNAL_BODY 715 ITT_STUB(ITTAPI, const char *, api_version, (void), (ITT_NO_PARAMS), 716 api_version, __itt_group_all & ~__itt_group_legacy, "no args") 717 #endif /* __ITT_INTERNAL_BODY */ 718 719 #ifndef __ITT_INTERNAL_BODY 720 #if ITT_PLATFORM == ITT_PLATFORM_WIN 721 ITT_STUB(ITTAPI, int, av_saveA, 722 (void *data, int rank, const int *dimensions, int type, 723 const char *filePath, int columnOrder), 724 (ITT_FORMAT data, rank, dimensions, type, filePath, columnOrder), 725 av_saveA, __itt_group_arrays, "%p, %d, %p, %d, \"%s\", %d") 726 ITT_STUB(ITTAPI, int, av_saveW, 727 (void *data, int rank, const int *dimensions, int type, 728 const wchar_t *filePath, int columnOrder), 729 (ITT_FORMAT data, rank, dimensions, type, filePath, columnOrder), 730 av_saveW, __itt_group_arrays, "%p, %d, %p, %d, \"%S\", %d") 731 #else /* ITT_PLATFORM!=ITT_PLATFORM_WIN */ 732 ITT_STUB(ITTAPI, int, av_save, 733 (void *data, int rank, const int *dimensions, int type, 734 const char *filePath, int columnOrder), 735 (ITT_FORMAT data, rank, dimensions, type, filePath, columnOrder), 736 av_save, __itt_group_arrays, "%p, %d, %p, %d, \"%s\", %d") 737 #endif /* ITT_PLATFORM==ITT_PLATFORM_WIN */ 738 #endif /* __ITT_INTERNAL_BODY */ 739 740 #ifndef __ITT_INTERNAL_BODY 741 #if ITT_PLATFORM == ITT_PLATFORM_WIN 742 ITT_STUBV(ITTAPI, void, module_loadA, 743 (void *start_addr, void *end_addr, const char *path), 744 (ITT_FORMAT start_addr, end_addr, path), module_loadA, 745 __itt_group_none, "%p, %p, %p") 746 ITT_STUBV(ITTAPI, void, module_loadW, 747 (void *start_addr, void *end_addr, const wchar_t *path), 748 (ITT_FORMAT start_addr, end_addr, path), module_loadW, 749 __itt_group_none, "%p, %p, %p") 750 #else /* ITT_PLATFORM!=ITT_PLATFORM_WIN */ 751 ITT_STUBV(ITTAPI, void, module_load, 752 (void *start_addr, void *end_addr, const char *path), 753 (ITT_FORMAT start_addr, end_addr, path), module_load, 754 __itt_group_none, "%p, %p, %p") 755 #endif /* ITT_PLATFORM==ITT_PLATFORM_WIN */ 756 #endif /* __ITT_INTERNAL_BODY */ 757 758 #endif /* __ITT_INTERNAL_INIT */ 759